@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

body {
    margin: 0;
  font-family: 'Cormorant Garamond', Garamond, serif;
  color: #ffffff;
  min-height: 100vh;
  background: #000;
}

/* ================================
   FLOATING TITLE SHADOW
   ================================ */
h1,
h2 {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),
    0 0 45px rgba(0, 0, 0, 0.35);
}

/* ================================
   HEADER
   ================================ */
header {
  padding: 20px 0 10px;
  text-align: center;
}

h1 {
  font-size: 2.4rem;
  font-weight: 100;
  margin: 0;
  letter-spacing: 1px;
}

#title {
  color: #ffffff;
  text-decoration: none;
}

/* FULL WIDTH WHITE BAR */
.header-line {
  height: 0.25px;
  background-color: #ffffff;
  width: 100vw;
  margin: 22px 0 15px;
}

/* ================================
   NAVIGATION — TRUE EQUAL SPACING
   ================================ */
.header-row {
  width: 100vw;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  text-align: center;
}

/* Place groups into grid columns */
.nav-group.left {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: space-evenly;
}

.nav-group.right {
  grid-column: 4 / span 2;
  display: flex;
  justify-content: space-evenly;
}

/* Hardcore title — true center, never moves */
.header-row h1 {
  grid-column: 3;
  margin: 0;
  line-height: 1;
  text-align: center;
}

/* Nav links */
.header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}



.header-link {
  font-size: 0.95rem;
  color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  text-decoration: none;
  opacity: 0.95;
  white-space: nowrap;
}

.header-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Changelog / Files icons */
img[src="file.png"] {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

img[src="file.png"]:hover {
  opacity: 0.9;
}

/* ================================
   GUIDE LIBRARY LAYOUT
   ================================ */
.guide-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 1.5rem 120px;
  text-align: center;
}

.guide-topbar {
  margin: 18px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.guide-back {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.guide-back:hover {
  background: rgba(255,255,255,0.16);
}

.guide-crumbs {
  font-size: 0.95rem;
  opacity: 0.9;
}

.guide-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  text-align: left;
}

.guide-sidebar {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: blur(3px);
}

.guide-side-title {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.guide-cats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-cat {
  text-align: left;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.guide-cat:hover {
  background: rgba(255,255,255,0.10);
}

.guide-cat.active {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
}

.guide-content {
  min-height: 420px;
}

/* ================================
   CARDS GRID
   ================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  text-align: left;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  backdrop-filter: blur(3px);
}

.guide-card:hover {
  background: rgba(0,0,0,0.34);
  border-color: rgba(255,255,255,0.20);
}

.guide-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover; /* uniform size across library */
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: block;
  margin-bottom: 10px;
}
/* ================================
   GUIDE CARD HOVER VIDEO (HOUSE)
   ================================ */

.guide-card-media {
  position: relative;
  height: 110px;          /* same as your old image height */
  border-radius: 10px;
  overflow: hidden;
  background: transparent;       /* what shows until video is ready */
}


.guide-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.guide-card:hover .guide-card-video {
  opacity: 1;
}

.guide-card-title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.guide-card-sub {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* (Legacy) optional row, currently unused because costs are in detail view */
.guide-card-cost {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.92rem;
  opacity: 0.9;
}

.guide-card-cost img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: inline-block;
}

/* ================================
   DETAIL VIEW
   ================================ */
.guide-detail {
  position: relative; /* needed for top-right cost box */
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(3px);
    text-align: center;
}

.guide-detail-title {
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.detail-icon {
  width: 120px;   /* ~5 × 24px cost icons */
  height: auto;
  display: block;
    margin: 0 auto 10px;
    background: none;
}
/* Remove background & border from house icon */
.guide-detail-media img.detail-icon {
  background: none;
  border-radius: 0;
}



.guide-detail-sub {
  opacity: 0.85;
  margin-bottom: 12px;
}

/* Cost box (detail view, top-right, variant-specific) */
/* Cost box (detail view, top-right, variant-specific) */
/* Cost box (detail view, top-right, variant-specific) */
#detailCostBox {
  position: absolute;
  top: 14px;
  right: 14px;

  padding: 8px 10px;

  display: flex;          /* resources side by side */
  gap: 12px;              /* space between resources */
  align-items: center;

  min-width: 86px;
}



  #detailCostBox .cost-row {
    display: flex;
    flex-direction: column;   /* icon on top, number below */
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    opacity: 0.95;
    white-space: nowrap;
  }


#detailCostBox img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

/* MAIN IMAGE — smaller + uncut */
.guide-detail-media img {
  height: 50px;          /* same as variants */
  width: auto;           /* automatic width */
  object-fit: contain;
  border-radius: 8px;
  display: block;
    margin: 0 auto 10px;
}
/* Global icon shadow */
.guide-detail-media img,
.detail-icon,
.guide-thumb img {
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.65));
}


