:root { color-scheme: light; --ink: #17202a; --muted: #66717d; --line: #dfe5e8; --paper: #f7f8f5; --white: #fff; --coral: #e56c51; --teal: #228f8a; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html { scrollbar-gutter: stable; }.play-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 24px; }
.play-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
.subtitle { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.connection-state { border: 1px solid #acd8c7; background: #effaf4; color: #287455; padding: 9px 13px; font-size: 13px; white-space: nowrap; }


.search-box { display: flex; flex: 1 1 100%; }.search-box input { border-color: var(--line); }.search-box input { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--white); padding: 8px 10px; color: var(--ink); font: inherit; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 0 0; }
.task-toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }.task-toggle input { width: 18px; height: 18px; }
.entry-rule-summary { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.classic-footer { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; flex-wrap: wrap; }
.game-card { display: flex; min-height: 230px; flex-direction: column; border: 1px solid var(--line); background: var(--white); }.game-card-top, .game-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }.game-card-top { align-items: flex-start; border-bottom: 1px solid var(--line); }.game-card-title { flex: 1; min-width: 0; }.game-mark { flex: none; }.game-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }.game-card-title h2 { margin: 0; font-size: 20px; }.game-card-title .game-category { margin: 2px 0 0; }.game-card-body { flex: 1; padding: 12px 16px 14px; }
.game-mark { display: grid; width: 42px; height: 42px; place-items: center; background: var(--coral); color: white; font-size: 20px; font-weight: 800; }.game-card[data-accent="teal"] .game-mark { background: var(--teal); }.game-status, .game-category { color: var(--muted); font-size: 12px; }.game-status { font-weight: 700; }.game-card-body p:last-child { max-width: 34em; margin: 0; color: var(--muted); line-height: 1.7; }.game-card-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }.game-card-top .game-action { font-size: 14px; }.game-action { color: var(--ink); font-weight: 800; text-decoration: none; }.game-action:hover { color: var(--coral); }.game-card.planned { background: #fbfcfb; }.game-card.planned .game-action.disabled { color: #9ba5ab; }.empty-state { padding: 54px 0; color: var(--muted); text-align: center; }.play-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 12px; }.play-footer a { color: var(--ink); text-decoration: none; }
@media (max-width: 700px) { .play-shell { width: min(100% - 24px, 560px); padding-top: 20px; }.play-header, .play-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }.game-grid { grid-template-columns: 1fr; gap: 10px; }.game-card { min-height: 0; }.game-card-title h2 { font-size: 18px; }.classic-footer { align-items: flex-start; flex-direction: column; gap: 10px; }.search-box { width: 100%; }.search-box { align-items: stretch; flex-direction: column; gap: 7px; }.play-footer { flex-direction: column; } }
.game-card[data-accent="gold"] .game-mark { background: #c18a2d; }
.game-card-rooms { border-top: 1px solid var(--line); padding: 10px 16px 12px; }
.game-rooms-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.game-rooms-heading span:last-child { font-weight: 600; }
.game-rooms-empty { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.room-list { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 8px; }
.room-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--white); }
.game-card-rooms .room-list { gap: 6px; padding-top: 6px; max-height: 224px; overflow-y: auto; }
.game-card-rooms .room-row { padding: 8px 10px; }
.room-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.room-meta { margin-left: 8px; color: var(--muted); font-size: 12px; }
.room-status { color: var(--muted); font-size: 12px; }
.room-row-actions { display: flex; align-items: center; gap: 10px; }
.room-disabled { color: var(--muted); font-size: 12px; }
.secondary-button { border: 1px solid var(--line); padding: 7px 10px; text-decoration: none; }

/* 单机小游戏快捷栏：即点即玩入口，免登录直达；条目来自 /api/games 按类目过滤。 */
.quick-play-bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--white); padding: 10px 14px; margin-top: 4px; overflow-x: auto; }
.quick-play-bar[hidden] { display: none; }
.quick-play-bar::before { content: '快速开玩'; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; padding-right: 10px; border-right: 1px solid var(--line); }
.solo-item { display: flex; flex: none; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); color: var(--ink); font-weight: 800; text-decoration: none; }
.solo-item:hover { border-color: var(--coral); color: var(--coral); }
.solo-item .game-mark { width: 30px; height: 30px; font-size: 15px; }
.solo-item[data-accent="teal"] .game-mark { background: var(--teal); }
.solo-item[data-accent="gold"] .game-mark { background: #c18a2d; }
.solo-item[data-accent="coral"] .game-mark { background: var(--coral); }
.solo-name { white-space: nowrap; }
@media (max-width: 700px) { .quick-play-bar { padding: 8px 10px; gap: 8px; } }
@media (max-width: 700px) { .room-row { align-items: stretch; flex-direction: column; }.room-row-actions { justify-content: flex-end; }.game-card-rooms { padding: 10px 12px 12px; } }
