:root {
  --ink: #102a43;
  --muted: #61758a;
  --line: #c8d8e5;
  --paper: #f7fbfd;
  --panel: #ffffff;
  --cyan: #20b7d8;
  --cyan-dark: #087ea4;
  --blue: #3178c6;
  --pink: #e85aa5;
  --gold: #e6a817;
  --green: #21a179;
  --danger: #ce3f50;
  --navy: #12213b;
  --shadow: 0 12px 30px rgba(28, 66, 96, .12);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .88);
  --glass-line: rgba(255, 255, 255, .82);
  --glass-shadow: 0 18px 48px rgba(35, 72, 101, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #e4f4f7 0%, #edf0f8 52%, #f7ecf3 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid rgba(32, 183, 216, .45); outline-offset: 2px; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 6px; color: var(--cyan-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.brand-mark { display: flex; align-items: baseline; gap: 7px; font-weight: 900; }
.brand-mark span { color: #fff; font-size: 24px; }
.brand-mark strong { color: #ffe16a; font-size: 24px; }
.brand-mark.compact span, .brand-mark.compact strong { font-size: 19px; }

.btn, .icon-btn {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 6px;
  font-weight: 750;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn { padding: 0 16px; }
.btn svg, .icon-btn svg, .nav-btn svg, .mobile-nav svg { width: 18px; height: 18px; }
.btn:hover:not(:disabled), .icon-btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled), .icon-btn:active:not(:disabled) { transform: translateY(0); }
.btn.primary { color: #fff; background: var(--cyan-dark); box-shadow: 0 5px 12px rgba(8, 126, 164, .22); }
.btn.secondary { color: var(--ink); background: #e7f4f8; border-color: #bdd9e4; }
.btn.ghost { color: var(--cyan-dark); background: transparent; border-color: var(--line); }
.btn.danger, .btn.ghost.danger { color: var(--danger); border-color: #e8b7bd; }
.btn.danger-solid { color: #fff; background: var(--danger); }
.icon-btn { width: 42px; padding: 0; color: var(--ink); background: #fff; border-color: var(--line); }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 560px) 1fr;
  overflow: hidden;
  background: linear-gradient(120deg, #087ea4 0 44%, #d9f4fa 44% 100%);
}
.auth-copy { padding: clamp(36px, 7vw, 92px); display: flex; flex-direction: column; justify-content: center; color: #fff; }
.auth-copy .eyebrow { margin-top: 70px; color: #a9ecf8; }
.auth-copy h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: .98; }
.auth-lead { max-width: 480px; margin: 22px 0 28px; color: #d5f4fa; font-size: 18px; line-height: 1.6; }
.auth-form { max-width: 410px; }
.auth-form label, .field { display: grid; gap: 7px; margin-bottom: 13px; font-size: 13px; font-weight: 750; }
.auth-form input, .field input, .composer input, .riddle-answer input {
  width: 100%; min-height: 46px; padding: 0 13px; color: var(--ink); background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.78); border-radius: 6px; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 16px rgba(9,70,92,.09);
}
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32, 183, 216, .18); }
.auth-actions { display: flex; gap: 10px; margin-top: 18px; }
.auth-shell .btn.secondary { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); }
.form-message { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-weight: 700; }
.auth-shell .form-message { color: #fff2a6; }
.mobile-arona { display: none; }
.auth-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 0; }
.auth-visual::before { content: ""; position: absolute; inset: 8% 8% 12%; border: 1px solid rgba(8,126,164,.22); background: rgba(255,255,255,.32); }
.auth-visual img { position: relative; z-index: 1; width: min(620px, 82%); max-height: 88vh; object-fit: contain; object-position: bottom; filter: drop-shadow(0 25px 24px rgba(16,42,67,.2)); }
.arona-speech { position: absolute; z-index: 2; top: 16%; left: 8%; max-width: 260px; padding: 16px; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-line); border-left: 5px solid var(--pink); box-shadow: var(--glass-shadow); font-weight: 750; backdrop-filter: blur(18px) saturate(145%); }

.app { min-height: 100vh; display: grid; grid-template-columns: 92px 1fr; grid-template-rows: 76px 1fr; }
.topbar { grid-column: 1 / 3; position: relative; z-index: 40; display: grid; grid-template-columns: 52px minmax(160px, 1fr) auto auto auto 44px; align-items: center; gap: 14px; padding: 10px 22px; color: #fff; background: rgba(18, 33, 59, .88); border-bottom: 1px solid rgba(126, 225, 244, .6); box-shadow: 0 8px 28px rgba(16,42,67,.18); backdrop-filter: blur(22px) saturate(145%); }
.profile-button { width: 48px; height: 48px; padding: 0; overflow: hidden; background: #d9f4fa; border: 2px solid #fff; border-radius: 50%; }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.identity { min-width: 0; display: grid; }
.identity span { overflow: hidden; text-overflow: ellipsis; font-weight: 850; white-space: nowrap; }
.identity small { display: flex; align-items: center; gap: 6px; color: #9fdce8; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; background: #4be0a5; border-radius: 50%; box-shadow: 0 0 0 3px rgba(75, 224, 165, .13); }
.wallet { min-width: 116px; padding: 7px 12px; color: var(--ink); background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.76); border-left: 4px solid var(--gold); border-radius: 5px; box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(3,17,35,.16); }
.wallet small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.wallet strong { font-size: 18px; }
.topbar .icon-btn { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

.sidebar { grid-row: 2; position: relative; z-index: 10; padding: 14px 9px; background: rgba(22, 49, 78, .91); border-right: 1px solid rgba(255,255,255,.14); box-shadow: 8px 0 30px rgba(16,42,67,.12); backdrop-filter: blur(18px); }
.nav-btn { width: 74px; min-height: 62px; margin-bottom: 7px; display: grid; place-items: center; gap: 4px; color: #b9d1df; background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 700; }
.nav-btn:hover, .nav-btn.active { color: #fff; background: #087ea4; }
.nav-btn svg { width: 21px; height: 21px; }
.workspace { min-width: 0; padding: 24px; overflow: auto; background: linear-gradient(135deg, #eaf6f8 0%, #eef2f8 58%, #f7edf4 100%); }
.view { display: none; max-width: 1440px; margin: 0 auto; }
.view.active-view { display: block; }
.view h1, .view h2, .dialog h2, .dialog h3 { margin-top: 0; }

.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.welcome-panel { min-height: 350px; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 310px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); border-top: 4px solid rgba(32,183,216,.8); border-radius: 8px; box-shadow: var(--glass-shadow); backdrop-filter: blur(20px) saturate(135%); }
.welcome-copy { padding: clamp(26px, 4vw, 56px); align-self: center; }
.welcome-copy h1 { margin: 0; font-size: clamp(35px, 4.5vw, 64px); line-height: 1.02; }
.welcome-copy h1 span { color: var(--cyan-dark); }
.welcome-copy > p:not(.eyebrow) { max-width: 600px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.welcome-panel > img { width: 100%; height: 100%; max-height: 420px; align-self: end; object-fit: contain; object-position: bottom; background: #dff5fa; }
.command-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.quick-stats, .stats-grid { display: grid; gap: 10px; }
.quick-stats { grid-template-columns: 1fr; }
.quick-stats > div, .stats-grid > div { padding: 18px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 6px; box-shadow: var(--glass-shadow); backdrop-filter: blur(18px) saturate(135%); }
.quick-stats small, .stats-grid small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.quick-stats strong { display: block; margin-top: 5px; font-size: 25px; }
.machine-picker { grid-column: 1 / 3; padding: 22px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 8px; box-shadow: var(--glass-shadow); backdrop-filter: blur(18px) saturate(135%); }
.machine-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.machine-option { min-height: 82px; display: grid; grid-template-columns: 8px 1fr 20px; align-items: center; gap: 12px; padding: 13px; text-align: left; color: var(--ink); background: rgba(248,252,253,.68); border: 1px solid rgba(255,255,255,.9); border-radius: 6px; box-shadow: inset 0 1px 0 #fff; }
.machine-option.selected { border-color: var(--cyan-dark); box-shadow: inset 0 0 0 1px var(--cyan-dark); }
.machine-option div { display: grid; gap: 4px; }
.machine-option small { color: var(--muted); }
.machine-accent { align-self: stretch; border-radius: 3px; }
.machine-accent.cyan { background: var(--cyan); }.machine-accent.gold { background: var(--gold); }.machine-accent.pink { background: var(--pink); }

.section-heading, .slot-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading { margin-bottom: 18px; }
.section-heading h1, .slot-heading h1 { margin-bottom: 0; }
.status-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; color: #087052; background: #d9f5eb; border: 1px solid #a6dfca; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-badge.offline { color: #875d00; background: #fff3cf; border-color: #ead38d; }

.slot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
.slot-main, .paytable-panel, .assistant-panel, .arona-profile { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 8px; box-shadow: var(--glass-shadow); backdrop-filter: blur(20px) saturate(135%); }
.slot-main { padding: 22px; }
.reel-cabinet { position: relative; padding: 14px; background: #102a43; border: 5px solid #e6a817; border-radius: 8px; }
.reels { aspect-ratio: 5 / 2.7; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); overflow: hidden; background: #dcebf2; border: 2px solid #081b30; }
.reel-cell { min-width: 0; min-height: 0; display: grid; place-items: center; position: relative; padding: 5px; background: #f8fcfd; border-right: 1px solid #aac1d1; border-bottom: 1px solid #aac1d1; }
.reel-cell:nth-child(5n) { border-right: 0; }
.reel-cell:nth-child(n+11) { border-bottom: 0; }
.reel-cell.middle { background: #e7f8fb; box-shadow: inset 0 3px 0 rgba(32,183,216,.35), inset 0 -3px 0 rgba(32,183,216,.35); }
.reel-cell img { width: min(100%, 120px); height: min(100%, 120px); object-fit: cover; object-position: top; background: #fff; border: 2px solid #fff; border-radius: 6px; box-shadow: 0 4px 8px rgba(16,42,67,.22); }
.reels.spinning .reel-cell img { animation: reelPulse .13s linear infinite alternate; filter: blur(1px) brightness(1.1); }
@keyframes reelPulse { to { transform: translateY(5px) scale(.96); } }
.win-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(8,126,164,.78); font-size: clamp(52px, 9vw, 120px); font-weight: 950; text-shadow: 0 4px 0 #0b5572; }
.slot-message { min-height: 24px; margin: 14px 0; text-align: center; color: var(--cyan-dark); font-weight: 800; }
.slot-controls { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.bet-control { display: flex; align-items: center; gap: 9px; }
.bet-control > span { color: var(--muted); font-weight: 700; }.bet-control strong { min-width: 70px; text-align: center; font-size: 20px; }
.spin-button { min-width: 150px; min-height: 54px; color: #fff; background: var(--green); font-size: 19px; }
.paytable-panel { padding: 22px; }
.paytable { display: grid; gap: 8px; }
.paytable-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.terminal-note { display: flex; gap: 9px; margin-top: 24px; padding: 12px; color: var(--muted); background: #f2f7f9; border-left: 3px solid var(--cyan); font-size: 13px; }
.terminal-note svg { flex: 0 0 18px; }.terminal-note p { margin: 0; }

.student-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.student-card { min-width: 0; padding: 0; overflow: hidden; text-align: left; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 6px; box-shadow: 0 10px 26px rgba(35,72,101,.1), inset 0 1px 0 #fff; backdrop-filter: blur(14px); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.student-card:not(:disabled):hover { transform: translateY(-3px); border-color: rgba(32,183,216,.72); box-shadow: 0 16px 32px rgba(35,72,101,.16), inset 0 1px 0 #fff; }
.student-card:disabled { cursor: not-allowed; opacity: 1; }
.student-card img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; object-position: top; background: #dcebf2; }
.student-locked-art { width: 100%; aspect-ratio: 1 / 1; display: grid; place-items: center; color: #94a8b7; background: rgba(225,235,241,.58); }
.student-locked-art svg { width: 28px; height: 28px; }
.student-card span { display: block; padding: 10px; font-weight: 750; }
.student-card.locked img { filter: grayscale(1); opacity: .38; }
.student-card.locked span { color: var(--muted); }

.arona-workspace { min-height: 620px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
.arona-profile { padding: 22px; text-align: center; overflow: hidden; }
.arona-profile img { width: 100%; height: 380px; object-fit: contain; object-position: bottom; background: #e3f6fa; border-radius: 6px; }
.arona-profile h1 { margin: 14px 0 5px; }.arona-profile p { color: var(--muted); line-height: 1.5; }
.assistant-panel { min-width: 0; padding: 18px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: #e8f1f5; border-radius: 6px; }
.segmented button { min-height: 38px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-weight: 750; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(16,42,67,.12); }
.assistant-tab { display: none; }.assistant-tab.active { display: block; }
.chat-log { height: 430px; margin-top: 14px; padding: 16px; overflow: auto; background: #f6fafb; border: 1px solid var(--line); border-radius: 6px; }
.bubble { width: fit-content; max-width: 78%; margin: 9px 0; padding: 11px 13px; border-radius: 6px; line-height: 1.45; white-space: pre-wrap; }
.bubble.bot { color: #65335a; background: #fbe8f3; border-left: 3px solid var(--pink); }
.bubble.user { margin-left: auto; color: #075875; background: #ddf4f8; border-right: 3px solid var(--cyan); }
.composer { display: grid; grid-template-columns: 1fr 46px; gap: 9px; margin-top: 10px; }
.composer .send { color: #fff; background: var(--cyan-dark); }
#assistant-riddle { padding-top: 20px; }
.riddle-card { min-height: 150px; margin: 18px 0 12px; padding: 20px; background: #f6fafb; border: 1px solid var(--line); border-left: 5px solid var(--pink); border-radius: 6px; }
.riddle-card small { color: var(--pink); font-weight: 850; }.riddle-card p { font-size: 20px; line-height: 1.45; }
.riddle-answer { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }

.stats-grid { grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { min-height: 160px; display: flex; flex-direction: column; justify-content: flex-end; border-top: 4px solid var(--cyan); }
.stats-grid svg { width: 25px; height: 25px; margin-bottom: auto; color: var(--cyan-dark); }
.stats-grid strong { margin-top: 8px; font-size: 32px; }
.online-users { display: grid; gap: 10px; }
.online-user { display: grid; grid-template-columns: minmax(180px, 1fr) 130px auto 180px auto; gap: 8px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.online-user input { min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; }

.dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); border-radius: 8px; box-shadow: 0 24px 70px rgba(16,42,67,.35), inset 0 1px 0 #fff; backdrop-filter: blur(26px) saturate(145%); }
.dialog::backdrop { background: rgba(9, 25, 43, .66); }
.dialog-shell { padding: 22px; overflow: auto; }
.dialog-shell section { margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.dialog-shell input[type="file"] { width: 100%; margin: 0 0 10px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.compact-dialog { width: min(470px, calc(100vw - 24px)); }
.student-dialog { width: min(760px, calc(100vw - 24px)); }
.student-detail { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.student-detail > img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: top; background: #dcebf2; border: 1px solid var(--glass-line); border-radius: 6px; }
.student-detail-copy { min-width: 0; align-self: center; }
.student-detail-copy p { margin: 18px 0 22px; color: var(--muted); line-height: 1.65; }
.student-detail-copy .btn { width: fit-content; text-decoration: none; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { max-width: 350px; padding: 12px 15px; color: #fff; background: var(--navy); border-left: 4px solid var(--cyan); border-radius: 5px; box-shadow: var(--shadow); }
.toast.error { border-left-color: var(--danger); }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 52px minmax(120px, 1fr) auto auto 44px; }
  .topbar .brand-mark { display: none; }
  .lobby-grid { grid-template-columns: 1fr 260px; }
  .welcome-panel { grid-template-columns: 1fr 230px; }
  .slot-layout { grid-template-columns: 1fr; }
  .paytable-panel { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
  .paytable-panel .terminal-note { grid-column: 1 / 3; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .online-user { grid-template-columns: 1fr 120px auto; }
  .online-user input:nth-of-type(2), .online-user button:nth-of-type(2) { grid-row: 2; }
}

@media (max-width: 760px) {
  body { background: linear-gradient(150deg, #e6f5f8 0%, #eef1f8 55%, #f7edf4 100%); }
  .auth-shell { grid-template-columns: 1fr; background: #087ea4; }
  .auth-copy { min-height: 100svh; padding: 28px 22px 36px; justify-content: flex-start; }
  .auth-copy .brand-mark { margin-bottom: 34px; }
  .auth-copy .eyebrow { margin-top: 0; }
  .auth-copy h1 { font-size: clamp(42px, 14vw, 62px); }
  .auth-lead { margin: 16px 0 20px; font-size: 16px; line-height: 1.5; }
  .mobile-arona { height: 116px; margin: 0 0 22px; padding: 0 4px 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 106px; align-items: center; overflow: hidden; color: var(--ink); background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.86); border-left: 5px solid var(--pink); border-radius: 6px; box-shadow: 0 16px 36px rgba(5,61,83,.22), inset 0 1px 0 #fff; backdrop-filter: blur(18px) saturate(140%); }
  .mobile-arona div { display: grid; gap: 4px; }
  .mobile-arona strong { font-size: 17px; }
  .mobile-arona span { color: var(--muted); font-size: 12px; font-weight: 700; }
  .mobile-arona img { width: 106px; height: 124px; align-self: end; object-fit: contain; object-position: bottom; }
  .auth-visual { display: none; }
  .auth-actions { display: grid; }
  .app { display: block; padding-bottom: 70px; }
  .topbar { position: sticky; top: 0; z-index: 20; grid-template-columns: 44px minmax(0, 1fr) 90px 42px; min-height: 68px; padding: 8px 12px; gap: 9px; }
  .topbar .brand-mark { display: none; }
  .profile-button { width: 42px; height: 42px; }.identity small { display: none; }
  .wallet { min-width: 0; padding: 6px 8px; }.topbar .bet-wallet { display: none; }.wallet strong { font-size: 15px; }
  .sidebar { display: none; }
  .workspace { padding: 12px; overflow: visible; }
  .lobby-grid { display: block; }.welcome-panel { min-height: 0; display: block; }.welcome-panel > img { display: none; }.welcome-copy { padding: 24px 20px; }
  .quick-stats { grid-template-columns: repeat(3, 1fr); margin: 10px 0; }.quick-stats > div { padding: 12px 9px; }.quick-stats strong { font-size: 18px; }
  .machine-picker { padding: 16px; }.machine-list { grid-template-columns: 1fr; }
  .slot-main { padding: 12px; }.slot-heading { align-items: flex-start; }.slot-heading h1 { font-size: 22px; }
  .reel-cabinet { padding: 7px; border-width: 3px; }.reels { aspect-ratio: 5 / 3.25; }.reel-cell { padding: 2px; }.reel-cell img { border-radius: 3px; }
  .slot-controls { grid-template-columns: 1fr 1fr; }.bet-control { grid-column: 1 / 3; justify-content: center; }.spin-button { min-width: 0; }
  .paytable-panel { display: block; }.paytable-panel .terminal-note { grid-column: auto; }
  .arona-workspace { display: block; min-height: 0; }.arona-profile { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; text-align: left; }.arona-profile .status-badge { grid-column: 1 / 3; justify-self: start; }.arona-profile img { width: 90px; height: 110px; grid-row: 2 / 4; }.arona-profile h1 { margin: 0; }.arona-profile p { margin: 0; }
  .assistant-panel { padding: 12px; }.chat-log { height: 390px; }.bubble { max-width: 90%; }.riddle-answer { grid-template-columns: 1fr 1fr; }.riddle-answer input { grid-column: 1 / 3; }
  .student-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }.student-card span { padding: 7px; font-size: 12px; }
  .student-detail { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .student-detail-copy { display: contents; }
  .student-detail-copy .status-badge { align-self: start; justify-self: start; }
  .student-detail-copy p { grid-column: 1 / 3; margin: 0; line-height: 1.5; }
  .student-detail-copy .btn { grid-column: 1 / 3; width: 100%; }
  .student-detail > img { aspect-ratio: 1 / 1.15; }
  .stats-grid { grid-template-columns: 1fr 1fr; }.stats-grid > div { min-height: 130px; padding: 14px; }
  .online-user { grid-template-columns: 1fr; }.online-user input:nth-of-type(2), .online-user button:nth-of-type(2) { grid-row: auto; }
  .mobile-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 66px; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(18,33,59,.9); border-top: 1px solid rgba(126,225,244,.62); box-shadow: 0 -10px 30px rgba(16,42,67,.2); backdrop-filter: blur(22px) saturate(145%); }
  .mobile-nav button { display: grid; place-items: center; gap: 2px; color: #a8c3d4; background: transparent; border: 0; font-size: 10px; font-weight: 700; }.mobile-nav button.active { color: #fff; background: #087ea4; }
  .dialog-actions { flex-direction: column-reverse; }.dialog-actions .btn { width: 100%; }
}

@media (max-width: 390px) {
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-stats { grid-template-columns: 1fr; }
  .command-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
