:root { color-scheme: light; --ink: #2a2328; --muted: #6e626a; --rose: #aa5872; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 13px -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif; }
button { min-height: 44px; border: 0; border-radius: 8px; background: #f3f4f6; color: inherit; font: inherit; padding: 8px 12px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active { filter: brightness(.94); }
button:disabled { opacity: .5; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
button[aria-pressed="true"] { background: #eef0f3; outline: 2px solid var(--rose); outline-offset: -2px; font-weight: 700; }
[hidden] { display: none !important; }
p, h2 { margin: 0; }
.hotel { width: 100%; max-width: 450px; margin: auto; padding: 4px 12px calc(12px + env(safe-area-inset-bottom)); }
.stats, .goal, .front-heading { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.stats { font-size: 12px; font-variant-numeric: tabular-nums; }
.stats b { font-size: 16px; }
.stats button { padding: 6px 10px; }
.goal { font-size: 11px; color: var(--muted); margin: 3px 0; }
progress { height: 7px; border: 0; border-radius: 8px; accent-color: var(--rose); overflow: hidden; background: #eee; }
progress::-webkit-progress-bar { background: #eee; }
progress::-webkit-progress-value { background: var(--rose); }
.goal progress { flex: 1; min-width: 30px; }
.partner { display: flex; align-items: center; gap: 12px; min-height: 96px; }
.partner img { flex: none; width: 88px; height: 96px; object-fit: cover; object-position: center top; border-radius: 12px; background: #f3f4f6; }
.partner p { line-height: 1.65; margin-top: 5px; }
.partner > div { min-width: 0; }
.partner b { color: var(--muted); font-size: 11px; }
.role-bar { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.role-bar > span { font-size: 11px; flex: none; }
.role-bar > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 1; }
.role-bar button { padding: 6px; }
.task-line { min-height: 23px; font-size: 11px; color: var(--muted); padding: 5px 0; }
.floor { background: #f9f5f1; padding: 8px; border-radius: 12px; }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.rooms[data-expanded="true"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rooms[data-expanded="true"] .room { height: 104px; padding: 6px; }
.rooms[data-expanded="true"] .room-icon { display: none; }
.rooms[data-expanded="true"] .room-top { display: block; }
.rooms[data-expanded="true"] .room-note { display: block; min-height: 15px; }
.room { position: relative; min-width: 0; height: clamp(90px, 15svh, 116px); padding: 7px 9px; background: #fff; border: 2px solid #e7e1dc; border-radius: 8px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; }
.room:disabled { opacity: 1; color: var(--muted); }
.room[data-status="meal"] { background: #fff0e8; border-color: #d5b4a4; }
.room[data-status="dirty"] { background: #eef0f3; }
.room[data-urgent="true"] { border-color: #ad494e; }
.room[data-urgent="true"] .room-note, [data-danger="true"] { color: #a33b42; font-weight: 700; }
.room-top { display: flex; justify-content: space-between; font-size: 11px; }
.room-icon { font-size: 26px; align-self: center; line-height: 1; }
.room-label { font-size: 13px; font-weight: 600; text-align: center; }
.room-meter { width: 100%; height: 4px; }
.front { padding-top: 8px; }
.front-heading { font-size: 11px; color: var(--muted); }
.queue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-height: 43px; padding: 5px 0; }
.guest { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 11px; background: #f9f5f1; border-radius: 8px; padding: 4px; }
.guest small { font-size: 11px; }
.guest.urgent { color: #a33b42; background: #fff0ed; }
.guest span { font-size: 20px; }
.reception { width: 100%; background: #eef0f3; }
.player-task { display: flex; align-items: center; gap: 8px; padding-top: 8px; font-size: 11px; }
.player-task progress { flex: 1; }
.guidance { min-height: 40px; padding-top: 4px; }
.action { color: var(--rose); font-size: 12px; line-height: 1.5; }
.action:empty { display: none; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
[data-suggested="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.warning { color: #9c3036; font-size: 12px; line-height: 1.5; }
dialog { border: 0; border-radius: 12px; width: calc(100% - 32px); max-width: 410px; max-height: calc(100svh - 32px); padding: 20px; color: var(--ink); overflow-y: auto; }
dialog::backdrop { background: #2a23286b; }
dialog h2 { font-size: 19px; margin-bottom: 10px; }
dialog p { line-height: 1.65; margin-bottom: 10px; }
.panel-footer { position: sticky; bottom: -20px; background: #fff; padding: 10px 0 0; margin-top: 6px; }
.panel-partner { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-partner img { flex: none; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.panel-partner p { margin: 0; font-size: 13px; }
.instructions { color: var(--muted); font-size: 12px; }
.steps { display: flex; gap: 7px; justify-content: space-between; padding: 0; list-style-position: inside; font-size: 12px; font-weight: 600; }
.result-stats { margin: 12px 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; padding: 10px 0; border-block: 1px solid #eef0f3; }
.result-stats dt { font-size: 11px; color: var(--muted); }
.result-stats dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.help { margin-bottom: 12px; font-size: 12px; line-height: 1.7; }
.help summary { min-height: 44px; padding-block: 10px; }
.help ol { padding-left: 20px; }
.cast-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.cast-picker button { padding: 5px; font-size: 11px; background: #fff; }
.cast-picker img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cast-name { display: block; margin-top: 4px; }
.upgrade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.upgrade-buttons button { font-size: 12px; line-height: 1.5; }
#best, #bank { font-size: 12px; color: var(--muted); }
.primary { width: 100%; background: var(--rose); color: #fff; font-weight: 700; }
@media (max-height: 740px) {
    .partner { min-height: 72px; gap: 8px; }
    .partner img { width: 64px; height: 72px; }
    .partner p { font-size: 12px; line-height: 1.5; margin-top: 3px; }
    .room { height: 90px; }
    .rooms[data-expanded="true"] .room { height: 96px; }
    .role-bar { margin-top: 4px; }
    .guidance { min-height: 36px; }
    dialog { padding: 16px; }
    .panel-footer { bottom: -16px; }
}
@media (prefers-reduced-motion: no-preference) { .room { transition: background .15s; } }