/* ================================
   VARIANT GALLERY — DARK (NO WHITE)
   ================================ */
.guide-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 14px;
}

/* Force “button” to look like our UI, not browser default */
.guide-thumb {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0,0,0,0.28);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 150px;
  backdrop-filter: blur(3px);
}

.guide-thumb:hover {
  background: rgba(0,0,0,0.34);
  border-color: rgba(255,255,255,0.22);
}

.guide-thumb.active {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
}

.guide-thumb img {
  height: 50px;        /* fixed height */
  width: auto;         /* automatic width */
  object-fit: contain; /* no cropping */
  border-radius: 8px;
  display: block;
  background: rgba(255,255,255,0.06);
}


.guide-thumb-cap {
  font-size: 0.95rem;
  opacity: 0.9;
  text-align: center;
}
.download-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(3px);
}

.download-btn:hover {
  background: rgba(255,255,255,0.25);
}


/* Sections */
.guide-sec {
  margin: 14px 0;
}

.guide-sec-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
  opacity: 0.95;
}

.guide-sec-body {
  font-size: 1.02rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* Related */
.guide-related {
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 14px;
}

.guide-related-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
  opacity: 0.95;
}

.guide-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-related-btn {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.guide-related-btn:hover {
  background: rgba(255,255,255,0.16);
}
/* ================================
   FEEDBACK (DESIGN ONLY)
   ================================ */

.feedback-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 1.5rem 120px;
  text-align: center;
}

.feedback-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: 0.85;
  margin: 8px 0 28px;
}

/* Main panel */
.feedback-panel {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
}


/* Disabled badge */
.feedback-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  opacity: 0.9;
}

/* Informational note */
.feedback-note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 18px;
}

/* Form layout */
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-row {
  display: flex;
  justify-content: center;
}


.feedback-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

.feedback-field label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Inputs */
.feedback-field input,
.feedback-field select,
.feedback-field textarea { 
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

/* Feedback message field — responsive height + viewport limit */
#fb_message {
  min-height: calc(30vh);
  max-height: calc(65vh - 100px);
}




/* Focus */
.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.10);
}

/* Actions */
.feedback-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.feedback-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: left;
}
/* Name + Anonymous toggle — unified look */
.feedback-name-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* INPUT = pill, same as button */
.feedback-name-row input {
  width: 160px;              /* SAME width as Anonymous */
  padding: 7px 12px;
  border-radius: 0px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  text-align: center;
}

/* Focus = active choice */
.feedback-name-row input:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

/* Anonymous button — identical geometry */
.feedback-anon {
  padding: 7px 12px;
  width: 160px;
  border-radius: 0px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* Active state (either choice) */
.feedback-anon.active {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  opacity: 1;
}

/* Inactive state */
.feedback-anon:not(.active) {
  opacity: 0.85;
}

/* Visual disable only */
#fb_name.is-disabled {
  opacity: 0.45;
}

