/* 《二次方》Web 版 · 视觉改版「果冻·晨光」
   设计立意：清晨阳光洒进公寓中庭——奶油底色上浮着四团马卡龙光斑，
   所有面板是牛奶果冻玻璃（半透明白 + 背景模糊 + 彩色软阴影），
   按钮是可以按下去的果冻。每卷一颗糖：303甜橙 / 青禾薄荷 / 地下湖蓝 / 墙里紫葡萄 / 回声柠檬。 */
:root {
  --bg-a: #fdf7ef;
  --bg-b: #eef3ff;
  --ink: #3a4160;
  --ink-dim: #8b93b4;
  --accent: #ff9f43;        /* 甜橙（卷一默认） */
  --echo: #17b978;          /* 果冻绿：线索/获得 */
  --alert: #ff5d73;         /* 草莓红：失败/危险 */
  --red: #ff5d73;
  --panel: rgba(255, 255, 255, .58);
  --hair: rgba(122, 134, 180, .22);
  --glass: rgba(255, 255, 255, .78);
  --glass-brd: rgba(255, 255, 255, .85);
  --shadow: 0 10px 28px rgba(124, 132, 178, .18);
  --shadow-sm: 0 4px 14px rgba(124, 132, 178, .16);
}
/* ---------- 卷糖色 ---------- */
body[data-volume="1"] { --accent: #ff9f43; }
body[data-volume="2"] { --accent: #2bc4a2; }
body[data-volume="3"] { --accent: #4d9fff; }
body[data-volume="4"] { --accent: #9d6bff; }
body[data-volume="5"] { --accent: #eab308; }
body.ending-mode { --accent: #ff7fac; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(255, 214, 165, .55), transparent 60%),
    radial-gradient(50% 40% at 88% 12%, rgba(196, 181, 253, .50), transparent 60%),
    radial-gradient(55% 45% at 82% 88%, rgba(167, 243, 208, .50), transparent 62%),
    radial-gradient(60% 50% at 15% 90%, rgba(191, 219, 254, .55), transparent 62%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
/* 氛围罩：顶部高光 + 地面糖色反光 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 42% at 50% 112%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 16%);
}

/* ---------- 晨光浮尘（原雨层） ---------- */
#rain {
  position: fixed; inset: 0; pointer-events: none; opacity: .55; z-index: 1;
  background-image:
    radial-gradient(circle 3px at 18% 22%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(circle 2px at 68% 12%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(circle 4px at 84% 46%, rgba(255, 236, 200, .9), transparent 70%),
    radial-gradient(circle 2px at 34% 58%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(circle 3px at 54% 82%, rgba(214, 230, 255, .9), transparent 70%),
    radial-gradient(circle 2px at 8% 76%, rgba(255, 255, 255, .8), transparent 70%);
  animation: dustfloat 9s ease-in-out infinite alternate;
}
@keyframes dustfloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-14px, -26px, 0); }
}
@media (prefers-reduced-motion: reduce) { #rain { animation: none; } }

#app { position: relative; z-index: 3; height: 100%; max-width: 640px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px)) 20px calc(env(safe-area-inset-bottom, 0px)); }
.screen { height: 100%; display: flex; flex-direction: column; }
.screen[hidden] { display: none; }

/* ---------- 标题页：晨光公寓 ---------- */
#screen-title { justify-content: center; align-items: center; text-align: center; gap: 20px; }
.game-title {
  font-size: 46px; font-weight: 800; letter-spacing: .32em; text-indent: .32em;
  background: linear-gradient(120deg, #ff9f43, #ff7fac 45%, #9d6bff 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 16px rgba(255, 159, 67, .35));
}
.game-sub { color: var(--ink-dim); letter-spacing: .24em; font-size: 13px; }
.facade {
  position: relative; width: min(340px, 86vw); height: 132px; margin: 8px 0 4px;
  opacity: .95;
}
.facade::before { /* 楼体窗格：奶白玻璃格子，向上淡出 */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, .85) 12px 26px, transparent 26px 46px),
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(255, 255, 255, .85) 16px 34px, transparent 34px 56px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
  border-bottom: 1px solid var(--hair);
}
.facade .room303 {
  position: absolute; left: 56%; bottom: 30%; width: 30px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ffc46b, var(--accent)); color: #7a3d00;
  font-size: 10px; letter-spacing: .08em; font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 0 22px 5px color-mix(in srgb, var(--accent) 55%, transparent),
              0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: flicker 5.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; } 42% { opacity: .95; } 46% { opacity: .72; }
  50% { opacity: .98; } 71% { opacity: .82; } 74% { opacity: 1; }
}
.title-menu { display: flex; flex-direction: column; gap: 12px; width: min(300px, 82vw); margin-top: 10px; }
.title-menu .act-btn { text-align: center; padding-left: 14px; }
.title-menu .act-btn::before { content: none; }
.demo-note { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--ink-dim); font-size: 12px; letter-spacing: .08em; }

/* ---------- HUD：果冻章号 ---------- */
header.hud { padding: 14px 2px 10px; border-bottom: 1px solid var(--hair); }
.hud-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#hud-title { display: flex; align-items: baseline; gap: 10px; }
.hud-num {
  font-size: 30px; line-height: 1; letter-spacing: .06em; font-weight: 800;
  color: var(--accent);
  text-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 40%, transparent);
  font-variant-numeric: tabular-nums;
}
.hud-num::before { content: ""; }
.hud-name { font-size: 17px; letter-spacing: .12em; }
.hud-sub { display: flex; justify-content: space-between; color: var(--ink-dim); font-size: 12px; margin-top: 4px; gap: 12px; }
#hud-cluecount { color: var(--echo); }
.hud-btns { display: flex; gap: 8px; }
.hud-btns button { min-height: 32px; padding: 2px 14px; font-size: 12px; letter-spacing: .06em;
  border-radius: 999px; background: var(--panel); color: var(--ink-dim);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-brd); font-family: inherit; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: color .15s, border-color .15s, transform .15s; }
.hud-btns button:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); }

