/* Games for Grownups — shared site styles
   Palette/typography migrated from the original one-page site, extended
   with the components needed for the multi-page CMS-backed site. */

:root{
  --display: "komu", "Oswald", system-ui, sans-serif;
  --brand:   "urbana", "Oswald", system-ui, sans-serif;

  --paper:      #F3EEE1;
  --paper-warm: #EDE5D3;
  --ink:        #23271F;
  --ink-soft:   #4A4E42;
  --forest:     #1F3B2E;
  --forest-2:   #2C5142;
  --coral:      #E56A44;
  --plum:       #6E5691;
  --ghost:      #7CC7D6;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; font-size: 17px; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--brand);
  font-size: 19px;
  line-height: 1.68;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible{ outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 2px; }

img{ max-width: 100%; }

/* ---------- SITE NAV ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: var(--paper);
  padding: 0.9rem 1.5rem;
}
.site-nav-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
}
.site-nav .brand{
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}
.site-nav .links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .links a{
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #DCE7DF;
  text-decoration: none;
}
.site-nav .links a:hover,
.site-nav .links a.active{ color: var(--coral); }
.site-nav .links a.buy{
  color: var(--paper);
  background: var(--coral);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
}
.site-nav .links a.buy:hover{ background: #d15a35; color: var(--paper); }

/* ---------- HERO (evening room) ---------- */
.hero{
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(124,199,214,0.12), transparent 55%),
    linear-gradient(160deg, #244434 0%, #1F3B2E 55%, #182D24 100%);
  color: var(--paper);
  padding: 5.5rem 1.5rem 5rem;
}

.hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 4rem;
  align-items: center;
}

.hero-text{ animation: rise 0.9s ease both; }

.kicker{
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ghost);
  margin: 0 0 1.4rem;
}

.hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.9rem, 6.5vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 1.4rem;
  color: var(--paper);
}

.hero .sub{
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: #DCE7DF;
  max-width: 30ch;
  margin: 0 0 2.2rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--coral);
}

.hero .byline{
  font-family: var(--display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #B7C6BC;
}
.hero .byline b{ font-weight: 600; color: var(--paper); }
.hero .byline .div{ color: var(--forest-2); padding: 0 0.5rem; }

.cover-wrap{
  position: relative;
  justify-self: center;
  animation: rise 0.9s 0.12s ease both;
}
.cover-wrap::before{
  content: "";
  position: absolute;
  inset: -14% -12% -8% -12%;
  background: radial-gradient(closest-side, rgba(124,199,214,0.42), rgba(124,199,214,0.08) 60%, transparent 78%);
  z-index: 0;
  filter: blur(4px);
}
.cover-wrap img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 330px;
  border-radius: 3px;
  box-shadow: 0 26px 50px -18px rgba(0,0,0,0.55);
}
.cover-trigger{
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 3px;
  transition: transform 0.25s ease;
}
.cover-trigger:hover{ transform: translateY(-3px); }
.cover-trigger:focus-visible{ outline: 2px solid var(--coral); outline-offset: 4px; }

/* ---------- LIGHTBOX ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15,26,20,0.86);
  backdrop-filter: blur(2px);
  cursor: zoom-out;
  animation: fade 0.25s ease both;
}
.lightbox[hidden]{ display: none; }
.lightbox-img{
  max-width: min(92vw, 620px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7);
  animation: pop 0.28s cubic-bezier(.2,.8,.25,1) both;
}
.lightbox-close{
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(243,238,225,0.12);
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover{ background: rgba(243,238,225,0.24); }
.lightbox-close:focus-visible{ outline: 2px solid var(--coral); outline-offset: 3px; }
body.lb-open{ overflow: hidden; }

/* ---------- READING SECTIONS ---------- */
.band{ padding: 4.5rem 1.5rem; }
.col{ max-width: 1120px; margin: 0 auto; }

.label{
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1.1rem;
}

.lede{
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 1.6rem;
  color: var(--ink);
}
.lede em{ font-style: italic; }

.band p{ margin: 0 0 1.2rem; font-size: 1rem; }
.band p:not(.label){ font-size: 1.1rem; }
.band p.tight{ color: var(--ink-soft); }

em.title-italic{ font-style: italic; }

.thesis{
  background: var(--forest);
  color: var(--paper);
  padding: 4.5rem 1.5rem;
}
.thesis .label{ color: var(--ghost); }
.thesis blockquote{
  margin: 0;
  font-family: var(--brand);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.28;
  font-weight: 400;
  text-align: center;
}
.thesis blockquote .hl{
  color: var(--coral);
  font-style: italic;
}
.thesis blockquote br{ content: ""; display: block; margin-bottom: 0.45em; }

