:root {
  --ink: #102c3c;
  --ink-soft: #456474;
  --navy: #0d2635;
  --navy-2: #132f40;
  --cream: #fff7e7;
  --paper: #fffcf5;
  --line: rgba(16, 44, 60, .13);
  --mint: #51d5a7;
  --mint-dark: #168765;
  --coral: #ff6f61;
  --gold: #ffc857;
  --sky: #67b9ff;
  --violet: #a68cff;
  --shadow: 0 24px 70px rgba(25, 55, 65, .16);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #f3e9d4; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(81, 213, 167, .19), transparent 24%),
    radial-gradient(circle at 94% 24%, rgba(255, 111, 97, .17), transparent 25%),
    linear-gradient(145deg, #fffaf0, #f3ead9 56%, #e8f1ec);
  font-family: "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

button, a { font: inherit; }
button { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.topbar {
  display: flex;
  width: min(1280px, calc(100% - 36px));
  min-height: 62px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--navy); font-size: 12px; font-weight: 1000; letter-spacing: .16em; text-decoration: none; }
.brand-mark { position: relative; display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 2px solid var(--navy); border-radius: 9px; color: var(--cream); background: var(--navy); box-shadow: inset 0 -7px 0 rgba(81, 213, 167, .2); }
.brand-mark::before, .brand-mark::after { position: absolute; width: 42px; height: 15px; border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); content: ""; }
.brand-mark::before { transform: rotate(90deg); }
.brand-mark i { position: absolute; inset: 4px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; }
.brand-mark b { position: relative; z-index: 1; font-size: 13px; }

.top-actions { display: flex; gap: 8px; }
.top-button { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(16,44,60,.18); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.56); font-size: 10px; font-weight: 900; cursor: pointer; backdrop-filter: blur(8px); }
.top-button:hover { border-color: var(--mint-dark); background: #fff; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(670px, 1fr);
  gap: clamp(22px, 4vw, 58px);
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 28px;
  align-items: center;
}

.intro { padding: 10px 3px; }
.eyebrow { margin: 0 0 9px; color: var(--mint-dark); font-size: 10px; font-weight: 1000; letter-spacing: .18em; }
.intro h1 { margin: 0; font-size: clamp(40px, 4.2vw, 62px); line-height: 1.06; letter-spacing: -.055em; }
.intro h1 em { color: var(--coral); font-style: normal; white-space: nowrap; }
.lead { margin: 17px 0 10px; color: var(--ink-soft); font-size: 14px; font-weight: 800; line-height: 1.8; }

