/* ЧЁ ЗА ШОУ?! — expressive pop-art skin, layered over working multiplayer UI. */
:root {
  color-scheme: dark;
  --bg: #15092d; --surface: #26144b; --line: #7564ab;
  --pink: #ff4a86; --rose: #ff447c; --purple: #bb80ff;
  --cyan: #58ebff; --mint: #9dffbc; --soft: #e2d5ff; --light: #fff9ff;
  --yellow: #ffe85c; --orange: #ff9945;
}
html { font-family: 'Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif; }
body { background: #16092f; color: #fffafb; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 68% 56% at 2% 30%,#9832dd60,transparent 85%),
    radial-gradient(ellipse 58% 64% at 95% 8%,#ff467643,transparent 81%),
    radial-gradient(ellipse 48% 50% at 90% 90%,#0bcfe63b,transparent 90%);
}
.ambient { opacity: .30; filter: blur(62px); }
.ambient-a { background: #b342ff; }.ambient-b { background: #ff5772; }
.grain { opacity: .075; background-image: radial-gradient(#fff8 1px,transparent 1px); background-size: 10px 10px; }
.page-shell { max-width: 1370px; padding: 0 30px 50px; }
.topbar { min-height: 93px; border-color: #ffffff24; }
.brand { gap: 13px; font-size: clamp(20px,2.3vw,31px); letter-spacing: -1.3px; }
.brand-symbol { display: grid; place-items: center; width: 58px; height: 58px; font-size: 38px; color: #241039;
  background: var(--yellow); border-radius: 18px; border: 3px solid #180c39;
  box-shadow: 5px 5px 0 #fd4b83; transform: rotate(-11deg); text-shadow: none; }
.brand-type { white-space: nowrap; color: white; line-height: 1; }
.brand-type span { color: var(--yellow); }
.badge { color: var(--yellow); font-size: 10px; border: 2px solid #e1c25e80; background: #ffe75815;
  padding: 11px 15px; font-weight: 950; }
.connection-status { color: #a4ffc7; }
.landing { min-height: 665px; grid-template-columns: minmax(0,1fr) minmax(320px,428px); gap: 38px; padding-top: 30px; align-items: center; }
.landing-copy { padding: 18px 0 20px; }
.eyebrow { color: var(--yellow); font-weight: 950; font-size: 12px; letter-spacing: 2px; }
.eyebrow-line { height: 4px; width: 25px; border-radius: 3px; background: var(--yellow); }
.landing-copy h1 { margin: 27px 0 12px; font-size: clamp(72px,9.2vw,144px); line-height: .85;
  letter-spacing: -.08em; font-weight: 1000; text-shadow: 6px 7px 0 #070c2b73; }
.hero-white { color: white; }
.gradient-text { color: var(--yellow); background: none; -webkit-text-stroke: 1px #18093b; text-shadow: 6px 7px 0 #ff3f8c, 10px 12px 0 #071c46; }
.punct { font-size: .42em; display: inline-block; color: #59eff6; vertical-align: top; margin: -8px 0 0 12px; transform: rotate(14deg); }
.hero-tagline { margin: 20px 0 8px; display: inline-block; padding: 10px 16px; color: #190d35;
  background: var(--yellow); border: 2px solid #23113e; transform: rotate(-2deg); box-shadow: 5px 6px 0 #ff4d8d;
  font-weight: 1000; font-size: clamp(12px,1.5vw,17px); letter-spacing: -.5px; }
.hero-tagline span { color: #f3387d; }
.lede { font-size: 17px; max-width: 580px; color: #ede4ff; line-height: 1.65; font-weight: 650; margin: 24px 0 0; }
.feature-line { gap: 9px; margin-top: 19px; }
.feature-line span { display: inline-flex; align-items: center; padding: 8px 10px;
  background: #4e2c7a; border: 1px solid #a16bd2; color: #fff5ff; border-radius: 25px; font-size: 10px;
  letter-spacing: .5px; font-weight: 950; }
.pop-art { display: block; width: min(100%, 460px); height: 240px; margin: 10px auto -20px; position: relative; }
.tv-mascot { position: absolute; left: 7%; top: 0; width: 86%; height: 100%; overflow: visible; transform: rotate(-3deg);
  filter: drop-shadow(7px 16px 0 #070d2aa1); animation: mascot-bop 3.4s ease-in-out infinite; }
.pop-sticker { position: absolute; z-index: 2; font-weight: 1000; font-size: 12px; text-align: center; line-height: 1.05;
  border: 3px solid #1b103c; box-shadow: 5px 6px 0 #110627; padding: 12px 14px; }
.sticker-top { background: var(--yellow); color: #220d3d; left: 1%; top: 11%; transform: rotate(-14deg); }
.sticker-bottom { background: var(--cyan); color: #190a34; right: 4%; bottom: 10%; transform: rotate(11deg); font-size: 14px; }
.pop-spark { position: absolute; color: var(--yellow); font-weight: 1000; }
.star-a { top: 10%; right: 4%; font-size: 40px; transform: rotate(-18deg); }
.star-b { bottom: 3%; left: 9%; color: var(--cyan); font-size: 35px; }
.entry-card { align-self: center; padding: 30px; border-radius: 26px; border: 3px solid #231046;
  background: linear-gradient(158deg,#ffc267 0%,#ff7194 46%,#fd4b95 100%);
  box-shadow: 11px 13px 0 #0b0625, 16px 18px 0 #57e9f3, inset 0 2px 0 #ffffff80;
  color: #22103f; transform: rotate(1deg); }
.entry-kicker { display: inline-block; background: #221042; color: var(--yellow); font-size: 11px;
  letter-spacing: 2px; padding: 8px 12px; border-radius: 8px; font-weight: 1000; transform: rotate(-2deg); }
.entry-card h2 { font-size: clamp(30px,3.3vw,47px); letter-spacing: -2px; line-height: 1.05;
  color: #240f42; margin: 23px 0 9px; font-weight: 1000; }
.entry-card .muted { color: #371d51; font-weight: 650; font-size: 14px; line-height: 1.6; }
.entry-form { margin-top: 27px; }
.entry-form label { color: #321846; font-size: 11px; font-weight: 1000; letter-spacing: 1.2px; }
.entry-form input { background: #fffafa; color: #210c40; border: 3px solid #291341; box-shadow: 3px 4px 0 #250d43; font-size: 16px;
  border-radius: 14px; min-height: 55px; }
.entry-form input::placeholder { color: #807087; }
.primary-button { background: var(--yellow); border: 3px solid #27113e; color: #210b3d;
  border-radius: 14px; box-shadow: 4px 5px 0 #261140; min-height: 53px; font-weight: 1000;
  letter-spacing: .2px; }
.primary-button:hover:not(:disabled) { background: #fff78a; transform: translate(-1px,-2px); filter: none; }
.entry-bottom { border-top: 2px solid #2b0a3740; color: #401951; font-weight: 750; line-height: 1.55; }
.star-small { color: #250a40; }
.game { padding-top: 28px; }
.session-header h1 { font-size: clamp(28px,3.2vw,46px); letter-spacing: -2px; margin-top: 12px; }
.session-header .gradient-text { color: var(--yellow); -webkit-text-stroke: 0; text-shadow: 3px 3px 0 #ff4e8c; }
.icon-button { border: 2px solid #9d66de; background: #482373; color: white; border-radius: 13px; font-weight: 950; }
.icon-button.subtle { color: var(--yellow); border-color: #ffe95c86; background: #35204e; }
.progress-steps { gap: 8px; margin-bottom: 18px; }
.step { height: 8px; border-radius: 20px; background: #5d367f; }
.step.active { background: linear-gradient(90deg,#ffe84d,#ff6a8d); box-shadow: 0 0 16px #ffd96266; }
.step.done { background: #68eff1; }
.room-grid { grid-template-columns: minmax(0,1.65fr) minmax(290px,1fr); gap: 17px; }
.stage-shell { min-height: 630px; background: radial-gradient(circle at 72% 6%,#ca3dda 0%,transparent 36%),
  radial-gradient(circle at 13% 68%,#2647b6 0%,transparent 62%),linear-gradient(135deg,#6c2ccd,#301b83 66%,#210b54);
  border: 3px solid #170d3e; border-radius: 26px; box-shadow: 9px 10px 0 #11082e; }
.stage-shell::before { content: ''; position: absolute; width: 260px; height: 260px; border: 3px solid #ffffff24;
  border-radius: 50%; top: -145px; right: -60px; pointer-events: none; }
.stage-shell::after { content: '✷'; position: absolute; right: 3%; top: 80px; color: #ffe95c;
  font-size: 60px; opacity: .9; transform: rotate(20deg); pointer-events: none; }
.stage-noise { background: radial-gradient(#ffffff50 1px, transparent 1px); background-size: 18px 18px; opacity: .24; }
.stage-spot { opacity: .22; background: linear-gradient(#fffabb,transparent); }
.stage-content { min-height: 630px; padding: 30px; }
.live-pill { background: #f64475; color: white; border: 2px solid #fff7; font-weight: 1000; padding: 9px 13px; }
.live-light { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.duration { font-weight: 1000; color: #fff8bf; }
.hero-icon { width: 155px; height: 155px; background: linear-gradient(145deg,#ffe95a,#ff8753 55%,#ff468c);
  box-shadow: 0 0 0 10px #ffffff1a, 0 0 0 24px #ffffff14,8px 12px 0 #13093a,
  inset 0 3px 0 #ffffff9c; border: 5px solid #280f48; border-radius: 32%; transform: rotate(-8deg);
  animation: hero-float 3s ease-in-out infinite; }
.hero-icon:before { border: 3px dashed #ffe884; inset: -25px; border-radius: 35%; }
.hero-icon:after { border: 2px dashed #6becff77; inset: -42px; border-radius: 32%; }
.hero-icon span { color: #2d0d51; text-shadow: 2px 3px 0 #ffffff58; }
.stage-caption { color: var(--yellow); font-weight: 1000; font-size: 11px; letter-spacing: 3px; }
.stage-title { font-size: clamp(31px,4.8vw,66px); letter-spacing: -2.4px; font-weight: 1000;
  color: white; text-shadow: 4px 5px 0 #1b0e63; }
.stage-description { color: #f4e8ff; font-size: 15px; font-weight: 650; }
.stage-message { border-left: 5px solid var(--yellow); color: #fff8d2; background: #1b0b546e;
  border-radius: 0 13px 13px 0; font-weight: 700; }
.stage-footnote { color: #e1cef5; }
.side-panel { background: #fff1f9; color: #281143; border: 3px solid #1e0d3d; border-radius: 20px;
  box-shadow: 6px 7px 0 #080521; padding: 20px; }
.room-panel { background: linear-gradient(155deg,#79efff,#62d9f9); }
.players-panel { background: #ffeff8; }
.director-panel { background: #e7d8ff; }
.mini-label { color: #563679; font-size: 11px; font-weight: 1000; letter-spacing: 1px; }
.room-pill { color: #23113a; background: var(--yellow); border: 2px solid #241245; border-radius: 10px; font-size: 14px; }
.side-heading { color: #24113d; font-weight: 1000; }
.side-copy { color: #4b3168; font-weight: 650; }
.invite-button { color: white; background: #271147; border: 2px solid #170a38; border-radius: 12px;
  box-shadow: 4px 5px 0 #6ca7ce; font-weight: 1000; font-size: 11px; letter-spacing: .4px; }
.invite-button:hover { background: #4b227a; }
.copy-link-button { display: block; margin-top: 10px; width: 100%; border: 2px dashed #274466;
  color: #2a1540; background: #ffffff80; border-radius: 10px; font-weight: 850; padding: 10px; min-height: 44px; font-size: 12px; }
.inline-feedback { color: #26466b; font-weight: 750; overflow-wrap: anywhere; }
.player-row { border-bottom: 1px dashed #d1bada; padding: 6px 0; }
.avatar { background: var(--yellow) !important; color: #1b0b3b; border: 2px solid #27113d; border-radius: 12px; font-weight: 1000; }
.player-name { color: #2a1142; font-weight: 950; }
.player-meta { color: #765d80; font-weight: 700; }
.score { color: #29113e; background: #ffe77e; border-color: #ddaf39; font-weight: 1000; }
.tiny-dot { background: #ff3e7d; }
.fine-print { color: #674e7b; }
.game-footer { color: #d2b8ec; }
.action-button { background: var(--yellow); color: #28113e; border: 2px solid #24123c;
  border-radius: 13px; box-shadow: 3px 4px 0 #1d0a46; font-weight: 1000; min-height: 49px; }
.action-button.selected { background: #52ebff; color: #1b0c38; border-color: #fff49c; }
.option { background: #ffffff26; border: 2px solid #fae2ff90; border-radius: 14px; }
.option b { color: var(--yellow); }.option.selected { background: #ffef8247; border-color: var(--yellow); }
.user-role,.secret-card { background: #fff0a427; border: 2px solid #ffee83; border-radius: 17px; }
.user-role span,.secret-card span { color: #fff4af; }
.field { background: #fef8ff; color: #230f44; border: 2px solid #230c47; border-radius: 12px; font-size: 16px; }
.field:focus { background: white; }
.text-form label,.small-hint,.counter { color: #fff9c1; }
.answer-card { background: #32127290; border: 2px solid #ebbcff; border-radius: 15px; }
.answer-card p { color: #fff8ff; }
.status-tag { background: #ffec9840; color: #fffbd0; border: 1px solid var(--yellow); }
.count-card { background: #ffffff18; border: 1px solid #ffd86480; }
.result-lead,.count-card strong { color: var(--yellow); }.winner-name { color: var(--yellow); }
.toast { background: var(--yellow); border: 2px solid #210d41; color: #1c1030; box-shadow: 6px 6px 0 #08051d; }
@keyframes mascot-bop { 50% { transform: translateY(-11px) rotate(2deg); } }
@keyframes hero-float { 50% { transform: translateY(-10px) rotate(6deg); } }
@media(max-width:900px) {
  .room-grid { grid-template-columns: minmax(0,1fr); }
  .control-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .director-panel { grid-column:1/-1; }
  .landing { gap: 20px; grid-template-columns: minmax(0,1fr) minmax(290px,385px); }
  .landing-copy h1 { font-size:clamp(70px,9.3vw,120px); }
}
@media(max-width:650px) {
  .page-shell { padding:0 15px 42px; }
  .topbar { min-height:76px; }
  .brand-symbol { width:42px;height:42px;font-size:29px;border-radius:13px;box-shadow:3px 4px 0 #ff468a; }
  .brand { font-size:21px;gap:9px; }
  .beta-badge { display:none; }
  .landing { display:flex;flex-direction:column;gap:0;align-items:stretch;padding-top:19px; }
  .landing-copy { padding:0; }
  .eyebrow { font-size:10px;letter-spacing:1.5px; }
  .landing-copy h1 { font-size:clamp(67px,14vw,105px); margin:20px 0 14px; }
  .gradient-text { text-shadow:4px 5px 0 #ff3f8c,6px 8px 0 #09193f; }
  .punct { margin:0 0 0 6px; }
  .hero-tagline { font-size:11px; margin:8px 0; padding:9px 12px;box-shadow:3px 4px 0 #ff4d8d; }
  .lede { font-size:14px; line-height:1.55; margin:17px 0 0; }
  .feature-line { gap:7px; margin-top:15px; }
  .feature-line span { font-size:9px; padding:7px 8px; }
  .pop-art { display:block; width:100%;max-width:370px;height:182px;margin:4px auto 3px; }
  .pop-sticker { padding:8px 10px; font-size:10px; box-shadow:3px 4px 0 #110627; }
  .sticker-bottom { font-size:11px; }
  .star-a { font-size:29px; }
  .entry-card { width:100%;transform:none;margin:7px 0 0;padding:23px;box-shadow:7px 8px 0 #0b0625,11px 12px 0 #57e9f3; }
  .entry-card h2 { font-size:34px; }
  .entry-card .muted { font-size:13px; }
  .entry-bottom { margin-top:20px; }
  .session-header h1 { font-size:30px; }
  .game { padding-top:22px; }
  .stage-shell,.stage-content { min-height:585px; }
  .stage-content { padding:20px; }
  .hero-icon { width:110px; height:110px; margin:34px auto 30px; }
  .hero-icon span { font-size:62px; }
  .hero-icon::after { inset:-29px; }
  .stage-title { font-size:clamp(32px,8vw,44px); }
  .stage-description { font-size:14px; }
  .stage-shell::after { font-size:36px; top:70px; right:2%; }
  .control-side { grid-template-columns:1fr; }
  .director-panel { grid-column:auto; }
  .side-panel { box-shadow:4px 5px 0 #090521;padding:18px; }
  .game-footer { font-size:9px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-mascot,.hero-icon { animation:none; }
}