.scene-reggie{
  display: block;
  width: 130px;
  max-width: 40%;
  margin: 0 auto;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.30));
}

/* ---------- HOME: STORY HIGHLIGHTS ---------- */
.story-highlights{ background: var(--paper-warm); padding: 4.5rem 1.5rem; }
.story-highlights .inner{ max-width: 1120px; margin: 0 auto; }
.story-highlights .label{ font-size: 1rem; }
.story-highlight-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 1.6rem;
}
.story-highlight h3{ font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.03em; margin: 0.4rem 0 0.9rem; }
.story-highlight h3 a{ color: var(--ink); text-decoration: none; }
.story-highlight h3 a:hover{ color: var(--forest-2); }
.story-highlight p{ font-size: 1rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.story-highlight .story-meta{ font-size: 0.85rem; margin: 0; }

@media (max-width: 820px){
  .story-highlight-grid{ grid-template-columns: 1fr; }
}

.split{
  background: var(--paper-warm);
  padding: 4.5rem 1.5rem;
}
.split-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
}
.split-inner h3{
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin: 0.4rem 0 0.9rem;
  color: var(--ink);
}
.split-inner p{ margin: 0 0 1rem; font-size: 1rem; line-height: 1.6; }
.split-inner p:last-child{ margin-bottom: 0; }

/* ---------- INNER-PAGE HEADER (non-home pages) ---------- */
.page-hero{
  background: linear-gradient(160deg, #244434 0%, #1F3B2E 55%, #182D24 100%);
  color: var(--paper);
  padding: 3.2rem 1.5rem;
}
.page-hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.page-hero-text{ flex: 1; min-width: 240px; }
.page-hero-reggie{ flex: none; margin: 0; }
.page-hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--paper);
}
.page-hero p{
  font-family: var(--brand);
  font-style: italic;
  color: #DCE7DF;
  max-width: 60ch;
  margin: 0;
}

/* ---------- GENERIC CONTAINER ---------- */
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.container.narrow{ max-width: 760px; }

