/* AnonChat, "case file" theme.
   Light: pale filing-room paper, manila folders, ink black, stamp red, highlighter mint.
   Dark: charcoal darkroom with olive folders and the same red and mint.
   Page colours only through tokens. The rules panel, closing band and room bar stay ink black in both modes.
   Never colour a bare `a` under a theme selector. */
:root {
  --bg: #ebede6;
  --bg-2: #e0e3d8;
  --paper: #fbfaf4;
  --manila: #efd796;
  --manila-2: #e2c46c;
  --on-manila: #17171c;
  --ink: #17171c;
  --ink-2: #393a42;
  --muted: #575862;
  --line: #ccd0c2;
  --stamp: #b3302a;
  --label: #a82d27;
  --mint: #93e7b8;
  --mark: #93e7b8;
  --rule: #cfdcf0;
  --tape: #17171c;
  --on-tape: #f6f4ea;
  --btn-ink: #17171c;
  --on-btn-ink: #fbfaf4;
  --shadow: 0 1px 0 rgba(23, 23, 28, .06), 0 18px 38px -24px rgba(23, 23, 28, .5);
  --head: "Schibsted Grotesk", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-look="light"]) {
    --bg: #121214; --bg-2: #18181c; --paper: #1d1d21; --manila: #2d2a20; --manila-2: #3b3626; --on-manila: #f1efe6;
    --ink: #f1efe6; --ink-2: #cfccc1; --muted: #a6a49b; --line: #303036; --label: #ff8277; --mark: #24563c; --mint: #5fd896;
    --rule: #2a3242; --tape: #2a2a30; --on-tape: #f1efe6; --btn-ink: #f1efe6; --on-btn-ink: #121214;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 20px 40px -22px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-look="dark"] {
  --bg: #121214; --bg-2: #18181c; --paper: #1d1d21; --manila: #2d2a20; --manila-2: #3b3626; --on-manila: #f1efe6;
  --ink: #f1efe6; --ink-2: #cfccc1; --muted: #a6a49b; --line: #303036; --label: #ff8277; --mark: #24563c; --mint: #5fd896;
  --rule: #2a3242; --tape: #2a2a30; --on-tape: #f1efe6; --btn-ink: #f1efe6; --on-btn-ink: #121214;
  --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 20px 40px -22px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.06rem/1.7 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
mark { background: linear-gradient(transparent 52%, var(--mark) 52%, var(--mark) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.dx-prose a:not(.dx-btn):not(.dx-mail), .dx-crumbs a, .dx-tipcard a { color: var(--label); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.dx-ic { width: 20px; height: 20px; flex: none; }
.dx-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.dx-wrap--narrow { width: min(860px, 100% - 40px); }
.dx-skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--manila); color: #17171c; font-weight: 700; }
.dx-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #e2574c; outline-offset: 3px; }
.dx-label { display: inline-block; margin: 0 0 12px; padding: 4px 10px 3px; border: 1.5px solid currentColor; border-radius: 4px; font: 700 .82rem/1.2 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--label); transform: rotate(-1.5deg); }
.dx-label--dark { color: #ff8277; }

/* ---------- buttons */
.dx-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dx-btns--center { justify-content: center; }
.dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 8px; border: 2px solid transparent; font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.dx-btn:hover { transform: translate(-2px, -2px); }
.dx-btn--stamp { background: #b3302a; color: #ffffff; box-shadow: 4px 4px 0 #17171c; }
.dx-btn--stamp:hover { box-shadow: 6px 6px 0 #17171c; }
.dx-btn--ink { background: var(--btn-ink); color: var(--on-btn-ink); }
.dx-btn--line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.dx-btn--manila { background: #efd796; color: #17171c; }
.dx-btn--big { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.dx-btn--small { min-height: 44px; padding: 0 16px; font-size: .94rem; }

/* ---------- header: folder tabs */
.dx-head { position: sticky; top: 0; z-index: 60; background: var(--bg-2); border-bottom: 2px solid var(--manila-2); }
.dx-head__row { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.dx-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.dx-logo { width: 42px; height: 42px; }
.dx-word { font: 900 1.5rem/1 var(--head); letter-spacing: -.03em; }
.dx-word b { margin-left: 2px; padding: 1px 6px 2px; border-radius: 4px; background: var(--ink); color: var(--bg); font-weight: 900; }
.dx-tabs { display: flex; align-self: flex-end; gap: 4px; margin-left: auto; margin-bottom: -2px; }
.dx-tab { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 88px; height: 54px; padding: 4px 16px 0; border-radius: 10px 10px 0 0; border: 2px solid var(--manila-2); border-bottom: 0; background: var(--manila); color: var(--on-manila); text-decoration: none; font-weight: 700; font-size: .96rem; line-height: 1.15; transform: translateY(6px); transition: transform .15s ease; }
.dx-tab small { font: 700 .7rem/1 var(--type); letter-spacing: .1em; opacity: .75; }
.dx-tab:hover { transform: translateY(0); }
.dx-tab[aria-current="page"] { background: var(--bg); color: var(--ink); transform: translateY(0); z-index: 1; }
.dx-tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--bg); }
.dx-head__end { display: flex; align-items: center; gap: 10px; flex: none; }
.dx-tone, .dx-roombar__full { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.dx-tone__light { display: none; }
:root[data-look="dark"] .dx-tone__dark { display: none; }
:root[data-look="dark"] .dx-tone__light { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-look="light"]) .dx-tone__dark { display: none; } :root:not([data-look="light"]) .dx-tone__light { display: block; } }
.dx-head__go { min-height: 44px; box-shadow: 3px 3px 0 var(--ink); }
.dx-head__files { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--ink); background: var(--manila); color: var(--on-manila); font: 700 .98rem/1 var(--body); cursor: pointer; }

/* phone menu: a stack of index cards */
.dx-deck { position: fixed; inset: 0; z-index: 90; }
.dx-deck[hidden] { display: none; }
.dx-deck__shade { position: absolute; inset: 0; background: rgba(12, 12, 14, .6); }
.dx-deck__drawer { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; padding: 18px 16px 26px; border-radius: 18px 18px 0 0; background: var(--manila); border-top: 3px solid var(--manila-2); animation: dx-up .28s ease; }
@keyframes dx-up { from { transform: translateY(40px); opacity: 0; } }
.dx-deck__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dx-deck__title { font: 700 .9rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--on-manila); }
.dx-deck__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--on-manila); background: transparent; color: var(--on-manila); cursor: pointer; }
.dx-deck__cards { display: grid; }
.dx-deck__card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; margin-top: -10px; padding: 16px 18px 22px; border-radius: 10px 10px 0 0; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 -2px 0 var(--line), 0 -10px 20px -14px rgba(0, 0, 0, .4); background-image: linear-gradient(#e2574c, #e2574c); background-size: 100% 2px; background-position: 0 44px; background-repeat: no-repeat; animation: dx-card .3s ease backwards; animation-delay: calc(var(--i) * 30ms); }
.dx-deck__card:first-child { margin-top: 0; }
@keyframes dx-card { from { transform: translateY(16px); opacity: 0; } }
.dx-deck__no { grid-row: span 2; font: 700 .9rem/1 var(--type); color: var(--label); }
.dx-deck__name { font: 800 1.25rem/1.1 var(--head); }
.dx-deck__line { grid-column: 2; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.dx-deck__card[aria-current="page"] .dx-deck__name { background: linear-gradient(transparent 55%, var(--mark) 55%); }
body.dx-deck-open { overflow: hidden; }

/* ---------- hero */
.dx-hero { position: relative; padding: 64px 0 34px; background-color: var(--bg); background-image: repeating-linear-gradient(0deg, transparent 0 35px, var(--line) 35px 36px); background-position: 0 18px; }
.dx-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 40px; }
.dx-hero__grid > * { min-width: 0; }
.dx-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 12px; border-radius: 6px; background: var(--paper); border: 1.5px solid var(--ink); font: 700 .82rem/1 var(--type); letter-spacing: .12em; text-transform: uppercase; }
.dx-kicker__dot { width: 9px; height: 9px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 3px rgba(34, 168, 97, .25); }
.dx-hero h1 { max-width: 16ch; }
.dx-hero__lead { max-width: 54ch; margin-bottom: 30px; font-size: 1.16rem; color: var(--ink-2); }

.dx-file { position: relative; padding-top: 30px; }
.dx-file::before { content: ""; position: absolute; left: 4%; right: -2%; top: 30px; bottom: -14px; border-radius: 4px 14px 14px 14px; background: var(--manila); border: 2px solid var(--manila-2); transform: rotate(2.2deg); }
.dx-file__tab { position: absolute; left: 6%; top: 2px; padding: 7px 18px 12px; border-radius: 10px 10px 0 0; background: var(--manila); border: 2px solid var(--manila-2); border-bottom: 0; font: 700 .8rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--on-manila); transform: rotate(2.2deg); transform-origin: left bottom; }
.dx-file__sheet { position: relative; padding: 30px 28px 26px; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.dx-file__clip { position: absolute; right: 38px; top: -18px; width: 22px; height: 58px; border: 3px solid #8b8f99; border-radius: 12px; }
.dx-file__clip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; bottom: 8px; border: 3px solid #8b8f99; border-radius: 8px; border-bottom-color: transparent; }
.dx-file__rows { margin: 0 0 18px; font-family: var(--type); }
.dx-file__rows div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dx-file__rows dt { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .86rem; color: var(--muted); }
.dx-file__rows dd { margin: 0; color: var(--ink); }
.dx-bar { display: inline-block; width: 70%; max-width: 180px; height: 1.1em; vertical-align: middle; border-radius: 2px; background: var(--ink); color: transparent; overflow: hidden; user-select: none; }
.dx-file__alias { padding: 16px 18px; border-radius: 8px; background: var(--bg-2); }
.dx-file__label { margin: 0 0 4px; font: 700 .78rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.dx-file__name { margin: 0 0 14px; font: 900 clamp(1.6rem, 3vw, 2.1rem)/1.1 var(--head); letter-spacing: -.02em; transition: opacity .2s ease; }
.dx-file__name.is-new { opacity: 0; }
.dx-file__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-file__note { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.dx-file__stamp { position: absolute; right: 16px; bottom: 112px; padding: 4px 10px; border: 3px solid #b3302a; border-radius: 6px; color: #b3302a; font: 700 1.05rem/1 var(--type); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-12deg); opacity: .8; pointer-events: none; }
:root[data-look="dark"] .dx-file__stamp { border-color: #ff8277; color: #ff8277; }
@media (prefers-color-scheme: dark) { :root:not([data-look="light"]) .dx-file__stamp { border-color: #ff8277; color: #ff8277; } }

.dx-tapes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 0 auto; padding: 22px 0 0; list-style: none; }
.dx-tapes li { padding: 8px 14px 7px; border-radius: 3px; background: var(--tape); color: var(--on-tape); font: 700 .92rem/1 var(--type); letter-spacing: .16em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 rgba(0, 0, 0, .25); }
.dx-tapes li:nth-child(odd) { transform: rotate(-1.5deg); }
.dx-tapes li:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- sections */
.dx-sec { padding: 88px 0; }
.dx-sec--shade { background: var(--bg-2); }
.dx-sec__head { max-width: 740px; margin-bottom: 40px; }
.dx-sec__head--center { margin-inline: auto; text-align: center; }
.dx-sec__title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.dx-sec__intro { font-size: 1.1rem; color: var(--ink-2); }

.dx-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dx-folder { position: relative; display: flex; flex-direction: column; padding-top: 34px; }
.dx-folder__tab { position: absolute; top: 0; left: 0; max-width: 80%; padding: 8px 16px 14px; border-radius: 10px 10px 0 0; background: var(--manila-2); color: var(--on-manila); font: 700 .82rem/1 var(--type); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-folder--2 .dx-folder__tab { left: 22%; }
.dx-folder--3 .dx-folder__tab { left: auto; right: 0; }
.dx-folder__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 0 10px 10px 10px; background: var(--manila); color: var(--on-manila); box-shadow: var(--shadow); }
.dx-folder--2 .dx-folder__body, .dx-folder--3 .dx-folder__body { border-radius: 10px; }
.dx-folder--3 .dx-folder__body { border-top-right-radius: 0; }
.dx-folder__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: #17171c; color: #efd796; }
.dx-folder__ic .dx-ic { width: 26px; height: 26px; }
.dx-folder h3 { font-size: 1.7rem; color: var(--on-manila); }
.dx-folder p { flex: 1; color: var(--on-manila); opacity: .88; }
.dx-folder .dx-btn { align-self: flex-start; }

.dx-story { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.dx-story__body p:not(.dx-label) { max-width: 68ch; color: var(--ink-2); font-size: 1.08rem; }
.dx-memo { position: sticky; top: 110px; padding: 24px; border-radius: 6px; background: var(--paper); border-top: 6px solid #b3302a; box-shadow: var(--shadow); }
.dx-memo__title { font: 700 1rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.dx-memo dl { margin: 0; }
.dx-memo dl div { padding: 10px 0; border-top: 1px dashed var(--line); }
.dx-memo dt { font-weight: 700; font-size: .92rem; color: var(--muted); }
.dx-memo dd { margin: 0; font-weight: 600; }

.dx-spot { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.dx-spot__status { margin: 0 0 6px; font: 700 1rem/1.4 var(--type); }
.dx-spot__done { color: var(--label); }
.dx-spot__hint { min-height: 1.6em; margin: 0 0 14px; color: var(--muted); font-size: .96rem; }
.dx-spot__msg { padding: 28px; border-radius: 6px 22px 22px 22px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--manila-2); }
.dx-spot__from { margin: 0 0 12px; font: 700 .8rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dx-spot__text { margin: 0; font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 2; }
.dx-spot__bit { display: inline; margin: 0; padding: 1px 3px; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-decoration: underline dotted 2px; text-underline-offset: 5px; text-decoration-color: var(--muted); cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .2s, color .2s; }
.dx-spot__bit:hover { background: var(--bg-2); }
.dx-spot__bit[data-spot-bit="private"][aria-pressed="true"] { background: var(--ink); color: transparent; text-decoration: none; }
.dx-spot__bit[data-spot-bit="fine"][aria-pressed="true"] { background: var(--mark); text-decoration: none; }
.dx-spot.is-done .dx-spot__msg { border-color: #22a861; }

.dx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.dx-steps__item { position: relative; padding: 34px 22px 24px; background: var(--manila); color: var(--on-manila); clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px); }
.dx-steps__item::before { content: ""; position: absolute; left: 50%; top: 12px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--manila-2); }
.dx-steps__tag { display: block; margin-bottom: 10px; font: 700 .84rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.dx-steps__item h3 { color: var(--on-manila); }
.dx-steps__item p { margin: 0; font-size: .98rem; color: var(--on-manila); opacity: .88; }

.dx-check { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.dx-meter { height: 18px; margin: 8px 0 10px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); overflow: hidden; }
.dx-meter__fill { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #b3302a 0 10px, #c94139 10px 20px); transition: width .3s ease, background .3s; }
.dx-check.is-ready .dx-meter__fill { background: repeating-linear-gradient(-45deg, #22a861 0 10px, #2fbf74 10px 20px); }
.dx-check__status { margin: 0; font: 700 1rem/1.4 var(--type); }
.dx-check__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dx-check__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 6px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 600 1rem/1.35 var(--body); text-align: left; cursor: pointer; transition: border-color .15s; }
.dx-check__item:hover { border-color: var(--ink); }
.dx-check__box { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 4px; border: 2px solid var(--ink); color: transparent; }
.dx-check__box .dx-ic { width: 18px; height: 18px; }
.dx-check__item[aria-pressed="true"] { border-color: var(--ink); }
.dx-check__item[aria-pressed="true"] .dx-check__box { background: #22a861; border-color: #22a861; color: #ffffff; }
.dx-check__item[aria-pressed="true"] > span:last-child { text-decoration: line-through; text-decoration-color: var(--muted); }

.dx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dx-card { padding: 22px 24px 24px; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
.dx-card:nth-child(3n + 1) { transform: rotate(-.6deg); }
.dx-card:nth-child(3n) { transform: rotate(.6deg); }
.dx-card__no { display: block; margin-bottom: 12px; font: 700 .84rem/1 var(--type); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.dx-card h3 { margin: 0 -24px 6px; padding: 0 24px 12px; border-bottom: 2px solid #e2574c; }
.dx-card p { margin: 0; line-height: 28px; background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); color: var(--ink-2); font-size: 1rem; }

.dx-rules { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; padding: 46px; border-radius: 10px; background: #17171c; color: #d9d7cd; }
.dx-rules .dx-sec__title { color: #ffffff; }
.dx-rules__head p:not(.dx-label) { color: #c9c7bd; }
.dx-rules__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dx-rules__list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border-radius: 6px; background: #222227; font-weight: 600; color: #f1efe6; }
.dx-rules__x { position: relative; flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #ff6b5e; border-radius: 4px; }
.dx-rules__x::before, .dx-rules__x::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px; background: #ff6b5e; transform: rotate(45deg); }
.dx-rules__x::after { transform: rotate(-45deg); }

.dx-faq { display: grid; gap: 10px; }
.dx-faq__item { border-radius: 6px; background: var(--paper); border: 2px solid var(--line); }
.dx-faq__item[open] { border-color: var(--ink); }
.dx-faq__item summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.dx-faq__item summary::-webkit-details-marker { display: none; }
.dx-faq__no { flex: none; padding: 4px 8px; border-radius: 4px; background: var(--manila); color: var(--on-manila); font: 700 .84rem/1 var(--type); }
.dx-faq__item summary h3 { flex: 1; margin: 0; font-size: 1.14rem; }
.dx-faq__sign { position: relative; flex: none; width: 28px; height: 28px; border-radius: 4px; border: 2px solid var(--ink); }
.dx-faq__sign::before, .dx-faq__sign::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.dx-faq__sign::after { transform: rotate(90deg); }
.dx-faq__item[open] .dx-faq__sign::after { transform: rotate(0); }
.dx-faq__item p { margin: 0; padding: 0 18px 18px 64px; color: var(--ink-2); }

.dx-final { padding: 80px 0; background: #17171c; color: #f1efe6; text-align: center; border-top: 10px solid #efd796; }
.dx-final__title { display: inline-block; margin: 0 0 14px; padding: 6px 18px; border: 4px solid #ff6b5e; border-radius: 8px; color: #ff8277; font: 900 clamp(1.9rem, 4.6vw, 3.1rem)/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; transform: rotate(-2deg); }
.dx-final__in > p:not(.dx-final__title) { max-width: 46ch; margin: 0 auto 26px; color: #cfccc1; font-size: 1.1rem; }

/* ---------- footer: back of a folder */
.dx-foot { padding: 64px 0 34px; background: var(--bg-2); }
.dx-foot__folder { position: relative; padding: 46px 40px 30px; border-radius: 4px 14px 14px 14px; background: var(--manila); color: var(--on-manila); border: 2px solid var(--manila-2); }
.dx-foot__tab { position: absolute; left: -2px; top: -38px; padding: 9px 18px 10px; border-radius: 10px 10px 0 0; background: var(--manila); border: 2px solid var(--manila-2); border-bottom: 0; color: var(--on-manila); }
.dx-foot__tab .dx-word { font-size: 1.1rem; }
.dx-foot__tab .dx-word b { background: var(--on-manila); color: var(--manila); }
.dx-foot__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.dx-foot__about .dx-brand { color: var(--on-manila); }
.dx-foot__about .dx-word b { background: var(--on-manila); color: var(--manila); }
.dx-foot__about p { margin: 16px 0 12px; max-width: 32ch; }
.dx-foot__mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--on-manila); text-decoration: underline; text-underline-offset: 4px; }
.dx-foot__card { position: relative; padding: 26px 26px 20px; border-radius: 4px; background-color: var(--paper); color: var(--ink); background-image: linear-gradient(#e2574c, #e2574c), repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); background-size: 100% 2px, 100% 100%; background-position: 0 56px, 0 58px; background-repeat: no-repeat; box-shadow: var(--shadow); transform: rotate(-.8deg); }
.dx-foot__clip { position: absolute; right: 34px; top: -16px; width: 20px; height: 52px; border: 3px solid #8b8f99; border-radius: 12px; }
.dx-foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dx-foot__h { margin: 0 0 18px; font: 700 .8rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.dx-foot__cols ul { margin: 0; padding: 0; list-style: none; }
.dx-foot__cols li { line-height: 32px; }
.dx-foot__cols a { font-weight: 600; text-decoration: none; }
.dx-foot__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dx-foot__tape { display: inline-block; margin: 34px 0 0; padding: 9px 14px 8px; border-radius: 3px; background: var(--tape); color: var(--on-tape); font: 700 .86rem/1.5 var(--type); letter-spacing: .04em; }

/* ---------- inner pages */
.dx-pagehead { padding: 52px 0 44px; background-color: var(--bg); background-image: repeating-linear-gradient(0deg, transparent 0 35px, var(--line) 35px 36px); border-bottom: 2px solid var(--manila-2); }
.dx-pagehead h1 { max-width: 18ch; }
.dx-pagehead__lead { max-width: 62ch; font-size: 1.14rem; color: var(--ink-2); }
.dx-pagehead__date { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 3px; background: var(--tape); color: var(--on-tape); font: 700 .8rem/1.3 var(--type); letter-spacing: .1em; text-transform: uppercase; }
.dx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font: 700 .9rem/1.4 var(--type); color: var(--muted); }
.dx-pagebody { padding: 56px 0 90px; }
.dx-pagebody__grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.dx-pagebody__grid--solo { grid-template-columns: minmax(0, 820px); }
.dx-doc { position: relative; min-width: 0; padding: 42px 42px 42px 64px; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
.dx-doc::before { content: ""; position: absolute; left: 22px; top: 40px; bottom: 40px; width: 12px; background: radial-gradient(circle, var(--bg-2) 5px, transparent 6px) 0 0 / 12px 90px repeat-y; }
.dx-doc::after { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; border-left: 2px solid rgba(226, 87, 76, .45); }
.dx-doc h2 { margin-top: 1.3em; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.dx-doc h2:first-child { margin-top: 0; }
.dx-doc h3 { margin-top: 1.4em; }
.dx-doc p { color: var(--ink-2); }
.dx-side { position: sticky; top: 110px; padding: 20px; border-radius: 8px; background: #17171c; color: #f1efe6; }
.dx-side__title { font: 700 .86rem/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: #efd796; }
.dx-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dx-side a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 6px; background: #222227; color: #f1efe6; text-decoration: none; }
.dx-side a:hover { background: #2c2c33; }
.dx-side__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 6px; background: #efd796; color: #17171c; }
.dx-side b { display: block; font-weight: 700; }
.dx-side small { display: block; font-size: .85rem; line-height: 1.35; color: #c9c7bd; }
.dx-mail { display: flex; align-items: center; gap: 16px; margin: 0 0 30px; padding: 20px 22px; border-radius: 6px; background: #efd796; color: #17171c; text-decoration: none; box-shadow: 5px 5px 0 #17171c; }
.dx-mail .dx-ic { width: 30px; height: 30px; }
.dx-mail small { display: block; font: 700 .8rem/1.3 var(--type); letter-spacing: .1em; text-transform: uppercase; }
.dx-mail b { font: 800 1.3rem/1.15 var(--head); word-break: break-all; }

.dx-lost { padding: 90px 0 110px; text-align: center; }
.dx-lost__in { max-width: 640px; }
.dx-lost__code { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 0 10px; font: 900 clamp(5rem, 18vw, 8.5rem)/1 var(--head); color: var(--ink); }
.dx-lost__bar { display: inline-block; width: .6em; height: .72em; border-radius: 4px; background: var(--ink); }

/* ---------- room pages */
.dx-roombar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 14px; background: #17171c; color: #f1efe6; border-bottom: 3px solid #efd796; }
.dx-brand--night { color: #f1efe6; }
.dx-brand--night .dx-logo { width: 38px; height: 38px; }
.dx-brand--night .dx-word { font-size: 1.3rem; }
.dx-brand--night .dx-word b { background: #efd796; color: #17171c; }
.dx-drawers { display: flex; gap: 8px; margin-inline: auto; }
.dx-drawer { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px 5px; border-radius: 6px; background: #26262c; border: 1px solid #34343b; text-decoration: none; }
.dx-drawer__label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 2px solid #b9974c; border-radius: 3px; background: #1d1d21; color: #e4e1d6; font: 700 .9rem/1 var(--type); white-space: nowrap; }
.dx-drawer__label .dx-ic { width: 16px; height: 16px; }
.dx-drawer__pull { width: 26px; height: 5px; border-radius: 3px; background: #b9974c; }
.dx-drawer:hover .dx-drawer__label { color: #ffffff; border-color: #efd796; }
.dx-drawer[aria-current="page"] { background: #35322a; }
.dx-drawer[aria-current="page"] .dx-drawer__label { background: #efd796; border-color: #efd796; color: #17171c; }
.dx-drawer[aria-current="page"] .dx-drawer__pull { background: #efd796; }
.dx-roombar__full { background: transparent; border-color: #4a4a52; color: #f1efe6; }
.dx-stage { height: calc(100dvh - 68px); min-height: 440px; background: #121214; }
.dx-stage:fullscreen { height: 100vh; }
.dx-frame, .dx-stage #app_container, .dx-stage #app_container > iframe, .dx-stage #app_container > div { display: block; width: 100% !important; height: 100% !important; border: 0; }
.dx-roominfo { padding: 46px 0 86px; }
.dx-roominfo__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.dx-roominfo h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.dx-roominfo .dx-prose p { color: var(--ink-2); }
.dx-roominfo__note { padding: 14px 18px; border-left: 4px solid #b3302a; background: var(--bg-2); font-size: .98rem; }
.dx-tipcard { padding: 26px; border-radius: 6px; background: var(--manila); color: var(--on-manila); }
.dx-tipcard h2 { font-size: 1.5rem; color: var(--on-manila); }
.dx-tipcard ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.dx-tipcard li { display: flex; gap: 12px; align-items: flex-start; }
.dx-tipcard li .dx-ic { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 4px; background: #17171c; color: #efd796; }
.dx-tipcard__more { margin: 0; font-size: .94rem; }
.dx-tipcard a { color: var(--on-manila); }
.dx-roominfo__faq { margin-top: 60px; max-width: 880px; }
.dx-roominfo__faq h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .dx-tabs { display: none; }
  .dx-head__end { margin-left: auto; }
  .dx-head__files { display: inline-flex; }
  .dx-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .dx-file { max-width: 560px; }
  .dx-rooms, .dx-cards { grid-template-columns: 1fr 1fr; }
  .dx-rooms > :last-child { grid-column: 1 / -1; }
  .dx-story, .dx-spot, .dx-check, .dx-rules, .dx-pagebody__grid, .dx-roominfo__grid, .dx-foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .dx-memo, .dx-side { position: static; }
  .dx-steps { grid-template-columns: 1fr 1fr; }
  .dx-rules { padding: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .dx-wrap, .dx-wrap--narrow { width: calc(100% - 32px); }
  .dx-head__row { min-height: 64px; gap: 8px; }
  .dx-logo { width: 36px; height: 36px; }
  .dx-word { font-size: 1.3rem; }
  .dx-head__go span, .dx-head__files span { display: none; }
  .dx-head__go, .dx-head__files { width: 44px; padding: 0; }
  .dx-hero { padding-top: 38px; }
  .dx-hero__lead { font-size: 1.05rem; }
  .dx-btns .dx-btn--big { flex: 1 1 100%; }
  .dx-file__sheet { padding: 26px 18px 20px; transform: none; }
  .dx-file::before { transform: rotate(1.5deg); }
  .dx-file__rows div { grid-template-columns: 76px 1fr; }
  .dx-file__stamp { display: none; }
  .dx-sec { padding: 62px 0; }
  .dx-rooms, .dx-cards, .dx-steps { grid-template-columns: 1fr; }
  .dx-card { transform: none !important; }
  .dx-spot__msg { padding: 20px; }
  .dx-rules { padding: 24px 18px; }
  .dx-faq__item summary { padding: 14px; gap: 10px; }
  .dx-faq__item p { padding: 0 14px 16px; }
  .dx-foot__folder { padding: 34px 18px 22px; }
  .dx-foot__cols { grid-template-columns: 1fr 1fr; }
  .dx-doc { padding: 26px 18px 26px 44px; }
  .dx-doc::before { left: 10px; }
  .dx-doc::after { left: 30px; }
  .dx-pagehead { padding: 34px 0 30px; }
  .dx-pagebody { padding: 36px 0 70px; }
  .dx-roombar { gap: 6px; padding: 0 8px; }
  .dx-roombar .dx-word, .dx-roombar__full { display: none; }
  .dx-drawers { gap: 5px; }
  .dx-drawer { padding: 5px 5px 4px; }
  .dx-drawer__label { padding: 5px 8px; font-size: .82rem; }
  .dx-drawer:not([aria-current="page"]) .dx-drawer__label span { display: none; }
}
