:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
[hidden]{display:none!important}
/* Layout: the game's own world. A cobalt tile wall runs behind the whole page; text sits on the wall
   or on cream plaques with a coloured inlay, and boards and phones carry the art. One theme by choice. */
:root {
  --wall: #1F318C;          /* Iznik wall */
  --wall-dim: rgba(6, 10, 38, 0.56);
  --night: #0B1240;         /* deepest band, footer */
  --on-wall: #FFF8EA;       /* text on the wall */
  --on-wall-2: #D7DCF0;     /* secondary text on the wall */
  --mark: #8EE0DA;          /* eyebrows on the wall */
  --cream: #FFFDF7;
  --cream-mid: #F4EBDA;
  --cream-low: #EADDC4;
  --edge: #A8926A;          /* plaque and tile edge */
  --ink: #1D2D78;           /* text on cream */
  --ink-2: #4C5270;
  --coral: #D04A32;         /* primary action */
  --coral-edge: #8E2A19;
  --turq: #2AA2A4;          /* inlay, progress */
  --grout: rgba(96, 74, 46, 0.26);
  --shadow: 0 16px 26px rgba(2, 4, 20, 0.6);

  --display: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, 'Times New Roman', serif;
  --ui: 'Nunito', ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --fs-h1: clamp(46px, 7.2vw, 88px);
  --fs-h2: clamp(36px, 4.8vw, 58px);
  --fs-h3: clamp(25px, 2.4vw, 30px);
  --fs-lead: clamp(18px, 1.6vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--on-wall);
  background-color: var(--wall);
  background-image: linear-gradient(var(--wall-dim), var(--wall-dim)), url(/img/wall-iznik.webp);
  background-size: auto, 92px 92px;
  background-position: center top;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.005em; font-variant-numeric: lining-nums; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid #FFD27A; outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 7vw, 96px); position: relative; overflow-x: clip; }
.eyebrow {
  font-family: var(--ui); font-weight: 900; font-size: var(--fs-small);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mark);
}
.lead { font-size: var(--fs-lead); color: var(--on-wall-2); max-width: 36em; }
.stack { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* ---------- header ---------- */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 10px rgba(2,4,20,.5); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 31px; letter-spacing: 0.01em; }
.nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; font-weight: 800; font-size: var(--fs-small); color: var(--on-wall-2);
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--on-wall); background: rgba(255,255,255,.08); }
@media (max-width: 860px) {
  .nav { order: 3; flex-basis: 100%; margin-inline: -6px; }
}

/* ---------- buttons ---------- */
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 24px 14px 18px; border-radius: 20px; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 48%), var(--coral);
  box-shadow: 0 6px 0 var(--coral-edge), 0 14px 24px rgba(2,4,20,.55);
  font-weight: 900; line-height: 1.15; transition: transform .15s ease, box-shadow .15s ease;
}
.store svg { flex: none; }
.store small { display: block; font-size: var(--fs-small); font-weight: 700; opacity: .9; letter-spacing: .02em; }
.store b { font-size: 21px; }
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--coral-edge), 0 18px 28px rgba(2,4,20,.55); }
.store:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--coral-edge), 0 8px 14px rgba(2,4,20,.5); }
.textlink { font-weight: 800; color: var(--on-wall); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: rgba(255,248,234,.4); }
.textlink:hover { text-decoration-color: var(--on-wall); }
.fine { font-size: var(--fs-small); color: var(--on-wall-2); font-weight: 700; }

/* ---------- plaque (cream, inlay rim, wooden edge) ---------- */
.plaque {
  --rim: var(--turq);
  background: linear-gradient(180deg, var(--cream), var(--cream-mid) 62%, var(--cream-low));
  color: var(--ink); border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 6px var(--rim), 0 5px 0 var(--edge), var(--shadow);
}
.plaque p { color: var(--ink-2); }

