:root {
  --ink: #4a3329; --ink-soft: #7a5b4a; --paper: #fbf5ea; --wood: #8a5836; --wood-l: #d39b66; --caramel: #c67f48;
  --note: #fff6c9; --note-line: #dcb769; --pink: #f2a8b6; --red: #e06a5f; --bg: #241a16;
  --font: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); overflow: hidden; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ================= 门口 ================= */
.door-screen {
  position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(#1d2347 0%, #3a3566 45%, #8a5f7a 75%, #e6a77c 100%);
  transition: opacity .45s;
}
.door-screen.opening { opacity: 0; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.moon { position: absolute; top: 9%; right: 14%; width: 56px; height: 56px; border-radius: 50%; box-shadow: -14px 6px 0 0 #fff1bd; transform: rotate(-20deg); }
@media (max-width: 560px) { .moon { top: 3%; right: 8%; width: 38px; height: 38px; box-shadow: -10px 4px 0 0 #fff1bd; } }
.star { position: absolute; width: 3px; height: 3px; background: #fff8dc; box-shadow: 0 0 6px #fff8dc; animation: tw 3s infinite; }
.s1 { top: 14%; left: 18%; } .s2 { top: 26%; left: 32%; animation-delay: 1s; } .s3 { top: 8%; left: 52%; animation-delay: .5s; } .s4 { top: 30%; right: 26%; animation-delay: 2s; }
@keyframes tw { 50% { opacity: .3; } }
.door-title { position: relative; color: #fff1d6; font-size: 26px; letter-spacing: 4px; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.door-title { text-align: center; max-width: 92vw; }
.dt-en { letter-spacing: 2px; }
@media (max-width: 560px) { .door-title { font-size: 22px; } .dt-sep { display: none; } .dt-en { display: block; font-size: 17px; letter-spacing: 1px; margin-top: 4px; } }
.door {
  position: relative; width: min(360px, 92vw); min-height: 470px; padding: 26px 26px 30px;
  border-radius: 150px 150px 10px 10px / 70px 70px 10px 10px;
  background: repeating-linear-gradient(90deg, #b57a4b 0 38px, #a86f43 38px 40px), #b57a4b;
  border: 10px solid #d39b66; outline: 4px solid #6e4b3a;
  box-shadow: 0 18px 40px rgba(0,0,0,.4), inset 0 0 0 3px #8a5836;
  display: flex; flex-direction: column; align-items: center;
}
.door.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.door.unlocked .led { box-shadow: inset 0 0 0 2px #2b5e3a, 0 0 16px #8fe3a8; }
.door-plate { background: #f8f0e2; border: 3px solid #8a5836; border-radius: 8px; padding: 2px 16px; font-weight: 700; color: var(--ink); margin: 12px 0 18px; letter-spacing: 2px; }
.door-plate b { color: var(--red); }
.knob { position: absolute; right: 26px; top: 56%; width: 14px; height: 14px; border-radius: 50%; background: #e8e2d8; border: 3px solid #958d84; }
.lock-q { color: #fff6e6; font-weight: 600; text-align: center; margin: 4px 0 14px; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.keypad { background: #3a3540; border: 4px solid #2a2630; border-radius: 10px; padding: 12px; width: 220px; box-shadow: 0 4px 0 #1f1c22; }
.led { background: #1d2a22; border-radius: 6px; padding: 10px 0; margin-bottom: 10px; text-align: center; box-shadow: inset 0 0 0 2px #2b5e3a; transition: box-shadow .2s; }
#lock-dots i { display: inline-block; width: 14px; height: 14px; margin: 0 4px; border-radius: 3px; background: #2b3d31; }
#lock-dots i.on { background: #8fe3a8; box-shadow: 0 0 6px #8fe3a8; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys button { height: 38px; border: none; border-radius: 6px; background: #c8c1b7; color: #2a2630; font-weight: 700; font-size: 17px; box-shadow: 0 3px 0 #958d84; }
.keys button:active { transform: translateY(2px); box-shadow: 0 1px 0 #958d84; }
.keys button.fn { background: #e6c79a; }
.lock-msg { min-height: 24px; margin-top: 12px; color: #fff1bd; font-size: 13.5px; text-align: center; }
.who-cards { display: flex; gap: 14px; }
.who-cards button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 3px solid #8a5836; background: #fbf5ea; color: var(--ink); font-weight: 700; box-shadow: 0 4px 0 #6e4b3a; }
.who-cards button:hover { background: #fff; transform: translateY(-2px); }
.who-cards canvas, .welcome-ava { width: 96px; height: 96px; image-rendering: pixelated; border-radius: 10px; background: #f6c99c; }
#who-jx { background: #d3cbe2; }
.welcome-ava { width: 112px; height: 112px; border: 3px solid #8a5836; margin: 4px 0 6px; }
.small { color: #fde7c8; font-size: 12.5px; text-align: center; margin-top: 10px; min-height: 18px; }
.btn-big { margin-top: 14px; padding: 10px 34px; border-radius: 10px; border: 3px solid #6e4b3a; background: #f3dcb6; color: var(--ink); font-size: 17px; font-weight: 700; box-shadow: 0 4px 0 #6e4b3a; }
.btn-big:active { transform: translateY(3px); box-shadow: 0 1px 0 #6e4b3a; }
.btn-link { margin-top: 12px; background: none; border: none; color: #fde7c8; text-decoration: underline; font-size: 13px; }

/* ================= 屋里 ================= */
#house { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(ellipse at center, #3a2a22 0%, #1d1512 80%); }
#stage { position: relative; border-radius: 6px; box-shadow: 0 0 0 6px #6e4b3a, 0 0 0 9px #3a2a22, 0 16px 40px rgba(0,0,0,.5); }
#room { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 4px; }
#tip { position: absolute; pointer-events: none; white-space: nowrap; z-index: 5; background: #fffaf0; border: 1.5px solid var(--wood); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
#toast { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 6; max-width: 92%; background: rgba(74,51,41,.92); color: #fff6e6; padding: 6px 16px; border-radius: 999px; font-size: 13.5px; text-align: center; pointer-events: none; }
#popup { position: absolute; left: 14px; bottom: 14px; z-index: 5; width: min(360px, 70%); background: var(--note); border: 1.5px solid var(--note-line); border-radius: 4px 4px 12px 4px; padding: 12px 14px 14px; box-shadow: 0 4px 0 rgba(138,88,54,.25); transform: rotate(-.6deg); }
#popup::before { content: ""; position: absolute; top: -8px; left: 50%; width: 48px; height: 14px; margin-left: -24px; background: rgba(242,168,182,.75); transform: rotate(2deg); }
.pop-ava { float: left; width: 56px; height: 56px; margin: 0 10px 4px 0; image-rendering: pixelated; border-radius: 8px; background: #fbe9d4; border: 1.5px solid var(--note-line); }
.pop-title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.pop-body { font-size: 13.5px; color: var(--ink-soft); white-space: pre-wrap; }
.pop-field { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 14px; padding: 6px 8px; border: 1.5px solid var(--note-line); border-radius: 6px; background: #fffdf2; resize: vertical; }
.pop-actions { clear: both; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pop-actions button { font-size: 13.5px; padding: 4px 12px; border-radius: 6px; background: #f3dcb6; border: 1.5px solid var(--wood); color: var(--ink); box-shadow: 0 2px 0 var(--wood); }
.pop-actions button:active { transform: translateY(2px); box-shadow: none; }

#statusbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; color: #f1dcc3; font-size: 13.5px; }
#statusbar .st { display: inline-flex; align-items: center; gap: 7px; }
#statusbar b { color: #fff6e6; margin-right: 2px; }
#statusbar b::after { content: " ·"; color: #b99a80; font-weight: 400; }
.ava { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 8px; background: #f6e3cf; border: 1.5px solid #8a5836; transition: filter .3s, opacity .3s; }
.ava.off { filter: grayscale(1); opacity: .5; }
.mail { background: var(--red); color: #fff; border: none; border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.net { color: #ffb4a8; }

/* ================= 晚安邮局 ================= */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(20,16,30,.62); display: flex; align-items: center; justify-content: center; padding: 18px; }
.post-card { width: min(920px, 100%); height: min(620px, 100%); display: flex; flex-direction: column; background: #2f3a63; border: 4px solid #1f2747; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); overflow: hidden; }
.post-card header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #fff1bd; background: #26305a; border-bottom: 3px solid #1f2747; }
.post-title { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.post-title::before { content: "☾ "; }
.post-sub { color: #b8c0e8; font-size: 13px; flex: 1; }
.post-x { width: 32px; height: 32px; border-radius: 8px; border: none; background: #3c4880; color: #fff1bd; font-size: 20px; line-height: 1; }
.btn-write { padding: 5px 14px; border-radius: 8px; border: 2px solid #fff1bd; background: #fff1bd; color: #2f3a63; font-weight: 700; }
.post-main { flex: 1; display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.post-main aside { display: flex; flex-direction: column; min-height: 0; background: #283260; border-right: 3px solid #1f2747; }
.months { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 2px solid #1f2747; }
.month { position: relative; padding: 3px 10px; border-radius: 999px; border: 1.5px solid #4a5a91; background: transparent; color: #cbd2f2; font-size: 12.5px; }
.month.on { background: #fff1bd; color: #2f3a63; border-color: #fff1bd; }
.list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.item { text-align: left; border: none; border-radius: 10px; padding: 8px 10px; background: #34407a; color: #e8ebff; }
.item.mine { background: #3b3f6a; }
.item.on { background: #fbf5ea; color: var(--ink); }
.item-top { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .9; }
.item-who { flex: 1; }
.item-read { font-size: 11px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.15); }
.item.on .item-read { background: #efe2c6; }
.item-preview { font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.month .dot { position: absolute; top: -2px; right: -2px; }
.view { overflow-y: auto; padding: 22px 26px; background: #2f3a63; }
.empty { color: #b8c0e8; font-size: 13.5px; padding: 8px; }
.empty.big { font-size: 16px; padding: 30px 0 14px; text-align: center; }
.paper, .compose {
  background: var(--paper); color: var(--ink); border-radius: 6px; padding: 22px 26px 18px; position: relative;
  background-image: repeating-linear-gradient(transparent 0 31px, #ecdcc2 31px 32px); line-height: 32px; box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.paper::before, .compose::before { content: ""; position: absolute; top: -8px; left: 40px; width: 70px; height: 16px; background: rgba(242,168,182,.8); transform: rotate(-3deg); }
.paper-to { font-weight: 700; }
.paper-body { white-space: pre-wrap; word-break: break-word; font-size: 15.5px; }
.paper-sign { text-align: right; margin-top: 4px; }
.paper-date { text-align: right; font-size: 12.5px; color: var(--ink-soft); }
.song { margin-top: 14px; padding: 8px 12px; line-height: 1.6; background: #fff6c9; border: 1.5px dashed var(--note-line); border-radius: 8px; }
.song-title { font-weight: 700; }
.song-why { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.song-links { display: flex; gap: 14px; margin-top: 4px; font-size: 13.5px; }
.song-links a { color: #b0566a; }
.receipt { margin-top: 10px; font-size: 12.5px; color: #8a7a6a; line-height: 1.6; }
.view-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.compose-body { width: 100%; border: none; outline: none; resize: vertical; background: transparent; font: inherit; font-size: 15.5px; line-height: 32px; color: var(--ink); }
.compose-song { line-height: 1.6; margin-top: 10px; background: #fff6c9; border: 1.5px dashed var(--note-line); border-radius: 8px; padding: 6px 12px; }
.compose-song summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.field { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.field input, .field textarea { font: inherit; font-size: 13.5px; padding: 4px 8px; border: 1.5px solid #e2cfb3; border-radius: 6px; background: #fffdf5; resize: vertical; }
.compose-msg { flex: 1; color: #fff1bd; font-size: 13px; }
.btn-send { padding: 6px 22px; border-radius: 8px; border: 2px solid #fff1bd; background: #fff1bd; color: #2f3a63; font-weight: 700; }
.btn-cancel { padding: 6px 14px; border-radius: 8px; border: 1.5px solid #8590c4; background: transparent; color: #cbd2f2; }
@media (max-width: 720px) { .post-main { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; } .post-main aside { border-right: none; border-bottom: 3px solid #1f2747; } }

/* ================= 冰箱 / iPad / 电视 共用 ================= */
.sheet { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 36px); display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.sheet-title { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.sheet-sub { flex: 1; font-size: 13px; opacity: .75; }
.sheet-x { width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(0,0,0,.12); color: inherit; font-size: 20px; line-height: 1; }
.sheet-hint { margin: 10px 18px 0; font-size: 13.5px; opacity: .8; text-align: center; }
.sheet-status { margin: 6px 18px 14px; min-height: 18px; font-size: 13px; text-align: center; opacity: .85; }
.btn-main { padding: 6px 16px; border-radius: 8px; border: 2px solid var(--wood); background: #f3dcb6; color: var(--ink); font-weight: 700; box-shadow: 0 2px 0 var(--wood); }
.btn-main:active { transform: translateY(2px); box-shadow: none; }
.btn-soft { padding: 5px 12px; border-radius: 8px; border: 1.5px solid currentColor; background: transparent; color: inherit; opacity: .9; }
.btn-soft.on { background: #fff1bd; color: #2f3a63; border-color: #fff1bd; }
.btn-danger { padding: 5px 12px; border-radius: 8px; border: 1.5px solid #d9645a; background: transparent; color: #d9645a; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.form-msg { flex: 1; font-size: 13px; color: #c0504a; }
.form { display: flex; flex-direction: column; gap: 8px; }
.field { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; font-size: 13.5px; }
.field > span { padding-top: 6px; opacity: .8; }
.field input, .field select, .field textarea { font: inherit; font-size: 14px; padding: 6px 9px; border: 1.5px solid #e2cfb3; border-radius: 8px; background: #fffdf6; color: var(--ink); resize: vertical; width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.empty { opacity: .7; font-size: 13.5px; padding: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips button, .radios button { padding: 3px 11px; border-radius: 999px; border: 1.5px solid #dcc29a; background: #fff8ec; color: var(--ink); font-size: 13px; }
.chips button.on, .radios button.on { background: var(--caramel); border-color: var(--caramel); color: #fff8ee; }
.radios { display: flex; gap: 6px; flex-wrap: wrap; }

/* ================= 冰箱 ================= */
.fridge-sheet { background: #f6e9d3; color: var(--ink); overflow: auto; }
.fridge { margin: 4px auto 0; width: min(560px, 92%); height: min(62vh, 600px); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 8px; background: #2c2a31; border-radius: 14px 14px 6px 6px; box-shadow: 0 10px 0 #1f1d23, 0 14px 28px rgba(0,0,0,.25); }
.fdoor { position: relative; border-radius: 8px; background: linear-gradient(100deg, #45414b 0%, #3b3840 40%, #34313a 100%); box-shadow: inset 0 0 0 2px #57535d; overflow: hidden; }
.fdoor .handle { position: absolute; top: 22%; width: 8px; height: 34%; border-radius: 4px; background: linear-gradient(90deg, #d8d2c8, #a8a198); }
.fdoor[data-door="0"] .handle { right: 10px; }
.fdoor[data-door="1"] .handle { left: 10px; }
.mag { position: absolute; transform: translate(-50%, -50%); padding: 0; border: none; background: none; transition: transform .12s; }
.mag img { display: block; width: 46px; height: 46px; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.mag:hover { transform: translate(-50%, -50%) scale(1.15); z-index: 2; }
.mag-blank { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: #f8f0e2; font-weight: 700; }
.fridge.arranging .mag { cursor: grab; outline: 2px dashed rgba(255,241,189,.6); outline-offset: 2px; }
.mag.dragging { cursor: grabbing; transform: translate(-50%, -50%) scale(1.25); z-index: 3; }
.mag-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 4px 20px 20px; overflow: auto; }
.mag-photo { display: block; border-radius: 10px; overflow: hidden; background: #e9dcc4; min-height: 220px; }
.mag-photo img { display: block; width: 100%; height: 100%; max-height: 62vh; object-fit: contain; background: #2c2a31; }
.mag-photo.empty { display: grid; place-items: center; color: #9a7b66; }
.mag-icon-big { width: 64px; height: 64px; image-rendering: pixelated; float: right; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.facts { display: grid; grid-template-columns: 64px 1fr; gap: 6px 10px; margin: 0 0 12px; font-size: 14px; }
.facts dt { opacity: .65; } .facts dd { margin: 0; }
.story { white-space: pre-wrap; background: #fbf5ea; border-radius: 8px; padding: 12px 14px; line-height: 1.8; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px #ead8bb; }

/* ================= iPad 美食手账 ================= */
.ipad-sheet { background: #1f1d24; padding: 16px; border-radius: 28px; box-shadow: 0 0 0 3px #3a3742, 0 20px 50px rgba(0,0,0,.55); }
.ipad-cam { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3742; }
.ipad-screen { background: #fbf7ef; color: var(--ink); border-radius: 14px; height: min(78vh, 700px); display: flex; flex-direction: column; overflow: hidden; }
.ipad-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1.5px solid #efe2c9; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: #f1e5cf; border-radius: 10px; padding: 3px; }
.tabs button { position: relative; padding: 4px 12px; border-radius: 8px; border: none; background: transparent; color: inherit; font-weight: 600; font-size: 13.5px; }
.tabs button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ipad-search { flex: 1; min-width: 140px; font: inherit; font-size: 14px; padding: 6px 12px; border: 1.5px solid #e2cfb3; border-radius: 999px; background: #fff; }
.ipad-city { font: inherit; font-size: 13.5px; padding: 5px 8px; border: 1.5px solid #e2cfb3; border-radius: 8px; background: #fff; }
.ipad-screen > .chips { padding: 8px 12px; border-bottom: 1.5px solid #efe2c9; }
.ipad-body { flex: 1; display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
.toc { overflow-y: auto; border-right: 1.5px solid #efe2c9; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: #f7efe1; }
.toc button { text-align: left; border: none; background: transparent; border-radius: 8px; padding: 6px 8px; color: inherit; }
.toc button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.toc b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc span { font-size: 12px; opacity: .65; }
.page { overflow-y: auto; padding: 18px 24px; display: flex; flex-direction: column; gap: 8px; background: repeating-linear-gradient(transparent 0 31px, #f0e4cd 31px 32px), #fffdf8; }
.empty-page { display: grid; place-items: center; font-size: 40px; color: #ead8bb; }
.gallery { display: grid; gap: 6px; height: 230px; flex: none; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 270px; }
.gallery.n2 { grid-template-rows: 1fr; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery.n3 a:first-child { grid-row: span 2; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; background: #efe2c9; min-height: 0; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page h3 { margin: 6px 0 0; font-size: 22px; }
.meta { font-size: 13px; opacity: .7; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: #f6e1c4; }
.dishes { font-size: 14px; }
.text { margin: 0; white-space: pre-wrap; line-height: 32px; font-size: 15px; }
.again { align-self: flex-start; font-size: 12.5px; padding: 2px 10px; border-radius: 6px; background: #e5f2dc; color: #4b7a36; }
.again.maybe { background: #fbefd2; color: #9a6b1d; } .again.no { background: #f6dede; color: #a2453f; }
.page-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.page-foot .nav { width: 32px; height: 30px; border-radius: 8px; border: 1.5px solid #e2cfb3; background: #fff; }
.page-foot .nav:disabled { opacity: .35; }
.grow { flex: 1; }
.ipad-form { overflow-y: auto; padding: 16px 22px; }
.ipad-form h3 { margin: 0 0 4px; }
.chips.edit .tag-add { width: 90px; font: inherit; font-size: 13px; padding: 3px 10px; border: 1.5px dashed #dcc29a; border-radius: 999px; background: #fff; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.ph { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: #efe2c9; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; line-height: 1; }
.ph.add { border: 2px dashed #dcc29a; background: #fff8ec; color: #9a7b66; font-size: 13px; }

/* ================= 电视 ================= */
.tv-sheet { background: #26232b; padding: 14px; border-radius: 14px; box-shadow: 0 0 0 3px #3a3742, 0 20px 50px rgba(0,0,0,.55); }
.tv-stand { position: absolute; left: 50%; bottom: -16px; width: 160px; height: 12px; margin-left: -80px; border-radius: 0 0 8px 8px; background: #3a3742; }
.tv-screen { background: radial-gradient(ellipse at top, #2c3870, #1d2448 70%); color: #eef0ff; border-radius: 8px; height: min(74vh, 640px); display: flex; flex-direction: column; overflow: hidden; }
.tv-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid rgba(255,255,255,.08); }
.tv-logo { font-weight: 800; letter-spacing: 2px; color: #fff1bd; }
.tv-logo::before { content: "● "; color: #ff6b6b; font-size: 11px; vertical-align: 2px; }
.tv-head .tabs { background: rgba(255,255,255,.08); flex: 1; max-width: 400px; }
.tv-head .tabs button { color: #cbd2f2; }
.tv-head .tabs button.on { background: #fff1bd; color: #2f3a63; }
.cnt { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: #e06a5f; color: #fff; font-style: normal; font-size: 11.5px; line-height: 18px; }
.tv-head .sheet-x { margin-left: auto; background: rgba(255,255,255,.1); }
.tv-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.task-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.task-col h4 { margin: 0 0 8px; color: #fff1bd; font-size: 15px; }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.07); }
.task.done .task-text { text-decoration: line-through; opacity: .6; }
.check { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #fff1bd; background: transparent; color: #2f3a63; font-weight: 800; line-height: 1; padding: 0; }
.task.done .check { background: #8fe3a8; border-color: #8fe3a8; }
.check.ro { display: grid; place-items: center; border-color: rgba(255,255,255,.35); }
.task-text { flex: 1; font-size: 14.5px; word-break: break-word; }
.task-when { font-size: 11.5px; opacity: .6; white-space: nowrap; }
.del { border: none; background: transparent; color: #ffb4a8; font-size: 13px; }
.task-list.old { margin-top: 6px; opacity: .75; }
.link { background: none; border: none; color: #b8c0e8; text-decoration: underline; font-size: 12.5px; margin-top: 6px; padding: 0; }
.tv-form, .rec-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); }
.rec-form { flex-direction: column; align-items: stretch; }
.tv-form input, .rec-form input { flex: 1; min-width: 160px; font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: #fff; }
.tv-form input::placeholder, .rec-form input::placeholder { color: rgba(238,240,255,.45); }
.rec-form .form-msg { color: #ffb4a8; }
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); }
.rec.mine { background: rgba(255,241,189,.08); }
.rec-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rec-top b { font-size: 15.5px; color: #fff; }
.rec-top span { font-size: 13px; opacity: .75; }
.rec-from { font-size: 12px !important; }
.rec-note { margin-top: 4px; font-size: 14px; color: #dfe3ff; }
.rec-links { display: flex; gap: 14px; margin-top: 6px; align-items: center; font-size: 13px; }
.rec-links a { color: #fff1bd; }
@media (max-width: 760px) {
  .mag-card, .task-cols, .two { grid-template-columns: 1fr; }
  .ipad-body { grid-template-columns: 1fr; grid-template-rows: 120px 1fr; }
  .toc { border-right: none; border-bottom: 1.5px solid #efe2c9; }
}

/* ================= 电脑 · 我来出题你来猜 ================= */
.pc-sheet { background: transparent; box-shadow: none; }
.pc-window { background: #f4efe6; color: var(--ink); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: min(76vh, 660px); box-shadow: 0 0 0 3px #3a3540, 0 20px 50px rgba(0,0,0,.5); }
.pc-titlebar { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: linear-gradient(#e9e2d6, #d9d1c3); border-bottom: 1.5px solid #c7bcab; font-size: 13px; font-weight: 700; }
.pc-titlebar .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; } .dot.r { background: #ee6a5f; } .dot.y { background: #f5bd4f; } .dot.g { background: #61c454; }
.pc-titlebar span { flex: 1; text-align: center; opacity: .8; }
.pc-tabs { display: flex; gap: 4px; padding: 8px 12px 0; background: #ece5d8; border-bottom: 1.5px solid #d9cfbe; }
.pc-tabs button { position: relative; border: 1.5px solid #d9cfbe; border-bottom: none; background: #e3dccd; border-radius: 8px 8px 0 0; padding: 5px 14px; color: inherit; font-size: 13.5px; margin-bottom: -1.5px; }
.pc-tabs button.on { background: #f4efe6; font-weight: 700; }
.pc-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.pc-lead { margin: 0; font-size: 14px; opacity: .8; }
.pc-sub { margin: 10px 0 0; font-size: 14px; opacity: .7; }
.qa-card { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 0 #e3d9c8, inset 0 0 0 1.5px #ece3d3; display: flex; flex-direction: column; gap: 8px; }
.qa-card .qa-q { font-weight: 700; font-size: 15.5px; }
.qa-card .row { display: flex; gap: 8px; }
.qa-card input { flex: 1; font: inherit; font-size: 14.5px; padding: 7px 10px; border: 1.5px solid #e2cfb3; border-radius: 8px; background: #fffdf6; }
.qa-card.ask input { width: 100%; }
.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 12px; border-radius: 8px; background: #fbf7ef; font-size: 13.5px; }
.qa-row .qa-q { flex: 1 1 100%; font-weight: 600; font-size: 14px; }
.qa-given, .qa-ans { opacity: .75; }
.chip { font-size: 12px; padding: 1px 9px; border-radius: 999px; background: #efe5d2; }
.chip.right { background: #e0f0d7; color: #3f7a2c; } .chip.wrong { background: #f7dcdc; color: #a8403a; } .chip.pending { background: #fbefd2; color: #8a6418; }
.judge-row { display: grid; grid-template-columns: 70px 1fr; font-size: 14px; } .judge-row span { opacity: .65; } .judge-row .given { color: #a8403a; }
.btn-soft.ok { color: #3f7a2c; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.score { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 16px; box-shadow: inset 0 0 0 1.5px #ece3d3; }
.score-ava { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 10px; background: #f6e3cf; }
.score .big { font-size: 30px; font-weight: 800; line-height: 1.2; }
.score .small { font-size: 13px; opacity: .7; } .score .bonks { font-size: 13px; margin-top: 4px; }

/* ================= complaint box ================= */
.box-sheet { background: #b57a4b; color: var(--ink); box-shadow: inset 0 0 0 6px #8a5836, 0 20px 50px rgba(0,0,0,.5); max-height: calc(100vh - 36px); }
.box-sheet .sheet-head { color: #fff6e6; } .box-sheet .sheet-x { background: rgba(0,0,0,.18); }
.box-stats { margin: 0 18px; padding: 6px 12px; border-radius: 8px; background: rgba(0,0,0,.15); color: #fde7c8; font-size: 13px; }
.box-body { overflow-y: auto; padding: 14px 18px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-content: start; }
.box-body .empty { color: #fde7c8; grid-column: 1 / -1; }
.slip { position: relative; background: #fffaf0; border-radius: 4px; padding: 12px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.18); transform: rotate(-.4deg); display: flex; flex-direction: column; gap: 6px; background-image: repeating-linear-gradient(transparent 0 27px, #f0e2c8 27px 28px); }
.slip:nth-child(even) { transform: rotate(.5deg); }
.slip.write { grid-column: 1 / -1; transform: none; background: #fff6c9; background-image: none; }
.slip.write textarea { font: inherit; font-size: 14.5px; border: 1.5px solid #e2cfb3; border-radius: 6px; padding: 8px; background: #fffdf2; resize: vertical; }
.slip-head { display: flex; justify-content: space-between; font-size: 12.5px; opacity: .75; font-weight: 600; }
.slip-flames { letter-spacing: -2px; }
.slip-text { font-size: 15px; line-height: 28px; white-space: pre-wrap; word-break: break-word; }
.slip-reason { font-size: 13px; color: #a8403a; }
.slip.withdrawn .slip-text { text-decoration: line-through; opacity: .55; }
.flames { display: flex; align-items: center; gap: 2px; margin-right: auto; font-size: 13px; }
.flames span { margin-right: 6px; opacity: .7; }
.flames button { border: none; background: none; font-size: 20px; padding: 0 1px; filter: grayscale(1) opacity(.35); }
.flames button.on { filter: none; }
.slip { padding-bottom: 34px; }
.stamp { position: absolute; right: 12px; bottom: 8px; padding: 2px 10px; border: 3px solid currentColor; border-radius: 8px; font-weight: 800; font-size: 17px; letter-spacing: 2px; transform: rotate(-12deg); opacity: .78; pointer-events: none; }
.stamp.read { color: #5f84b8; } .stamp.sorry { color: #d9645a; } .stamp.fixed { color: #4b8a36; } .stamp.rejected { color: #6b5a50; } .stamp.withdrawn { color: #c49237; }

/* ================= 回忆录 · 世界地图 ================= */
.map-sheet { background: #fbf8f1; color: var(--ink); width: min(1180px, 100%); height: min(86vh, 820px); }
.map-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; }
.map-wrap { position: relative; min-height: 0; margin: 0 0 14px 14px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1.5px #e3d9c8; }
.map-canvas { display: block; width: 100%; height: 100%; cursor: grab; image-rendering: pixelated; }
.map-tools { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 5px; max-width: 70%; }
.map-tools button { padding: 3px 10px; border-radius: 999px; border: 1.5px solid #d8ddd8; background: rgba(250,251,247,.9); color: var(--ink); font-size: 12.5px; }
.map-tools button:hover { background: #f5dce0; }
.map-banner { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: #e0607e; color: #fff; font-size: 13.5px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.map-tip { position: absolute; pointer-events: none; padding: 2px 9px; border-radius: 6px; background: #fffaf0; border: 1.5px solid #e8a0ae; font-size: 12.5px; white-space: nowrap; }
.map-side { overflow-y: auto; padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.side-head { display: flex; align-items: center; gap: 8px; } .side-head b { font-size: 18px; } .side-head span { font-size: 13px; opacity: .65; }
.btn-main.wide { width: 100%; }
.side-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.side-photos a { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #efe2c9; }
.side-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-photos i { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 4px; background: rgba(255,255,255,.85); }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.side-list li { padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px #efe5d2; }
.side-list .when { font-size: 12px; opacity: .6; margin-left: 6px; }
.link-btn { border: none; background: none; color: #8a5836; font-size: 12.5px; padding: 0 4px; } .link-btn.danger { color: #c0504a; }
.side-cities { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.side-cities button { width: 100%; display: flex; align-items: center; gap: 8px; border: none; background: #fff; border-radius: 8px; padding: 7px 10px; color: inherit; text-align: left; box-shadow: inset 0 0 0 1.5px #efe5d2; }
.side-cities button:hover { box-shadow: inset 0 0 0 1.5px #e8a0ae; }
.side-cities .pin { width: 9px; height: 9px; background: #e0607e; box-shadow: 0 0 0 1.5px #5a4a44; }
.side-cities b { font-size: 14px; } .side-cities span { flex: 1; font-size: 12px; opacity: .6; }
.side-cities em { font-style: normal; font-size: 12px; padding: 0 7px; border-radius: 999px; background: #f5dce0; }
.side-unknown { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; padding: 10px; border-radius: 8px; background: #fff6c9; }
.side-unknown b { flex: 1 1 100%; }
.chip-btn { border: 1.5px dashed #dcb769; background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.map-form { overflow-y: auto; padding: 4px 22px 20px; }
.map-form h3 { margin: 0; }
.where { font-size: 12.5px; margin-top: 4px; } .where.ok { color: #4b8a36; } .where.warn { color: #b0566a; }
@media (max-width: 860px) { .map-main { grid-template-columns: 1fr; grid-template-rows: 1fr 240px; } .map-wrap { margin: 0 14px 10px; } .scores { grid-template-columns: 1fr; } }

/* ================= 电脑桌面 + 小游戏 ================= */
.pc-window .small { color: inherit; text-align: left; margin-top: 0; min-height: 0; font-size: 12.5px; opacity: .72; }
.pc-window .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-window .row input { flex: 1; min-width: 140px; font: inherit; font-size: 14.5px; padding: 7px 10px; border: 1.5px solid #e2cfb3; border-radius: 8px; background: #fffdf6; }
.pc-back { border: 1.5px solid #c7bcab; background: #f4efe6; border-radius: 6px; padding: 2px 10px; font-size: 12.5px; color: inherit; margin-left: 6px; }
.pc-titlebar .sheet-x { width: 26px; height: 26px; font-size: 17px; }
.pc-window.desktop .pc-body { background: linear-gradient(160deg, #86a8d6 0%, #b9c9e8 45%, #f2c7cf 100%); color: #2f3a63; gap: 16px; }
.desk-hello { font-weight: 800; font-size: 17px; color: #fff; text-shadow: 0 1px 0 rgba(47,58,99,.45); }
.desk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.desk-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 14px; border: none; background: rgba(255,255,255,.55); color: #2f3a63; box-shadow: 0 3px 0 rgba(47,58,99,.18); }
.desk-app:hover { background: rgba(255,255,255,.8); transform: translateY(-2px); }
.desk-app .cnt { position: absolute; top: 6px; right: 8px; margin: 0; }
.desk-icon { font-size: 34px; line-height: 1; }
.desk-name { font-size: 13.5px; font-weight: 700; }
.desk-note { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.6); font-size: 13.5px; }
.desk-foot { margin-top: auto; font-size: 12.5px; opacity: .75; color: #fff; text-shadow: 0 1px 0 rgba(47,58,99,.35); }
.pc-tabs.inner { margin: -16px -20px 4px; padding-left: 20px; }

/* 默契考验 */
.tacit-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(90deg, #fde4ea, #fff6e6); }
.tacit-top .big { font-size: 30px; font-weight: 800; color: #c24d62; min-width: 70px; text-align: center; }
.tacit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tacit-ans { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #fbf7ef; font-size: 14px; word-break: break-word; }
.tacit-ans.hy { background: #fdecef; } .tacit-ans.jx { background: #ecebf7; }
.tacit-ava { width: 32px; height: 32px; flex: none; image-rendering: pixelated; border-radius: 8px; background: #fff; }
.qa-card.tacit.done { box-shadow: inset 0 0 0 1.5px #f2c7cf; }
.qa-card .chip { align-self: flex-start; }

/* 你画我猜 */
.draw-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.draw-tools .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d9cfbe; }
.draw-tools .sw.on { outline: 3px solid #2f3a63; outline-offset: 1px; }
.draw-tools .sz { padding: 3px 10px; border-radius: 999px; border: 1.5px solid #d9cfbe; background: #fff; color: inherit; font-size: 12.5px; }
.draw-tools .sz.on { background: #2f3a63; border-color: #2f3a63; color: #fff; }
canvas.board { width: 100%; max-width: 600px; aspect-ratio: 3 / 2; align-self: center; border-radius: 10px; background: #fffdf6; box-shadow: inset 0 0 0 2px #e2cfb3; touch-action: none; cursor: crosshair; }
.guess-img { width: 100%; max-width: 480px; align-self: center; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #ece3d3; background: #fffdf6; }
.draw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.draw-item { margin: 0; background: #fff; border-radius: 10px; padding: 8px; box-shadow: inset 0 0 0 1.5px #ece3d3; display: flex; flex-direction: column; gap: 6px; }
.draw-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 6px; background: #fffdf6; }
.draw-item figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.draw-item.right figcaption b { color: #3f7a2c; } .draw-item.gave figcaption b { color: #a8403a; }
.form-msg { font-size: 13px; color: #a8403a; }

/* 接冻干 / 翻牌：左边游戏，右边排行榜 */
.game-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: start; }
.game-canvas { width: 100%; aspect-ratio: 3 / 2; image-rendering: pixelated; border-radius: 10px; box-shadow: 0 0 0 3px #8a5836; cursor: none; touch-action: none; }
.game-side { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 1.5px #ece3d3; }
.game-side h4 { margin: 0 0 4px; font-size: 14px; }
.lb-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lb-row b { min-width: 22px; } .lb-row span { margin-left: auto; font-weight: 700; }
.lb-ava { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 6px; background: #f6e3cf; }
.lb-rec { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: #fff6c9; font-size: 13.5px; font-weight: 700; display: flex; flex-direction: column; gap: 3px; }
.lb-rec .small { font-weight: 400; opacity: .85; }
.game-side .tips { margin-top: 6px; line-height: 1.5; }
.flip-stat { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; margin-bottom: 10px; flex-wrap: wrap; }
.flip-stat .btn-soft { margin-left: auto; font-weight: 400; }
.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 460px; }
.flip-card { position: relative; aspect-ratio: 1; padding: 0; border: none; border-radius: 10px; background: none; perspective: 600px; cursor: pointer; }
.flip-card .back, .flip-card .front { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; backface-visibility: hidden; transition: transform .35s; }
.flip-card .back { background: #c67f48 repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.14) 6px 12px); box-shadow: inset 0 0 0 3px #8a5836; }
.flip-card .back::after { content: "♡"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff1bd; font-size: 22px; }
.flip-card .front { object-fit: cover; image-rendering: auto; transform: rotateY(180deg); box-shadow: inset 0 0 0 3px #8a5836; background: #fff; }
.flip-card .front.px { image-rendering: pixelated; }
.flip-card.up .back { transform: rotateY(180deg); } .flip-card.up .front { transform: rotateY(0); }
.flip-card.done .front { box-shadow: 0 0 0 3px #7ea85a; opacity: .9; }
@media (max-width: 720px) { .game-wrap { grid-template-columns: 1fr; } }

/* 电视 · 金币和兑换券 */
.tv-head .coins { padding: 3px 10px; border-radius: 999px; background: rgba(255,241,189,.16); color: #fff1bd; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.task-coin { font-size: 12px; color: #fff1bd; opacity: .8; white-space: nowrap; }
.task.done .task-coin { opacity: .45; }
.coin-sel { font: inherit; font-size: 13.5px; padding: 6px 6px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(0,0,0,.2); color: #fff; }
.shop-lead { margin: 0; color: #fff1bd; font-weight: 700; }
.shop-sec h4 { margin: 0 0 8px; color: #fff1bd; font-size: 15px; }
.coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.coupon { position: relative; display: flex; align-items: stretch; border-radius: 10px; background: #fff6e6; color: var(--ink); overflow: hidden; }
.coupon-l { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-right: 2px dashed #e2c79c; font-size: 13px; word-break: break-word; }
.coupon-l b { font-size: 15px; }
.coupon-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; background: #fde4ea; min-width: 88px; }
.coupon .price { font-weight: 800; color: #a2623a; white-space: nowrap; }
.coupon .del { color: #a8403a; }
.coupon .btn-soft { font-size: 12.5px; color: var(--ink); }
.coupon .btn-main:disabled { opacity: .5; box-shadow: none; }
.coupon.used { opacity: .55; }
.coupon.used .coupon-l b { text-decoration: line-through; }

/* 状态栏：节日 + 在一起第几天 */
.st-day { color: #fff1bd; font-size: 13px; background: none; border: 1px dashed rgba(255,241,189,.35); border-radius: 8px; padding: 2px 8px; cursor: pointer; font-family: inherit; }
.st-day:hover { background: rgba(255,241,189,.1); }
.pop-field.date { width: auto; min-width: 170px; }

/* 门口换状态牌 */
.welcome-board { width: 100%; margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.board-other { color: #fff1bd; font-size: 13.5px; font-weight: 600; }
.board-label { color: #fde7c8; font-size: 12.5px; opacity: .85; margin-top: 4px; }
.board-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 290px; }
.board-chips button { padding: 3px 10px; border-radius: 999px; border: 1.5px solid #6e4b3a; background: #f3dcb6; color: var(--ink); font-size: 13px; }
.board-chips button.on { background: #6e4b3a; color: #fff6e6; }

/* 现成小游戏（iframe） */
.mini-frame { width: 100%; border: none; border-radius: 10px; background: #0099cc; box-shadow: 0 0 0 3px #8a5836; }
.mini-frame.bird { aspect-ratio: 3 / 2; }
.mini-frame.g2048 { height: min(560px, 62vh); background: #faf8ef; }
