* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0820; color: #f3eefe;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#tree { position: fixed; inset: 0; z-index: 0; display: block; }
#ui { position: fixed; inset: 0; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); pointer-events: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#ui > * { pointer-events: auto; }
#view { pointer-events: auto; min-height: 120px; cursor: pointer; }
.panel { background: rgba(14, 10, 36, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.hide-ui #ui .panel, body.hide-ui #muteBtn, body.hide-ui #hint, body.hide-ui #toasts { display: none !important; }
.hidden { display: none !important; }
body.hide-ui #ui { grid-template-rows: 1fr !important; grid-template-columns: 1fr !important; }
body.hide-ui #view { grid-column: 1 !important; grid-row: 1 !important; }

/* 上の数字 */
#top { padding: 8px 12px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); min-width: 0; overflow: hidden; }
/* 右上の「木だけ見る」「音」のボタンと重ならないよう、右に余白を取り、信用は案件の番号の隣に置く */
.meta { display: flex; justify-content: flex-start; gap: 10px; font-size: 11px; color: #a99fd0; padding-right: 150px; min-height: 18px; white-space: nowrap; }
#credit { color: #ffe066; }
.req { margin: 2px 0 6px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.req-label { display: inline-block; font-size: 11px; background: #ff5c8a; color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 6px; vertical-align: 2px; }
.stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; }
.stat { display: flex; flex-direction: column; min-width: 0; }
.stat.wide { grid-column: span 2; }
.lbl { font-size: 10px; color: #a99fd0; }
.num { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num.hot { font-size: 26px; color: #ffe066; text-shadow: 0 0 12px rgba(255,200,80,0.5); line-height: 1.1; }
.num.tiny { font-size: 14px; color: #9effa0; }
.stat small { font-size: 10px; color: #c9c0ea; }
.num.bump { animation: bump 0.25s ease-out; }
@keyframes bump { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }

.progress { margin-top: 6px; }
.plabel { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: #a99fd0; min-width: 0; }
.plabel span { flex: none; }
.plabel b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plabel b { color: #ffb3c8; font-size: 15px; font-variant-numeric: tabular-nums; }
.plabel b small { font-size: 11px; color: #a99fd0; font-weight: 400; }
.pmeta { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 10.5px; color: #c9c0ea; min-width: 0; }
.pmeta span { min-width: 0; }
.pmeta span:first-child { flex: none; }
.pmeta span:last-child { text-align: right; color: #ffe066; }
#status { margin-top: 4px; font-size: 11px; border-radius: 6px; padding: 0 6px; height: 0; overflow: hidden; transition: height 0.2s; }
#status.on { height: auto; padding: 3px 6px; }
#status.meeting { background: rgba(150,150,160,0.3); color: #eee; }
#status.spec { background: rgba(60,200,150,0.25); color: #9effd8; }
#status.boost { background: rgba(255,92,138,0.25); color: #ffc2d4; }
#status.rush { background: rgba(255,140,60,0.28); color: #ffd7a8; font-weight: 700; }
.track { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 10px; color: #a99fd0; min-width: 0; }
.track .end { flex: none; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { position: relative; flex: 1; min-width: 40px; margin: 0 12px; height: 14px; background: rgba(255,255,255,0.08); border-radius: 7px; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #6a4cff, #ff5c8a); border-radius: 7px; opacity: 0.6; }
.pudding { position: absolute; top: -8px; left: 0; width: 26px; height: 24px; margin-left: -13px; transition: left 0.3s; }
.pudding::before { content: ""; position: absolute; left: 3px; right: 3px; bottom: 2px; height: 16px; background: #ffd36b; border-radius: 6px 6px 3px 3px; clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.pudding i { position: absolute; left: 6px; right: 6px; top: 4px; height: 6px; background: #7a3b12; border-radius: 4px 4px 2px 2px; }
.pudding::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff; border-radius: 2px; opacity: 0.8; }
.pudding.alt[data-item="pudding"]::before { background: rgba(120, 255, 200, 0.75); }
.pudding.alt[data-item="pudding"] i { background: rgba(60, 200, 150, 0.9); }
.pudding.alt:not([data-item="pudding"]) { filter: hue-rotate(150deg) saturate(1.4); }
/* 案件ごとの絵(26×24 の中に描く。エンディングでは拡大して使う) */
.pudding[data-item="remote"]::before { left: 8px; right: 8px; top: 0; bottom: 0; height: auto; background: #2d2d3a; border: 1px solid #8a8aa0; border-radius: 4px; clip-path: none; }
.pudding[data-item="remote"] i { left: 11px; right: 11px; top: 3px; height: 4px; background: #ff4d4d; border-radius: 50%; }
.pudding[data-item="remote"]::after { left: 10px; right: 10px; top: 10px; bottom: 3px; height: auto; border-radius: 1px; opacity: 1; background: repeating-linear-gradient(180deg, #b7c3ff 0 2px, transparent 2px 4px); }
.pudding[data-item="trash"]::before { left: 3px; right: 3px; bottom: 0; height: 17px; background: #5a6f9a; border-radius: 9px 9px 6px 6px; clip-path: none; }
.pudding[data-item="trash"] i { left: 9px; right: 9px; top: 0; height: 9px; background: #5a6f9a; border-radius: 2px; clip-path: polygon(0 0, 100% 0, 65% 100%, 35% 100%); }
.pudding[data-item="trash"]::after { left: 7px; right: 13px; bottom: 9px; height: 3px; opacity: 0.35; }
.pudding[data-item="soy"]::before { left: 8px; right: 8px; bottom: 0; height: 17px; background: #3b160a; border-radius: 4px 4px 2px 2px; clip-path: none; border: 1px solid #8a4a2a; }
.pudding[data-item="soy"] i { left: 10px; right: 10px; top: 0; height: 7px; background: #e03030; border-radius: 2px; }
.pudding[data-item="soy"]::after { left: 9px; right: 9px; bottom: 5px; height: 5px; opacity: 0.85; border-radius: 1px; }
.pudding[data-item="alarm"]::before { left: 3px; right: 3px; top: 4px; bottom: 0; height: auto; background: #ffe066; border: 2px solid #d94040; border-radius: 50%; clip-path: none; }
.pudding[data-item="alarm"] i { left: 12px; right: 12px; top: 8px; height: 8px; background: #333; border-radius: 1px; }
.pudding[data-item="alarm"]::after { left: 0; right: 0; top: 0; bottom: auto; height: 8px; opacity: 1; border-radius: 0; background: radial-gradient(circle at 18% 70%, #d94040 3px, transparent 3.5px), radial-gradient(circle at 82% 70%, #d94040 3px, transparent 3.5px); }
#ticker { margin-top: 5px; font-size: 11px; color: #c9c0ea; height: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: 0.9; }
#ticker.flash { animation: tick 0.4s ease-out; }
@keyframes tick { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 0.9; } }

/* 下のお店 */
#shop { position: relative; display: flex; flex-direction: column; max-height: 48vh; min-height: 0; min-width: 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.08); padding: 8px 10px 6px; }
#throw { position: relative; width: 100%; border: 0; border-radius: 14px; padding: 10px 8px 8px; font-size: 24px; font-weight: 900; letter-spacing: 0.2em;
  background: linear-gradient(180deg, #ff6f9a, #e0356b); box-shadow: 0 4px 0 #8f1f45, 0 0 24px rgba(255, 92, 138, 0.35); color: #fff; }
#throw small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; opacity: 0.85; }
#throw em { position: absolute; right: 10px; top: 8px; font-size: 10px; font-style: normal; font-weight: 400; letter-spacing: 0; opacity: 0.85; }
#throw:active, #throw.press { transform: translateY(3px); box-shadow: 0 1px 0 #8f1f45, 0 0 30px rgba(255, 92, 138, 0.6); }
.tabs { display: flex; gap: 6px; margin: 8px 0 4px; }
.tabs button { flex: 1; border: 1px solid rgba(255,255,255,0.15); background: transparent; border-radius: 8px; padding: 5px; font-size: 13px; }
.tabs button.on { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
.tabs button .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5c8a; margin-left: 4px; vertical-align: 1px; }
.tabs button .dot.pending { background: #ffe066; }
.row.fresh { background: rgba(255,224,102,0.10); box-shadow: inset 3px 0 0 #ffe066; }
#moreHint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2; border: 0; border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 700;
  background: #ffe066; color: #1a1238; box-shadow: 0 4px 14px rgba(0,0,0,0.5); white-space: nowrap; animation: hintBob 1s ease-in-out infinite; }
@keyframes hintBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -3px); } }
.list { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; min-height: 0; padding-bottom: 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
.list .sub { font-size: 11px; color: #a99fd0; margin: 10px 2px 2px; }
.row.done { opacity: 0.55; }
.row.choice { display: block; padding: 8px 2px; border: 1px solid rgba(255,224,102,0.35); border-radius: 10px; margin: 4px 0 6px; background: rgba(255,224,102,0.06); }
.row.choice .ctitle { font-size: 13px; font-weight: 700; color: #ffe066; padding: 0 4px 6px; }
.row.choice .ctitle small { display: block; font-size: 10px; font-weight: 400; color: #a99fd0; }
.row.choice .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.row.choice .opt { border: 0; border-radius: 8px; padding: 6px 8px; background: #5b49d6; text-align: left; line-height: 1.3; }
.row.choice .opt b { display: block; font-size: 13px; }
.row.choice .opt span { display: block; font-size: 10.5px; color: #e3dcff; }
.row.choice .opt em { display: block; font-style: normal; font-size: 10px; color: #ffe066; margin-top: 2px; }
.row.choice .opt:disabled { cursor: default; }
.row.choice .opt.picked { background: #8a6d00; }
.row.choice .opt.dropped { opacity: 0.35; background: #3a2f78; }
.list.hidden { display: none; }
.row { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 6px 2px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.row .sw { width: 10px; height: 10px; border-radius: 50%; }
.row .nm { font-size: 14px; font-weight: 700; }
.row .nm small { font-weight: 400; font-size: 11px; color: #ffe066; margin-left: 6px; }
.row .tx { min-width: 0; }
.row .ds { font-size: 10.5px; color: #a99fd0; line-height: 1.35; }
.row .in { font-size: 10.5px; color: #c9c0ea; }
.row .btns { display: flex; gap: 4px; }
.row .btns button { border: 0; border-radius: 8px; padding: 6px 8px; font-size: 12px; background: #3a2f78; min-width: 58px; line-height: 1.2; }
.row .btns button b { display: block; font-size: 11px; font-weight: 400; color: #ffe066; white-space: nowrap; }
.row .btns button:disabled { opacity: 0.35; cursor: default; }
.row .btns button.can { background: #5b49d6; }
.row.locked { opacity: 0.4; }
.row.locked .btns { visibility: hidden; }

/* 浮かぶ文字・吹き出し・通知 */
#floats, #bubbles, #toasts { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#bubbles { z-index: 7; }
.float { position: absolute; font-weight: 800; font-size: 15px; color: #ffe066; text-shadow: 0 0 6px #000; animation: up 0.9s ease-out forwards; white-space: nowrap; }
@keyframes up { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -60px); opacity: 0; } }
.bubble { position: absolute; pointer-events: auto; background: #fff; color: #222; font-weight: 800; font-size: 16px; padding: 10px 14px; border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); transform: translate(-50%, -50%); animation: pop 0.3s ease-out, wob 1.2s ease-in-out infinite 0.3s; cursor: pointer; white-space: nowrap; }
.bubble.red { background: #ff4d6d; color: #fff; }
.bubble.red::after { border-top-color: #ff4d6d; }
.bubble.red small { color: #ffe0e6; }
.bubble::after { content: ""; position: absolute; left: 22px; bottom: -10px; border: 6px solid transparent; border-top: 8px solid #fff; }
.bubble small { display: block; font-size: 10px; font-weight: 400; color: #777; }
.bubble.reply { white-space: normal; max-width: min(80vw, 320px); text-align: center; }
.bubble.reply small { color: #5a4a00; font-size: 11px; font-weight: 700; margin-top: 2px; }
.bubble.reply { background: #ffe066; animation: pop 0.3s ease-out; }
.bubble.reply::after { border-top-color: #ffe066; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.3); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes wob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
#toasts { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: calc(48vh + 12px); gap: 6px; transition: opacity 0.2s; }
/* 差し戻しが出ているあいだは、ほかのお知らせを薄くして下に回す */
body.sendback #toasts { opacity: 0.25; z-index: 4; }
.bubble.red { font-size: 20px; padding: 12px 18px; z-index: 9; box-shadow: 0 0 0 4px rgba(255,77,109,0.35), 0 8px 26px rgba(0,0,0,0.5); }
.bubble .sbbar { display: block; height: 4px; margin-top: 6px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.bubble .sbbar i { display: block; height: 100%; background: #fff; transform-origin: left; animation: sbdrain linear forwards; }
@keyframes sbdrain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
body.sendback #tree { animation: redflash 1s ease-in-out infinite; }
@keyframes redflash { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 0 #f00) brightness(1.15) sepia(0.4) hue-rotate(-30deg); } }
.toast { max-width: min(92vw, 520px); background: rgba(255,255,255,0.95); color: #1a1238; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 12px; text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4); animation: toastIn 0.3s ease-out; line-height: 1.4; white-space: pre-line; }
.toast.gold { background: #ffe066; }
.toast.out { animation: toastOut 0.4s ease-in forwards; }
@keyframes toastIn { from { transform: translateY(10px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-10px); opacity: 0; } }

/* 最後の追い込み */
#view { position: relative; }
#rushBox { position: absolute; left: 50%; top: 4px; z-index: 4; transform: translateX(-50%); text-align: center; pointer-events: none; padding: 3px 12px 5px; border-radius: 12px;
  background: rgba(20, 8, 30, 0.6); width: max-content; max-width: 92%; max-height: calc(100% - 8px); overflow: hidden; }
#rushBox .rrow { display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
#rushHead { font-size: 12px; color: #ffd7a8; }
#rushNum { font-size: 30px; font-weight: 900; color: #ffb35c; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255,140,60,0.7); display: inline-block; line-height: 1.05; }
#rushNum.pop { animation: rpop 0.45s ease-out; }
@keyframes rpop { 0% { transform: scale(1.6); color: #fff; } 100% { transform: scale(1); } }
#rushUnit { font-size: 13px; color: #ffd7a8; }
#rushBox .heat { position: relative; height: 15px; margin: 2px 0 0; background: rgba(255,255,255,0.12); border-radius: 8px; overflow: hidden; min-width: 160px; }
#rushBox .heat i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ffb35c, #ff4d6d); transition: width 0.1s; }
#rushMul { position: relative; display: block; font-size: 10.5px; line-height: 15px; color: #fff; font-weight: 700; text-shadow: 0 0 3px #000; }
#rushMsg { font-size: 12px; font-weight: 700; color: #ffe066; max-width: min(84vw, 300px); max-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s, max-height 0.3s; line-height: 1.35; }
#rushMsg.on { max-height: 34px; opacity: 1; margin-top: 2px; }
#rushBox.final #rushNum { font-size: 40px; color: #fff; }
@media (min-width: 900px) { #rushBox { top: 46px; padding: 8px 18px 10px; } #rushHead { font-size: 14px; } #rushNum { font-size: 44px; } #rushBox.final #rushNum { font-size: 64px; } #rushMsg { font-size: 14px; } #rushMsg.on { max-height: 60px; } }
body.rush #throw { background: linear-gradient(180deg, #ffa25c, #e0503b); box-shadow: 0 4px 0 #8f3a1f, 0 0 30px rgba(255, 140, 60, 0.55); }
body.hide-ui #rushBox { display: none; }

#banner { position: fixed; left: 50%; top: 24%; transform: translate(-50%, -50%); z-index: 6; width: min(92vw, 460px); text-align: center; padding: 16px; border-radius: 16px;
  background: rgba(40, 40, 50, 0.94); border: 2px solid #999; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
#banner.hidden { display: none; }
#banner h2 { margin: 0 0 4px; font-size: 22px; }
#banner .agenda { font-size: 16px; font-weight: 700; color: #ffe066; margin: 6px 0; }
#banner p { margin: 4px 0; font-size: 13px; color: #ddd; }
#banner p.why { font-size: 12px; color: #ffe066; }
#banner .count { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
#banner button { margin-top: 8px; border: 0; border-radius: 10px; padding: 8px 16px; background: #ff5c8a; font-weight: 700; }
#banner.spec { background: rgba(20, 60, 50, 0.94); border-color: #78ffc8; }
#banner.spec .agenda { color: #78ffc8; font-size: 22px; }
#banner.shake { animation: shake 0.5s; }
@keyframes shake { 0%, 100% { transform: translate(-50%, -50%); } 20% { transform: translate(-53%, -50%) rotate(-2deg); } 40% { transform: translate(-47%, -50%) rotate(2deg); } 60% { transform: translate(-52%, -50%); } 80% { transform: translate(-48%, -50%); } }
body.meeting #tree { filter: grayscale(1) brightness(0.7); }

#corner { position: fixed; z-index: 8; right: 8px; top: 6px; display: flex; gap: 6px; align-items: center; font-size: 10px; color: #8d84b8; pointer-events: none; }
#corner button { pointer-events: auto; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); border-radius: 6px; padding: 2px 6px; font-size: 11px; }
#hint { display: none; }
body.hide-ui #corner { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
body.hide-ui #viewBtn { font-size: 14px; padding: 8px 16px; background: rgba(0,0,0,0.55); }

#modal, #ending { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(5, 3, 15, 0.75); }
#modal.hidden, #ending.hidden { display: none; }
.card { width: min(92vw, 460px); background: #1c1440; border: 1px solid rgba(255,255,255,0.15); border-radius: 18px; padding: 20px; text-align: center; box-shadow: 0 10px 50px rgba(0,0,0,0.6); }
.card h2 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 6px 0; font-size: 14px; line-height: 1.6; }
.card button { margin-top: 12px; border: 0; border-radius: 12px; padding: 10px 18px; font-size: 16px; font-weight: 800; background: linear-gradient(180deg, #ff6f9a, #e0356b); color: #fff; }
.card button small { display: block; font-size: 10px; font-weight: 400; }
#ending { background: rgba(5, 3, 15, 0.55); }
#ending .card { background: rgba(28, 20, 64, 0.92); }
#ending .line { opacity: 0; transform: translateY(8px); transition: all 0.6s; font-size: 16px; }
#ending .line.on { opacity: 1; transform: none; }
#ending .line.punch { font-size: 22px; font-weight: 900; color: #ffe066; }
#ending .stats { margin-top: 12px; font-size: 12px; color: #c9c0ea; text-align: left; display: inline-block; opacity: 0; transition: opacity 0.6s; }
#ending .stats.on { opacity: 1; }
#ending .bigpud { position: relative; width: 90px; height: 80px; margin: 6px auto 10px; transition: transform 0.5s, opacity 0.5s; }
#ending .bigpud .pudding { top: auto; bottom: 0; left: 50%; margin-left: -13px; transform: scale(3.2); transform-origin: 50% 100%; }
#ending .bigpud .pudding::before, #ending .bigpud .pudding i { transition: transform 0.5s, opacity 0.5s; transform-origin: 50% 100%; }
#ending .bigpud.eaten .pudding::before, #ending .bigpud.eaten .pudding i { transform: scaleY(0.05); opacity: 0; }
#ending .bigpud.eaten { animation: shake 0.4s; }
#ending .btnrow button.share { background: #1d9bf0; font-size: 14px; padding: 8px 16px; }
#ending .bigpud b { position: absolute; left: 0; right: 0; bottom: 14px; font-size: 13px; color: #ffe066; opacity: 0; transition: opacity 0.4s 0.4s; }
#ending .bigpud.eaten b { opacity: 1; }
#ending .btnrow { opacity: 0; transition: opacity 0.6s; }
#ending .btnrow.on { opacity: 1; }

/* PC: 左に数字、右にお店、真ん中に木 */
@media (min-width: 900px) {
  #ui { grid-template-rows: minmax(0, 1fr); grid-template-columns: 360px 1fr 400px; }
  #top { grid-column: 1; grid-row: 1; border-bottom: 0; border-right: 1px solid rgba(255,255,255,0.08); padding: 20px 18px; overflow-y: auto; }
  #view { grid-column: 2; grid-row: 1; }
  #shop { grid-column: 3; grid-row: 1; max-height: none; height: 100%; border-top: 0; border-left: 1px solid rgba(255,255,255,0.08); padding: 16px 14px; }
  .meta { padding-right: 0; }
  .req { font-size: 20px; margin: 8px 0 16px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat.wide { grid-column: auto; }
  .lbl { font-size: 12px; }
  .num { font-size: 22px; }
  .num.hot { font-size: 36px; }
  .num.tiny { font-size: 16px; white-space: normal; word-break: break-all; }
  .stat small { font-size: 12px; }
  .progress { margin-top: 18px; }
  .plabel { font-size: 13px; }
  .plabel b { font-size: 18px; }
  .pmeta { font-size: 12px; flex-direction: column; gap: 2px; }
  .pmeta span:last-child { text-align: left; }
  #status { font-size: 12px; }
  #ticker { margin-top: 16px; height: auto; white-space: normal; font-size: 13px; line-height: 1.5; min-height: 40px; }
  #throw { font-size: 30px; padding: 16px 8px 12px; }
  .row .nm { font-size: 15px; }
  .row .ds { font-size: 12px; }
  .row .in { font-size: 12px; }
  #corner { right: 414px; top: 10px; font-size: 11px; }
  #hint { display: inline; }
  #toasts { justify-content: flex-start; padding-bottom: 0; padding-top: 10vh; }
  #banner { top: 40%; }
}