/* Center ONLY the name/anonymous block */
.feedback-field-name {
  align-items: center;
  text-align: center;
}
/* Player name highlighted when Anonymous is NOT active */
.feedback-name-row:not(:has(.feedback-anon.active)) input {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}
/* Anonymous text dims when Player name is active */
.feedback-name-row:not(:has(.feedback-anon.active)) .feedback-anon {
  color: rgba(255,255,255,0.6);
}


/* Mobile */
@media (max-width: 640px) {
  .feedback-name-row {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-name-row input {
    width: 100%;
  }
}




/* ================================
   FEEDBACK — SEND BUTTON (REBUILT)
   ================================ */

.feedback-btn {
  appearance: none;
  -webkit-appearance: none;

  padding: 5px 10px;        /* compact */
  border-radius: 3px;         /* no rounding */

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);

  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.4px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;

  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

/* Hover — highlighted */
.feedback-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
  color: #ffffff;
}

/* Active (visual only) */
.feedback-btn:active {
  background: rgba(255,255,255,0.12);
}

/* Disabled = visible but inert */
.feedback-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.feedback-btn[disabled]:hover {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9);
}

/* Mobile */
@media (max-width: 640px) {
  .feedback-row {
    display: flex;
    justify-content: center;
  }

  .feedback-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
  }
}
/* Thank-you state */
#feedbackThanksText {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 10px 0 18px;
  text-align: center;
}

/* Shown feedback preview */
#feedbackThanksMessage {
  max-width: 720px;
  margin: 0 auto;
  padding: 0px;

  background: none;
  border: none;
  border-radius: 12px;

  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.55;

  white-space: pre-wrap;   /* keeps line breaks */
  word-break: break-word;  /* prevents overflow */
  text-align: left;
}
/* ================================
   FEEDBACK THANK YOU — QUOTE STYLING
   ================================ */

/* Increase spacing between thank-you text and quote container */
#feedbackThanksText {
  margin: 0 0 26px;
}

/* Quote container */
.feedback-quote {
  margin: 0 auto;
  max-width: 720px;

  padding: 18px 18px 14px;
  border-radius: 0; /* Sir requested */
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
}

/* Make it feel like a real quote */
.feedback-quote-text {
  margin: 0;
  font-style: italic;
  line-height: 1.55;
  position: relative;

  padding-left: 18px;      /* pushes text away */
  margin-left: 14px;       /* pulls the line inward */

  border-left: none;
}


/* Decorative opening quote */
.feedback-quote-text::before {
  content: "“";
  position: absolute;
  left: -10px;
  top: -10px;
  font-size: 2.2rem;
  opacity: 0.55;
}

/* Author */
.feedback-quote-author {
  margin: 10px 0 0;
  text-align: right;
  opacity: 0.85;
  font-size: 0.95rem;
  font-style: normal;
}


/* ================================
   LANGUAGE FOOTER
   ================================ */
.lang-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 50px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  padding: 6px 0;
}

#lang-toggle {
  cursor: pointer;
}

#lang-toggle:hover {
  text-decoration: underline;
}

/* ================================
   AMBIENCE TOGGLE
   ================================ */
#ambience-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, color 0.25s ease;
}

#ambience-toggle:hover {
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.95);
}

/* ================================
   BACKGROUND VIDEO
   ================================ */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1) contrast(1.05);
}

.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 980px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-row {
    flex-direction: column;
    gap: 12px;
  }

  .nav-group {
    justify-content: center;
    padding: 0;
  }

  .header-row h1 {
    position: static;
    transform: none;
  }
}


/* Default cursor */
html, body {
  cursor: url("./cursor.png") 5 1, auto !important;
}

/* Pointer cursor for all interactive elements */
a,
button,
.guide-cat,
.guide-card,
.guide-back,
.guide-thumb,
.guide-related-btn,
#lang-toggle {
  cursor: url("./cursorpointer.png") 5 1, pointer !important;
}
