/* 森の従業員と謎の合言葉 — 画面の見た目
 * Figma「ワイヤーフレーム_白馬ARコンテンツ_Local」に合わせた配色:
 *   紺の革地 + 金の角飾り(背景)、古紙のカード、黄色のボタン、明朝体。
 * 色・文字はここの変数で調整する。デザイン基準 390×844、幅360〜430で崩れないこと。 */
:root {
  --navy: #141d2e;
  --navy-2: #1e2a42;
  --paper: #fbf6e6;
  --ink: #241d10;
  --muted: #6d6250;
  --gold: #d6ad55;
  --gold-2: #f3d07a;
  --yellow-1: #ffd23a;
  --yellow-2: #ffb425;
  --red: #c0262d;
  --ok: #2f7d4a;
  --radius: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy); color: #fff; font: 16px/1.75 var(--serif); }
body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
img.saveable { -webkit-touch-callout: default; user-select: auto; }

/* ステージ(カメラ)と画面 */
#stage { position: fixed; inset: 0; overflow: hidden; background: #000; display: none; }
body.camera #stage { display: block; }
body.camera { background: #000; }
#stage video { object-fit: cover; }
#screen { position: fixed; inset: 0; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 22px) 22px calc(var(--safe-b) + 22px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* 紺の革地と金の角飾り(角が画面の四隅に来るように引き伸ばす) */
body:not(.camera) #screen { background: var(--navy) url("../assets/img/bg_navy.jpg") center / 100% 100% no-repeat; }
body.title-bg #screen { background: #cfe6f3 url("../assets/img/bg_title.jpg") center top / cover no-repeat; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 共通の部品 */
.spacer { flex: 1; min-height: 12px; }
.center { text-align: center; }
.h2 { font-size: 22px; font-weight: 700; margin: 6px 0 14px; text-align: center; color: #fff; letter-spacing: .06em; }
.h-gold { color: var(--gold-2); text-shadow: 0 0 12px rgba(243, 208, 122, .45); }
.sub-en { display: block; font-size: .72em; opacity: .8; font-weight: 400; letter-spacing: 0; }
.card { position: relative; background: var(--paper) url("../assets/img/paper.jpg") center / cover; color: var(--ink); border-radius: 6px; padding: 20px 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(150, 110, 40, .35), inset 0 0 0 5px rgba(255, 250, 235, .35), inset 0 0 0 6px rgba(150, 110, 40, .35); }
.card + .card { margin-top: 12px; }
.card p { margin: 0 0 .6em; }
.card p:last-child { margin-bottom: 0; }
.dark-box { border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 2px; padding: 18px 16px; background: rgba(8, 12, 22, .55); color: #fff; }
.ribbon { display: inline-block; position: relative; padding: 2px 22px; margin-bottom: -14px; z-index: 1; font-weight: 800; letter-spacing: .2em; color: #2b1d05;
  background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2)); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }
.ribbon-wrap { text-align: center; }
.banner { white-space: pre-line; background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2)); color: var(--ink); text-align: center; font-weight: 800; font-size: 20px; line-height: 1.5; padding: 12px 14px; margin: -2px -4px 14px; border-radius: 4px; box-shadow: 0 3px 0 rgba(120, 80, 0, .35); }
.label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--navy-2); border-radius: 999px; padding: 1px 12px; margin-bottom: 8px; font-family: var(--sans); }
.red-text { color: var(--red); font-weight: 800; font-size: 18px; line-height: 1.6; text-align: center; }
.btn { display: block; width: 100%; min-height: 56px; margin-top: 12px; padding: 12px 18px; border: 0; border-radius: 12px; background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2)); color: #2b1d05; font-weight: 700; font-size: 17px; letter-spacing: .08em; box-shadow: 0 4px 0 #b97f0d, 0 6px 14px rgba(0, 0, 0, .3); cursor: pointer; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b97f0d; }
.btn:disabled { filter: grayscale(.6) brightness(.75); box-shadow: none; transform: none; }
.btn.sub { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: none; }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 4px 0 #b9b2a0; }
.btn.dark { background: var(--navy-2); color: #fff; box-shadow: 0 4px 0 #0b1020; }
.cam-btn { display: grid; place-items: center; width: 74px; height: 74px; margin: 14px auto 0; border: 0; border-radius: 50%; background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2)); box-shadow: 0 4px 0 #b97f0d, 0 8px 18px rgba(0, 0, 0, .35); }
.cam-btn svg { width: 38px; height: 38px; }
.cam-btn-label { text-align: center; font-size: 13px; margin-top: 6px; opacity: .9; }
.choice-row { display: grid; gap: 12px; margin-top: 8px; }
.choice { min-height: 64px; padding: 12px 16px; border-radius: 12px; border: 3px solid transparent; background: #fff; color: var(--ink); font-weight: 700; font-size: 19px; text-align: center; cursor: pointer; box-shadow: 0 4px 0 #b9b2a0; }
.choice.on { border-color: var(--yellow-2); background: #fff6d6; box-shadow: 0 0 0 4px rgba(255, 196, 43, .45), 0 4px 0 #b97f0d; }
.choice small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); font-family: var(--sans); }
.note-list { margin: 0; padding-left: 1.2em; font-size: 15px; }
.note-list li { margin-bottom: .55em; }
.prose p { margin: 0 0 1em; }
.footer-logo { display: block; width: 140px; margin: 18px auto 0; opacity: .95; }
.logo-head { display: block; width: 170px; margin: 0 auto; }
.title-head { background: rgba(255, 255, 255, .96); margin: calc(-1 * (var(--safe-t) + 22px)) -22px 0; padding: calc(var(--safe-t) + 10px) 0 8px; }

