:root {
  --paper: #f4efe2;
  --paper-deep: #e8dfcc;
  --card: #fffaf0;
  --ink: #17392d;
  --forest: #174b38;
  --forest-dark: #0f3427;
  --moss: #6d8069;
  --moss-pale: #d8dece;
  --orange: #e59a4a;
  --orange-dark: #c97831;
  --yellow: #efbd64;
  --blue: #5a8f92;
  --muted: #69756c;
  --line: rgba(23, 75, 56, .16);
  --shadow: 0 18px 48px rgba(26, 54, 42, .10);
  color: var(--ink);
  background: #e9e4d8;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #e9e4d8; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; min-height: 100dvh; }
.screen { width: min(100%, 430px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; position: relative; overflow: hidden; background: var(--paper); }
.screen::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .44; background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgba(37,61,46,.018) 5px 6px), radial-gradient(circle at 25% 35%, rgba(255,255,255,.32), transparent 34%); }
.screen > * { position: relative; z-index: 1; }

.brand-header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; }
.brand-lockup > span:last-child { display: grid; gap: 1px; }
.brand-lockup strong { font-family: "Songti SC", "STSong", serif; font-size: 13px; letter-spacing: .12em; }
.brand-lockup small { color: var(--moss); font-family: Georgia, serif; font-size: 6px; letter-spacing: .24em; }
.brand-trees { width: 28px; height: 26px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.brand-trees i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 17px solid var(--forest); position: relative; }
.brand-trees i::after { content: ""; width: 2px; height: 6px; position: absolute; top: 13px; left: -1px; background: var(--forest); }
.brand-trees i:nth-child(2) { border-left-width: 7px; border-right-width: 7px; border-bottom-width: 22px; }
.brand-trees i:nth-child(3) { border-bottom-color: var(--orange); transform: scale(.78); transform-origin: bottom; }
.edition-mark { color: var(--forest); font: 700 18px/1 Georgia, serif; }
.edition-mark small { margin-left: 1px; color: var(--orange-dark); font-size: 7px; vertical-align: top; }
.micro-label { margin: 0; color: var(--orange-dark); font: 700 9px/1.2 Georgia, serif; letter-spacing: .22em; }