/* ---------- board with the glaze reveal ---------- */
.board {
  --inlay: var(--turq);
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 1;
  padding: 4.4%; border-radius: 7%;
  background: linear-gradient(160deg, var(--cream), var(--cream-mid) 55%, #E6D6B8);
  box-shadow: 0 0 0 2px rgba(4,7,28,.65), 0 22px 40px rgba(2,4,20,.7), 0 0 90px rgba(255,214,150,.18);
}
.field {
  position: relative; width: 100%; height: 100%; border-radius: 2.4%; overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--cream), 0 0 0 4.5px var(--inlay);
  background: #EEE3CF;
}
.field > img.pounce { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.field::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--grout) 1px, transparent 1px), linear-gradient(to bottom, var(--grout) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  box-shadow: inset 0 2px 6px rgba(60,36,12,.38);
}
.row {
  position: absolute; left: 0; right: 0; height: 12.5%; padding: 0; margin: 0; border: 0;
  background: transparent; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent;
}
.row .glaze {
  position: absolute; inset: 0; display: block;
  background-image: var(--glazed); background-size: 100% 800%; background-repeat: no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.22,.7,.2,1);
}
.row .glaze::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.85) 48%, rgba(255,246,214,.5) 54%, transparent 75%);
  transform: translateX(-110%); opacity: 0;
}
.row.on .glaze { clip-path: inset(0 0 0 0); }
.row.on.fresh .glaze::after { animation: glint 1s .15s ease-out; }
@keyframes glint { 0% { transform: translateX(-110%); opacity: 1; } 100% { transform: translateX(110%); opacity: 1; } }
.row:not(.on):hover { background: rgba(255,253,247,.34); }
.row:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; border-radius: 0; z-index: 2; }
.board.done { animation: fired 1.4s ease-out; }
@keyframes fired { 0% { box-shadow: 0 0 0 2px rgba(4,7,28,.65), 0 22px 40px rgba(2,4,20,.7), 0 0 90px rgba(255,214,150,.18); }
  35% { box-shadow: 0 0 0 2px rgba(4,7,28,.65), 0 22px 40px rgba(2,4,20,.7), 0 0 140px rgba(255,214,150,.55); }
  100% { box-shadow: 0 0 0 2px rgba(4,7,28,.65), 0 22px 40px rgba(2,4,20,.7), 0 0 90px rgba(255,214,150,.18); } }
@media (prefers-reduced-motion: reduce) {
  .row .glaze { transition: none; }
  .row.on.fresh .glaze::after, .board.done { animation: none; }
}
.label {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px 15px;
}
.label .name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--ink); }
.label .info { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); }
.label .count { margin-left: auto; font-size: var(--fs-small); font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.label .count b { color: var(--ink); font-weight: 900; }
.progress { flex-basis: 100%; height: 6px; border-radius: 6px; background: rgba(29,45,120,.12); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--turq); border-radius: 6px; transition: width .6s ease; }
.again {
  font: 800 var(--fs-small)/1 var(--ui); color: var(--ink); cursor: pointer;
  border: 0; border-radius: 12px; padding: 10px 14px;
  background: linear-gradient(180deg, #fff, var(--cream-mid)); box-shadow: 0 3px 0 var(--edge), 0 6px 12px rgba(2,4,20,.25);
}
.again:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 5vw, 64px); overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { margin-top: 14px; }
.hero h1 em { font-style: italic; color: #FFD9A0; }
.hero .lead { margin-top: 22px; }
.cta { display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap; margin-top: 34px; }
.hero .fine { margin-top: 18px; }
.stage { position: relative; display: grid; justify-items: center; gap: 22px; }
.stage::before {
  content: ""; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,210,140,.28), rgba(255,210,140,.08) 55%, transparent 75%);
}
.stage .board { max-width: 500px; }
.stage .plaque { width: 100%; max-width: 500px; }
.hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hint span { font-weight: 800; font-size: var(--fs-small); color: var(--on-wall-2); }
.deco { position: absolute; z-index: 3; width: clamp(54px, 7vw, 84px); aspect-ratio: 1; filter: drop-shadow(0 10px 14px rgba(2,4,20,.55)); pointer-events: none; }
.deco.a { top: -3%; left: -1%; transform: rotate(-14deg); }
.deco.b { top: 46%; right: -2%; transform: rotate(11deg); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .deco.a { left: 1%; } .deco.b { right: 0; }
}

/* ---------- phones ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 1179 / 2556;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2A2F45, #0B0E1C 45%, #1B2036);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.12) inset, 0 26px 48px rgba(2,4,20,.65);
}
.phone img { position: absolute; inset: 1.6% 3.5%; width: 93%; height: 96.8%; object-fit: cover; border-radius: 12.5% / 5.8%; }

/* ---------- how it plays ---------- */
.how .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.how .phone { justify-self: center; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 22px 22px; }
.num {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font: 900 26px/1 var(--ui); color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 50%), var(--coral);
  box-shadow: 0 4px 0 var(--coral-edge), 0 8px 14px rgba(2,4,20,.3);
}
.steps h3 { color: var(--ink); margin-bottom: 6px; }
.how .note { margin-top: 22px; }
@media (max-width: 860px) {
  .how .wrap { grid-template-columns: minmax(0, 1fr); }
  .how .phone { order: 2; max-width: 260px; }
}

