/* 米花大遷徙 — 2026-09-18 大廳重設計：園區介面設計標準（shared/docs/UI-DESIGN-STANDARD.md）
   奶油卡 + 深木頭列 + 木牌 + 蜂蜜黃主鍵；場景（樂園背景）是主角，UI 是攤位。
   對局內 HUD 只換配色（木頭列／蜂蜜黃），版面不動。 */
:root {
  /* 園區 token（標準 §2.3） */
  --ui-cream-0: #fffdf7; --ui-cream-1: #fff8e8; --ui-cream-2: #f6e8c8;
  --ui-ink: #3a2c12; --ui-muted: #806d4d; --ui-faint: #93805f;
  --ui-gold: #f5a91b; --ui-gold-dark: #9d6508; --ui-blue: #2e8fd6; --ui-green: #35ad58; --ui-danger: #d94b52;
  --ui-radius-sm: 11px; --ui-radius-md: 18px; --ui-radius-lg: 24px;
  --ui-shadow-card: 0 10px 30px rgba(60,40,20,.24), 0 3px 0 rgba(184,121,15,.12), inset 0 2px 0 rgba(255,255,255,.6);
  --ui-speed-fast: 160ms; --ui-speed: 220ms;
  --wood: rgba(50,32,14,.66); --wood-edge: rgba(255,230,160,.35); --wood-fg: #fff5dc; --wood-hi: #ffd45e;
  --plank: linear-gradient(#a8743f, #7a4f26); --plank-edge: #d0a06a; --plank-fg: #ffe9a8; --plank-shadow: #5a3618;
  --honey: linear-gradient(#ffe08a, #f5a91b); --honey-edge: #ffedb0; --honey-fg: #5a3800; --honey-shadow: #c9871a;
  --cream-card: linear-gradient(rgba(255,253,247,.95), rgba(255,248,232,.92));
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  /* 舊變數別名：HUD 與 JS 內嵌樣式仍引用 */
  --bg: #2b2436; --card: var(--wood); --line: var(--wood-edge); --ink: var(--wood-fg); --ink2: rgba(255,245,220,.72);
  --butter: var(--ui-gold); --cream: var(--ui-cream-1); --caramel: #b5651d; --core: #e0432b; --ok: var(--ui-green);
  /* 園區共用面板只設變數，不改預設（標準 §2.3） */
  --soc-accent: var(--ui-gold);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .screen 的 display:flex 會蓋掉 hidden（園區踩過） */
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ui-ink); font-family: var(--font); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: var(--ui-ink); background: rgba(255,252,244,.95); border: 2px solid rgba(150,115,55,.22); border-radius: var(--ui-radius-sm); padding: 8px 14px; cursor: pointer; box-shadow: 0 3px 0 rgba(150,110,40,.14); transition: transform var(--ui-speed-fast) ease, box-shadow var(--ui-speed-fast) ease, filter var(--ui-speed-fast) ease; }
button:hover:not(:disabled) { filter: brightness(1.03); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 rgba(150,110,40,.14); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(46,143,214,.78); outline-offset: 2px; }
button.primary { background: var(--honey); color: var(--honey-fg); border-color: var(--honey-edge); font-weight: 800; box-shadow: 0 6px 0 var(--honey-shadow), 0 10px 22px rgba(201,135,26,.28); }
button.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--honey-shadow); }
button.small { padding: 6px 10px; font-size: 13px; }
button.ghost { background: transparent; box-shadow: none; }
.mono { font-family: var(--mono); }
.lbl { color: var(--ui-muted); font-size: 12px; }
.sub { color: var(--ui-muted); font-size: 12px; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: #1b1626; touch-action: none; cursor: crosshair; }

/* ---- HUD（對局內）：木頭列 + 蜂蜜黃選中；版面不動 ---- */
#hud { position: fixed; inset: 0; pointer-events: none; color: var(--wood-fg); }
#hud button { pointer-events: auto; }
#hud .lbl, #hud .sub { color: var(--ink2); }
.hud-top { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: flex; gap: 6px; align-items: baseline; background: var(--wood); border: 1.5px solid var(--wood-edge); border-radius: 999px; padding: 4px 12px; color: var(--wood-fg); backdrop-filter: blur(8px); }
.pill b { font-size: 16px; }
.pill.ghost { background: transparent; border-color: transparent; color: var(--ink2); font-size: 13px; backdrop-filter: none; text-shadow: 0 1px 4px rgba(60,35,10,.6); }
.icon-btn { margin-left: auto; padding: 6px 10px; border-radius: 999px; background: var(--wood); color: var(--wood-fg); border: 1.5px solid var(--wood-edge); box-shadow: none; backdrop-filter: blur(8px); }
.hint { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); max-width: min(560px, 92vw); background: var(--cream-card); color: var(--ui-ink); border: 2.5px solid #fff; border-radius: 12px; padding: 8px 14px; font-size: 14px; pointer-events: auto; box-shadow: var(--ui-shadow-card); }
.hud-bottom { position: absolute; left: 0; right: 0; bottom: max(6px, env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; justify-content: center; padding: 0 8px; flex-wrap: wrap; }
.rate, .ctrl, .skills { display: flex; gap: 4px; align-items: center; background: var(--wood); border: 1.5px solid var(--wood-edge); border-radius: 12px; padding: 4px; backdrop-filter: blur(8px); pointer-events: auto; }
.rate-val { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1; color: var(--wood-fg); }
.rate-val b { font-size: 16px; }
#hud .sq, #hud .skill { background: rgba(255,245,220,.10); border: 1px solid rgba(255,230,160,.18); color: var(--wood-fg); box-shadow: none; }
#hud .sq:hover:not(:disabled), #hud .skill:hover:not(:disabled) { border-color: var(--wood-hi); filter: none; transform: none; }
.sq { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 9px; font-size: 20px; }
.sq.danger { color: #ff9a8a; }
#hud .sq.on, #hud .skill.on { background: var(--honey); color: var(--honey-fg); border-color: var(--honey-edge); }
.skill { width: 52px; height: 56px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 9px; position: relative; }
.skill .n { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.skill .k { font-size: 10px; color: var(--ink2); }
.skill.on .k { color: var(--honey-fg); }
.skill.empty { opacity: .4; }
.minimap { position: absolute; right: 8px; top: 52px; border: 1.5px solid var(--wood-edge); border-radius: 6px; background: #1b1626; pointer-events: auto; image-rendering: pixelated; }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--cream-card); color: var(--ui-ink); border: 2.5px solid #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; box-shadow: var(--ui-shadow-card); }

/* ---- 大廳：場景是主角 ---- */
/* 每個全頁畫面（大廳、結算）都站在同一張樂園背景上（標準 §3.6） */
.screen { position: fixed; inset: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: #f6e2c0 url('assets/ui/march_bg_wide.webp?v=1') center 55% / cover no-repeat; }
@media (orientation: portrait) { .screen { background-image: url('assets/ui/march_bg_tall.webp?v=1'); background-position: center top; } }
#endScreen { align-items: center; }
.lobby { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom)); }
/* 16:9 母圖；直向換 9:16 re-frame（同一個場景）。上緣微暗給標題，下緣壓深給卡片與遊行帶 */
.menu-bg { position: fixed; inset: 0; z-index: -1; background: #f6e2c0 url('assets/ui/march_bg_wide.webp?v=1') center 55% / cover no-repeat; }
.menu-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60,40,20,.10) 0%, rgba(60,40,20,0) 22%, rgba(60,40,20,0) 60%, rgba(60,40,20,.34) 100%); }
@media (orientation: portrait) { .menu-bg { background-image: url('assets/ui/march_bg_tall.webp?v=1'); background-position: center top; } }
/* 漂浮的爆米花裝飾：透明 webp，慢慢飄；reduced-motion 關掉 */
.menu-deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.menu-deco .pf { position: absolute; background: center / contain no-repeat; opacity: .95; animation: pfFloat 9s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(60,35,10,.25)); }
.menu-deco .pf1 { left: 2%;  top: 16%; width: clamp(48px, 6vw, 96px);  aspect-ratio: 1; background-image: url('assets/ui/march_dec_kernels.webp?v=1'); }
.menu-deco .pf2 { right: 2.5%; top: 22%; width: clamp(56px, 7vw, 120px); aspect-ratio: 1; background-image: url('assets/ui/march_dec_bucket.webp?v=1'); animation-duration: 11s; animation-delay: -4s; }
.menu-deco .pf3 { left: 4%; bottom: 20%; width: clamp(40px, 5vw, 80px); aspect-ratio: 1; background-image: url('assets/ui/march_dec_machine.webp?v=1'); animation-duration: 12s; animation-delay: -7s; }
@keyframes pfFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.parade { position: fixed; left: 0; right: 0; bottom: 0; height: 120px; width: 100%; z-index: 0; pointer-events: none; opacity: .95; }

/* 頂列：木牌招牌（左）＋ 木頭列小鍵（右）。右上留給園區按鈕列 */
.brand { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: min(1120px, 100%); margin: 0 auto; position: relative; z-index: 1; padding-right: calc(var(--park-dock-rest-w, 0px) + 12px); }
.brand h1 { margin: 0; display: inline-flex; flex-direction: column; align-items: center; padding: 10px 26px 12px; background: var(--plank); border: 2px solid var(--plank-edge); border-radius: 14px; color: var(--plank-fg); font-size: 30px; line-height: 1.05; letter-spacing: .06em; box-shadow: 0 6px 0 var(--plank-shadow), 0 14px 26px rgba(60,35,10,.28), inset 0 1px 0 rgba(255,235,180,.35); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.brand h1 small { display: block; font-size: 11px; letter-spacing: .32em; color: #f3d38a; font-weight: 600; margin-top: 4px; }
.brand-r { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.tog { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--wood); color: var(--wood-fg); border: 1.5px solid var(--wood-edge); font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); box-shadow: none; }
.tog:not(.on):not(.lang-pick) { color: rgba(255,245,220,.6); text-decoration: line-through; }   /* 語言選單借 .tog 外觀，但沒有開／關狀態 */
.tog:hover:not(:disabled) { filter: none; border-color: var(--wood-hi); transform: none; }
.lang-pick { appearance: none; cursor: pointer; padding: 8px 28px 8px 14px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3e9d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
.lang-pick option { color: #222; background: #fff; }

/* 桌機：舞台（角色＋主鍵＋怎麼玩）在左、關卡票亭在右；.play-grid 用 display:contents 讓子元素直接進 .hub 的 grid，DOM 不動 */
.hub { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-areas: "tag tag" "hero levels" "cta levels" "howto levels" "foot foot"; gap: 12px 16px; align-items: start; position: relative; z-index: 1; padding-bottom: 110px; }
.hub > .tag { grid-area: tag; } .hub > .cta-row { grid-area: cta; } .hub > .howto { grid-area: howto; } .hub > .foot { grid-area: foot; }
.play-grid { display: contents; }
.hero { grid-area: hero; } .levels-panel { grid-area: levels; }
/* 一句玩法標語：木頭列小牌（壓在亮天空上也讀得清），不加大塊白板 */
.tag { margin: 0; justify-self: start; display: inline-block; max-width: 100%; padding: 7px 14px; border-radius: 999px; background: var(--wood); border: 1.5px solid var(--wood-edge); color: var(--wood-fg); font-size: 14px; font-weight: 700; line-height: 1.5; backdrop-filter: blur(8px); }
.panel { background: var(--cream-card); border: 2.5px solid #fff; border-radius: var(--ui-radius-md); padding: 16px; box-shadow: var(--ui-shadow-card); color: var(--ui-ink); }

/* 左欄：開放式舞台。吉祥物站在背景上、腳下是自己的名字與角色語；卡片只裝選角與通行證 */
.hero.panel { background: none; border: 0; box-shadow: none; padding: 0; }
.hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-glow { position: absolute; left: 50%; top: 110px; width: 280px; height: 280px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,224,138,.55), rgba(255,224,138,0) 70%); pointer-events: none; }
.hero img#heroImg { position: relative; width: 210px; height: 210px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(60,35,10,.35)); transition: transform var(--ui-speed) ease; }
.hero:hover img#heroImg { transform: translateY(-4px) scale(1.03); }
.hero-text { position: relative; text-align: center; display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.hero-text b { font-size: 22px; color: #fff; text-shadow: 0 1px 4px rgba(60,35,10,.6), 0 3px 12px rgba(60,35,10,.35); }
.hero-text span { font-size: 13px; color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(60,35,10,.6); line-height: 1.5; }
.chars { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px 10px; background: var(--wood); border: 1.5px solid var(--wood-edge); border-radius: 999px; backdrop-filter: blur(8px); }
.chars button { padding: 3px; border-radius: 50%; width: 46px; height: 46px; background: rgba(255,248,232,.92); border: 2px solid rgba(255,255,255,.7); box-shadow: 0 2px 0 rgba(150,110,40,.18); }
.chars button.on { background: var(--honey); border-color: var(--honey-edge); box-shadow: 0 0 0 3px rgba(255,224,138,.55), 0 2px 0 var(--honey-shadow); }
.chars img { width: 100%; height: 100%; object-fit: contain; display: block; }
.account-row { width: 100%; }
.mix { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #fff; font-weight: 600; cursor: pointer; text-shadow: 0 1px 4px rgba(60,35,10,.6); }
.mix input { accent-color: var(--ui-gold); width: 16px; height: 16px; }
.note.wide { grid-column: 1 / -1; }

/* 右欄：關卡卡。口味分頁是木頭列、選中蜂蜜黃 */
.levels-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tiers { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wood); border: 1.5px solid var(--wood-edge); align-self: flex-start; flex-wrap: wrap; backdrop-filter: blur(8px); }
.tiers button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 800; color: var(--wood-fg); box-shadow: none; }
.tiers button:hover:not(:disabled) { filter: none; transform: none; color: var(--wood-hi); }
.tiers button.on { background: var(--honey); color: var(--honey-fg); box-shadow: 0 2px 0 var(--honey-shadow); }
.tiers button:disabled { opacity: .45; }
.tiers .cnt { font-family: var(--mono); font-size: 12px; margin-left: 6px; opacity: .85; font-weight: 500; }
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.level { text-align: left; padding: 0; display: flex; flex-direction: column; gap: 0; overflow: hidden; background: #fff; border: 2.5px solid #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(60,40,20,.16), 0 2px 0 rgba(184,121,15,.10); color: var(--ui-ink); }
.level canvas { display: block; width: 100%; height: 64px; background: #2b2436; }   /* 縮圖畫的是深底焦糖地形，維持深底才看得清 */
.level .body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; background: var(--cream-card); }
.level .no { font-family: var(--mono); color: var(--ui-faint); font-size: 11px; display: flex; justify-content: space-between; gap: 6px; }
.level .no > span { white-space: nowrap; }   /* 「設計者 N」那一段變長時，關卡編號不要被拆行 */
.level .t { font-weight: 800; font-size: 14px; color: var(--ui-ink); }
.level .meta { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--ui-muted); }
.level .meta svg { width: 14px; height: 14px; }
.level .best { font-size: 12px; color: #2f8f46; font-weight: 700; }
.level .lock { font-size: 12px; color: var(--ui-faint); }
.level.locked { opacity: .55; filter: saturate(.6); }
.level.done { border-color: #a9e2b4; }
.level.next { border-color: var(--honey-edge); box-shadow: 0 0 0 3px rgba(245,169,27,.45), 0 8px 18px rgba(201,135,26,.28); }
.level:hover:not(:disabled) { transform: translateY(-2px); filter: none; }
.note { background: linear-gradient(#e6f4ff, #d3ecff); border: 2px solid #fff; border-radius: 12px; padding: 9px 12px; font-size: 13px; color: #24506f; display: flex; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 3px 0 rgba(46,143,214,.15); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; font: inherit; font-family: var(--mono); background: #fff; color: var(--ui-ink); border: 2px solid rgba(150,115,55,.22); border-radius: var(--ui-radius-sm); padding: 8px 12px; text-transform: uppercase; min-width: 0; }
.code-row input::placeholder { color: var(--ui-faint); text-transform: none; font-family: var(--font); }

/* 主鍵：整個畫面唯一的蜂蜜黃大鍵 */
.cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
button.big { padding: 16px 22px; font-size: 18px; border-radius: 16px; font-weight: 800; }
button.big.primary { font-size: 22px; box-shadow: 0 8px 0 var(--honey-shadow), 0 16px 30px rgba(201,135,26,.32); }
button.big.primary:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 3px 0 var(--honey-shadow); }
.howto { font-size: 13px; color: var(--ui-muted); }
.howto summary { cursor: pointer; font-weight: 800; color: var(--ui-ink); font-size: 15px; }
.howto ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.55; }
.foot { text-align: center; font-size: 12px; color: #fff; display: flex; gap: 8px; justify-content: center; text-shadow: 0 1px 4px rgba(60,35,10,.7); font-weight: 600; }
.foot a { color: #fff; }

/* 結算：奶油卡 + 木牌標題 */
.menu-card { width: min(640px, 100%); margin: auto; background: var(--cream-card); border: 3px solid #fff; border-radius: var(--ui-radius-lg); padding: 20px; box-shadow: var(--ui-shadow-card); display: flex; flex-direction: column; gap: 14px; }
.menu-card h2 { margin: 0 auto; display: inline-flex; align-self: center; padding: 8px 26px; background: var(--plank); border: 2px solid var(--plank-edge); border-radius: 12px; color: var(--plank-fg); font-size: 24px; letter-spacing: .08em; box-shadow: 0 5px 0 var(--plank-shadow); }
.end-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.end-body .stat { background: #fff; border: 2px solid rgba(150,115,55,.14); border-radius: 12px; padding: 10px; text-align: center; }
.end-body .stat b { display: block; font-size: 24px; font-family: var(--mono); color: var(--ui-ink); }
.end-body .stat span { font-size: 12px; color: var(--ui-muted); }
.board { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.board .row { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: #fff; border: 2px solid rgba(150,115,55,.14); border-radius: 10px; }
.board .row.me { border-color: var(--honey-edge); box-shadow: 0 0 0 2px rgba(245,169,27,.35); }
.board .row img { width: 24px; height: 24px; border-radius: 50%; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* 手機：單欄、一個捲動容器（.screen），卡片同寬 */
@media (max-width: 820px) {
  .hub { grid-template-columns: 1fr; grid-template-areas: "tag" "hero" "cta" "levels" "howto" "foot"; }
  .cta-row { grid-template-columns: 2fr 1fr; }
  .hero { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; }
  .hero img#heroImg { width: 120px; height: 120px; } .hero-text { text-align: left; padding: 0; } .hero-glow { left: 70px; top: 60px; width: 170px; height: 170px; }
  .chars { justify-content: flex-start; } .chars button { width: 42px; height: 42px; }
  .brand { padding-right: 0; flex-wrap: wrap; } .brand h1 { font-size: 24px; padding: 8px 18px 10px; } .brand h1 small { letter-spacing: .2em; }
  .brand-r { width: 100%; justify-content: flex-start; padding-right: calc(var(--park-dock-rest-w, 0px) + 8px); }
  /* 口味分頁是手機上唯一允許的水平捲動區（codex 版面建議）；右側漸層提示還有 */
  .tiers { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; align-self: stretch; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .tiers::-webkit-scrollbar { display: none; }
  .tiers button { white-space: nowrap; flex: none; }
  .bnbRating { max-width: 300px; }
  button.big { padding: 14px 12px; font-size: 16px; } button.big.primary { font-size: 19px; }
  .parade { height: 84px; }
  .menu-deco .pf3 { display: none; }
}
@media (max-width: 560px) {
  .skill { width: 40px; height: 50px; } .skill .k { display: none; }
  .sq { width: 36px; height: 36px; }
  .minimap { display: none; }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .menu-deco .pf { width: 44px; }
}
@media (max-height: 520px) { .parade { display: none; } .hub { padding-bottom: 24px; } .menu-deco { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-deco .pf { animation: none; } .hero img#heroImg, .level, button { transition: none; } }

/* ---- 米花通行證列（共用 Social.accountRow 的 .soc-row）：奶油卡上的木頭列 ---- */
#accountRow .soc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--wood); border: 1.5px solid var(--wood-edge); border-radius: 14px; color: var(--wood-fg); padding: 10px 12px; backdrop-filter: blur(8px); font-family: var(--font); }
#accountRow .soc-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#accountRow .soc-who b { color: var(--wood-hi); font-family: var(--font); letter-spacing: .04em; font-size: 14px; }
#accountRow .soc-who span { color: rgba(255,245,220,.78); font-family: var(--font); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#accountRow .soc-act, #accountRow .soc-act.txt { background: var(--honey); color: var(--honey-fg); border: 1.5px solid var(--honey-edge); border-radius: 10px; padding: 8px 14px; font-family: var(--font); font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 var(--honey-shadow); cursor: pointer; }
#accountRow .soc-act:hover { color: var(--honey-fg); filter: brightness(1.04); border-color: var(--honey-edge); }
#accountRow .soc-act + .soc-act { background: rgba(255,245,220,.12); color: var(--wood-fg); border: 1.5px solid var(--wood-edge); box-shadow: none; }
#accountRow .soc-act[disabled] { opacity: .5; cursor: default; }

/* 成就徽章（talisman）：關卡卡片上只顯示拿到的；結算列三個都顯示，沒拿到的是暗的 */
.level .best .tals { display: inline-flex; gap: 3px; vertical-align: -3px; margin-left: 4px; }
.tal { color: #cdbf9e; }
.tal.got { color: var(--ui-gold); }
.note.tals { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-start; }
.note.tals .talrow { display: inline-flex; align-items: center; gap: 6px; color: #8aa3b8; font-size: 12px; }
.note.tals .talrow.got { color: #24506f; }
.note.tals .talrow b { font-size: 13px; }
.note.tals .talrow.got b { color: var(--ui-gold-dark); }
