:root {
  --ink: #17233e;
  --paper: #fffaf0;
  --cream: #f7eddc;
  --yellow: #ffd84d;
  --coral: #ff5e58;
  --blue: #356df3;
  --cyan: #66dceb;
  --mint: #53d59b;
  --violet: #8c6bf2;
  --shadow: 0 16px 0 rgba(23, 35, 62, .12);
  --line: 3px solid var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.site-header {
  max-width: 1280px; height: 92px; margin: auto; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 47px; height: 54px; border: var(--line); border-radius: 12px; background: var(--yellow);
  display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 4px 4px 0 var(--ink); position: relative;
}
.brand-mark i { position: absolute; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; top: 6px; right: 5px; }
.brand-mark b { font: 800 31px/1 "Baloo 2"; }
.brand strong { font: 800 19px/1 "Baloo 2"; display: block; letter-spacing: .03em; }
.brand small { display: block; margin-top: 1px; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.online-pill { display: flex; align-items: center; gap: 8px; background: white; border: 2px solid var(--ink); border-radius: 99px; padding: 9px 13px; font-size: 11px; font-weight: 800; }
.online-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(83,213,155,.2); }
.sound-btn, .profile-chip { border: 2px solid var(--ink); background: white; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.sound-btn { width: 40px; height: 40px; border-radius: 50%; font-size: 21px; font-weight: 900; }
.profile-chip { border-radius: 99px; height: 43px; padding: 4px 13px 4px 4px; display: flex; align-items: center; gap: 8px; }
.profile-chip span { width: 31px; height: 31px; display: grid; place-items: center; background: var(--cyan); border: 2px solid var(--ink); border-radius: 50%; font: 800 11px/1 "Baloo 2"; }
.profile-chip b { font-size: 12px; }
main { border-top: 2px solid rgba(23,35,62,.08); }
.hero {
  max-width: 1280px; min-height: 590px; margin: auto; padding: 64px 30px 52px;
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 50px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 99px; background: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transform: rotate(-1deg); }
.eyebrow i { font-style: normal; }
h1 { margin: 20px 0 18px; font: 800 clamp(54px, 6vw, 88px)/.85 "Baloo 2"; letter-spacing: -.055em; }
h1 em { color: var(--coral); font-style: normal; text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); }
.hero-copy > p { max-width: 540px; margin: 0; font-size: 15px; line-height: 1.8; color: #526078; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; }
.btn { min-height: 55px; border: var(--line); border-radius: 15px; padding: 0 24px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:hover { box-shadow: 8px 8px 0 var(--ink); }
.btn-secondary { background: white; box-shadow: 4px 4px 0 var(--ink); }
.btn span { font-size: 21px; vertical-align: -1px; margin-right: 7px; }
.trust-row { display: flex; align-items: center; gap: 0; margin-top: 36px; }
.trust-row > span { display: flex; align-items: center; gap: 7px; padding: 0 18px; border-right: 2px solid #d7d2c8; }
.trust-row > span:first-child { padding-left: 0; }
.trust-row > span:last-child { border: 0; }
.trust-row b { font: 800 22px/1 "Baloo 2"; }
.trust-row small { color: #7d8799; font-size: 10px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.hero-stage { height: 470px; position: relative; border-radius: 50%; background: radial-gradient(circle, #fff 0 31%, #f6ead6 32% 56%, transparent 57%); }
.orbit { position: absolute; border: 2px dashed rgba(23,35,62,.16); border-radius: 50%; inset: 35px; }
.orbit-two { inset: 95px; }
.stage-card { position: absolute; width: 158px; height: 230px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 9px 11px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.stage-card::after { content: ""; position: absolute; width: 130px; height: 185px; border: 3px solid rgba(255,255,255,.6); border-radius: 50%; transform: rotate(27deg); }
.stage-card span { position: relative; z-index: 2; font: 800 55px/1 "Baloo 2"; }
.stage-card small { position: relative; z-index: 2; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.card-red { background: var(--coral); color: white; transform: rotate(-27deg); left: 12%; top: 116px; }
.card-blue { background: var(--blue); color: white; transform: rotate(-9deg); left: 30%; top: 83px; }
.card-yellow { background: var(--yellow); transform: rotate(13deg); right: 25%; top: 91px; }
.card-tka { background: var(--ink); color: white; transform: rotate(28deg); right: 7%; top: 126px; z-index: 4; }
.card-tka::before { content: ""; position: absolute; inset: 11px; border: 2px solid var(--yellow); border-radius: 14px; }
.card-tka i { font-size: 26px; color: var(--yellow); font-style: normal; z-index: 2; }
.card-tka strong { font: 800 57px/.9 "Baloo 2"; color: var(--yellow); z-index: 2; }
.card-tka span { font: 800 11px/1 "Plus Jakarta Sans"; letter-spacing: .12em; }
.score-float, .turn-float { position: absolute; z-index: 6; background: white; border: var(--line); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); padding: 9px 12px; display: flex; align-items: center; gap: 9px; }
.score-float { top: 26px; right: 26px; transform: rotate(2deg); }
.turn-float { left: 23px; bottom: 22px; transform: rotate(-2deg); }
.score-float i, .turn-float i { width: 35px; height: 35px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 9px; background: #fff0c4; font-style: normal; }
.turn-float i { background: #d8f9e7; }
.score-float span, .turn-float span { display: flex; flex-direction: column; }
.score-float small, .turn-float small { font-size: 7px; font-weight: 800; letter-spacing: .09em; color: #7b8496; }
.score-float b, .turn-float b { font: 800 17px/1.1 "Baloo 2"; }
.spark { position: absolute; font-size: 32px; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); z-index: 5; }
.spark-a { left: 5%; top: 37px; transform: rotate(-10deg); }.spark-b { right: 5%; bottom: 48px; font-size: 23px; }
.mode-section { background: var(--ink); color: white; padding: 47px max(30px, calc((100vw - 1220px)/2)) 55px; position: relative; }
.mode-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 30%, rgba(102,220,235,.08), transparent 22%), radial-gradient(circle at 90% 65%, rgba(255,216,77,.07), transparent 25%); }
.section-heading { position: relative; display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.mini-label { color: var(--yellow); font-size: 9px; letter-spacing: .18em; font-weight: 900; }
h2 { margin: 4px 0 0; font: 800 36px/1 "Baloo 2"; }
.section-heading p { max-width: 390px; margin: 0; color: #aeb8cc; font-size: 12px; line-height: 1.6; }
.mode-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.mode-card { min-width: 0; text-align: left; border: 2px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: white; border-radius: 17px; padding: 18px; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; cursor: pointer; transition: .2s ease; }
.mode-card:hover, .mode-card.active { transform: translateY(-5px); border-color: var(--yellow); background: white; color: var(--ink); box-shadow: 0 7px 0 var(--yellow); }
.mode-icon { width: 46px; height: 50px; border: 2px solid currentColor; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 22px; }
.mode-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.mode-card small { font-size: 8px; font-weight: 900; letter-spacing: .12em; opacity: .65; }
.mode-card b { font: 800 18px/1.2 "Baloo 2"; white-space: nowrap; }
.mode-card em { font-size: 9px; font-style: normal; opacity: .65; white-space: nowrap; }
.mode-card > i { font-style: normal; font-weight: 900; }
footer { min-height: 70px; padding: 0 max(30px, calc((100vw - 1220px)/2)); display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
footer p { color: #8d93a0; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 35px; text-align: center; }
  .hero-copy > p { margin-inline: auto; }.hero-actions, .trust-row { justify-content: center; }
  .hero-stage { max-width: 620px; width: 100%; margin: -20px auto 0; }
  .mode-grid { grid-template-columns: 1fr 1fr; }.section-heading { align-items: start; }
}
@media (max-width: 600px) {
  .site-header { height: 78px; padding: 0 18px; }.brand-mark { width: 39px; height: 45px; }.brand-mark b { font-size: 26px; }.brand strong { font-size: 16px; }.online-pill, .profile-chip b { display: none; }
  .profile-chip { padding-right: 4px; }.hero { padding: 35px 18px 40px; gap: 18px; min-height: 0; }
  h1 { font-size: clamp(48px, 16vw, 70px); }.hero-copy > p { font-size: 13px; }.hero-actions { flex-direction: column; }.btn { width: 100%; }
  .trust-row > span { padding: 0 11px; }.hero-stage { height: 340px; transform: scale(.9); margin: -5px -5% 0; width: 110%; }
  .stage-card { width: 112px; height: 169px; border-width: 3px; border-radius: 17px; box-shadow: 6px 8px 0 var(--ink); }.stage-card::after { width: 92px; height: 137px; }.stage-card span { font-size: 38px; }
  .card-red { left: 9%; top: 95px; }.card-blue { left: 28%; top: 66px; }.card-yellow { right: 24%; top: 70px; }.card-tka { right: 6%; top: 100px; }.card-tka strong { font-size: 40px; }
  .score-float { top: 4px; right: 8px; }.turn-float { bottom: 10px; left: 3px; }.score-float, .turn-float { padding: 6px 8px; }.score-float i, .turn-float i { width: 29px; height: 29px; }
  .mode-section { padding: 40px 18px; }.section-heading { display: block; text-align: center; }.section-heading p { margin: 12px auto 0; }.mode-grid { grid-template-columns: 1fr; }
  footer { padding: 20px 18px; justify-content: center; } footer p, footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Application surfaces */
[hidden] { display: none !important; }
.screen { display: none; }
.screen.active { display: block; animation: screen-in .35s ease both; }
.brand-button { border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left; }
.install-screen {
  position: fixed; inset: 0; z-index: 200; overflow: auto; padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  display: grid; place-items: center; color: white; text-align: center; background:
    radial-gradient(circle at 18% 20%, rgba(102, 220, 235, .25), transparent 20%),
    radial-gradient(circle at 80% 82%, rgba(255, 94, 88, .22), transparent 24%),
    var(--ink);
}
.install-screen::before, .install-screen::after { content: ""; position: fixed; width: 38vw; height: 38vw; border: 2px dashed rgba(255,255,255,.1); border-radius: 50%; }
.install-screen::before { left: -18vw; top: -15vw; }.install-screen::after { right: -18vw; bottom: -15vw; }
.install-panel { width: min(570px, 100%); position: relative; z-index: 2; }
.install-visual { height: 206px; width: 340px; max-width: 100%; margin: 0 auto 16px; position: relative; }
.mini-card { position: absolute; width: 98px; height: 142px; border: 3px solid var(--ink); border-radius: 18px; display: grid; place-items: center; box-shadow: 7px 8px 0 #07101f; font: 800 42px/1 "Baloo 2"; }
.install-card-a { left: 35px; top: 49px; background: var(--coral); transform: rotate(-22deg); }.install-card-b { right: 35px; top: 48px; background: var(--blue); transform: rotate(22deg); }
.install-card-c { left: 121px; top: 26px; z-index: 2; background: var(--yellow); color: var(--ink); transform: rotate(-2deg); }.install-card-c b { font-size: 25px; }
.install-logo { position: absolute; left: 146px; top: 77px; z-index: 4; width: 50px; height: 58px; border: 3px solid var(--ink); border-radius: 14px; background: var(--mint); color: var(--ink); display: grid; place-items: center; transform: rotate(5deg); box-shadow: 4px 4px 0 var(--ink); }
.install-logo span { font: 800 34px/1 "Baloo 2"; }.install-logo i { position: absolute; right: -12px; top: -18px; color: var(--yellow); font-style: normal; font-size: 25px; -webkit-text-stroke: 1px var(--ink); }
.install-kicker { display: inline-block; color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.install-panel h1 { margin: 10px 0 16px; font-size: clamp(51px, 9vw, 80px); line-height: .84; color: white; }
.install-panel h1 em { color: var(--yellow); }
.install-panel > p { max-width: 530px; margin: 0 auto; color: #c2cada; font-size: 14px; line-height: 1.7; }
.install-actions { display: grid; gap: 12px; width: min(360px, 100%); margin: 25px auto 0; }
.btn-install { width: 100%; font-size: 15px; }.btn-install > span { font-size: inherit; margin: 0; }
.text-button { border: 0; background: transparent; color: white; text-decoration: underline; text-underline-offset: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; cursor: pointer; padding: 10px; }
.install-note { display: block; color: #7f8ba1; font-size: 9px; margin-top: 10px; }
.ios-guide { width: min(390px, 100%); margin: 20px auto 0; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.06); text-align: left; }
.ios-guide > strong { display: block; margin-bottom: 8px; color: var(--yellow); font: 800 15px/1.2 "Baloo 2"; }
.ios-guide div { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 11px; }
.ios-guide div span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 9px; font-weight: 900; }
.install-burst { position: fixed; color: var(--yellow); font-size: 40px; -webkit-text-stroke: 2px var(--ink); }.burst-one { left: 9%; top: 20%; }.burst-two { right: 10%; bottom: 19%; font-size: 26px; }

.how-section { max-width: 1280px; margin: 0 auto; padding: 62px 30px 72px; }
.how-heading { text-align: center; }.mini-label.dark { color: #7c6bf2; }.how-heading h2 { margin-top: 7px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 31px; }
.how-grid article { position: relative; min-height: 188px; padding: 25px; border: 2px solid var(--ink); border-radius: 19px; background: white; box-shadow: 6px 6px 0 #e4dbc9; }
.how-grid article > span { position: absolute; top: 15px; right: 18px; color: #dad5cc; font: 800 27px/1 "Baloo 2"; }
.how-icon { width: 51px; height: 51px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); font-style: normal; font-size: 22px; }
.how-icon.cyan { background: var(--cyan); }.how-icon.yellow { background: var(--yellow); }.how-icon.coral { background: var(--coral); color: white; }
.how-grid h3 { margin: 18px 0 6px; font: 800 19px/1.1 "Baloo 2"; }.how-grid p { margin: 0; color: #778196; font-size: 11px; line-height: 1.55; }

/* Lobby */
.lobby-screen { min-height: calc(100vh - 92px); background: #f6edde; }
.lobby-wrap { max-width: 1180px; margin: auto; padding: 45px 30px 70px; }
.lobby-topline { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 17px; margin-bottom: 31px; }
.round-back { width: 45px; height: 45px; border: var(--line); border-radius: 50%; background: white; box-shadow: 4px 4px 0 var(--ink); font-weight: 900; font-size: 20px; cursor: pointer; }
.lobby-topline h1 { margin: 3px 0 0; font-size: 42px; line-height: 1; letter-spacing: -.035em; }
.connection-badge { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 99px; background: white; font-size: 10px; font-weight: 800; }
.connection-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(83,213,155,.18); }
.lobby-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 22px; align-items: stretch; }
.room-card, .players-panel { border: var(--line); border-radius: 23px; box-shadow: var(--shadow); }
.room-card { background: var(--ink); color: white; padding: 26px; position: relative; overflow: hidden; }
.room-card::after { content: "✦"; position: absolute; right: -35px; bottom: -75px; color: rgba(255,255,255,.035); font-size: 230px; transform: rotate(18deg); }
.room-card-head { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.room-card-head span { color: var(--yellow); font-size: 9px; font-weight: 900; letter-spacing: .18em; }.room-card-head small { font-size: 9px; font-weight: 800; background: rgba(255,255,255,.1); padding: 6px 9px; border-radius: 99px; }
.room-code { width: 100%; margin: 35px 0 13px; padding: 22px 12px; border: 2px dashed rgba(255,255,255,.24); border-radius: 16px; background: rgba(255,255,255,.05); color: white; cursor: pointer; position: relative; z-index: 2; }
.room-code b { display: block; color: var(--yellow); font: 800 clamp(34px, 5vw, 53px)/1 "Baloo 2"; letter-spacing: .06em; }.room-code span { display: block; margin-top: 8px; color: #aeb9ce; font-size: 9px; font-weight: 800; }
.room-card > p { position: relative; z-index: 2; color: #abb6c9; font-size: 11px; line-height: 1.6; text-align: center; }
.share-btn { position: relative; z-index: 2; width: 100%; min-height: 45px; margin-top: 5px; border-color: white; background: transparent; color: white; box-shadow: 3px 3px 0 var(--yellow); font-size: 11px; }
.room-settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; position: relative; z-index: 2; }
.room-settings > div { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 9px; border-radius: 11px; background: rgba(255,255,255,.07); }
.room-settings > div > span { font-size: 17px; }.room-settings p { margin: 0; display: flex; flex-direction: column; min-width: 0; }.room-settings b { font-size: 8px; white-space: nowrap; }.room-settings small { color: #92a0b8; font-size: 7px; }
.players-panel { padding: 27px; background: white; }
.players-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.players-head h2 { margin: 3px 0 0; font-size: 25px; }.players-head h2 b { color: var(--blue); }
.waiting-dots { display: flex; align-items: center; gap: 3px; color: #9da4b1; font-size: 8px; font-weight: 900; letter-spacing: .12em; }.waiting-dots i { width: 4px; height: 4px; background: var(--coral); border-radius: 50%; animation: dot-wave 1.3s infinite; }.waiting-dots i:nth-child(2) { animation-delay: .15s; }.waiting-dots i:nth-child(3) { animation-delay: .3s; }
.host-lobby-tools { margin: -4px 0 12px; padding: 9px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #eefcff; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 3px 3px 0 var(--ink); }.host-lobby-tools[hidden] { display: none; }.host-lobby-tools > span { display: flex; flex-direction: column; }.host-lobby-tools b { font-size: 8px; letter-spacing: .1em; }.host-lobby-tools small { margin-top: 2px; color: #758096; font-size: 7px; }.host-lobby-tools button { min-height: 34px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 9px; background: var(--yellow); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); font: 800 9px/1 "Plus Jakarta Sans"; cursor: pointer; white-space: nowrap; }.host-lobby-tools button:disabled { opacity: .45; cursor: not-allowed; }
.player-slots { display: grid; gap: 10px; }
.player-slot { min-height: 67px; border: 2px solid #d7dbe4; border-radius: 15px; padding: 9px 12px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 11px; background: #fffefa; }
.player-slot.me { border-color: var(--ink); background: #fff8da; }.player-slot.empty { border-style: dashed; color: #a1a8b5; background: #fafafa; }
.player-slot.add-npc-slot { color: var(--ink); border-color: #b9a9e9; background: #fbf9ff; }.slot-add-npc { min-width: 64px; min-height: 34px; padding: 0 9px; border: 2px solid var(--ink); border-radius: 9px; background: #ece5ff; color: #6246b5; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; font: 900 8px/1 "Plus Jakarta Sans"; }.slot-add-npc:hover { background: var(--yellow); color: var(--ink); }
.player-slot.npc { border-color: #8d75d7; background: #f6f1ff; }
.slot-avatar { width: 43px; height: 43px; border: 2px solid var(--ink); border-radius: 13px; display: grid; place-items: center; background: var(--cyan); font: 800 13px/1 "Baloo 2"; box-shadow: 2px 2px 0 var(--ink); }.player-slot:nth-child(2) .slot-avatar { background: var(--coral); color: white; }.player-slot:nth-child(3) .slot-avatar { background: var(--yellow); }.player-slot:nth-child(4) .slot-avatar { background: var(--mint); }
.empty .slot-avatar { background: white !important; color: #b0b5bf !important; border-color: #b9bec8; box-shadow: none; }
.slot-info { display: flex; flex-direction: column; }.slot-info b { font: 800 15px/1.2 "Baloo 2"; }.slot-info small { color: #8d95a4; font-size: 8px; margin-top: 2px; }.host-tag { display: inline-block; margin-left: 5px; padding: 2px 5px; color: var(--ink); background: var(--yellow); border: 1px solid var(--ink); border-radius: 5px; font: 800 6px/1 "Plus Jakarta Sans"; vertical-align: 2px; }
.npc-tag { display: inline-block; margin-left: 5px; padding: 2px 5px; color: white; background: #7656c9; border: 1px solid var(--ink); border-radius: 5px; font: 800 6px/1 "Plus Jakarta Sans"; vertical-align: 2px; }.slot-actions { display: flex; align-items: center; gap: 6px; }.kick-player { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 9px; background: #ffe1df; color: #9b2722; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; font-size: 15px; font-weight: 900; line-height: 1; }.kick-player:hover { background: var(--coral); color: white; }
.ready-state { padding: 7px 10px; border-radius: 99px; font-size: 8px; font-weight: 900; letter-spacing: .08em; background: #e6e8ed; color: #7e8796; }.ready-state.ready { background: #d7f8e7; color: #19734e; }.ready-state.me-state { background: var(--yellow); color: var(--ink); }
.lobby-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 11px; margin-top: 19px; }.lobby-actions .btn { min-height: 49px; font-size: 11px; }.start-button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 3px 3px 0 #9b9da5; }.ready-button.is-ready { background: var(--mint); }
.start-hint { margin: 13px 0 0; text-align: center; color: #9097a5; font-size: 9px; }

@keyframes dot-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Battle arena */
body.game-active { background: var(--ink); }
body.game-active .site-header { display: none; }
.game-screen { min-height: 100vh; background: var(--ink); color: white; overflow: hidden; }
.game-topbar { height: 70px; padding: 0 24px; border-bottom: 2px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 20; background: #121d34; }
.game-brand { color: white; width: max-content; }.game-brand .brand-mark { width: 35px; height: 41px; box-shadow: 3px 3px 0 #07101f; }.game-brand .brand-mark b { font-size: 24px; }.game-brand .brand-mark i { width: 10px; height: 10px; border-width: 2px; }.game-brand strong { font-size: 14px; }.game-brand small { font-size: 7px; }
.match-meta { justify-self: center; display: flex; align-items: center; gap: 8px; }.match-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: var(--yellow); font: 800 11px/1 "Baloo 2"; letter-spacing: .06em; }.match-meta b { color: #aab6cc; font-size: 8px; letter-spacing: .08em; }
.game-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }.game-tools button { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.08); color: white; cursor: pointer; font-weight: 900; }.turn-clock { color: white; font: 800 15px/1 "Baloo 2"; margin-right: 6px; }
.arena { height: calc(100vh - 70px); min-height: 620px; position: relative; background: radial-gradient(ellipse at center 42%, #274164 0 11%, #1d3555 35%, #152640 71%, #101a2d 100%); isolation: isolate; }
.arena-pattern { position: absolute; inset: 0; z-index: -1; opacity: .22; background-image: radial-gradient(circle at center, transparent 0 29%, rgba(255,255,255,.09) 29.3% 29.7%, transparent 30%), linear-gradient(45deg, transparent 48%, rgba(255,255,255,.025) 49% 51%, transparent 52%); background-size: 100% 100%, 38px 38px; }
.arena::before { content: ""; position: absolute; width: min(620px, 67vw); height: min(330px, 44vh); left: 50%; top: 42%; transform: translate(-50%,-50%); border: 2px dashed rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 80px rgba(102,220,235,.06) inset; }
.opponent { position: absolute; z-index: 5; display: flex; align-items: center; gap: 8px; }
.opponent-top { top: 18px; left: 50%; transform: translateX(-50%); }.opponent-left { left: 25px; top: 36%; }.opponent-right { right: 25px; top: 36%; flex-direction: row-reverse; }
.op-avatar { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid white; border-radius: 13px; background: var(--coral); color: white; font: 800 13px/1 "Baloo 2"; box-shadow: 3px 3px 0 #07101f; position: relative; }.opponent-right .op-avatar { background: var(--yellow); color: var(--ink); }.opponent-top .op-avatar { background: var(--mint); color: var(--ink); }
.opponent.active .op-avatar { box-shadow: 0 0 0 4px var(--yellow), 4px 5px 0 #07101f; }.opponent.active .op-avatar::after { content: "GILIRAN"; position: absolute; top: -17px; left: 50%; transform: translateX(-50%); color: var(--yellow); font-size: 6px; font-family: "Plus Jakarta Sans"; font-weight: 900; letter-spacing: .1em; }
.op-info { display: flex; flex-direction: column; }.op-info b { font: 800 12px/1.2 "Baloo 2"; }.op-info small { color: #a6b1c4; font-size: 7px; }.op-cards { display: flex; margin-left: 4px; }.op-mini-card { width: 17px; height: 25px; margin-left: -8px; border: 1px solid white; border-radius: 4px; background: repeating-linear-gradient(45deg, var(--blue), var(--blue) 3px, #244fae 3px, #244fae 6px); box-shadow: 1px 1px 0 #07101f; }
.opponent-right .op-info { text-align: right; }.opponent-right .op-cards { margin: 0 4px 0 0; }.opponent-right .op-mini-card { margin-left: 0; margin-right: -8px; }
.battle-status { position: absolute; left: 50%; top: 90px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 13px; border: 2px solid var(--ink); border-radius: 12px; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 #07101f; z-index: 5; }
.battle-status i { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mint); }.battle-status span { display: flex; align-items: baseline; gap: 6px; }.battle-status small { font-size: 6px; font-weight: 900; letter-spacing: .12em; }.battle-status b { font: 800 14px/1 "Baloo 2"; }
.table-center { position: absolute; z-index: 3; left: 50%; top: 42%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 38px; }
.draw-pile { border: 0; background: transparent; color: white; padding: 0; cursor: pointer; position: relative; width: 103px; height: 154px; }.deck-shadow, .deck-card { position: absolute; width: 91px; height: 133px; border: 3px solid #07101f; border-radius: 15px; }.deck-shadow { left: 3px; top: 5px; background: #274f9f; transform: rotate(-5deg); }.deck-card { left: 9px; top: 0; background: var(--blue); display: grid; place-items: center; box-shadow: 5px 6px 0 #07101f; overflow: hidden; }.deck-card::before { content: ""; position: absolute; width: 67px; height: 104px; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; transform: rotate(24deg); }.deck-card span { position: relative; z-index: 2; width: 38px; height: 45px; display: grid; place-items: center; border: 2px solid white; border-radius: 11px; background: var(--yellow); color: var(--ink); font: 800 28px/1 "Baloo 2"; transform: rotate(-5deg); }.deck-card i { position: absolute; right: 10px; top: 10px; color: var(--yellow); font-style: normal; }
.draw-pile > small { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: max-content; padding: 5px 8px; border-radius: 99px; background: #0e192c; color: #aeb9cc; font-size: 7px; font-weight: 800; }
.discard-zone { width: 110px; height: 168px; position: relative; display: flex; align-items: center; justify-content: center; }.active-color { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: max-content; color: var(--cyan); font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.play-card { --card-color: var(--blue); position: relative; width: 88px; height: 131px; flex: 0 0 auto; border: 3px solid var(--ink); border-radius: 14px; background: var(--card-color); color: white; overflow: hidden; box-shadow: 5px 6px 0 rgba(7,16,31,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .2s ease, filter .2s ease; }
button.play-card { cursor: pointer; font: inherit; }.play-card::before { content: ""; position: absolute; width: 70px; height: 105px; border: 2px solid rgba(255,255,255,.66); border-radius: 50%; transform: rotate(25deg); }.play-card.red { --card-color: var(--coral); }.play-card.yellow { --card-color: var(--yellow); color: var(--ink); }.play-card.green { --card-color: var(--mint); color: var(--ink); }.play-card.wild { background: conic-gradient(from 35deg, var(--coral) 0 25%, var(--yellow) 0 50%, var(--mint) 0 75%, var(--blue) 0); }.play-card.tka { background: #202d49; color: var(--yellow); }
.play-card .corner { position: absolute; left: 7px; top: 5px; z-index: 2; display: flex; flex-direction: column; font: 800 13px/1 "Baloo 2"; }.play-card .corner.bottom { left: auto; top: auto; right: 7px; bottom: 5px; transform: rotate(180deg); }.play-card .card-value { position: relative; z-index: 2; display: block; font: 800 39px/1 "Baloo 2"; text-shadow: 1px 2px 0 rgba(23,35,62,.25); }.play-card .card-label { position: relative; z-index: 2; margin-top: 2px; max-width: 70px; text-align: center; font-size: 6px; font-weight: 900; letter-spacing: .09em; }.play-card.tka .card-value { font-size: 25px; }.play-card.tka .card-value::before { content: "✦"; display: block; font-size: 14px; margin-bottom: 3px; }.play-card.disabled { filter: saturate(.4) brightness(.7); cursor: not-allowed; }
#discard-card .play-card { transform: rotate(8deg); animation: card-land .35s cubic-bezier(.2,.8,.2,1); }
.event-feed { position: absolute; z-index: 4; left: 22px; bottom: 210px; max-width: 220px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(8,18,34,.72); backdrop-filter: blur(8px); }.event-feed > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,216,77,.16); }.event-feed p { margin: 0; color: #aeb8c9; font-size: 7px; line-height: 1.4; }.event-feed b { color: white; }
.lensa-button { position: absolute; z-index: 15; right: 24px; bottom: 215px; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 17px; background: var(--yellow); color: var(--ink); box-shadow: 5px 6px 0 #07101f; font: 800 17px/1 "Baloo 2"; cursor: pointer; animation: lensa-pulse .9s ease-in-out infinite alternate; }.lensa-button span { margin-right: 5px; }
.my-zone { position: absolute; z-index: 10; bottom: 0; left: 0; right: 0; height: 210px; padding: 9px 20px 6px; background: linear-gradient(180deg, rgba(11,20,35,0), rgba(9,16,29,.86) 18%, #0b1424 50%); }
.my-stats { height: 43px; display: flex; justify-content: center; align-items: center; gap: 9px; }.my-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid white; border-radius: 11px; background: var(--cyan); color: var(--ink); font: 800 12px/1 "Baloo 2"; }.my-stats > span { display: flex; flex-direction: column; min-width: 75px; }.my-stats small { color: #8f9bb1; font-size: 6px; font-weight: 900; letter-spacing: .1em; }.my-stats b { font: 800 12px/1.2 "Baloo 2"; }
.score-chip, .streak-chip { height: 34px; padding: 4px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; display: grid; grid-template-rows: 1fr 1fr; background: rgba(255,255,255,.06); }.score-chip b { color: var(--yellow); }.streak-chip { grid-template-columns: auto auto; column-gap: 5px; }.streak-chip > span { grid-row: 1/3; align-self: center; }.streak-chip.hot { border-color: var(--coral); box-shadow: 0 0 18px rgba(255,94,88,.18); }
.hand-wrap { height: 139px; display: flex; justify-content: center; align-items: flex-end; overflow: visible; }.hand { display: flex; justify-content: center; align-items: flex-end; height: 132px; padding: 7px 45px 0; max-width: 100%; }
.hand .play-card { width: 76px; height: 115px; margin-left: -18px; transform-origin: center 150%; }.hand .play-card:first-child { margin-left: 0; }.hand .play-card:hover:not(.disabled), .hand .play-card:focus-visible:not(.disabled) { transform: translateY(-22px) rotate(0deg) !important; z-index: 20 !important; outline: 3px solid var(--yellow); outline-offset: 3px; }
.hand .play-card:nth-child(odd) { transform: rotate(-2deg); }.hand .play-card:nth-child(even) { transform: rotate(2deg); }.hand .card-value { font-size: 34px; }
.hand-tip { margin: 2px 0 0; text-align: center; color: #76839a; font-size: 7px; }

@keyframes card-land { from { opacity: 0; transform: translateY(-30px) rotate(-15deg) scale(1.2); } to { opacity: 1; transform: rotate(8deg); } }
@keyframes lensa-pulse { from { transform: scale(1) rotate(-2deg); } to { transform: scale(1.08) rotate(2deg); } }

/* Dialogs, forms, feedback */
.game-modal { width: min(510px, calc(100% - 28px)); max-height: calc(100vh - 28px); border: 3px solid var(--ink); border-radius: 23px; padding: 0; color: var(--ink); background: white; box-shadow: 10px 12px 0 rgba(7,16,31,.65); overflow: auto; }
.game-modal::backdrop { background: rgba(10,18,33,.78); backdrop-filter: blur(5px); }
.game-modal > form, .victory-content { position: relative; padding: 31px; }.game-modal h2 { margin: 5px 0 8px; font-size: 31px; }.game-modal p { margin: 0 0 20px; color: #747e90; font-size: 11px; line-height: 1.6; }
.modal-close { position: absolute; right: 17px; top: 15px; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: white; font-size: 21px; line-height: 1; cursor: pointer; }
.modal-art { position: absolute; right: 66px; top: 23px; width: 41px; height: 41px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 12px; background: var(--cyan); transform: rotate(7deg); font-size: 23px; box-shadow: 3px 3px 0 var(--ink); }
.game-modal label:not(.switch-row):not(.compact-levels label) { display: block; margin-top: 13px; color: #5e6879; font-size: 9px; font-weight: 800; }
.game-modal input:not([type="radio"]):not([type="checkbox"]) { width: 100%; height: 47px; margin-top: 6px; padding: 0 13px; border: 2px solid #cdd2dc; border-radius: 11px; outline: 0; background: #fffefa; color: var(--ink); font-size: 12px; font-weight: 700; }.game-modal input:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(53,109,243,.12); }
.modal-primary { width: 100%; margin-top: 20px; }.identity-modal form > small { display: block; margin-top: 16px; color: #9ca2ae; font-size: 8px; text-align: center; }
.room-form-create fieldset { margin: 20px 0 0; padding: 0; border: 0; }.room-form-create legend { color: #5e6879; font-size: 9px; font-weight: 800; margin-bottom: 7px; }
.compact-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }.compact-levels label { cursor: pointer; }.compact-levels input { position: absolute; opacity: 0; pointer-events: none; }.compact-levels label > span { min-height: 74px; padding: 9px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #d4d8e0; border-radius: 12px; background: #fffefa; font-size: 18px; }.compact-levels b { margin-top: 3px; font: 800 11px/1 "Baloo 2"; }.compact-levels small { margin-top: 2px; color: #8d95a4; font-size: 6px; }.compact-levels input:checked + span { border-color: var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translateY(-2px); }
.switch-row { margin-top: 18px; padding: 13px; border: 2px solid #d8dbe2; border-radius: 12px; display: flex; align-items: center; position: relative; cursor: pointer; }.switch-row > span { display: flex; flex-direction: column; padding-right: 55px; }.switch-row b { font: 800 13px/1.2 "Baloo 2"; }.switch-row small { color: #8991a0; font-size: 7px; }.switch-row input { position: absolute; opacity: 0; }.switch-row i { position: absolute; right: 13px; width: 40px; height: 23px; border: 2px solid var(--ink); border-radius: 99px; background: #d7dbe2; }.switch-row i::after { content: ""; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px; border-radius: 50%; background: var(--ink); transition: .2s; }.switch-row input:checked + i { background: var(--mint); }.switch-row input:checked + i::after { transform: translateX(17px); }
.code-input { height: 66px !important; text-align: center; text-transform: uppercase; letter-spacing: .12em; font: 800 27px/1 "Baloo 2" !important; }
.api-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 15px; color: #969daa; font-size: 7px; text-align: center; }.api-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }.api-status.live i { background: var(--mint); }

.question-modal { width: min(680px, calc(100% - 24px)); background: var(--paper); overflow: hidden; }
.challenge-shell { min-height: 510px; }.challenge-head { min-height: 83px; padding: 17px 23px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; }.challenge-head > div:first-child { display: flex; flex-direction: column; gap: 6px; }.challenge-head small { color: #aab5c8; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.challenge-badge { color: var(--yellow); font: 800 19px/1 "Baloo 2"; }.timer-ring { width: 54px; height: 54px; border: 3px solid var(--yellow); border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.06); }.timer-ring span { font: 800 21px/.85 "Baloo 2"; }.timer-ring small { color: var(--yellow); font-size: 5px; }.timer-ring.danger { border-color: var(--coral); color: var(--coral); animation: timer-pulse .5s infinite alternate; }
.challenge-progress { height: 6px; background: #dce0e7; }.challenge-progress i { height: 100%; display: block; width: 100%; background: linear-gradient(90deg, var(--mint), var(--yellow)); transform-origin: left; transition: width 1s linear; }
.question-body { padding: 25px 28px 28px; }.question-count { display: inline-block; padding: 5px 8px; border-radius: 6px; background: #e9e4ff; color: #6953bc; font-size: 7px; font-weight: 900; letter-spacing: .1em; }.stimulus { margin-top: 12px !important; padding: 11px 13px; border-left: 4px solid var(--cyan); background: white; color: #566176 !important; border-radius: 0 9px 9px 0; }
.question-body h2 { margin: 14px 0 18px; font-size: 23px; line-height: 1.22; }.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.answer-option { min-height: 54px; padding: 8px 11px; border: 2px solid #d4d8df; border-radius: 12px; background: white; color: var(--ink); display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; font-size: 10px; font-weight: 700; line-height: 1.35; }.answer-option span { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: #eef0f4; font: 800 12px/1 "Baloo 2"; }.answer-option:hover, .answer-option.selected { border-color: var(--ink); background: #fff5c9; box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px,-2px); }.answer-submit { width: 100%; margin-top: 17px; min-height: 48px; }.answer-submit:disabled { opacity: .42; cursor: not-allowed; box-shadow: 3px 3px 0 #8d9097; }
.question-result { min-height: 420px; padding: 35px 36px; text-align: center; display: grid; justify-items: center; align-content: center; }.result-icon { width: 70px; height: 70px; margin-bottom: 17px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--mint); box-shadow: 5px 5px 0 var(--ink); font-size: 34px; font-weight: 900; }.question-result.wrong .result-icon { background: var(--coral); color: white; }.question-result h2 { margin: 4px 0 7px; }.question-result > p { max-width: 540px; margin-bottom: 17px; }
.reward-card { width: min(360px, 100%); padding: 11px 14px; border: 2px solid var(--ink); border-radius: 13px; background: #fff4bc; display: flex; align-items: center; gap: 11px; text-align: left; box-shadow: 4px 4px 0 var(--ink); }.reward-card > span { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 11px; background: var(--yellow); font-size: 21px; }.reward-card p { margin: 0; display: flex; flex-direction: column; }.reward-card small { color: #8b7833; font-size: 6px; font-weight: 900; letter-spacing: .1em; }.reward-card b { font: 800 14px/1.2 "Baloo 2"; }.reward-card em { color: #746d55; font-size: 7px; font-style: normal; }.question-result > .btn { min-height: 47px; margin-top: 21px; }
.color-modal { width: min(430px, calc(100% - 28px)); text-align: center; }.color-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }.color-choices button { height: 77px; border: 3px solid var(--ink); border-radius: 14px; color: white; font: 800 14px/1 "Baloo 2"; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }.color-choices .blue { background: var(--blue); }.color-choices .red { background: var(--coral); }.color-choices .yellow { background: var(--yellow); color: var(--ink); }.color-choices .green { background: var(--mint); color: var(--ink); }
.rules-modal ol { list-style: none; padding: 0; margin: 19px 0 0; counter-reset: rules; }.rules-modal li { counter-increment: rules; min-height: 54px; padding: 9px 0 9px 45px; border-bottom: 1px solid #e2e3e7; display: flex; flex-direction: column; position: relative; }.rules-modal li::before { content: counter(rules); position: absolute; left: 0; top: 9px; width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 9px; background: var(--yellow); font: 800 12px/1 "Baloo 2"; }.rules-modal li b { font: 800 13px/1.2 "Baloo 2"; }.rules-modal li span { color: #7e8796; font-size: 8px; margin-top: 2px; }
.victory-modal { width: min(530px, calc(100% - 28px)); background: var(--yellow); text-align: center; overflow: visible; }.victory-content { overflow: hidden; border-radius: 20px; }.victory-content::before, .victory-content::after { content: "✦"; position: absolute; color: rgba(23,35,62,.1); font-size: 100px; }.victory-content::before { left: -25px; top: -28px; }.victory-content::after { right: -20px; bottom: -35px; }.victory-crown { position: relative; z-index: 2; width: 80px; height: 80px; margin: 0 auto 14px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: white; box-shadow: 6px 6px 0 var(--ink); font-size: 39px; }.victory-content h2 { font-size: 42px; }.victory-content p { color: #5b5c56; }.victory-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 19px 0; }.victory-stats span { padding: 11px 5px; border: 2px solid var(--ink); border-radius: 11px; background: white; display: flex; flex-direction: column; }.victory-stats small { font-size: 6px; font-weight: 900; letter-spacing: .1em; }.victory-stats b { font: 800 20px/1.2 "Baloo 2"; }.victory-content > .btn { position: relative; z-index: 2; width: 100%; background: var(--ink); color: white; box-shadow: 5px 5px 0 white; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; transform: translate(-50%,130%); min-width: 220px; padding: 10px 15px; border: 2px solid var(--ink); border-radius: 12px; background: white; box-shadow: 5px 5px 0 var(--ink); display: flex; align-items: center; gap: 9px; opacity: 0; transition: .3s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }.toast > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--mint); font-weight: 900; }.toast p { margin: 0; font-size: 9px; font-weight: 800; }
.confetti { position: fixed; z-index: 290; inset: 0; pointer-events: none; overflow: hidden; }.confetti i { position: absolute; top: -25px; width: 10px; height: 17px; border: 2px solid var(--ink); animation: confetti-fall 2.3s linear forwards; }

@keyframes timer-pulse { to { transform: scale(1.06); } }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(720deg); } }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }.how-grid article { min-height: 135px; }
  .lobby-layout { grid-template-columns: 1fr; }.lobby-screen { min-height: calc(100vh - 78px); }
  .arena { min-height: 590px; }.opponent-left { left: 10px; }.opponent-right { right: 10px; }.op-cards { display: none; }
}
@media (max-width: 600px) {
  .install-visual { transform: scale(.84); margin-top: -15px; margin-bottom: -5px; }.install-panel h1 { font-size: 52px; }.install-panel > p { font-size: 12px; }
  .how-section { padding: 48px 18px; }.how-grid { gap: 11px; }.how-grid article { padding: 19px; }.how-grid h3 { margin-top: 13px; }
  .lobby-wrap { padding: 29px 16px 45px; }.lobby-topline { grid-template-columns: 42px 1fr; }.connection-badge { display: none; }.lobby-topline h1 { font-size: 33px; }.room-card, .players-panel { padding: 20px; }.room-settings { grid-template-columns: 1fr; }.room-settings > div { justify-content: center; }.lobby-actions { grid-template-columns: 1fr; }
  .game-topbar { height: 58px; padding: 0 12px; grid-template-columns: 1fr auto auto; }.game-brand > span:last-child { display: none; }.game-brand .brand-mark { width: 31px; height: 36px; }.match-meta { gap: 4px; }.match-meta b { display: none; }.match-meta span { font-size: 9px; padding: 6px; }.turn-clock { display: none; }.game-tools button { width: 31px; height: 31px; }
  .arena { height: calc(100svh - 58px); min-height: 540px; }.arena::before { width: 78vw; height: 30vh; top: 39%; }.battle-status { top: 75px; }.opponent-top { top: 13px; }.opponent-left, .opponent-right { top: 31%; }.op-avatar { width: 36px; height: 36px; border-radius: 10px; }.op-info b { font-size: 10px; }.op-info small { font-size: 6px; }
  .table-center { top: 39%; gap: 22px; transform: translate(-50%,-50%) scale(.84); }.event-feed { left: 9px; bottom: 185px; max-width: 175px; }.lensa-button { right: 10px; bottom: 188px; font-size: 13px; padding: 9px 12px; }
  .my-zone { height: 181px; padding-inline: 6px; }.my-stats { justify-content: flex-start; padding-left: 6px; }.my-stats > span { min-width: 55px; }.score-chip { margin-left: auto; }.streak-chip { margin-right: 4px; }.hand-wrap { height: 113px; overflow-x: auto; justify-content: flex-start; padding-left: 12px; scrollbar-width: none; }.hand-wrap::-webkit-scrollbar { display: none; }.hand { width: max-content; padding: 4px 30px 0 14px; height: 112px; }.hand .play-card { width: 66px; height: 101px; margin-left: -16px; }.hand .card-value { font-size: 29px; }.hand .card-label { font-size: 5px; }
  .game-modal > form, .victory-content { padding: 25px 20px; }.game-modal h2 { font-size: 27px; }.compact-levels { grid-template-columns: 1fr 1fr; }.question-body { padding: 20px 17px 22px; }.question-body h2 { font-size: 19px; }.answer-grid { grid-template-columns: 1fr; }.question-result { padding: 28px 19px; }.challenge-head { padding: 14px 17px; }.challenge-badge { font-size: 16px; }
}
@media (max-height: 690px) and (min-width: 601px) {
  .arena { min-height: 560px; }.opponent-top { top: 8px; }.battle-status { top: 65px; }.table-center { top: 39%; transform: translate(-50%,-50%) scale(.86); }.my-zone { height: 185px; }.event-feed { bottom: 190px; }.lensa-button { bottom: 193px; }
}