/* ---------- daily ---------- */
.daily .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--on-wall); font-weight: 700; }
.ticks li::before {
  content: ""; width: 30px; height: 30px; border-radius: 9px; margin-top: -2px;
  background: url(/img/tile-tulip.webp) center / cover;
  box-shadow: 0 3px 6px rgba(2,4,20,.45);
}
.ticks li:nth-child(even)::before { background-image: url(/img/tile-carnation.webp); }
.ticks small { display: block; color: var(--on-wall-2); font-weight: 600; font-size: var(--fs-small); margin-top: 2px; }
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; justify-items: center; max-width: 560px; margin-inline: auto; width: 100%; }
.pair .phone:first-child { transform: rotate(-4deg) translateX(8%); z-index: 1; }
.pair .phone:last-child { transform: rotate(3.5deg) translate(-8%, 9%); z-index: 2; }
@media (max-width: 860px) { .daily .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- worlds ---------- */
.worlds {
  --w-wall: #1F318C; --w-tile: url(/img/wall-iznik.webp); --w-accent: #D04A32; --w-inlay: #2AA2A4;
  background-color: var(--w-wall);
  background-image: linear-gradient(rgba(6,10,38,.58), rgba(6,10,38,.58)), var(--w-tile);
  background-size: auto, var(--w-size, 92px 92px);
  transition: background-color .7s ease;
  box-shadow: inset 0 18px 30px -18px rgba(2,4,16,.8), inset 0 -18px 30px -18px rgba(2,4,16,.8);
}
.worlds .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text stage" "chips stage" "card stage"; grid-template-rows: auto auto 1fr; column-gap: clamp(36px, 6vw, 80px); row-gap: 18px; }
.worlds .wtext { grid-area: text; }
.worlds .chips { grid-area: chips; }
.worlds .world-card { grid-area: card; align-self: start; }
.worlds .stage { grid-area: stage; align-self: center; }
.chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; max-width: 560px; }
.chip {
  display: grid; justify-items: center; gap: 8px; padding: 10px 2px 9px; cursor: pointer; min-width: 0;
  border: 0; border-radius: 16px; font: 800 var(--fs-small)/1.1 var(--ui); color: var(--on-wall-2);
  background: transparent;
}
.chip img { width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,253,247,.55), 0 6px 12px rgba(2,4,20,.45); transition: transform .2s ease, box-shadow .2s ease; }
.chip span { padding: 4px 6px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { color: var(--on-wall); }
.chip:hover img { transform: translateY(-2px); }
.chip[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"] span { background: var(--cream); box-shadow: 0 2px 0 var(--edge); }
.chip[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--w-accent), 0 8px 16px rgba(2,4,20,.5); }
@media (max-width: 480px) { .chips { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 12px; scroll-padding-inline: 12px; } .chips::-webkit-scrollbar { display: none; } .chip { flex: 0 0 92px; padding-inline: 0; } .chip img { width: 46px; height: 46px; } .chip span { padding: 4px 6px; max-width: none; overflow: visible; } }
.world-card { --rim: var(--w-accent); padding: 22px 24px 24px; display: grid; gap: 12px; }
.world-card .plaque-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.world-card h3 { color: var(--ink); font-size: 34px; }
.world-card .where { font-weight: 800; font-size: var(--fs-small); color: var(--ink-2); }
.world-card p { font-size: var(--fs-body); }
.palette { display: flex; flex-wrap: wrap; gap: 14px 18px; padding-top: 4px; }
.swatch { display: grid; justify-items: center; gap: 6px; width: 68px; text-align: center; }
.swatch i { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 3px 0 rgba(168,146,106,.6); }
.swatch span { font-size: var(--fs-small); line-height: 1.15; font-weight: 700; color: var(--ink-2); }
.chapters { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); border-top: 1px solid rgba(29,45,120,.14); padding-top: 12px; }
.chapters b { color: var(--ink); font-weight: 900; }
.worlds .stage .plaque { --rim: var(--w-accent); }
.worlds .board { --inlay: var(--w-inlay); }
@media (max-width: 900px) { .worlds .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "chips" "stage" "card"; grid-template-rows: auto; row-gap: 22px; } }