.centered-screen { padding: max(22px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom)); display: grid; align-content: center; justify-items: center; text-align: center; }
.centered-screen h1 { margin: 15px 0 9px; font-family: "Songti SC", "STSong", serif; font-size: 28px; letter-spacing: .03em; }
.centered-screen > p:last-of-type { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.loading-view { background: #f1ecdf; }
.topographic-lines { position: absolute; inset: -20%; opacity: .16; background: repeating-radial-gradient(ellipse at center, transparent 0 29px, var(--forest) 30px 31px, transparent 32px 47px); transform: rotate(-15deg); }
.loading-compass { width: 118px; height: 118px; position: relative; margin-bottom: 35px; animation: float 2.6s ease-in-out infinite; }
.loading-compass .compass { animation: slow-spin 12s linear infinite; }
.loading-compass span { position: absolute; inset: -11px; border: 1px dashed rgba(23,75,56,.18); border-radius: 50%; animation: slow-spin 18s linear infinite reverse; }

.compass { width: 100%; height: 100%; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linejoin: round; }
.compass .fine { opacity: .28; stroke-width: 1; stroke-dasharray: 2 5; }
.compass .needle { fill: var(--orange); stroke: var(--forest); }
.compass .dot { fill: var(--forest); }
.compass .lock { fill: var(--paper); stroke: var(--forest); stroke-width: 3; }

.state-screen { padding: max(16px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.state-art { width: 220px; height: 225px; margin: clamp(35px, 8vh, 70px) auto 14px; position: relative; display: grid; place-items: center; }
.state-art .compass { width: 142px; height: 142px; opacity: .85; }
.state-art--waiting::before { content: ""; width: 200px; height: 1px; position: absolute; bottom: 21px; background: var(--line); box-shadow: 0 -143px 0 var(--line); }
.gate-post { width: 14px; height: 176px; position: absolute; bottom: 18px; border: 1px solid var(--line); background: var(--paper-deep); }
.gate-post::before, .gate-post::after { content: ""; width: 25px; height: 8px; position: absolute; left: -7px; border: 1px solid var(--line); background: var(--paper-deep); }
.gate-post::before { top: 0; }.gate-post::after { bottom: 0; }
.gate-post--left { left: 17px; }.gate-post--right { right: 17px; }
.sealed-ribbon { position: absolute; bottom: 18px; padding: 6px 25px; color: var(--paper); background: var(--forest); font-size: 10px; font-weight: 700; letter-spacing: .28em; transform: rotate(-3deg); box-shadow: 5px 5px 0 rgba(229,154,74,.6); }
.state-copy { text-align: center; }
.state-copy h1 { margin: 12px 0 15px; color: var(--forest-dark); font-family: "Songti SC", "STSong", serif; font-size: clamp(32px, 9vw, 40px); line-height: 1.18; letter-spacing: -.04em; }
.state-copy > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.text-button { min-height: 44px; margin: auto auto 0; padding: 5px 3px; border: 0; border-bottom: 1px solid rgba(23,75,56,.25); color: var(--forest); background: transparent; font-size: 12px; }
.text-button span { margin-left: 9px; color: var(--orange-dark); }
.page-footnote { margin: 18px 0 0; color: #92958d; text-align: center; font-size: 8px; letter-spacing: .15em; }

.ready-view { padding: max(16px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.hero-map { height: clamp(33px, 5vh, 47px); position: relative; }
.hero-map i { position: absolute; top: 7px; left: -25px; width: 140px; height: 43px; border: 1px solid rgba(23,75,56,.13); border-radius: 50%; transform: rotate(8deg); }
.hero-map i:nth-child(2) { left: auto; right: -48px; top: -8px; width: 125px; transform: rotate(-18deg); }
.hero-map span { position: absolute; right: 14px; top: 8px; color: rgba(23,75,56,.12); font: 700 40px/1 Georgia, serif; }
.ready-heading { text-align: center; }
.ready-heading > p:first-child { margin: 0; color: var(--moss); font-size: 8px; letter-spacing: .16em; }
.ready-heading > p:first-child span { padding: 0 4px; color: var(--orange); }
.ready-heading h1 { margin: 9px 0 0; color: var(--forest-dark); font-family: "Songti SC", "STSong", serif; font-size: clamp(37px, 10.6vw, 45px); line-height: 1.08; letter-spacing: -.07em; }
.ready-heading h2 { margin: 8px 0 0; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--orange-dark); font-family: "Songti SC", "STSong", serif; font-size: 18px; letter-spacing: .25em; }
.ready-heading h2 i { width: 25px; height: 1px; background: var(--orange); position: relative; }
.ready-heading h2 i::after { content: ""; width: 4px; height: 4px; position: absolute; top: -2px; border-radius: 50%; background: var(--orange); }
.ready-heading h2 i:first-child::after { right: 0; }.ready-heading h2 i:last-child::after { left: 0; }
.adventure-copy { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.identity-card { margin-top: clamp(17px, 3.5vh, 26px); padding: 13px 15px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,250,240,.78); box-shadow: 0 10px 32px rgba(27,57,43,.06); }
.card-label { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed var(--line); color: var(--moss); font: 700 8px Georgia, serif; letter-spacing: .15em; }
.card-label i { color: var(--forest); font-style: normal; font-size: 7px; }
.identity-main { padding-top: 12px; display: grid; grid-template-columns: 50px 1fr 26px; gap: 12px; align-items: center; }
.identity-avatar { width: 48px; height: 48px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 50%; color: var(--paper); background: var(--forest); font-family: "Songti SC", serif; font-size: 21px; }
.identity-avatar i { width: 35px; height: 35px; position: absolute; right: -17px; bottom: -18px; border-radius: 50%; background: var(--orange); opacity: .8; }
.identity-avatar span { position: relative; z-index: 1; }
.identity-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.identity-copy { display: grid; gap: 4px; }
.identity-copy strong { font-family: "Songti SC", serif; font-size: 17px; }
.identity-copy small { color: var(--muted); font-size: 11px; }
.verified-mark { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--forest); border-radius: 50%; color: var(--forest); font-size: 11px; }
.privacy-note, .lock-rule, .locked-config { margin-top: 12px; padding: 11px 13px; display: flex; gap: 11px; align-items: center; border: 1px solid rgba(23,75,56,.10); border-radius: 8px; background: rgba(216,222,206,.30); }
.privacy-note p, .lock-rule p, .locked-config p { margin: 0; display: grid; gap: 3px; }
.privacy-note strong, .lock-rule strong, .locked-config strong { font-size: 11px; }
.privacy-note small, .lock-rule small, .locked-config small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.mini-lock { width: 18px; height: 16px; flex: 0 0 auto; position: relative; border: 1.5px solid var(--forest); border-radius: 2px; }
.mini-lock::before { content: ""; width: 9px; height: 8px; position: absolute; left: 3px; top: -8px; border: 1.5px solid var(--forest); border-bottom: 0; border-radius: 8px 8px 0 0; }
.ready-actions { margin-top: auto; padding-top: 16px; }
.ready-actions > p { margin: 10px 0 0; color: #8a8f87; text-align: center; font-size: 8px; letter-spacing: .08em; }
.cta-button { width: 100%; min-height: 54px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; color: var(--paper); background: var(--forest); box-shadow: 0 10px 25px rgba(23,75,56,.17); font-weight: 700; letter-spacing: .11em; transition: transform .15s, filter .15s, opacity .15s; }
.cta-button--orange { color: var(--forest-dark); background: var(--yellow); box-shadow: 0 10px 25px rgba(201,119,48,.18); }
.cta-button i { font-style: normal; font-size: 17px; }
.cta-button:hover { filter: brightness(1.025); }.cta-button:active { transform: scale(.985); filter: brightness(.96); }.cta-button:disabled { cursor: not-allowed; opacity: .35; box-shadow: none; }

.drawing-view { background: #eee8da; }
.drawing-stage { width: 245px; height: 320px; position: relative; display: grid; place-items: center; margin-bottom: 14px; }
.archive-frame { position: absolute; inset: 25px 5px; border: 1px solid rgba(23,75,56,.10); transform: scale(.94); animation: archive-in 2s ease forwards; }
.archive-frame::before, .archive-frame::after { content: ""; position: absolute; width: 25px; height: 25px; border-color: var(--orange); border-style: solid; }
.archive-frame::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }.archive-frame::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.destiny-card { width: 165px; height: 248px; padding: 26px 15px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 2px solid var(--paper); outline: 1px solid rgba(23,75,56,.5); border-radius: 8px; color: var(--paper); background: var(--forest); box-shadow: 0 20px 45px rgba(16,52,39,.25); animation: card-ritual 2s ease-in-out forwards; }
.destiny-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(244,239,226,.35); border-radius: 4px; }
.destiny-card::after { content: ""; width: 155px; height: 155px; position: absolute; border: 1px solid rgba(244,239,226,.11); border-radius: 50%; box-shadow: 0 0 0 16px rgba(244,239,226,.035), 0 0 0 34px rgba(244,239,226,.025); }
.card-emblem { width: 85px; height: 85px; position: relative; z-index: 1; }
.card-emblem svg { width: 100%; fill: none; stroke: var(--yellow); stroke-width: 2; }
.card-emblem svg path { fill: var(--yellow); stroke-width: 1; }
.destiny-card > strong { margin-top: 12px; position: relative; z-index: 1; font: 700 18px Georgia, serif; letter-spacing: .2em; }
.destiny-card > small { margin-top: 6px; position: relative; z-index: 1; color: rgba(244,239,226,.65); font: 6px Georgia, serif; letter-spacing: .17em; }
.card-corner { position: absolute; color: rgba(244,239,226,.7); font-size: 10px; }.card-corner--a { left: 14px; top: 14px; }.card-corner--b { right: 14px; bottom: 14px; }
.card-shine { width: 40px; height: 150%; position: absolute; left: -80px; top: -25%; z-index: 3; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: rotate(18deg); animation: shine 2s .55s ease-in-out forwards; }
.leaf-orbit { position: absolute; inset: 18px -2px; z-index: 3; animation: slow-spin 3.6s linear infinite; }
.leaf-orbit i { width: 18px; height: 9px; position: absolute; border-radius: 100% 0 100% 0; background: var(--orange); transform: rotate(35deg); }
.leaf-orbit i:nth-child(1) { top: 7px; left: 42px; }.leaf-orbit i:nth-child(2) { top: 92px; right: 0; background: var(--blue); transform: rotate(95deg); }.leaf-orbit i:nth-child(3) { bottom: 12px; right: 47px; transform: rotate(185deg); }.leaf-orbit i:nth-child(4) { bottom: 82px; left: 0; background: var(--moss); transform: rotate(260deg); }
.progress-dots { margin-top: 24px; display: flex; gap: 7px; }
.progress-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--forest); animation: dot-pulse 1.1s ease-in-out infinite; }.progress-dots i:nth-child(2) { animation-delay: .18s; }.progress-dots i:nth-child(3) { animation-delay: .36s; }

.completion-view .brand-header { flex: 0 0 auto; }
.completed-art { height: clamp(285px, 40vh, 335px); display: grid; place-items: center; position: relative; }
.completed-art .destiny-card { width: 139px; height: 208px; animation: sealed-in .65s ease both; }
.completed-art .card-emblem { width: 67px; height: 67px; }
.completed-art .destiny-card > strong { font-size: 14px; }
.seal-mark { width: 63px; height: 63px; position: absolute; z-index: 4; display: grid; place-content: center; justify-items: center; border: 3px double var(--paper); border-radius: 50%; color: var(--paper); background: var(--orange-dark); transform: rotate(-9deg); box-shadow: 0 3px 10px rgba(15,52,39,.25); }
.seal-mark i { font-style: normal; font-size: 21px; line-height: 1; }.seal-mark b { font: 700 7px Georgia, serif; letter-spacing: .12em; }
.stamp-ring { width: 194px; height: 194px; position: absolute; display: grid; place-items: start center; padding-top: 6px; border: 1px dashed rgba(23,75,56,.22); border-radius: 50%; color: rgba(23,75,56,.38); font: 7px Georgia, serif; letter-spacing: .15em; transform: rotate(-16deg); }
.completion-copy h1 { font-size: 36px; }
.completion-copy > p:last-child { font-size: 12px; }
.sealed-message { margin: 21px 8px 0; padding: 14px 10px; display: grid; gap: 5px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sealed-message strong { color: var(--forest); font-family: "Songti SC", serif; font-size: 15px; }.sealed-message span { color: var(--muted); font-size: 10px; }
.completion-status { margin-top: auto; padding: 15px; display: flex; align-items: center; justify-content: space-between; border-radius: 8px; background: rgba(216,222,206,.33); }
.completion-status > span { display: flex; align-items: center; gap: 9px; }.completion-status strong { font-size: 11px; }.completion-status small { color: var(--muted); font-size: 9px; }
.status-seal { width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--forest); font-size: 11px; }

.error-art { width: 170px; height: 180px; margin: clamp(55px, 12vh, 105px) auto 20px; position: relative; }
.error-art .compass { opacity: .42; }.signal-cut { width: 115px; height: 3px; position: absolute; left: 28px; top: 87px; background: var(--orange-dark); transform: rotate(-35deg); box-shadow: 0 0 0 5px var(--paper); }
.error-view .cta-button { margin-top: auto; }

.admin-screen { padding: max(16px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-heading { padding: clamp(32px, 6vh, 55px) 0 19px; text-align: center; }
.admin-chip { display: inline-flex; padding: 5px 9px; border: 1px solid var(--orange); border-radius: 20px; color: var(--orange-dark); font: 700 7px Georgia, serif; letter-spacing: .18em; }
.admin-heading h1 { margin: 12px 0 0; font-family: "Songti SC", serif; font-size: 34px; letter-spacing: -.04em; }.admin-heading p { margin: 5px 0 0; color: var(--moss); font-family: "Songti SC", serif; font-size: 16px; letter-spacing: .3em; text-indent: .3em; }
.admin-divider { display: flex; align-items: center; gap: 10px; color: var(--orange); font-size: 8px; }.admin-divider i { flex: 1; height: 1px; background: var(--line); }
.config-card { margin-top: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,250,240,.7); box-shadow: 0 10px 32px rgba(27,57,43,.05); }
.config-card > header { min-height: 57px; padding: 0 14px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.config-index { color: var(--orange-dark); font: 700 20px Georgia, serif; }.config-card header > span:last-child { display: grid; gap: 2px; }.config-card header strong { font-family: "Songti SC", serif; font-size: 14px; }.config-card header small { color: var(--moss); font: 7px Georgia, serif; letter-spacing: .16em; }
.config-body { padding: 18px 17px; }
.config-field + .config-field { margin-top: 4px; }
.config-field > label { display: block; margin-bottom: 9px; font-size: 11px; font-weight: 700; }
.number-field { min-height: 58px; display: grid; grid-template-columns: 46px 1fr 28px 46px; align-items: center; border: 1px solid rgba(23,75,56,.25); border-radius: 8px; background: var(--card); transition: border .2s; }
.number-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(23,75,56,.06); }.number-field.is-invalid { border-color: #a65336; }
.number-field button { height: 42px; border: 0; color: var(--forest); background: transparent; font-size: 23px; }.number-field button:first-child { border-right: 1px solid var(--line); }.number-field button:last-child { border-left: 1px solid var(--line); }
.number-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--forest); background: transparent; text-align: right; font: 700 27px Georgia, serif; }.number-field input::placeholder { color: rgba(23,75,56,.22); }.number-field > span { color: var(--muted); font-size: 12px; }
.field-error { min-height: 15px; margin: 5px 0 0; color: #a65336; font-size: 9px; }.field-help { margin: 4px 0 0; display: flex; gap: 7px; color: var(--muted); font-size: 9px; line-height: 1.65; }.field-help > span { width: 14px; height: 14px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--moss); border-radius: 50%; font: 8px Georgia, serif; }
.capacity-preview { min-height: 52px; margin: 3px 0 11px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); background: rgba(216,222,206,.22); }
.capacity-preview span { color: var(--moss); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.capacity-preview strong { color: var(--orange-dark); font: 700 24px Georgia, serif; }
.capacity-preview strong small { margin-left: 3px; font-family: inherit; font-size: 10px; }
.config-submit-error { margin: 8px 0 0; color: #a65336; text-align: center; font-size: 9px; line-height: 1.5; }
.confirm-capacity { margin-top: 8px !important; color: var(--forest) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .05em; }
.lock-rule { margin-top: 13px; }.admin-start { margin-top: auto; }.admin-action-note { margin: 9px 0 0; text-align: center; color: #898e86; font-size: 8px; }
.admin-footnote { margin: 15px 0 0; color: #999b94; text-align: center; font: 7px Georgia, serif; letter-spacing: .16em; }
.admin-loading { flex: 1; display: grid; place-content: center; justify-items: center; }.admin-loading .compass { width: 90px; height: 90px; animation: slow-spin 9s linear infinite; }.admin-loading p { color: var(--muted); font-size: 11px; }
.admin-entry-state { flex: 1; padding: 45px 8px 20px; display: grid; align-content: center; justify-items: center; text-align: center; }
.admin-entry-state .compass { width: 118px; height: 118px; margin-bottom: 24px; opacity: .58; }
.admin-entry-state h1 { margin: 12px 0 10px; font-family: "Songti SC", serif; font-size: 28px; }
.admin-entry-state > p:last-of-type { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.admin-entry-state .secondary-button { width: 100%; margin-top: 28px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; padding: 22px; display: grid; place-items: center; background: rgba(15,52,39,.46); backdrop-filter: blur(2px); }
.confirm-dialog { width: min(100%, 350px); padding: 28px 21px 20px; position: relative; border-radius: 12px; text-align: center; background: var(--paper); box-shadow: 0 25px 70px rgba(15,52,39,.3); animation: dialog-in .22s ease both; }
.dialog-seal { width: 37px; height: 37px; margin: -47px auto 18px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--orange-dark); box-shadow: 0 4px 12px rgba(15,52,39,.22); }.confirm-dialog h2 { margin: 11px 0 9px; font-family: "Songti SC", serif; font-size: 24px; }.confirm-dialog > p:not(.micro-label) { margin: 0; color: var(--muted); font-size: 12px; }.confirm-dialog > p strong { color: var(--orange-dark); font-size: 18px; }
.confirm-dialog aside { margin-top: 18px; padding: 12px; display: flex; gap: 11px; text-align: left; background: rgba(216,222,206,.35); }.confirm-dialog aside p { margin: 0; display: grid; gap: 4px; }.confirm-dialog aside strong { font-size: 10px; }.confirm-dialog aside small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.dialog-actions { margin-top: 19px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }.dialog-actions button { min-height: 46px; border: 1px solid var(--line); border-radius: 7px; color: var(--forest); background: transparent; font-weight: 700; }.dialog-actions button:last-child { border-color: var(--forest); color: var(--paper); background: var(--forest); }

.admin-heading--active { padding-bottom: 22px; }.active-banner { min-height: 66px; padding: 0 17px; display: flex; align-items: center; gap: 13px; border-radius: 9px 9px 0 0; color: var(--paper); background: var(--forest); }.active-banner > span:last-child { display: grid; gap: 3px; }.active-banner strong { font-family: "Songti SC", serif; font-size: 16px; }.active-banner small { color: rgba(244,239,226,.65); font: 7px Georgia, serif; letter-spacing: .15em; }.pulse-dot { width: 11px; height: 11px; border: 2px solid var(--forest); border-radius: 50%; background: #87c181; box-shadow: 0 0 0 4px rgba(135,193,129,.2); animation: pulse 1.8s ease-in-out infinite; }
.status-card { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 9px 9px; background: rgba(255,250,240,.74); }.status-card > div { min-height: 63px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--line); }.status-card > div:last-child { border-bottom: 0; }.status-card span { color: var(--muted); font-size: 11px; }.status-card strong { color: var(--forest); font: 700 24px Georgia, serif; }.status-card strong small { margin-left: 3px; font-family: inherit; font-size: 10px; }.status-card .active-text { display: flex; align-items: center; gap: 7px; font-family: inherit; font-size: 12px; }.active-text i { width: 7px; height: 7px; border-radius: 50%; background: #70a968; }
.locked-config { margin-top: 15px; }.live-note { margin-top: 15px; padding: 15px; display: flex; gap: 12px; border-left: 3px solid var(--orange); background: rgba(229,154,74,.08); }.live-note > span { color: var(--orange-dark); font-size: 24px; }.live-note p { margin: 0; display: grid; gap: 5px; }.live-note strong { font-family: "Songti SC", serif; font-size: 13px; }.live-note small { color: var(--muted); font-size: 9px; line-height: 1.7; }
.admin-management-actions { margin-top: auto; padding-top: 16px; display: grid; gap: 9px; }
.secondary-button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: transparent; font-size: 11px; }
.reset-session-button { min-height: 44px; border: 1px solid rgba(201,120,49,.48); border-radius: 8px; color: #a45f2a; background: rgba(229,154,74,.055); font-size: 10px; font-weight: 700; letter-spacing: .05em; transition: background .15s, transform .15s, opacity .15s; }
.reset-session-button:hover { background: rgba(229,154,74,.10); }
.reset-session-button:active { transform: scale(.987); background: rgba(229,154,74,.15); }
.reset-session-button:disabled { cursor: not-allowed; opacity: .42; }
.reset-dialog { text-align: center; }
.reset-dialog-seal { font-family: Georgia, serif; font-size: 15px; }
.reset-dialog--warning .reset-dialog-seal { background: #a96234; }
.reset-count-copy { margin-top: 12px !important; }
.reset-count-copy strong { display: inline-block; padding: 2px 6px; border-radius: 4px; color: #9b5126 !important; background: rgba(229,154,74,.14); font-size: 19px !important; }
.reset-empty-copy { margin-top: 13px !important; line-height: 1.75; }
.reset-risk-list { margin-top: 16px; padding: 13px 14px; border-left: 3px solid #b96a36; text-align: left; background: rgba(229,154,74,.075); }
.reset-risk-list > p { margin: 0 0 8px; color: var(--ink); font-size: 10px; font-weight: 700; }
.reset-risk-list ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 9px; line-height: 1.75; }
.reset-risk-list li::marker { color: var(--orange-dark); }
.irreversible-note { display: block; margin-top: 9px; color: #92502c; font-size: 9px; }
.reset-dialog-actions { grid-template-columns: .8fr 1.5fr; }
.reset-dialog-actions button:last-child { border-color: #9f5a31; background: #9f5a31; font-size: 10px; letter-spacing: .02em; }

@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes card-ritual { 0% { opacity: 0; transform: translateY(22px) rotate(-2deg) scale(.9); } 28% { opacity: 1; transform: translateY(0) rotate(1deg) scale(1); } 65% { transform: translateY(-10px) rotate(-1.5deg) scale(1.03); } 100% { transform: translateY(0) rotate(0) scale(.96); } }
@keyframes archive-in { 0%, 65% { opacity: 0; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shine { 0%, 25% { left: -80px; } 80%, 100% { left: 210px; } }
@keyframes dot-pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes sealed-in { from { opacity: 0; transform: translateY(12px) rotate(-3deg) scale(.9); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(135,193,129,.08); } }

@media (min-width: 431px) {
  body { padding: 18px 0; background: #e5e0d4; }
  .screen { min-height: min(844px, calc(100dvh - 36px)); border: 1px solid rgba(23,75,56,.12); border-radius: 20px; box-shadow: var(--shadow); }
}
@media (max-width: 350px) {
  .state-screen, .ready-view, .admin-screen { padding-left: 17px; padding-right: 17px; }
  .ready-heading h1 { font-size: 35px; }.ready-heading h2 { font-size: 16px; }.adventure-copy { font-size: 10px; }
  .identity-card { margin-top: 13px; }.privacy-note { padding-inline: 9px; }
  .drawing-stage { transform: scale(.9); margin-block: -15px 0; }
  .completed-art { height: 265px; }.completion-copy h1 { font-size: 32px; }
  .admin-heading { padding-top: 25px; }.config-body { padding: 15px 13px; }.number-field { grid-template-columns: 40px 1fr 26px 40px; }
}
@media (max-height: 700px) {
  .hero-map { height: 23px; }.ready-heading h1 { font-size: 34px; }.adventure-copy { margin-top: 7px; line-height: 1.55; }.identity-card { margin-top: 11px; padding-block: 10px; }.identity-main { padding-top: 9px; }.identity-avatar { width: 42px; height: 42px; }.identity-main { grid-template-columns: 44px 1fr 24px; }.privacy-note { margin-top: 8px; padding-block: 8px; }.ready-actions { padding-top: 10px; }
  .state-art { height: 185px; margin-top: 20px; transform: scale(.85); margin-bottom: 0; }.error-art { margin-top: 25px; }
  .drawing-stage { height: 280px; transform: scale(.87); margin-block: -10px; }.completed-art { height: 230px; }.completed-art .destiny-card { transform: scale(.83); }.completion-copy h1 { margin-block: 8px; font-size: 31px; }.sealed-message { margin-top: 12px; padding-block: 10px; }
  .admin-heading { padding-top: 18px; padding-bottom: 12px; }.config-card { margin-top: 12px; }.config-body { padding-block: 12px; }.lock-rule { padding-block: 8px; }.active-banner { min-height: 56px; }.status-card > div { min-height: 53px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@supports not (height: 100dvh) { .screen, .app-shell { min-height: 100vh; } }