.hero-hotel { position: relative; width: 245px; height: 170px; margin: 15px auto; }
.hero-glow { position: absolute; inset: 22px 13px 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,87,.52), rgba(255,200,87,0) 68%); filter: blur(8px); }
.hero-sign { position: absolute; top: 4px; left: 81px; display: grid; width: 86px; height: 80px; place-items: center; border: 5px solid #e2aa3d; border-radius: 22px; color: #5effcb; background: var(--navy); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 12px 25px rgba(13,38,53,.24); }
.hero-sign::before { position: absolute; top: -15px; width: 7px; height: 17px; border-radius: 5px; background: #e2aa3d; content: ""; }
.hero-sign i { position: absolute; top: -23px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.hero-sign b { font-size: 28px; }
.hero-sign small { position: absolute; bottom: 7px; color: #fff0c7; font-size: 6px; letter-spacing: .12em; }
.hero-bellhop { position: absolute; bottom: 12px; left: 91px; width: 67px; height: 77px; border: 4px solid #cc443c; border-radius: 26px 26px 19px 19px; background: var(--coral); box-shadow: 0 11px 20px rgba(70,43,35,.22); }
.hero-bellhop::before { position: absolute; top: -12px; left: 6px; width: 48px; height: 17px; border: 4px solid #cc443c; border-radius: 18px 18px 7px 7px; background: var(--coral); content: ""; }
.hero-bellhop span { position: absolute; top: 16px; left: 7px; display: grid; width: 45px; height: 31px; place-items: center; border-radius: 10px; color: #62efcb; background: #0a2432; font-size: 10px; font-weight: 1000; }
.hero-bellhop i::before, .hero-bellhop i::after { position: absolute; bottom: -10px; width: 20px; height: 15px; border-radius: 6px; background: var(--navy); content: ""; }
.hero-bellhop i::before { left: 1px; }
.hero-bellhop i::after { right: 1px; }
.hero-rooms { position: absolute; right: 5px; bottom: 0; left: 5px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; height: 45px; padding: 7px; border: 3px solid #c59643; border-radius: 12px; background: #17384a; box-shadow: 0 9px 18px rgba(13,38,53,.22); }
.hero-rooms i { border: 2px solid rgba(255,255,255,.25); border-radius: 5px 5px 2px 2px; background: #fff4dc; }
.hero-rooms .room-mint { background: var(--mint); }
.hero-rooms .room-coral { background: var(--coral); }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.feature-list li { min-width: 0; padding: 9px 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.48); text-align: center; }
.feature-list b { display: block; color: var(--coral); font-size: 21px; line-height: 1; }
.feature-list span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 8px; font-weight: 800; line-height: 1.45; }
.save-note { margin: 11px 0 0; color: #718489; font-size: 9px; text-align: center; }

.game-panel { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 27px; color: #f6f4e9; background: var(--navy); box-shadow: var(--shadow); isolation: isolate; }
.circuit-pattern { position: absolute; z-index: -1; inset: 0; opacity: .22; background-image: linear-gradient(90deg, transparent 47%, rgba(81,213,167,.18) 48%, rgba(81,213,167,.18) 50%, transparent 51%), linear-gradient(0deg, transparent 47%, rgba(255,200,87,.1) 48%, rgba(255,200,87,.1) 50%, transparent 51%); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 66%); }

.status-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,.11); background: rgba(5,21,30,.78); }
.status-bar > div { min-width: 0; padding: 10px 13px; border-right: 1px solid rgba(255,255,255,.08); }
.status-bar > div:last-child { border-right: 0; }
.status-bar small { display: block; color: #7893a2; font-size: 7px; font-weight: 1000; letter-spacing: .13em; }
.status-bar strong { display: block; margin-top: 2px; overflow: hidden; color: #f9f6e9; font-size: 16px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.status-bar .reputation { color: var(--coral); font-size: 13px; letter-spacing: 1px; }

.stage-progress { padding: 8px 13px 9px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(12,41,55,.75); }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 7px; font-weight: 1000; letter-spacing: .12em; }
.progress-copy span { color: var(--mint); }
.progress-copy b { color: #99adba; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold), var(--coral)); transition: width .3s ease; }

.hotel-floor { display: grid; grid-template-columns: minmax(225px, .78fr) minmax(410px, 1.55fr); gap: 10px; padding: 11px; }
.front-desk, .memory-console { min-width: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(7,25,35,.76); }
.front-desk { padding: 10px; }
.bellhop-message { display: flex; gap: 8px; align-items: center; min-height: 39px; padding: 6px 8px; border: 1px solid rgba(81,213,167,.19); border-radius: 10px; background: rgba(81,213,167,.055); }
.bellhop-message p { margin: 0; color: #c2d8d9; font-size: 9px; font-weight: 800; line-height: 1.45; }
.mini-bellhop { position: relative; display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border: 2px solid #d64b42; border-radius: 9px; color: var(--mint); background: var(--coral); }
.mini-bellhop::before { position: absolute; top: -5px; width: 19px; height: 6px; border-radius: 5px 5px 1px 1px; background: var(--coral); content: ""; }
.mini-bellhop i { position: absolute; inset: 5px 3px; border-radius: 4px; background: var(--navy); }
.mini-bellhop b { position: relative; font-size: 8px; }

.guest-card { --guest: var(--mint); position: relative; display: grid; grid-template-columns: 65px 1fr; gap: 10px; min-height: 112px; margin-top: 9px; padding: 13px 10px; align-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--guest) 52%, transparent); border-radius: 15px; background: linear-gradient(135deg, color-mix(in srgb, var(--guest) 18%, transparent), rgba(255,255,255,.025)); }
.guest-card::after { position: absolute; right: -26px; bottom: -40px; width: 120px; height: 120px; border: 17px solid color-mix(in srgb, var(--guest) 12%, transparent); border-radius: 50%; content: ""; }
.guest-card.type-paint { --guest: var(--coral); }
.guest-card.type-music { --guest: var(--gold); }
.guest-card.type-game { --guest: var(--sky); }
.guest-card.type-cloud { --guest: var(--violet); }
.guest-card.is-waiting { --guest: #7e98a5; }
.guest-card.is-vip { box-shadow: inset 0 0 0 1px rgba(255,200,87,.42), 0 0 22px rgba(255,200,87,.07); }
.vip-label { position: absolute; top: 7px; right: 8px; z-index: 2; padding: 2px 6px; border-radius: 999px; color: #3c2a00; background: var(--gold); font-size: 7px; font-weight: 1000; letter-spacing: .1em; }
.guest-icon { position: relative; z-index: 1; display: grid; width: 60px; height: 68px; place-items: center; border: 3px solid color-mix(in srgb, var(--guest) 70%, #fff); border-radius: 24px 24px 17px 17px; color: #0a2a38; background: var(--guest); box-shadow: inset 0 -8px 0 rgba(0,0,0,.08), 0 8px 14px rgba(0,0,0,.17); font-size: 25px; font-weight: 1000; }
.guest-icon::before { position: absolute; top: 7px; right: 7px; left: 7px; height: 30px; border-radius: 10px; background: #0a2634; content: ""; }
.guest-icon::after { position: absolute; top: 18px; left: 20px; width: 5px; height: 5px; border-radius: 50%; background: var(--guest); box-shadow: 15px 0 0 var(--guest); content: ""; }
.guest-copy { position: relative; z-index: 1; min-width: 0; }
.guest-copy > small { color: color-mix(in srgb, var(--guest) 85%, #fff); font-size: 7px; font-weight: 1000; letter-spacing: .14em; }
.guest-copy h2 { margin: 2px 0 8px; overflow: hidden; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.guest-needs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.guest-needs span { padding: 5px; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(0,0,0,.13); }
.guest-needs small { display: block; color: #7f9aa7; font-size: 6px; }
.guest-needs b { display: block; margin-top: 2px; color: #fff8e7; font-size: 10px; }

.next-section { margin-top: 9px; }
.section-label { display: block; margin-bottom: 5px; color: #668493; font-size: 7px; font-weight: 1000; letter-spacing: .15em; }
.next-guests { display: flex; min-height: 39px; gap: 5px; }
.next-chip { --guest: var(--mint); display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr 1fr; min-width: 56px; padding: 4px; border: 1px solid color-mix(in srgb, var(--guest) 30%, transparent); border-radius: 9px; color: #dae7e7; background: color-mix(in srgb, var(--guest) 7%, transparent); }
.next-chip.type-paint { --guest: var(--coral); }
.next-chip.type-music { --guest: var(--gold); }
.next-chip.type-game { --guest: var(--sky); }
.next-chip.type-cloud { --guest: var(--violet); }
.next-chip i { grid-row: 1 / 3; display: grid; place-items: center; color: var(--guest); font-size: 14px; font-style: normal; }
.next-chip b { font-size: 10px; line-height: 1; }
.next-chip small { color: #7894a1; font-size: 7px; line-height: 1; }
.next-empty { display: grid; flex: 1; place-items: center; border: 1px dashed rgba(255,255,255,.1); border-radius: 9px; color: #6b8794; font-size: 8px; }

.desk-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6px; margin-top: 9px; }
.desk-actions button { display: grid; grid-template-columns: 29px 1fr; min-height: 52px; padding: 7px; align-items: center; border-radius: 11px; color: #f7f5ec; background: transparent; cursor: pointer; }
.desk-actions button span { grid-row: 1 / 3; font-size: 22px; }
.desk-actions button b { font-size: 9px; }
.desk-actions button small { color: #7e98a5; font-size: 7px; }
.compact-button { border: 1px solid rgba(81,213,167,.34); }
.compact-button span { color: var(--mint); }
.reject-button { border: 1px solid rgba(255,111,97,.29); }
.reject-button span { color: var(--coral); }
.desk-actions button:hover:not(:disabled) { background: rgba(255,255,255,.055); }
.desk-actions button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .36; }

.memory-console { padding: 12px; }
.console-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.console-kicker { margin: 0; color: var(--mint); font-size: 6px; font-weight: 1000; letter-spacing: .14em; }
.console-head h2 { margin: 2px 0 0; font-size: 18px; }
.combo-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(255,200,87,.27); border-radius: 999px; color: var(--gold); background: rgba(255,200,87,.06); font-size: 8px; font-weight: 1000; }
.combo-badge.is-hot { color: #2b1c00; background: var(--gold); box-shadow: 0 0 16px rgba(255,200,87,.35); animation: pulse 1s infinite; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 8px; }
.metrics div { padding: 7px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(255,255,255,.025); }
.metrics small { display: block; color: #7894a1; font-size: 7px; }
.metrics b { display: block; margin-top: 2px; color: #f9f7ec; font-size: 14px; }
.metrics b.is-warning { color: var(--coral); }

.memory-shell { padding: 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(2,16,23,.66); box-shadow: inset 0 0 25px rgba(0,0,0,.22); }
.memory-address { display: flex; gap: 7px; align-items: center; margin: 0 1px 6px; color: #587786; font-size: 5px; font-weight: 1000; letter-spacing: .1em; }
.memory-address i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--mint), #315465, var(--coral)); }
.memory-grid { display: grid; grid-template-columns: repeat(var(--room-count), minmax(0, 1fr)); gap: 2px; width: 100%; }
.memory-room { position: relative; display: grid; min-width: 0; height: clamp(63px, 7vw, 84px); padding: 3px 1px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 5px 5px 3px 3px; color: #547383; background: rgba(255,255,255,.035); cursor: pointer; transition: transform .13s ease, border-color .13s ease, background .13s ease; }
.memory-room::before { position: absolute; top: 4px; right: 18%; left: 18%; height: 3px; border-radius: 3px; background: currentColor; content: ""; opacity: .36; }
.memory-room.is-free:hover, .memory-room.is-cursor { z-index: 2; border-color: var(--gold); transform: translateY(-3px); }
.memory-room.can-fit { border-color: rgba(81,213,167,.45); box-shadow: inset 0 0 0 1px rgba(81,213,167,.08); }
.memory-room.is-preview { color: #113a35; border-color: var(--mint); background: rgba(81,213,167,.55); }
.memory-room.is-cursor::after { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); content: ""; }
.memory-room.is-used { --guest: var(--mint); cursor: default; color: #092c2f; border-color: color-mix(in srgb, var(--guest) 80%, #fff); background: linear-gradient(180deg, color-mix(in srgb, var(--guest) 92%, #fff), var(--guest)); box-shadow: inset 0 -10px 0 rgba(0,0,0,.075), 0 0 13px color-mix(in srgb, var(--guest) 15%, transparent); }
.memory-room.type-paint { --guest: var(--coral); }
.memory-room.type-music { --guest: var(--gold); }
.memory-room.type-game { --guest: var(--sky); }
.memory-room.type-cloud { --guest: var(--violet); }
.memory-room.is-used:not(.group-start) { border-top-left-radius: 1px; border-bottom-left-radius: 1px; }
.memory-room.is-used:not(.group-end) { border-top-right-radius: 1px; border-bottom-right-radius: 1px; }
.room-icon { position: relative; z-index: 1; font-size: clamp(11px, 1.5vw, 18px); font-weight: 1000; }
.memory-room small { position: absolute; right: 1px; bottom: 2px; left: 1px; overflow: hidden; color: rgba(5,34,39,.72); font-size: 5px; font-weight: 1000; text-overflow: clip; white-space: nowrap; }
.join-mark { color: rgba(5,34,39,.42); font-size: 13px; }
.address { margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 6px; font-weight: 800; }
.memory-legend { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 7px; color: #63808e; font-size: 6px; }
.memory-legend span { display: inline-flex; gap: 3px; align-items: center; }
.memory-legend i { width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 2px; background: rgba(255,255,255,.04); }
.memory-legend .legend-used { background: var(--sky); }
.memory-legend .legend-fit { border-color: var(--mint); box-shadow: inset 0 0 0 1px rgba(81,213,167,.24); }

.night-button { display: grid; grid-template-columns: 38px 1fr; width: 100%; min-height: 61px; margin-top: 9px; padding: 8px; align-items: center; border: 1px solid rgba(255,200,87,.33); border-radius: 12px; color: #fff7e3; background: linear-gradient(100deg, rgba(255,200,87,.12), rgba(81,213,167,.08)); cursor: pointer; }
.night-button span { grid-row: 1 / 3; color: var(--gold); font-size: 28px; }
.night-button b { font-size: 11px; }
.night-button small { color: #829daa; font-size: 7px; }

.learning-note { min-height: 61px; margin-top: 9px; padding: 9px 10px; border-left: 3px solid var(--gold); border-radius: 3px 10px 10px 3px; background: rgba(255,200,87,.055); }
.learning-note b { display: block; color: #f5d889; font-size: 9px; }
.learning-note p { margin: 4px 0 0; color: #91aab5; font-size: 8px; line-height: 1.55; }

.panel-footer { display: flex; min-height: 42px; padding: 7px 12px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); background: rgba(4,19,27,.72); }
.panel-footer > span { overflow: hidden; color: #617e8d; font-size: 7px; font-weight: 900; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.panel-footer > div { display: flex; gap: 4px; }
.panel-footer button { min-height: 28px; border: 0; border-radius: 7px; color: #819ba7; background: rgba(255,255,255,.055); font-size: 7px; font-weight: 900; cursor: pointer; }

.toast { position: absolute; z-index: 20; right: 50%; bottom: 52px; max-width: calc(100% - 30px); padding: 8px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #fff; background: #173d4c; box-shadow: 0 10px 30px rgba(0,0,0,.32); font-size: 9px; font-weight: 900; opacity: 0; pointer-events: none; transform: translate(50%, 9px); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.toast.tone-good { color: #092f29; background: var(--mint); }
.toast.tone-gold { color: #372600; background: var(--gold); }
.toast.tone-bad { background: #b94745; }

.screen { position: absolute; z-index: 15; inset: 0; display: none; padding: 15px; place-items: center; overflow-y: auto; background: rgba(3,17,24,.88); backdrop-filter: blur(8px); }
.screen.is-visible { display: grid; }
.screen-card { width: min(440px, 100%); max-height: 100%; overflow-y: auto; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: #f8f5eb; background: linear-gradient(145deg, #153b4c, #0b2432); box-shadow: 0 22px 70px rgba(0,0,0,.38); text-align: center; }
.screen-kicker { margin: 0; color: var(--mint); font-size: 7px; font-weight: 1000; letter-spacing: .16em; }
.screen-card h2 { margin: 5px 0 7px; font-size: 24px; line-height: 1.25; }
.screen-card > p:not(.screen-kicker) { margin: 7px 0; color: #a9c0c9; font-size: 10px; line-height: 1.65; }
.screen-card > p b { color: var(--gold); }

.start-bellhop { position: relative; width: 72px; height: 58px; margin: 0 auto 4px; }
.start-bellhop > span { position: absolute; right: 12px; bottom: 0; display: grid; width: 48px; height: 47px; place-items: center; border: 3px solid #ce4c43; border-radius: 17px 17px 12px 12px; color: var(--mint); background: var(--coral); }
.start-bellhop > span::before { position: absolute; top: -8px; width: 35px; height: 10px; border-radius: 10px 10px 3px 3px; background: var(--coral); content: ""; }
.start-bellhop i { position: absolute; inset: 9px 5px; border-radius: 7px; background: var(--navy); }
.start-bellhop b { position: relative; font-size: 10px; }
.start-bellhop em { position: absolute; top: 0; left: -27px; padding: 4px 7px; border-radius: 8px 8px 2px 8px; color: #3b2900; background: var(--gold); font-size: 7px; font-style: normal; font-weight: 1000; transform: rotate(-7deg); }
.start-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 10px 0; }
.start-tips span { padding: 5px 7px; border: 1px solid rgba(81,213,167,.2); border-radius: 999px; color: #c5d9da; background: rgba(81,213,167,.055); font-size: 7px; font-weight: 800; }
.primary-button { min-height: 42px; padding: 9px 18px; border: 0; border-radius: 12px; color: #11342f; background: linear-gradient(135deg, var(--mint), #8ef1c9); box-shadow: 0 8px 18px rgba(81,213,167,.18); font-size: 10px; font-weight: 1000; cursor: pointer; }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.text-button { display: block; margin: 9px auto 0; border: 0; color: #8eabb5; background: transparent; font-size: 8px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.stamp-shelf { margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.stamp-shelf > small { color: #6f8e9a; font-size: 7px; font-weight: 1000; letter-spacing: .14em; }
.stamp-list { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.stamp { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: #57727e; background: rgba(0,0,0,.17); font-size: 13px; filter: grayscale(1); }
.stamp.is-earned { border-color: rgba(255,200,87,.48); color: var(--gold); background: rgba(255,200,87,.08); filter: none; box-shadow: 0 0 13px rgba(255,200,87,.1); }

.help-card { width: min(510px, 100%); text-align: left; }
.help-card .screen-kicker, .help-card h2 { text-align: center; }
.help-card ol { display: grid; gap: 6px; margin: 11px 0; padding: 0; list-style: none; }
.help-card li { display: grid; grid-template-columns: 27px 1fr; gap: 8px; align-items: center; padding: 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #b7ccd2; font-size: 9px; line-height: 1.5; }
.help-card li > b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #11332d; background: var(--mint); font-size: 11px; }
.fragment-demo { display: grid; grid-template-columns: repeat(5, 22px) 1fr; gap: 3px; align-items: center; padding: 8px; border: 1px solid rgba(255,200,87,.2); border-radius: 9px; background: rgba(255,200,87,.045); }
.fragment-demo > span { height: 29px; border-radius: 4px; }
.fragment-demo .used { background: var(--coral); }
.fragment-demo .free { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.fragment-demo p { margin: 0 0 0 5px; color: #9eb5bd; font-size: 8px; line-height: 1.45; }
.keyboard-note { margin: 9px 0 !important; color: #6f8e9a !important; font-size: 7px !important; text-align: center; }
.help-card .primary-button { display: block; margin: 9px auto 0; }

.upgrade-card { width: min(590px, 100%); }
.upgrade-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0 9px; }
.upgrade-option { display: flex; flex-direction: column; min-height: 145px; padding: 11px 8px; align-items: center; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; color: #f6f3e9; background: rgba(2,16,23,.42); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.upgrade-option:hover { border-color: var(--mint); transform: translateY(-3px); }
.upgrade-option > i { display: grid; width: 47px; height: 47px; margin-bottom: 8px; place-items: center; border: 1px solid var(--mint); border-radius: 14px; color: var(--mint); background: rgba(81,213,167,.08); font-size: 22px; font-style: normal; }
.upgrade-option b { font-size: 10px; }
.upgrade-option small { margin-top: 6px; color: #91a9b3; font-size: 8px; line-height: 1.5; }
.upgrade-note { color: #668591; font-size: 7px; }

.result-card { width: min(450px, 100%); }
.result-icon { font-size: 43px; filter: drop-shadow(0 0 14px rgba(255,200,87,.25)); }
.result-score { position: relative; display: flex; flex-direction: column; width: min(250px, 100%); margin: 10px auto; padding: 9px; border: 1px solid rgba(255,200,87,.3); border-radius: 13px; background: rgba(255,200,87,.055); }
.result-score small { color: #8e845f; font-size: 7px; font-weight: 1000; letter-spacing: .15em; }
.result-score strong { color: var(--gold); font-size: 29px; line-height: 1.2; }
.result-score em { position: absolute; top: -7px; right: -7px; display: none; padding: 3px 6px; border-radius: 7px; color: #342400; background: var(--gold); font-size: 7px; font-style: normal; font-weight: 1000; transform: rotate(5deg); }
.result-score.is-best em { display: block; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 9px 0 13px; }
.result-stats div { padding: 8px 4px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(0,0,0,.13); }
.result-stats small { display: block; color: #77929f; font-size: 6px; }
.result-stats b { display: block; margin-top: 3px; font-size: 14px; }

footer { padding: 0 16px 18px; color: #768a89; font-size: 8px; font-weight: 900; letter-spacing: .18em; text-align: center; }

@keyframes pulse { 50% { transform: scale(1.07); } }

@media (max-width: 1060px) {
  .page-shell { grid-template-columns: 1fr; width: min(820px, calc(100% - 24px)); }
  .intro { display: grid; grid-template-columns: 1fr 215px; align-items: center; }
  .intro .eyebrow, .intro h1, .intro .lead { grid-column: 1; }
  .hero-hotel { grid-column: 2; grid-row: 1 / span 3; transform: scale(.82); }
  .feature-list, .save-note { grid-column: 1 / -1; }
  .intro h1 { font-size: clamp(39px, 7vw, 58px); }
}

@media (max-width: 700px) {
  .topbar { width: calc(100% - 20px); min-height: 52px; }
  .brand { font-size: 9px; letter-spacing: .09em; }
  .brand-mark { width: 27px; height: 27px; }
  .brand-mark::before, .brand-mark::after { width: 34px; height: 12px; }
  .top-actions { gap: 4px; }
  .top-button { min-height: 32px; padding: 5px 8px; font-size: 8px; }
  .page-shell { width: min(500px, calc(100% - 14px)); gap: 12px; padding-top: 5px; }
  .intro { display: block; padding: 6px 3px; }
  .intro h1 { font-size: clamp(36px, 12.3vw, 52px); }
  .lead { margin: 9px 0 6px; font-size: 12px; }
  .hero-hotel { display: none; }
  .feature-list { margin-top: 8px; }
  .game-panel { border-radius: 20px; }
  .status-bar > div { padding: 7px 8px; }
  .status-bar small { font-size: 6px; }
  .status-bar strong { font-size: 12px; }
  .stage-progress { padding-right: 9px; padding-left: 9px; }
  .hotel-floor { grid-template-columns: 1fr; padding: 8px; }
  .front-desk { display: grid; grid-template-columns: minmax(0, 1fr) 133px; gap: 7px; padding: 8px; }
  .bellhop-message { grid-column: 1 / -1; }
  .guest-card { grid-template-columns: 53px 1fr; min-height: 98px; margin: 0; padding: 8px; }
  .guest-icon { width: 50px; height: 59px; }
  .guest-copy h2 { font-size: 13px; }
  .next-section { margin: 0; }
  .next-guests { display: grid; grid-template-columns: repeat(2, 1fr); min-height: 60px; }
  .next-chip { min-width: 0; }
  .next-chip:nth-child(n+3) { display: none; }
  .desk-actions { grid-column: 1 / -1; margin: 0; }
  .desk-actions button { min-height: 45px; }
  .memory-console { padding: 9px; }
  .memory-room { height: clamp(53px, 16vw, 69px); }
  .memory-room small { transform: rotate(-90deg); }
  .address { writing-mode: vertical-rl; }
  .panel-footer { padding-right: 8px; padding-left: 8px; }
  .screen { padding: 9px; }
  .screen-card { padding: 17px 13px; }
  .upgrade-options { grid-template-columns: 1fr; }
  .upgrade-option { display: grid; grid-template-columns: 46px 1fr; min-height: 67px; column-gap: 9px; text-align: left; }
  .upgrade-option > i { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; }
  .fragment-demo { grid-template-columns: repeat(5, 17px) 1fr; }
}

@media (max-width: 380px) {
  #help-button { width: 31px; overflow: hidden; white-space: nowrap; }
  .feature-list span { font-size: 7px; }
  .front-desk { grid-template-columns: minmax(0, 1fr) 115px; }
  .guest-card { grid-template-columns: 45px 1fr; }
  .guest-icon { width: 43px; height: 53px; }
  .guest-needs b { font-size: 8px; }
  .next-chip { grid-template-columns: 18px 1fr; }
  .console-head h2 { font-size: 16px; }
  .memory-shell { padding: 6px 4px; }
  .memory-grid { gap: 1px; }
  .memory-room { height: 50px; padding: 1px; border-radius: 3px; }
  .memory-room::before { right: 25%; left: 25%; }
  .room-icon { font-size: 9px; }
  .memory-room small { font-size: 4px; }
  .memory-legend { gap: 5px; }
  .panel-footer > span { max-width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
