:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #151519;
  --muted: #50505c;
  --line: #dcdbd3;
  --blue: #3029e8;
  --lime: #e0fc60;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
main:focus, .catalog:focus, .round-title:focus { outline: none; }
.shell { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, nav, .languages, .brand, .footer { display: flex; align-items: center; }
.header-inner { min-height: 77px; justify-content: space-between; gap: 20px; }
nav { gap: 29px; }
nav a { text-decoration: none; font-weight: 700; }
.nav-games:hover { color: var(--blue); }
.brand { gap: 3px; text-decoration: none; font-weight: 950; letter-spacing: -.075em; font-size: 1.53rem; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; background: var(--blue); border-radius: 8px; width: 33px; height: 33px; margin-right: 7px; transform: rotate(-8deg); }
.brand-icon::after { content: ""; width: 17px; height: 17px; background: var(--lime); clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 63%, 50% 100%, 36% 63%, 0 50%, 36% 35%); }
.brand-bang { color: var(--blue); margin-left: -2px; }
.languages { border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.languages a { padding: 8px 10px; font-size: .875rem; border-radius: 999px; }
.languages a[aria-current] { color: white; background: var(--ink); }
.languages a:hover:not([aria-current]) { background: #e8e7df; }
.skip { position: absolute; z-index: 2; top: 8px; left: 8px; transform: translateY(-160%); background: white; padding: .8rem; }
.skip:focus { transform: translateY(0); }
.hero { display: grid; grid-template-columns: 1fr .91fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 52px 60px; }
.hero h1, .game-heading h1 { font-size: clamp(3rem, 6.6vw, 6.45rem); line-height: .91; font-weight: 950; letter-spacing: -.085em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { max-width: 35ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.21rem); line-height: 1.52; margin-top: 23px; }
.hero-art { border-radius: 27px; overflow: hidden; background: #2419d2; aspect-ratio: 1.25; }
.hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .83rem 1.13rem; min-height: 47px; border: 1px solid transparent; border-radius: 11px; text-decoration: none; text-align: center; font-weight: 790; cursor: pointer; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: #2017bb; }
.quiet { color: var(--ink); background: transparent; border-color: #c7c6bf; }
.quiet:hover { background: #edebe1; }
.hero p.hero-note { font-size: .91rem; margin-top: 16px; max-width: none; }
.catalog { scroll-margin-top: 15px; padding-block: 28px 65px; border-top: 1px solid var(--line); }
.catalog h2 { font-size: clamp(2.15rem, 4.2vw, 4.1rem); letter-spacing: -.07em; line-height: .99; margin-bottom: 21px; font-weight: 950; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.brain-riot { --tile: #e0fc60; --tile-ink: #191c0a; }
.worst-advice { --tile: #ffaf92; --tile-ink: #351609; }
.between-us { --tile: #d9ccff; --tile-ink: #24124d; }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fffefb; border: 1px solid var(--line); border-radius: 21px; }
.art { position: relative; display: grid; place-items: center; height: 117px; overflow: hidden; background: var(--tile); color: var(--tile-ink); }
.art::before, .art::after { content: ""; position: absolute; border: 1px solid currentColor; opacity: .24; width: 230px; height: 72px; border-radius: 50%; transform: rotate(-22deg); }
.art::after { transform: rotate(18deg); }
.art-icon { display: block; z-index: 1; width: 63px; height: 63px; background-color: currentColor; transform: rotate(-12deg); }
.art-icon.bolt { clip-path: polygon(51% 0, 95% 0, 63% 39%, 89% 39%, 28% 100%, 45% 56%, 15% 56%); }
.art-icon.laugh { position: relative; border-radius: 50%; }
.art-icon.laugh::before { content: ""; position: absolute; top: 17px; left: 16px; width: 8px; height: 10px; border-radius: 50%; background: var(--tile); box-shadow: 22px 0 var(--tile); }
.art-icon.laugh::after { content: ""; position: absolute; top: 32px; left: 15px; width: 33px; height: 16px; background: var(--tile); border-radius: 2px 2px 20px 20px; }
.art-icon.heart { width: 49px; height: 49px; transform: translateY(7px) rotate(-45deg); }
.art-icon.heart::before, .art-icon.heart::after { content: ""; position: absolute; width: 49px; height: 49px; border-radius: 50%; background: currentColor; }
.art-icon.heart::before { top: -23px; }
.art-icon.heart::after { left: 23px; }
.art i, .art b { position: absolute; background: currentColor; width: 13px; height: 13px; clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%); }
.art i { left: 23%; top: 26%; }
.art b { right: 23%; bottom: 25%; width: 11px; height: 11px; }
.card-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 20px; }
.category { text-transform: uppercase; font-weight: 800; letter-spacing: .08em; font-size: .875rem; color: var(--muted); }
.card h3 { font-size: 1.83rem; line-height: 1.12; letter-spacing: -.055em; margin-top: 7px; }
.card p { color: var(--muted); line-height: 1.45; margin: 8px 0 17px; }
.card-meta { margin-top: auto; display: flex; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.card-meta span + span::before { content: "·"; margin-right: 12px; }
.card-action { width: 100%; margin-top: 15px; border-color: var(--line); }
.card-action:hover { background: var(--tile); border-color: var(--tile); color: var(--tile-ink); }
.footer { gap: 15px; justify-content: space-between; padding-block: 25px 31px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-brand { font-size: 1.12rem; color: var(--ink); }
.game-page { max-width: 795px; margin: auto; padding-block: 34px 64px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--blue); font-weight: 750; text-underline-offset: .25em; }
.game-heading { border-radius: 24px; background: var(--tile); padding: clamp(24px, 5vw, 45px); color: var(--tile-ink); }
.game-heading .category { color: inherit; }
.game-heading h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin-block: 10px 14px; }
.game-heading p:last-child { line-height: 1.5; max-width: 57ch; }
.round { margin-top: 18px; padding: clamp(22px, 5vw, 42px); background: #fffefb; border: 1px solid var(--line); border-radius: 24px; }
.meter { display: flex; align-items: center; gap: 13px; font-size: .9rem; font-weight: 750; color: var(--muted); }
progress { width: 100%; height: 7px; border: 0; border-radius: 20px; overflow: hidden; accent-color: var(--blue); background: #eceae1; }
progress::-webkit-progress-bar { background: #eceae1; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.position { white-space: nowrap; }
.round-title { font-size: clamp(1.75rem, 4.5vw, 3.35rem); line-height: 1.07; letter-spacing: -.06em; margin: 20px 0 23px; }
.options { display: grid; gap: 9px; }
.answer { background: var(--paper); border-color: var(--line); justify-content: flex-start; color: var(--ink); text-align: left; }
.answer:hover:not(:disabled) { border-color: var(--blue); }
.answer:disabled { cursor: default; opacity: 1; }
.answer.correct { background: #e1f6d1; border-color: #266d3f; }
.answer.incorrect { background: #fde4da; border-color: #a03121; }
.feedback, .summary { margin-block: 16px; color: var(--muted); line-height: 1.5; }
.feedback:empty { margin: 0; }
@media (max-width: 950px) {
  .shell { width: calc(100% - 60px); }
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(2.9rem, 7vw, 5rem); }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 66px; }
  nav { gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 35px; }
  .hero h1 { font-size: clamp(2.58rem, 10.8vw, 5.2rem); }
  .hero-art { border-radius: 20px; aspect-ratio: 1.6; }
  .hero p { margin-top: 18px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { padding-bottom: 40px; }
}
@media (max-width: 500px) {
  .nav-games { display: none; }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .hero-actions { margin-top: 20px; }
  .button { padding-inline: .88rem; }
  .game-page { padding-block: 25px 42px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
