/* The two games share a quiet, tactile interface while retaining their identities. */
html[data-experience] {
  --ink: #1d1d1f; --ink-soft: #303034; --paper: #f5f5f7; --white: #fff;
  --purple: #0071e3; --lime: #d6f3b3; --coral: #e76d52;
  --muted: #65656c; --line: #dcdce1; --shadow: var(--ui-shadow);
  background: var(--paper); color: var(--ink); color-scheme: light;
}
html[data-experience] body { background: var(--paper); font-family: var(--ui-font); }
html[data-experience] :is(h1, h2, h3) { font-family: var(--ui-font); }
html[data-experience] .topbar {
  height: 80px; border-bottom: 1px solid #1d1d1f0d;
  background: transparent;
}
html[data-experience] .brand { font-weight: 700; letter-spacing: -.055em; }
html[data-experience] .brand span { transform: none; }
html[data-experience] .brand i, html[data-experience] .ambient { display: none; }
html[data-experience] :is(.game-tabs, .topbar nav) { background: #e9e9ed; padding: 4px; border-radius: 99px; gap: 3px; }
html[data-experience] :is(.game-tabs a, .topbar nav a) { padding: 9px 19px; font-weight: 600; font-size: 13px; }
html[data-experience] :is(.game-tabs a, .topbar nav a)[aria-current] { color: #1d1d1f; background: #fff; box-shadow: 0 2px 8px #0000000d; }
html[data-experience] :is(.eyebrow, .step-label) { font-weight: 600; letter-spacing: .09em; font-size: 11px; }
html[data-experience] .eyebrow > span { display: none; }
html[data-experience] :is(.icon-button, .close-button) { background: #fff; border-color: #e8e8ed; width: 42px; height: 42px; font-weight: 500; }
html[data-experience] :is(.icon-button, .close-button):hover { transform: none; background: #e8e8ed; }
html[data-experience] :is(.intro-block h1, .hero h1) {
  font-size: clamp(48px, 5.1vw, 76px); font-weight: 700; line-height: 1.04;
  letter-spacing: -.065em; margin: 23px 0;
}
html[data-experience] :is(.intro-block h1, .hero h1) em { color: var(--purple); }
html[data-experience] :is(.intro-block > p, .lead) { font-size: 18px; line-height: 1.65; color: var(--muted); }
html[data-experience] :is(.panel-heading h2, .modal h2) { font-weight: 650; letter-spacing: -.04em; }
html[data-experience] :is(.primary-button, .primary) {
  background: #0071e3; color: #fff; border: 0; border-radius: 99px;
  box-shadow: none; font-weight: 600; min-height: 50px;
  transition: background .2s, transform .2s;
}
html[data-experience] :is(.primary-button, .primary):hover:not(:disabled) { background: #0077ed; box-shadow: none; transform: translateY(-1px); }
html[data-experience] :is(.secondary-button, .secondary) { background: #fff; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; }
html[data-experience] :is(input:not([type="range"]):not([type="checkbox"]), select, textarea) { border-radius: 12px; border-color: #d2d2d7; background: #fff; }
html[data-experience] :is(.modal, dialog) { border-radius: 26px; border: 1px solid #e4e4e9; box-shadow: 0 30px 100px #00000026; }
html[data-experience] :is(.modal-backdrop, dialog::backdrop) { backdrop-filter: blur(8px); }
html[data-experience] .game-guide { padding-top: 50px; }
html[data-experience] .game-guide h2 { font-weight: 650; letter-spacing: -.04em; }
html[data-experience] .game-guide a { color: #0066cc; }
html[data-experience] .game-guide details { padding: 20px 0; }
html[data-experience] footer { font-size: 11px; letter-spacing: 0; line-height: 1.7; }

/* Czółko */
html[data-experience="czolko"] .container { max-width: 1200px; }
html[data-experience="czolko"] .setup-layout { grid-template-columns: .94fr 1.1fr; gap: clamp(36px, 6vw, 88px); padding-top: 64px; padding-bottom: 100px; }
html[data-experience="czolko"] .intro-block { padding-top: 32px; top: 64px; }
html[data-experience="czolko"] .setup-panel { border: 1px solid #fff; border-radius: 30px; box-shadow: var(--ui-shadow); padding: 32px; }
html[data-experience="czolko"] .atlas-link { transform: none; border: 0; border-radius: 18px; background: #eaeef4; padding: 17px 20px; margin: 22px 0 0; transition: background .2s; }
html[data-experience="czolko"] .atlas-link:hover { background: #e1e9f5; }
html[data-experience="czolko"] .atlas-link > span { color: #65656c; font-size: 9px; font-weight: 600; letter-spacing: .08em; }
html[data-experience="czolko"] .atlas-link strong { color: #0066cc; font-size: 15px; font-weight: 600; }
html[data-experience="czolko"] .quick-rules { margin-top: 38px; gap: 0; }
html[data-experience="czolko"] .quick-rules div { padding: 16px 0; }
html[data-experience="czolko"] .quick-rules b { color: #86868b; font-weight: 500; }
html[data-experience="czolko"] .quick-rules span { font-weight: 500; font-size: 14px; }
html[data-experience="czolko"] .deck-grid { gap: 10px; }
html[data-experience="czolko"] .deck-card { background: #f5f5f7; border: 1.5px solid transparent; border-radius: 18px; min-height: 90px; padding: 13px; gap: 10px; }
html[data-experience="czolko"] .deck-card:hover { background: #eeeef1; transform: translateY(-1px); }
html[data-experience="czolko"] .deck-card[aria-checked="true"] { background: #f0f6ff; border-color: #0071e3; box-shadow: none; transform: none; }
html[data-experience="czolko"] .deck-card[aria-checked="true"] .deck-check { background: #0071e3; border-color: #0071e3; }
html[data-experience="czolko"] .deck-copy b { font-weight: 600; font-size: 13px; }
html[data-experience="czolko"] .deck-copy small { font-size: 11px; }
html[data-experience="czolko"] .deck-icon { border-radius: 12px; width: 36px; height: 36px; font-size: 19px; }
html[data-experience="czolko"] .player-index { background: #eaf2ff; color: #0066cc; border-radius: 50%; font-weight: 600; }
html[data-experience="czolko"] :is(.text-button, .add-player-button) { color: #0066cc; font-weight: 600; }
html[data-experience="czolko"] .start-button { margin-top: 24px; }
html[data-experience="czolko"] :is(.handoff-screen, .round-summary-screen, .results-screen) { background: #151519; }
html[data-experience="czolko"] .stage-icon { transform: none; border-radius: 24px; background: #0071e3; color: #fff; }
html[data-experience="czolko"] :is(.stage-card h2, .summary-hero h2, .results-card h2) { font-weight: 650; line-height: 1.05; }
html[data-experience="czolko"] .game-screen { background: radial-gradient(ellipse at 50% 0, #2456ac, #14316a); }
html[data-experience="czolko"] :is(.game-screen::before, .game-screen::after, .corner) { display: none; }
html[data-experience="czolko"] .word-card { transform: none; border-radius: 32px; box-shadow: 0 20px 70px #00000024; }
html[data-experience="czolko"] .word-card h1 { line-height: 1.05; font-weight: 700; }
html[data-experience="czolko"] .mini-avatar { border-radius: 50%; }

/* Que */
html[data-experience="que"] { --purple: #6955c9; }
html[data-experience="que"] main { max-width: 1260px; padding-top: 72px; }
html[data-experience="que"] .hero { grid-template-columns: 1.2fr 1fr; gap: 56px 76px; }
html[data-experience="que"] .hero .primary { background: #0071e3; color: #fff; border: 0; box-shadow: none; }
html[data-experience="que"] .entry-card { border: 1px solid #fff; background: #fff; padding: 25px; border-radius: 24px; box-shadow: var(--ui-shadow); }
html[data-experience="que"] .entry-card h2 { font-size: 24px; font-weight: 650; }
html[data-experience="que"] .entry-card .eyebrow { color: #65656c; }
html[data-experience="que"] .record-card { transform: none; border-radius: 32px; background: radial-gradient(ellipse at 40% 20%, #d5c9f1, #b0a0dd 60%, #8873bb); box-shadow: 0 24px 60px #5940991a; max-width: 440px; }
html[data-experience="que"] .record { background: repeating-radial-gradient(circle, #19191c 0 2px, #333339 3px, #19191c 4px 6px); box-shadow: 0 20px 35px #0000003d; }
html[data-experience="que"] .record-label { background: #e8dffa; color: #292032; font-weight: 650; letter-spacing: -.06em; }
html[data-experience="que"] .record-sticker { transform: none; border-radius: 99px; background: #ffffffd9; padding: 12px 15px; font-weight: 600; }
html[data-experience="que"] .record-bottom { color: #302344; letter-spacing: .05em; }
html[data-experience="que"] .record-bottom b { font-weight: 600; }
html[data-experience="que"] .rules { padding-top: 30px; margin-top: 16px; }
html[data-experience="que"] .rules h2 { font-weight: 650; }
html[data-experience="que"] .rules li b { font-weight: 600; }
html[data-experience="que"] :is(.player-card, .feedback) { border-radius: 24px; border-color: #e5e5ea; box-shadow: var(--ui-shadow); }
html[data-experience="que"] .play-button { background: #0071e3; color: #fff; box-shadow: 0 0 0 9px #edf4ff; transition: transform .2s; }
html[data-experience="que"] .play-button:hover { transform: scale(1.04); }
html[data-experience="que"] .attempts li { border-radius: 12px; }
html[data-experience="que"] .attempts .active { background: #1d1d1f; }
html[data-experience="que"] .attempts .active span { color: #d6d6dd; }
html[data-experience="que"] .total strong { color: #6955c9; font-weight: 650; }
html[data-experience="que"] .score-pill { background: #1d1d1f; color: #fff; }
@media (max-width: 900px) {
  html[data-experience="czolko"] .setup-layout { grid-template-columns: 1fr; padding-top: 26px; gap: 36px; }
  html[data-experience="czolko"] .intro-block { position: static; padding-top: 12px; }
  html[data-experience="czolko"] .quick-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 12px; }
  html[data-experience="czolko"] .quick-rules div { display: grid; gap: 6px; align-content: start; }
  html[data-experience="czolko"] .intro-block > p { max-width: 600px; }
}
@media (max-width: 760px) {
  html[data-experience] .topbar { height: 72px; }
  html[data-experience] :is(.intro-block h1, .hero h1) { font-size: clamp(40px, 9.4vw, 62px); line-height: 1.05; letter-spacing: -.06em; }
  html[data-experience] :is(.intro-block > p, .lead) { font-size: 16px; }
  html[data-experience="czolko"] .setup-panel { padding: 24px 20px; border-radius: 24px; }
  html[data-experience="czolko"] .deck-card { min-height: 84px; padding: 10px; gap: 8px; }
  html[data-experience="czolko"] .deck-icon { width: 30px; height: 34px; }
  html[data-experience="que"] main { padding-top: 36px; }
  html[data-experience="que"] .hero { grid-template-columns: 1fr; gap: 36px; }
  html[data-experience="que"] .record-card { max-width: 300px; width: 82%; justify-self: center; }
  html[data-experience="que"] .entry-card { padding: 22px; }
}
@media (max-width: 380px) {
  html[data-experience="czolko"] .deck-card { grid-template-columns: 1fr auto; }
  html[data-experience="czolko"] .deck-icon { display: none; }
  html[data-experience] :is(.game-tabs a, .topbar nav a) { padding: 8px 12px; }
}