/* ---------- 章节正文：晨光导轨 ---------- */
.chapter-scroll { flex: 1; overflow-y: auto; padding: 18px 2px; max-height: 86vh; }
@media (min-width: 560px) {
  .chapter-scroll { padding-left: 34px; position: relative; }
  .chapter-scroll::before {
    content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
  }
  .chapter-scroll::after {
    content: ""; position: absolute; left: 7px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 75%);
    box-shadow: 0 0 12px 3px color-mix(in srgb, var(--accent) 45%, transparent);
  }
}
#chapter-body p { margin: 0 0 14px; animation: fadein .5s ease; }
#chapter-body p.action-text {
  color: color-mix(in srgb, var(--echo) 80%, var(--ink));
  border-left: 3px solid color-mix(in srgb, var(--echo) 55%, transparent);
  padding: 4px 12px; border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--echo) 10%, transparent), transparent 70%);
}
#chapter-body p:first-child:not(.action-text) { /* 卷首横幅句 */
  color: var(--accent); letter-spacing: .2em; text-align: center; font-size: 14px; margin-bottom: 20px; font-weight: 700;
}
@keyframes fadein { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; } }

/* ---------- 果冻按钮（44px 触控 / › 前缀保留） ---------- */
#chapter-actions { padding: 10px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.act-btn {
  min-height: 46px; border-radius: 14px; text-align: left; font: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .58));
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  color: var(--ink);
  border: 1px solid var(--glass-brd);
  padding: 8px 14px 8px 30px; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.act-btn::before { content: "›"; position: absolute; left: 12px; color: var(--accent); font-weight: 700;
  transition: color .18s ease; }
.act-btn::after { /* 果冻高光：悬停时一层反光扫过 */
  content: ""; position: absolute; top: 0; left: -40%; width: 35%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-18deg); transition: left .4s ease; pointer-events: none;
}
.act-btn:hover { transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-brd));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 22%, rgba(124, 132, 178, .22)), inset 0 1px 0 rgba(255, 255, 255, .9); }
.act-btn:hover::after { left: 115%; }
.act-btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 2px 8px rgba(124, 132, 178, .2); }
.act-btn:disabled { opacity: .45; cursor: default; transform: none; }
.act-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.act-btn.optional::after { content: none; }
.act-btn.optional {
  border-style: dashed; color: color-mix(in srgb, var(--ink) 75%, transparent);
  background: rgba(255, 255, 255, .35);
}
.act-btn.optional::before { content: "›"; opacity: .5; }
.act-btn.exit { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); font-weight: 700;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, #fff), color-mix(in srgb, var(--accent) 8%, rgba(255, 255, 255, .6))); }
.act-btn.key { min-height: 46px; text-align: center; padding: 8px; flex: 1; }
.act-btn.key::before { content: none; }
.act-btn.submit-key { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); flex: 2; font-weight: 700;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, #fff), color-mix(in srgb, var(--accent) 8%, rgba(255, 255, 255, .6))); }