/* 吹き出し(画面の上)・キャラクター(画面の下から) */
.talk { position: fixed; left: 0; right: 0; top: 0; padding: calc(var(--safe-t) + 14px) 14px 0; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.bubble { position: relative; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; padding: 12px 18px 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); animation: bubbleIn .25s ease both; }
.bubble.prev { opacity: .55; transform: scale(.96); transform-origin: top center; padding-bottom: 12px; }
.bubble .who { font-size: 12px; font-weight: 700; color: #fff; border-radius: 999px; padding: 0 10px; display: inline-block; margin-bottom: 4px; font-family: var(--sans); }
.bubble .text { font-size: 17px; line-height: 1.7; min-height: 1.6em; }
.bubble:not(.prev)::after { content: ""; position: absolute; right: 16px; bottom: 9px; width: 9px; height: 9px; border-right: 2px solid #444; border-bottom: 2px solid #444; transform: rotate(45deg); animation: blink 1.2s infinite; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .25; } }
.chara { position: fixed; left: 50%; bottom: calc(var(--safe-b) - 8px); height: min(62vh, 560px); max-width: 96vw; object-fit: contain; object-position: bottom; transform: translateX(-50%); z-index: 4; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.chara.short { height: min(46vh, 400px); }
.chara.enter { animation: charaUp .7s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes charaUp { from { transform: translate(-50%, 110%); } to { transform: translate(-50%, 0); } }
.chara.swap { animation: charaSwap .25s ease both; }
@keyframes charaSwap { from { opacity: .4; } to { opacity: 1; } }
.tap-layer { position: fixed; inset: 0; z-index: 6; }
.skip-btn { position: fixed; bottom: calc(var(--safe-b) + 16px); right: 14px; z-index: 45; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .5); color: #fff; font-size: 13px; font-family: var(--sans); }

/* カメラ画面 */
.scan-frame { position: fixed; left: 50%; top: 44%; width: min(72vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 3;
  background:
    linear-gradient(#fff, #fff) top left / 44px 5px no-repeat, linear-gradient(#fff, #fff) top left / 5px 44px no-repeat,
    linear-gradient(#fff, #fff) top right / 44px 5px no-repeat, linear-gradient(#fff, #fff) top right / 5px 44px no-repeat,
    linear-gradient(#fff, #fff) bottom left / 44px 5px no-repeat, linear-gradient(#fff, #fff) bottom left / 5px 44px no-repeat,
    linear-gradient(#fff, #fff) bottom right / 44px 5px no-repeat, linear-gradient(#fff, #fff) bottom right / 5px 44px no-repeat;
  animation: pulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .6)); }
@keyframes pulse { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.03); } }
.cam-guide { position: fixed; left: 14px; right: 14px; bottom: calc(var(--safe-b) + 18px); z-index: 5; }
.cam-guide .guide-box { background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 14px; padding: 12px 16px; font-weight: 700; text-align: center; }
.cam-toast { position: fixed; left: 16px; right: 16px; top: calc(var(--safe-t) + 64px); z-index: 6; background: rgba(20, 29, 46, .94); color: #fff; border: 1px solid var(--gold); border-radius: 12px; padding: 12px 16px; font-weight: 700; animation: fadeIn .3s both; }
.back-link { position: fixed; top: calc(var(--safe-t) + 12px); left: 14px; z-index: 7; padding: 6px 14px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 13px; font-family: var(--sans); }

/* 探索ページ */
.explore-card { padding-top: 22px; }
.door-img { display: block; height: min(28vh, 220px); margin: 4px auto 10px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.hint-head { display: flex; align-items: center; gap: 10px; justify-content: center; }
.hint-head img { width: 46px; flex: none; }
.hint-btn { display: flex; align-items: center; gap: 6px; margin: 10px auto 0; background: none; border: 1px solid rgba(110, 80, 20, .45); border-radius: 999px; padding: 4px 14px; color: var(--ink); font-weight: 700; font-size: 14px; }
.hint-btn img { width: 22px; }
.hint-item { border-top: 1px dashed #c9b88d; padding-top: 8px; margin-top: 8px; font-size: 15px; animation: fadeIn .3s both; }
.body-text { font-size: 15px; color: #4a4030; text-align: center; margin-top: 8px; }

/* クイズ */
.q-photo { display: flex; justify-content: center; align-items: flex-end; height: min(24vh, 200px); margin: -6px -22px 0; overflow: hidden; border-bottom: 1px solid rgba(214, 173, 85, .5); background: radial-gradient(ellipse at 50% 100%, rgba(243, 208, 122, .25), transparent 70%); }
.q-photo img { height: 135%; object-fit: contain; object-position: top; transform: translateY(18%); }
.q-text { font-size: 18px; line-height: 1.7; padding-top: 8px; }
.q-choices { display: grid; gap: 10px; margin-top: 16px; }
.q-choice { display: flex; align-items: stretch; min-height: 50px; padding: 0; border: 0; border-radius: 2px; background: #fff; color: var(--ink); text-align: left; font-size: 16px; overflow: hidden; cursor: pointer; }
.q-choice .key { flex: none; width: 40px; display: grid; place-items: center; border-right: 1px solid #222; font-weight: 700; }
.q-choice .txt { padding: 12px 14px; display: flex; align-items: center; }
.q-choice.on { background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2)); }
.hint-toggle { margin: 14px auto 0; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font-size: 15px; padding: 4px 0; }
.hint-toggle img { width: 22px; }
.hint-box { margin-top: 8px; padding: 12px 14px; border-radius: 4px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 15px; animation: fadeIn .25s both; }
.result-big { font-size: 44px; font-weight: 800; text-align: center; margin: 6px 0 10px; letter-spacing: .1em; }
.result-big.ok { color: var(--gold-2); text-shadow: 0 0 18px rgba(243, 208, 122, .7); }
.result-big.ng { color: #c9d3e6; }
.answer-line { font-size: 18px; font-weight: 800; }
.result-chara { display: block; height: min(26vh, 220px); margin: 0 auto -6px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

/* キーワード */
.kw-head { position: relative; text-align: center; margin: 8vh 0 10px; }
.kw-head .t { white-space: pre-line; font-size: 26px; font-weight: 800; line-height: 1.5; color: var(--gold-2); letter-spacing: .12em; text-shadow: 0 0 14px rgba(243, 208, 122, .5); min-height: 3em; }
.kw-head .orn { color: var(--gold); font-size: 26px; vertical-align: middle; margin: 0 8px; }
.kirakira { position: fixed; left: 50%; top: 32%; width: 130vw; max-width: 760px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; z-index: 1; }
.kirakira.show { animation: kira 1.6s ease-out both; }
@keyframes kira { 0% { opacity: 0; transform: translate(-60%, -50%) scale(.9); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-40%, -50%) scale(1.05); } }
.letters { display: flex; justify-content: center; gap: 12px; margin: 22px 0; position: relative; z-index: 2; }
.slot { width: 68px; height: 68px; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #111; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .35); }
.slot:not(.filled) { background: rgba(255, 255, 255, .9); }
.slot .ch { display: block; font-family: var(--sans); }
.slot .ch.pop { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { 0% { transform: scale(2); opacity: 0; } 70% { transform: scale(.92); opacity: 1; } 85% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }

/* 合言葉入力 */
.pass-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.pass-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pass-col .kw { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: #fff; color: #111; font-family: var(--sans); font-size: 34px; font-weight: 800; }
.pass-col .arrow { color: var(--gold-2); font-size: 18px; line-height: 1; }
.pass-col input { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 3px solid var(--yellow-2); background: #fffaf0; color: var(--ink); text-align: center; font-family: var(--sans); font-size: 32px; font-weight: 800; padding: 0; -webkit-user-select: text; user-select: text; }
.pass-col input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 196, 43, .5); }

/* モーダル */
#overlay:empty { display: none; }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 24px; animation: fadeIn .2s both; }
.modal { width: 100%; max-width: 340px; background: #fff; color: var(--ink); border-radius: 14px; padding: 24px 20px 16px; text-align: center; }
.modal .m-title { font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.busy { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 24px); transform: translateX(-50%); z-index: 60; background: rgba(0, 0, 0, .75); color: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14px; display: flex; gap: 10px; align-items: center; font-family: var(--sans); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.big { width: 44px; height: 44px; border-width: 5px; margin: 0 auto 14px; border-top-color: var(--gold-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* メニュー */
.menu-btn { position: fixed; top: calc(var(--safe-t) + 10px); right: 12px; z-index: 30; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(214, 173, 85, .7); background: rgba(10, 16, 28, .6); color: var(--gold-2); font-size: 18px; }
body.camera .menu-btn, body.fullvideo .menu-btn { display: none; }
.menu-row { display: flex; gap: 8px; margin-top: 8px; }
.menu-row .choice { flex: 1; min-height: 48px; font-size: 15px; border-color: #ddd; box-shadow: none; }
.menu-row .choice.on { border-color: var(--yellow-2); }

/* 全画面の動画 */
.fullvideo-wrap { position: fixed; inset: 0; z-index: 40; background: #000; display: grid; place-items: center; }
.fullvideo-wrap video { width: 100%; height: 100%; object-fit: contain; }
.sbs-wrap { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.sbs-wrap canvas { width: 100%; height: 100%; display: block; }

/* フロント(10-15) */
.staff-head { background: var(--red); color: #fff; border-radius: 6px; padding: 10px 14px; font-weight: 800; text-align: center; font-family: var(--sans); }
.ticket { position: relative; overflow: hidden; margin: 16px 0; padding: 22px 16px; border-radius: 8px; text-align: center; color: var(--ink); background: linear-gradient(135deg, #fff7df, #f0d891); border: 3px solid var(--gold); }
.ticket::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); animation: shine 2.4s linear infinite; }
@keyframes shine { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.ticket .t-title { font-size: 24px; font-weight: 800; }
.ticket .t-clock { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--sans); }
.ticket.done { background: linear-gradient(135deg, #e6efe8, #b7d3bd); border-color: var(--ok); }
.ticket.done .t-title { color: var(--ok); font-size: 34px; }
.ticket .t-date { font-size: 20px; font-weight: 800; margin-top: 6px; }
.slider { position: relative; height: 64px; border-radius: 999px; background: var(--navy-2); border: 1px solid var(--gold); margin-top: 8px; touch-action: none; overflow: hidden; }
.slider .track-text { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; padding-left: 50px; font-family: var(--sans); font-size: 15px; }
.slider .thumb { position: absolute; top: 4px; left: 4px; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(180deg, var(--yellow-1), var(--yellow-2)); display: grid; place-items: center; font-size: 26px; color: #2b1d05; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.slider.busy-state .thumb { animation: spin 1s linear infinite; }

/* The end */
.endroll { display: block; width: calc(100% + 44px); margin: calc(-1 * (var(--safe-t) + 22px)) -22px 0; max-height: 72vh; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.the-end { font-size: 34px; font-weight: 800; text-align: center; color: var(--gold-2); letter-spacing: .1em; margin-top: -40px; position: relative; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* 記念撮影 */
.photo-stage { position: fixed; inset: 0; background: #000; }
.photo-stage video, .photo-stage .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-stage video.mirror { transform: scaleX(-1); }
.photo-stage .frame { object-fit: fill; pointer-events: none; }
.photo-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 18px); display: flex; justify-content: space-around; align-items: center; z-index: 5; }
.photo-bar button { border: 0; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-family: var(--sans); }
.photo-bar .shutter { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 6px solid rgba(255, 255, 255, .5); background-clip: padding-box; padding: 0; }
.photo-result { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 12px; }
.photo-result img { max-width: 100%; max-height: 70vh; border-radius: 6px; }
.photo-result p { color: #fff; margin: 0; font-weight: 700; }
.photo-result .btn { max-width: 320px; }

/* 縦向きのお願い */
/* 縦画面専用(記念撮影 12A/12B だけ横向きを許す)。判定は index.html の is-landscape */
.rotate-notice { display: none; position: fixed; inset: 0; z-index: 1000; place-items: center; padding: 24px; text-align: center; color: #fff;
  background: var(--navy) url("../assets/img/bg_navy.jpg") center / 100% 100% no-repeat; }
html.is-landscape .rotate-notice { display: grid; }
html.is-landscape body.photo-mode .rotate-notice { display: none; }
.rotate-box svg { width: 56px; height: 56px; color: var(--gold-2); animation: rotHint 2s ease-in-out infinite; }
@keyframes rotHint { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }
.rotate-box p { margin: 12px 0 0; font-size: 20px; font-weight: 700; line-height: 1.7; }
.rotate-box p.en { font-size: 14px; font-weight: 400; opacity: .85; font-family: var(--sans); }

/* エラー・読み込み */
.err-box { margin: auto 0; text-align: center; }
.err-box .card { text-align: left; }
.loading { margin: auto; text-align: center; color: #fff; }
.code-input { width: 100%; margin-top: 8px; padding: 12px; border-radius: 8px; border: 2px solid #d8caa5; font-size: 20px; letter-spacing: .1em; text-align: center; text-transform: uppercase; -webkit-user-select: text; user-select: text; font-family: var(--sans); }
.noscript { padding: 24px; }
.sticky-bottom { position: sticky; bottom: calc(-1 * (var(--safe-b) + 22px)); margin: 0 -22px calc(-1 * (var(--safe-b) + 22px)); padding: 36px 22px calc(var(--safe-b) + 22px); background: linear-gradient(180deg, rgba(20, 29, 46, 0), rgba(20, 29, 46, .96) 40%); }
.sticky-bottom .h2 { margin: 0; }