/* ---------- collections ---------- */
.colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.coll { padding: 14px 14px 20px; display: grid; gap: 14px; grid-template-rows: auto 1fr; }
.coll img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--cream), 0 0 0 4px var(--rim), 0 6px 14px rgba(60,36,12,.25); }
.coll .t { display: grid; gap: 6px; padding-inline: 6px; grid-template-rows: auto 1fr auto; }
.coll h3 { font-size: 27px; color: var(--ink); }
.coll p { font-size: var(--fs-small); font-weight: 600; line-height: 1.45; }
.coll .meta { font-size: var(--fs-small); font-weight: 900; color: var(--ink); letter-spacing: .02em; }
.coll.lemon { --rim: #E8B92E; } .coll.ducks { --rim: #C8402F; } .coll.birds { --rim: #6E9A72; } .coll.seaside { --rim: #3D6BC4; }
.coll.newyear { --rim: #2F6E48; } .coll.cats { --rim: #F39A4C; }
.collnote { margin-top: 26px; }
.own { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center; margin-top: clamp(64px, 8vw, 104px); }
.own .phones { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 0; }
.own .phones .phone:first-child { transform: rotate(-3deg); }
.own .phones .phone:last-child { transform: rotate(3deg) translateY(7%); }
.parts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.parts span { font-weight: 800; font-size: var(--fs-small); color: var(--ink); background: var(--cream); padding: 9px 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--edge); }
@media (max-width: 980px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .own { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .colls { gap: 14px; } .coll { padding: 10px 10px 16px; } .coll h3 { font-size: 23px; } }

/* ---------- comfort ---------- */
.comfort .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.comfort .phone { justify-self: center; }
.settings { padding: 10px 8px; margin-top: 26px; }
.set { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; }
.set + .set { border-top: 1px solid rgba(29,45,120,.12); }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--ink); box-shadow: 0 3px 0 #0E1747; }
.set b { display: block; color: var(--ink); font-weight: 900; }
.set div > span { display: block; color: var(--ink-2); font-size: var(--fs-small); font-weight: 600; }
@media (max-width: 860px) {
  .comfort .wrap { grid-template-columns: minmax(0, 1fr); }
  .comfort .phone { order: 2; max-width: 260px; }
}
@media (max-width: 420px) { .set { grid-template-columns: 40px minmax(0, 1fr); } .ico { width: 40px; height: 40px; } }

/* ---------- wallpapers ---------- */
.walls .head { display: grid; gap: 18px; max-width: 760px; }
.fan { display: flex; justify-content: center; margin-top: 56px; padding-bottom: 20px; }
.fan .phone { width: 20%; max-width: 220px; flex: none; margin-inline: -1.2%; }
.fan .phone:nth-child(1) { transform: rotate(-9deg) translateY(9%); }
.fan .phone:nth-child(2) { transform: rotate(-4.5deg) translateY(2.5%); z-index: 1; }
.fan .phone:nth-child(3) { z-index: 2; }
.fan .phone:nth-child(4) { transform: rotate(4.5deg) translateY(2.5%); z-index: 1; }
.fan .phone:nth-child(5) { transform: rotate(9deg) translateY(9%); }
@media (max-width: 640px) {
  .fan .phone { width: 34%; margin-inline: -3%; }
  .fan .phone:nth-child(1), .fan .phone:nth-child(5) { display: none; }
}

/* ---------- final call ---------- */
.final { text-align: left; }
.final .plaque { --rim: var(--coral); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px 32px; align-items: center; padding: clamp(26px, 4vw, 44px); }
.final .plaque img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 16px rgba(2,4,20,.35); }
.final h2 { color: var(--ink); font-size: clamp(32px, 4vw, 48px); }
.final p { margin-top: 8px; font-size: var(--fs-lead); }
.final .fine { color: var(--ink-2); margin-top: 12px; }
@media (max-width: 860px) { .final .plaque { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
footer { background: var(--night); padding-block: 40px; overflow-x: clip; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .brand span { font-size: 25px; }
footer .brand img { width: 34px; height: 34px; border-radius: 9px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { font-weight: 800; font-size: var(--fs-small); color: var(--on-wall-2); text-decoration: none; }
footer nav a:hover { color: var(--on-wall); text-decoration: underline; text-underline-offset: 4px; }
footer .copy { flex-basis: 100%; font-size: var(--fs-small); color: #9FA7CC; font-weight: 600; }

/* ---------- document views: support and privacy ---------- */
.doc { overflow-x: clip; padding-block: clamp(24px, 5vw, 56px) clamp(64px, 9vw, 110px); }
.doc .back { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: var(--fs-small); color: var(--on-wall-2); text-decoration: none; }
.doc .back:hover { color: var(--on-wall); }
.doc header { display: grid; gap: 14px; margin: 18px 0 30px; max-width: 760px; }
.sheet { padding: clamp(24px, 4.4vw, 56px); max-width: 860px; }
.sheet h2 { font-size: clamp(28px, 3vw, 34px); color: var(--ink); margin: 34px 0 10px; }
.sheet h2:first-child { margin-top: 0; }
.sheet p, .sheet li { color: var(--ink-2); font-size: var(--fs-body); max-width: 66ch; }
.sheet p + p, .sheet ul + p, .summary + p { margin-top: 12px; }
.sheet ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.sheet strong { color: var(--ink); }
.sheet a { color: var(--ink); font-weight: 800; text-underline-offset: 3px; }
.summary { background: rgba(42,162,164,.12); border-radius: 16px; padding: 18px 20px; margin-bottom: 8px; }
.summary p { color: var(--ink); font-weight: 700; }
.mailbox { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 18px 20px; border-radius: 16px; background: rgba(29,45,120,.07); margin: 16px 0 6px; }
.mailbox code { font: 900 19px/1.3 var(--ui); color: var(--ink); user-select: all; overflow-wrap: anywhere; min-width: 0; }
.mailbox .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.mailbox a.again { text-decoration: none; display: inline-block; }
.copied { font-size: var(--fs-small); font-weight: 800; color: #1E8F92; min-height: 1.2em; }
.faq { margin-top: 10px; display: grid; }
.faq details { border-top: 1px solid rgba(29,45,120,.14); }
.faq details:last-child { border-bottom: 1px solid rgba(29,45,120,.14); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 900; color: var(--ink); font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; }
.updated { font-size: var(--fs-small); font-weight: 800; color: var(--on-wall-2); }
.pvnote { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }

/* ---------- language menu: real links, so every language version can be found and crawled ---------- */
.langs { position: relative; flex: none; }
.langs summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  font: 900 var(--fs-small)/1 var(--ui); letter-spacing: .06em; color: var(--on-wall);
  min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  background: rgba(2,4,20,.4); box-shadow: inset 0 2px 5px rgba(0,0,0,.4);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { flex: none; }
.langs summary .chev { transition: transform .2s ease; }
.langs[open] summary { background: var(--cream); color: var(--ink); box-shadow: 0 3px 0 var(--edge); }
.langs[open] summary .chev { transform: rotate(180deg); }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; margin: 0; padding: 10px; list-style: none;
  width: min(330px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  border-radius: 18px; background: linear-gradient(180deg, var(--cream), var(--cream-mid));
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 5px var(--turq), 0 4px 0 var(--edge), var(--shadow);
}
.langs a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 11px;
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: var(--fs-small); line-height: 1.2;
}
.langs a:hover { background: rgba(29,45,120,.09); }
.langs a[aria-current="page"] { background: var(--ink); color: var(--cream); }
@media (max-width: 340px) { .langs ul { grid-template-columns: 1fr; } }

/* ---------- other scripts and long words ---------- */
h1, h2, h3 { overflow-wrap: break-word; }
html:lang(de) p, html:lang(de) li, html:lang(nl) p, html:lang(nl) li, html:lang(ru) p, html:lang(ru) li { hyphens: auto; }
html:lang(ja) {
  --display: 'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', serif;
  --ui: 'Nunito', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', YuGothic, Meiryo, 'Noto Sans JP', system-ui, sans-serif;
  line-break: strict;
}
html:lang(ko) {
  --display: 'Cormorant Garamond', 'AppleMyungjo', 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --ui: 'Nunito', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  word-break: keep-all;
}
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3 { line-height: 1.22; letter-spacing: 0; }
html:lang(ja) em, html:lang(ko) em { font-style: normal; }
html:lang(ja) .eyebrow, html:lang(ko) .eyebrow { letter-spacing: .04em; }