/* ---------- 谜题：果冻门禁面板 ---------- */
.puzzle {
  border: 1px solid var(--glass-brd); border-radius: 20px; padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .52));
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .95);
  position: relative;
}
.puzzle::before, .puzzle::after { /* 四角果冻珠 */
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 10px;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--accent) 65%, #cfd6ee) 75%);
  box-shadow: 0 1px 4px rgba(124, 132, 178, .35);
}
.puzzle::before { left: 10px; } .puzzle::after { right: 10px; }
.puzzle-head { display: flex; justify-content: space-between; margin-bottom: 12px; align-items: baseline; }
.puzzle-title { color: var(--accent); letter-spacing: .14em; font-size: 15px; font-weight: 700; }
.puzzle-prompt { color: var(--ink-dim); font-size: 13px; }
.code-display {
  font-size: 34px; letter-spacing: .55em; text-align: center; min-height: 56px;
  color: color-mix(in srgb, var(--echo) 75%, #04331f);
  background: rgba(255, 255, 255, .72); border: 1px solid var(--hair); border-radius: 14px;
  padding: 6px 0 8px; text-shadow: 0 1px 0 #fff;
  box-shadow: inset 0 2px 10px rgba(124, 132, 178, .14);
  font-variant-numeric: tabular-nums;
}
.keypad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.keypad .key { flex: 1 0 18%;
  background: linear-gradient(180deg, #fff, #eef2ff);
  border: 1px solid var(--glass-brd); border-radius: 12px;
  /* 阴影跟站内其它按钮同一档：原来那道 `0 3px 0` 硬底边在 8px 间距的键盘里
     读成「每个按键下面一条脏影」，用户真机截图圈出来的就是它。 */
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .9);
  color: var(--ink); font-size: 17px; }
.keypad .key:active { transform: translateY(1px) scale(.985); box-shadow: 0 2px 8px rgba(124, 132, 178, .2); }
.seq-echo { color: var(--accent); font-size: 13px; margin-bottom: 8px; min-height: 24px; letter-spacing: .04em; font-weight: 700; }
.seq-list { display: flex; flex-wrap: wrap; gap: 8px; }
.seq-item { flex: 1 0 26%; text-align: center; padding: 10px 4px; }
.kw-row { display: flex; gap: 8px; }
.kw-input { flex: 1; background: rgba(255, 255, 255, .8); border: 1px solid var(--hair);
  color: color-mix(in srgb, var(--echo) 75%, #04331f); font: inherit; padding: 8px 12px; border-radius: 12px; letter-spacing: .1em; }
.kw-input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.puzzle-feedback { min-height: 26px; margin-top: 10px; font-size: 14px; }
.puzzle-feedback.ok { color: var(--echo); font-weight: 700; }
.puzzle-feedback.bad { color: var(--alert); font-weight: 700; }
.puzzle-hint { color: color-mix(in srgb, var(--accent) 85%, var(--ink)); font-size: 13px; margin-top: 6px;
  border-top: 1px dashed var(--hair); padding-top: 8px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 6%, transparent)); border-radius: 0 0 10px 10px; }

/* ---------- 选择 ---------- */
.choice-prompt { color: var(--accent); padding: 4px 0 8px; letter-spacing: .1em; font-weight: 700; }
.choice-opt { line-height: 1.6; }

/* ---------- 结局 ---------- */
.ending-tag {
  color: var(--accent); font-size: 22px; letter-spacing: .3em; margin-bottom: 18px; font-weight: 800;
  text-shadow: 0 2px 14px color-mix(in srgb, var(--accent) 40%, transparent);
}
.ending-tag::after { content: ""; display: block; width: 40%; height: 3px; margin: 10px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.ending-line { border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); padding-left: 14px; }

/* ---------- 弹层：磨砂玻璃 ---------- */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(176, 188, 226, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { width: min(480px, 100%); max-height: 82vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .82));
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid #fff; border-top: 3px solid var(--accent);
  border-radius: 22px; padding: 18px 18px 22px;
  box-shadow: 0 24px 60px rgba(90, 100, 150, .35), inset 0 1px 0 rgba(255, 255, 255, .9); }
.modal-card h2 { font-size: 15px; color: var(--accent); letter-spacing: .3em; margin-bottom: 10px; }
.modal-card .close { float: right; background: none; border: none; color: var(--ink-dim); font-size: 16px; cursor: pointer; }
.modal-card .close:hover { color: var(--accent); }
.clue-count { color: var(--ink-dim); font-size: 13px; margin-bottom: 10px; letter-spacing: .08em; }
.clue-vol { color: var(--accent); font-size: 13px; margin: 16px 0 4px; letter-spacing: .18em; font-weight: 700; }
.clue-item { border-bottom: 1px dashed var(--hair); padding: 6px 2px; }
.clue-item summary { cursor: pointer; list-style: none; color: var(--ink); }
.clue-item summary::-webkit-details-marker { display: none; }
.clue-item summary::before { content: "◆"; color: var(--echo); font-size: 9px; margin-right: 8px; opacity: .8; }
.clue-ch { color: var(--ink-dim); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.clue-desc { color: var(--ink-dim); font-size: 13px; padding: 4px 0 2px 44px; }
.clue-empty { color: var(--ink-dim); padding: 20px 0; text-align: center; }
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
  border-bottom: 1px dashed var(--hair); }