/* ---------- FLASH / ALERTS ---------- */
.flash{
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
}
.flash.success{ background: #E3EEE6; color: var(--forest); border: 1px solid var(--forest-2); }
.flash.error{ background: #FBEAE4; color: #8C3319; border: 1px solid var(--coral); }

/* ---------- FORMS ---------- */
form .field{ margin: 0 0 1.2rem; }
form label{
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.hint{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
input[type=text],
input[type=email],
input[type=number],
input[type=url],
input[type=password],
input[type=search],
select,
textarea{
  width: 100%;
  font-family: var(--brand);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #C9BFA6;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
form textarea{ min-height: 8rem; resize: vertical; }
form .checkbox-field{ display: flex; align-items: center; gap: 0.6rem; }
form .checkbox-field input{ margin: 0; }
form .checkbox-field label{
  text-transform: none;
  font-family: var(--brand);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: normal;
  color: var(--ink);
}
/* honeypot field, hidden from real users */
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

.btn{
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--forest-2);
  border: 0;
  border-radius: 3px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}
.btn:hover{ background: var(--forest); color: var(--paper); }
.btn.coral{ background: var(--coral); }
.btn.coral:hover{ background: #d15a35; }
.btn.ghost{ background: transparent; color: var(--forest-2); border: 1px solid var(--forest-2); }
.btn.small{ padding: 0.45rem 0.9rem; font-size: 0.75rem; }
.btn.danger{ background: #8C3319; }
.btn.danger:hover{ background: #732a14; }
.btn.disabled{ background: #B9AF98; color: #fff; cursor: not-allowed; pointer-events: none; }

/* ---------- PAGE TOOLBAR (search/action row shared by arcade + updates) ---------- */
.page-toolbar{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
}
.arcade-search-form{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.match-mode{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; line-height: 1; }
.match-mode label{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  font-family: var(--display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  cursor: pointer;
}
.match-mode input[type=radio]{ margin: 0; }

/* ---------- SEARCH BOX (shared: arcade + updates search) ---------- */
.search-box{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #C9BFA6;
  border-radius: 30px;
  padding: 0.55rem 1.1rem;
}
.search-box .search-icon{ opacity: 0.5; font-size: 0.9rem; line-height: 1; }
.search-box input[type=search]{
  border: 0;
  padding: 0;
  background: transparent;
  width: 220px;
  max-width: 100%;
  font-family: var(--brand);
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
}
.search-box input[type=search]:focus{ outline: none; }

/* ---------- GAME DETAIL HEADER ---------- */
.game-detail-header{
  margin: 1.5rem 0 3rem;
}
.game-detail-info h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.game-detail-info h1 a{ color: inherit; text-decoration: none; }
.game-detail-info h1 a:hover{ color: var(--forest-2); text-decoration: underline; }

.game-nav-links{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--paper-warm);
  font-family: var(--display);
  font-size: 0.85rem;
}

/* ---------- CARDS / GRID (arcade) ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem;
  margin: 0 0 2.5rem;
}
.card{
  background: #fff;
  border: 1px solid var(--paper-warm);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .card-body{ padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card h3{ font-family: var(--display); font-size: 1.05rem; margin: 0 0 0.5rem; }
.card h3 a{ color: var(--ink); text-decoration: none; }
.card h3 a:hover{ color: var(--forest-2); }
.card p{ font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.9rem; flex: 1; }
.card .tags{ margin-bottom: 0.7rem; }

/* ---------- TAG PILLS ---------- */
.tag-pill{
  display: inline-block;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--forest-2);
  background: var(--paper-warm);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  margin: 0 0.35rem 0.35rem 0;
  text-decoration: none;
}
.tag-pill.active{ background: var(--coral); color: var(--paper); }
.tag-filter{ display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1.6rem; }
.tag-filter label{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--paper-warm);
  border-radius: 20px;
  padding: 0.3rem 0.9rem 0.3rem 0.6rem;
  margin: 0 0.5rem 0.5rem 0;
  cursor: pointer;
}

/* ---------- SEARCH BAR ---------- */
.search-bar{ margin: 0 0 1.8rem; }

/* ---------- PAGINATION ---------- */
.pagination{ display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0 0; }
.pagination a, .pagination span{
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid var(--paper-warm);
  color: var(--ink);
}
.pagination a:hover{ background: var(--paper-warm); }
.pagination .current{ background: var(--forest); color: var(--paper); border-color: var(--forest); }

/* ---------- ACCORDION (updates & errata) ---------- */
.accordion-heading{
  border: 1px solid var(--paper-warm);
  border-radius: 5px;
  margin-bottom: 1rem;
  background: #fff;
}
.accordion-heading summary{
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.accordion-heading summary::-webkit-details-marker{ display: none; }
.accordion-heading summary::before{ content: "▸ "; color: var(--coral); }
.accordion-heading[open] summary::before{ content: "▾ "; }
.accordion-items{ padding: 0 1.3rem 1.2rem; }
.accordion-item{ border-top: 1px solid var(--paper-warm); }
.accordion-item summary{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  font-family: var(--brand);
  font-weight: 400;
  font-size: 1rem;
  list-style: none;
  cursor: pointer;
}
.accordion-item summary::-webkit-details-marker{ display: none; }
.accordion-item summary::before{ content: none; }
.item-title{ flex: 1; }
.item-page{
  flex: none;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.accordion-item .item-detail{ padding: 0 0 0.9rem; color: var(--ink-soft); font-size: 0.92rem; }
.accordion-item .item-detail a{ display: inline-block; margin-top: 0.4rem; }
.hidden-by-search{ display: none !important; }

/* ---------- ENDORSEMENTS ---------- */
.endorsement{
  background: #fff;
  border-left: 3px solid var(--coral);
  padding: 1.2rem 1.5rem;
  margin: 0 0 1.3rem;
  border-radius: 0 5px 5px 0;
}
.endorsement blockquote{ margin: 0 0 0.6rem; font-style: italic; font-size: 1.08rem; }
.endorsement cite{ font-style: normal; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- STORIES ---------- */
.story{
  background: var(--paper-warm);
  border-radius: 5px;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.1rem;
}
.story h3{ font-family: var(--display); font-size: 1rem; margin: 0 0 0.5rem; color: var(--ink); }
.story p{ margin: 0 0 0.5rem; }
.story .story-meta{ font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- ADMIN ---------- */
.admin-shell{ max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.admin-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--paper-warm);
}
.admin-nav a{
  font-family: var(--display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-soft);
}
.admin-nav a.active, .admin-nav a:hover{ color: var(--forest-2); }
.admin-subnav{ display: flex; flex-wrap: wrap; gap: 0.7rem; margin: -1.2rem 0 2rem; }
.admin-subnav a{
  font-family: var(--display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper-warm);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}
.admin-subnav a.active, .admin-subnav a:hover{ background: var(--forest); color: var(--paper); }
.admin-shell summary{ cursor: pointer; }
.admin-table{ width: 100%; border-collapse: collapse; margin: 0 0 2rem; background: #fff; }
.admin-table th, .admin-table td{
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--paper-warm);
  font-size: 0.92rem;
  vertical-align: top;
}
.admin-table th{
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.admin-table th.col-narrow{ width: 220px; }
.admin-table th.col-fit, .admin-table td.col-fit{ width: 1%; white-space: nowrap; }
.admin-table td.col-fit .inline-actions{ flex-wrap: nowrap; }
.admin-table td.col-fit select{ width: auto; min-width: 3.5rem; }
.admin-card{ background: #fff; border: 1px solid var(--paper-warm); border-radius: 5px; padding: 1.4rem; margin: 0 0 1.5rem; }
.admin-item-card{ background: var(--paper); margin: 0 0 1rem; }
.selectable-text{
  background: var(--paper-warm);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  user-select: text;
  margin-bottom: 0.6rem;
}
.inline-actions{ display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.inline-actions select{ width: auto; max-width: 260px; }
.badge{
  display: inline-block;
  font-family: var(--display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  background: var(--paper-warm);
  color: var(--ink-soft);
}
.badge.new{ background: var(--coral); color: #fff; }
.badge.published{ background: var(--forest-2); color: #fff; }

/* ---------- CONFIRM MODAL ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15,26,20,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay[hidden]{ display: none; }
.modal-box{
  background: #fff;
  border-radius: 6px;
  max-width: 420px;
  width: 100%;
  padding: 1.6rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
.modal-box p{ margin: 0 0 1.4rem; font-size: 1.02rem; color: var(--ink); }
.modal-actions{ display: flex; justify-content: flex-end; gap: 0.7rem; }

/* ---------- GAMER TYPE QUIZ ---------- */
.quiz-note{
  background: var(--paper-warm);
  border-radius: 5px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.likert-question{ border: 0; padding: 0; margin: 0 0 1.8rem; }
.likert-question legend{
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0;
  margin: 0 0 0.7rem;
}
.likert-scale{ display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.likert-options{ display: flex; gap: 1rem; }
.likert-option{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.likert-option input{ margin: 0; width: 1.2rem; height: 1.2rem; }
.likert-endpoint{
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (max-width: 640px){
  .likert-scale{ flex-direction: column; align-items: flex-start; }
  .likert-options{ gap: 0.8rem; }
}

/* ---------- GAMER TYPE RESULTS ---------- */
.gamer-type-results{ margin: 0 0 1.6rem; }
.gamer-type-bar{ margin: 0 0 1.4rem; }
.gamer-type-bar-label{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  margin: 0 0 0.35rem;
}
.gamer-type-bar-label strong{ font-size: 1rem; }
.gamer-type-bar-label span{ color: var(--coral); font-weight: 600; }
.gamer-type-bar-track{
  background: var(--paper-warm);
  border-radius: 20px;
  height: 0.9rem;
  overflow: hidden;
}
.gamer-type-bar-fill{ background: var(--forest-2); height: 100%; border-radius: 20px; }
.gamer-type-bar:first-child .gamer-type-bar-fill{ background: var(--coral); }

.share-link{ background: var(--paper-warm); border-radius: 5px; padding: 1rem 1.2rem; margin: 0 0 1.6rem; }
.share-link-title{
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}
.share-link-row{ display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share-link-row input{ flex: 1; min-width: 200px; background: #fff; }

/* ---------- FOOTER ---------- */
footer{
  background: var(--forest);
  color: #C4D2C8;
  padding: 3.2rem 1.5rem 3.6rem;
}
.foot-inner{
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.4rem;
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0.04em;
}
.foot-inner p{ margin: 0; }
.foot-inner .pub{ font-size: 1.05rem; color: var(--paper); font-weight: 500; }
.foot-inner .pub span{ display: block; font-weight: 300; font-size: 0.8rem; color: #93A79A; letter-spacing: 0.08em; margin-top: 0.15rem; }
.foot-inner .status{ font-size: 0.9rem; }
.foot-inner .status .dot{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ghost); margin-right: 0.55rem; vertical-align: middle;
}
.foot-inner .admin-link{ font-size: 0.78rem; }
.foot-inner .admin-link a{ color: #93A79A; }

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to  { opacity: 1; transform: translateY(0); }
}

@keyframes fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes pop{ from{ opacity: 0; transform: scale(0.94); } to{ opacity: 1; transform: scale(1); } }

@media (max-width: 820px){
  .hero-inner{ grid-template-columns: 1fr; gap: 2.8rem; text-align: center; }
  .hero-text{ order: 2; }
  .cover-wrap{ order: 1; }
  .hero .sub{ margin-left: auto; margin-right: auto; text-align: left; }
  .split-inner{ grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-text, .cover-wrap{ animation: none; }
  .cover-trigger:hover{ transform: none; }
  .lightbox, .lightbox-img{ animation: none; }
}