.set-row label { color: var(--ink); letter-spacing: .06em; }
.set-row select, .set-row input[type=checkbox] { accent-color: var(--accent); }
.set-row select { background: #fff; color: var(--ink); border: 1px solid var(--hair); border-radius: 10px; padding: 4px 8px; font-family: inherit; }
/* 清除存档：确认条从「一句红字 + 两个裸按钮」改成一格带框的警示条，动作靠右 */
.btn-wipe { min-height: 34px; padding: 2px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7);
  border: 1px solid; color: var(--alert); cursor: pointer; font: inherit; font-size: 13px; }
#wipe-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px;
  padding: 10px 12px; color: var(--alert); font-size: 12.5px; line-height: 1.7;
  border: 1px dashed color-mix(in srgb, var(--alert) 45%, transparent); border-radius: 12px;
  background: color-mix(in srgb, var(--alert) 6%, rgba(255, 255, 255, .6)); }
/* 上面这条自带 display，UA 的 [hidden]{display:none} 会被盖掉，必须显式收回 */
#wipe-confirm[hidden] { display: none; }
.wipe-acts { display: flex; gap: 8px; margin-left: auto; }
.wipe-yes, .wipe-no { min-height: 30px; padding: 2px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; }
.wipe-yes { background: var(--alert); color: #fff; border: none; }
.wipe-no { background: transparent; color: var(--ink-dim); border: 1px solid var(--hair); }

/* ---------- Toast：果冻气泡 ---------- */
#toast { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; transform: translate(-50%, -18px);
  background: rgba(255, 255, 255, .92); color: var(--echo);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid #fff;
  border-radius: 999px; padding: 8px 22px; font-size: 13px; letter-spacing: .08em; font-weight: 700;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--echo) 25%, rgba(124, 132, 178, .25));
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 40; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 错误页 ---------- */
#screen-error { justify-content: center; text-align: center; gap: 14px; padding: 40px; }
#screen-error[hidden] { display: none; }
#error-detail { color: var(--alert); font-size: 13px; word-break: break-all; }

@media (max-height: 600px) { .game-title { font-size: 34px; } .facade { height: 90px; } }

/* ---------- 开屏页面 + 运营公告（后台「系统设置」下发，改版遗留节点默认为空） ---------- */
/* 注意：.splash 自己声明了 display，必须显式覆盖 [hidden]，否则隐藏失效 */
.splash { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 28px 24px; text-align: center;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(255, 214, 165, .55), transparent 60%),
    radial-gradient(55% 45% at 82% 88%, rgba(167, 243, 208, .5), transparent 62%),
    linear-gradient(180deg, var(--bg-a) 0%, var(--bg-b) 100%);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; }
.splash[hidden] { display: none; }
/* 文案必须压在图上：定位元素（.splash-img 现在是 absolute）默认画在静态元素之上，
   不给 .splash-copy 一个 position 就会把标题盖掉。 */
.splash-copy { position: relative; z-index: 1; }
/* 开屏图整屏铺（object-fit:cover = Android 的 ContentScale.Crop）：双端同一张竖版海报、
   同一套裁切口径，图里 45%-55% 那条留白带给标题用。图取不到时 hidden，露出下面这层晨光底，
   与 Android 的「图取不到就退回纯文案」一致。 */
.splash-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: none;
  max-height: none; object-fit: cover; border-radius: 0; background: none; border: 0; box-shadow: none; }
.splash-title { font-size: 30px; font-weight: 800; letter-spacing: .22em; text-indent: .22em; color: var(--accent); }
.splash-sub { margin-top: 8px; color: var(--ink-dim); font-size: 13px; letter-spacing: .1em; }
.splash-skip { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px;
  background: var(--panel); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 14px;
  font-size: 12px; color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; }
.splash-brand { position: absolute; z-index: 2; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); left: 20px; right: 20px;
  color: var(--ink-dim); font-size: 11px; letter-spacing: .08em; }
.title-notices { display: flex; flex-direction: column; gap: 8px; width: min(340px, 86vw); }
.title-notices[hidden] { display: none; }
.notice { background: var(--panel); border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 8px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.notice b { display: block; font-size: 12.5px; letter-spacing: .06em; }
.notice.important { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.notice.maintenance { border-color: color-mix(in srgb, var(--alert) 50%, transparent); }
@media (max-height: 600px) { .splash-title { font-size: 22px; } }
