/* The scenery is shaded separately from the vivid foreground game controls. */
:root {
  --white: #fff;
  --muted: #d1d9ff;
  --panel: #313b86;
  --line: #7b83d0;
  --lime: #ffb23d;
  --blue: #a6e8ff;
}
body {
  padding-left: 0;
  overflow-x: clip;
  min-height: 100vh;
  background-color: #294d9b;
  background-image: repeating-conic-gradient(from -8deg at 50% 36%, #ffffff0a 0deg 15deg, #ffffff00 15deg 30deg), linear-gradient(155deg, #3d70cb 0%, #365bb9 52%, #294d9b 100%);
  background-attachment: fixed;
  color: #fff;
}
body[data-scene="home"] {
  background-color: #346bc1;
  background-image: linear-gradient(#0b173647, #0b173647), url('https://media.cs2geoguessr.com/assets/menu-courtyard-1440-v1.webp');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}
body > header {
  height: 76px;
  padding: 18px 30px 9px;
  margin: 0;
  border: 0;
  background: none;
  gap: 20px;
}
.menu-brand {
  text-transform: none;
  position: relative;
  display: block;
  transform: rotate(-5deg);
  font: 800 25px/.77 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: -.4px;
  color: #fff;
  -webkit-text-stroke: 4px #29134e;
  paint-order: stroke fill;
  text-shadow: 2px 4px 0 #29134e;
}
.menu-brand span { color: #fff; position: absolute; right: -10px; bottom: -1px; }
.menu-nav { display: flex; align-items: center; gap: 10px; }
.menu-nav-button, .menu-user {
  border: 2px solid #91afe680;
  border-bottom: 3px solid #203a78;
  border-radius: 11px;
  background: #294b86aa;
  color: #fff;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
}
.menu-nav-button:hover, .menu-user:hover { background: #412585a6; border-color: #cbc2ff; }
.menu-nav-button svg { width: 22px; height: 22px; }
.menu-user { padding: 5px 12px 5px 5px; min-width: 132px; justify-content: flex-start; }
.menu-user .avatar { width: 32px; height: 32px; border: 2px solid #fff; border-radius: 50%; }
main, main#app { max-width: 1090px; margin: 0 auto; padding: 24px 28px 45px; }
main#app.menu-home { padding-top: 4px; padding-bottom: 0; }
.menu-intro { text-align: center; margin: 0 auto 49px; }
.menu-kicker { margin: 0 0 10px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 2.4px; text-shadow: 0 1px 0 #244f88; }
.menu-wordmark {
  text-transform: none;
  display: inline-block;
  position: relative;
  color: #fff;
  font: 800 clamp(60px, 7vw, 88px)/.95 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: -1px;
  transform: rotate(-2deg);
  -webkit-text-stroke: 8px #29134e;
  paint-order: stroke fill;
  text-shadow: 0 8px 0 #29134e;
}
.menu-wordmark span { display: inline-block; transform: rotate(8deg); margin-left: 3px; }
.footer-links{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:12px}.footer-links a{color:inherit;text-underline-offset:4px}.footer-links a:hover{text-decoration:underline}
.menu-tagline { margin: 16px 0 0; font-size: 12px; color: #fff; text-shadow: 0 1px 0 #244f88; }
.play-options { display: grid; grid-template-columns: 185px 1.06fr 1fr; gap: 31px; align-items: center; max-width: 855px; margin: auto; perspective: 1600px; }
.menu-profile {
  padding: 35px 15px 29px;
  border: 3px solid #8495cf;
  border-bottom-color: #253b96;
  border-radius: 13px;
  background: #33477be8;
  text-align: center;
  box-shadow: 0 5px 0 #253553, inset 0 0 0 1px #ffffff16;
}
.profile-avatar-button { position: relative; display: block; margin: 0 auto 19px; padding: 0; background: none; border: 0; border-radius: 50%; }
.profile-avatar-button > .avatar { width: 108px; height: 108px; border-radius: 50%; border: 1px solid #9eb7dc80; background: #33477b; }
.avatar-portrait { background-image: url('https://media.cs2geoguessr.com/assets/menu-avatars.webp'); background-size: 300% 100%; }
.avatar-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.avatar-edit { position: absolute; bottom: -1px; right: 0; border: 1px solid #c5d5ed; background: #ff704b; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; }
.avatar-edit svg { width: 16px; height: 16px; }
.profile-name-row { display: flex; gap: 0; padding: 0 5px 0 0; background: #28246b91; border: 1px solid #b4a6ff54; border-radius: 8px; align-items: center; }
.profile-name-row input { min-width: 0; border: 0; padding: 11px 8px; background: none; font-weight: 800; font-size: 13px; }
.profile-name-row button { background: none; border: 0; padding: 5px; color: white; display: grid; place-items: center; border-radius: 4px; }
.profile-name-row button svg { width: 22px; height: 22px; }
.profile-name-row button:hover { background: #ffffff26; }
.play-card {
  width: 100%;
  height: 460px;
  position: relative;
  padding: 0;
  border: 5px solid #ffb34a;
  border-bottom: 8px solid #9c3d3c;
  border-radius: 16px;
  overflow: visible;
  background-color: #f36d2e;
  background-image: repeating-conic-gradient(from -10deg at 50% 30%, #ffc24638 0deg 19deg, transparent 19deg 38deg);
  color: #fff;
  box-shadow: 0 6px 0 #422449, 0 9px 0 #18244066;
  transform: rotate(-1.4deg);
  transition: transform .16s ease, border-color .16s ease;
  isolation: isolate;
}
.play-card::after { content: ''; position: absolute; inset: 0; border: 1px solid #ffffff70; border-bottom-color: #ffffff1a; border-radius: 10px; pointer-events: none; z-index: 0; }
.quick-card::before, .private-create::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; border-radius: 0 0 9px 9px; clip-path: polygon(0 13%, 100% 0, 100% 100%, 0 100%); background: #eb672c; z-index: 2; pointer-events: none; }
.private-card { display: flex; flex-direction: column; margin: 9px 0 0; background-color: #08b98a; background-image: repeating-conic-gradient(from 10deg at 50% 26%, #5affc32e 0deg 19deg, transparent 19deg 38deg); border-color: #71e8ad; border-bottom-color: #0b6f62; height: 437px; transform: rotate(1.3deg); }
.private-create { flex: 1; min-height: 0; width: 100%; position: relative; display: block; border: 0; padding: 0; color: #fff; background: transparent; }
.private-create:focus-visible { outline: 3px solid #fff; outline-offset: -6px; z-index: 3; }
.play-card img { position: absolute; display: block; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: none; opacity: 1; }
.card-art-window { position: absolute; top: -34px; left: -19px; right: -19px; height: calc(100% - 87px); z-index: 1; pointer-events: none; clip-path: inset(0 19px 0 19px); }
.play-card .card-character { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.private-create .card-art-window { top: -27px; left: -16px; right: -16px; height: calc(100% - 72px); clip-path: inset(0 16px 0 16px); }
.private-create::before { background: #08ab83; height: 34%; }
.play-card:hover { transform: translateY(-7px) rotate(-2deg); border-color: #ffe3a8; }
.private-card:hover { transform: translateY(-7px) rotate(2deg); border-color: #c5ffbc; }
.quick-card:active { transform: translateY(2px); }
.play-card-label { position: absolute; bottom: 23px; left: 12px; right: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 13px; z-index: 3; }
.play-card-label strong { color: #fff; font: 800 72px/.86 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.3px; transform: rotate(-5deg); -webkit-text-stroke: 7px #25164e; paint-order: stroke fill; text-shadow: 0 6px 0 #25164e; }
.private-card .play-card-label { bottom: 16px; gap: 12px; }
.private-card .play-card-label strong { font-size: 65px; }
.play-card-label > span { background: #2f1752; border-radius: 6px; padding: 6px 10px; font-size: 10px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.play-card-label svg { width: 13px; height: 13px; }
.private-footer { position: relative; flex: 0 0 auto; z-index: 4; background: #064f61; border-top: 1px solid #a4f3c76b; border-radius: 0 0 8px 8px; overflow: hidden; }
.join-code-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px 12px; border: 0; background: none; color: #ddfff0; font-size: 10px; font-weight: 600; }
.join-code-toggle:hover { background: #ffffff10; }
.private-join { position: relative; padding: 2px 13px 13px; background: #064f61; }
.private-join[hidden] { display: none; }
.private-join label { display: block; margin: 0 0 7px; color: #d9ffef; font-weight: 600; font-size: 10px; line-height: 1.3; }
.private-join-row { display: flex; gap: 7px; }
.private-join input { min-width: 0; width: 100%; flex: 1; border: 1px solid #d4ffea80; border-radius: 7px; padding: 9px 10px; background: #e9fff8; color: #123a46; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.private-join input::placeholder { color: #60828b; }
.private-join input[aria-invalid="true"] { outline: 2px solid #ffb16c; outline-offset: 1px; }
.private-join button { display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; padding: 8px 11px; border: 1px solid #c4ffba; border-bottom: 3px solid #126c55; border-radius: 7px; color: #123a37; background: #9af799; font-size: 12px; font-weight: 800; }
.private-join button:hover { background: #c7ffc3; }
.private-join svg { width: 13px; height: 13px; }
.menu-games { max-width: 960px; margin: 39px auto 0; padding: 0; border: 0; background: none; box-shadow: none; }
.menu-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.menu-section-title h2 { text-transform: none; font: 800 29px 'Barlow Condensed', Impact, sans-serif; text-shadow: 0 2px 0 #1c2f54; }
.menu-section-title > span { font-size: 11px; color: #e0e8f8; text-shadow: 0 1px 0 #1c2f54; }
.game-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 19px; align-items: stretch; }
.game-tile { display: flex; flex-direction: column; position: relative; padding: 0; overflow: hidden; border: 3px solid #839bd0; border-radius: 14px; box-shadow: 0 5px 0 #142554; text-align: left; background: linear-gradient(160deg, #304785, #213367); color: white; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.game-tile { text-decoration: none; }
.game-tile:not(.is-unavailable):hover { transform: translateY(-4px); border-color: #ffce75; box-shadow: 0 9px 0 #142554; }
.game-tile:not(.is-unavailable):active { transform: translateY(2px); box-shadow: 0 3px 0 #142554; }
.game-tile.is-unavailable { filter: grayscale(1); opacity: .65; cursor: default; }
.game-tile.is-unavailable .game-start { background: #b5bac3; border-color: #cdd1d9; color: #263044; box-shadow: none; }
@media(min-width:651px) and (max-width:950px){.game-shelf{grid-template-columns:repeat(2,minmax(0,1fr));}}
.game-tile-art { height: auto; aspect-ratio: 16 / 9; flex: 0 0 auto; width: 100%; position: relative; background: #8177cf; overflow: hidden; }
.game-tile-art img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 1; filter: none; }
.game-sign { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: #fff; text-align: center; background: repeating-conic-gradient(from 5deg at 50% 45%, #ffffff0b 0deg 18deg, transparent 18deg 36deg), #375f9f; }
.sign-player { background-color: #5157a4; }
.game-sign > strong { font: italic 700 clamp(24px, 2.5vw, 36px)/.95 'Barlow Condensed', Impact, sans-serif; text-shadow: 0 3px 0 #19285b; letter-spacing: .3px; }
.sign-tag, .sign-detail { font-size: 8px; font-weight: 600; letter-spacing: 1.4px; color: #e1eaff; }
.sign-detail { font-size: 7px; letter-spacing: 1px; }
.sign-lineup { display: flex; justify-content: center; gap: 7px; }
.sign-lineup span { display: grid; place-items: center; width: 30px; height: 43px; border: 1px solid #a4c5ff; border-radius: 5px; background: #213e79; font: 600 25px 'Barlow Condensed', Impact, sans-serif; }
.sign-lineup span:last-child { color: #ffcc66; border-color: #ffcc66; background: #30467c; }
.modeart .game-sign { gap: 7px; padding: 10px; }
.modeart .game-sign > strong { font-size: 25px; }
.modeart .sign-detail { display: none; }
.modeart .sign-lineup { gap: 4px; }
.modeart .sign-lineup span { width: 23px; height: 30px; font-size: 20px; }
.game-tile-copy { display: flex; flex-direction: column; flex: 1; position: relative; padding: 20px 20px 17px; border-top: 2px solid #8296d080; }
.game-category { display: none; }
.game-tile-copy h3 { font: italic 700 30px/1.1 'Barlow Condensed', Impact, sans-serif; letter-spacing: .1px; margin: 0 0 11px; text-transform: uppercase; text-shadow: 0 3px 0 #142554; }
.game-tile-copy p { color: #e0e8ff; font-size: 12px; line-height: 1.65; margin: 0 0 20px; }
.game-mode-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 11px; color: #d0dcfa; border: 0; padding-top: 0; }
.game-mode-meta .game-start { margin-left: auto; }
.game-start { color: #26345f; background: #ffbf53; border: 1px solid #ffe0a0; border-radius: 6px; box-shadow: 0 3px 0 #12234e; padding: 7px 20px; font: 700 18px/1 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; display: flex; align-items: center; }
.game-tile:not(.is-unavailable):hover .game-start { background: #ffd384; }
.learn-area { position: relative; isolation: isolate; padding: 47px 0 56px; margin-top: 54px; }
.learn-area::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(180deg, #2b3a85 0%, #172254 100%); border-top: 1px solid #8f96da59; z-index: -1; }
.how-to-play { scroll-margin-top: 28px; }
.learn-title { color: #00e3b0; font: italic 800 42px/1.1 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; letter-spacing: .1px; text-align: center; text-shadow: 0 3px 0 #102853; margin: 0 0 35px; }
.home-about { max-width: 820px; margin: 0 auto 56px; }
.home-about .learn-title { text-align: left; margin-bottom: 20px; }
.home-about > p { color: #edf0ff; font-size: 15px; line-height: 1.8; margin: 0 0 24px; max-width: 760px; }
.home-game-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 36px; padding: 0 0 0 20px; margin: 0; color: #dbe5ff; font-size: 14px; line-height: 1.75; }
.home-game-list li { padding-left: 3px; }
.home-game-list li::marker { color: #ffca68; }
.home-game-list a { color: #ffce79; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffce7970; }
.home-game-list a:hover { color: #fff; text-decoration-color: currentColor; }
.home-game-soon { color: #c1cde4; font-size: 11px; white-space: nowrap; }
@media(max-width:650px){.home-about{margin-bottom:40px}.home-about .learn-title{font-size:32px}.home-about>p{font-size:14px}.home-game-list{grid-template-columns:1fr;gap:14px}}
.how-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; max-width: 820px; margin: 0 auto; }
.how-step { text-align: center; }
.how-illustration { height: 236px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.how-illustration img { display: block; width: 100%; height: 100%; object-fit: contain; }
.how-step h3 { font: italic 800 25px/1.15 'Barlow Condensed', Impact, sans-serif; text-transform: none; letter-spacing: 0; margin: 0 0 12px; }
.how-step p { color: #edf0ff; font-size: 12px; line-height: 1.8; margin: 0 auto; max-width: 340px; }
.game-faq { max-width: 730px; margin: 63px auto 0; }
.faq-title { color: #ffad26; margin-bottom: 23px; }
.game-faq details { border-bottom: 1px solid #9eafd24d; }
.game-faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 30px 18px 0; color: #fff; font: 700 15px/1.45 Inter, Arial, sans-serif; }
.game-faq summary::-webkit-details-marker { display: none; }
.game-faq summary::after { content: ''; position: absolute; width: 7px; height: 7px; border-right: 2px solid #d2dbf9; border-bottom: 2px solid #d2dbf9; right: 4px; top: 23px; transform: rotate(45deg); }
.game-faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.game-faq summary:hover { color: #a4f5de; }
.game-faq summary:focus-visible { outline: 2px solid #9ef2da; outline-offset: 4px; border-radius: 3px; }
.game-faq p { color: #e0e5f7; font-size: 13px; line-height: 1.8; margin: 0; padding: 0 30px 21px 0; }
body > footer { width: calc(100% - 56px); max-width: 1034px; margin: 0 auto; padding: 16px 0 20px; border-color: #b5b0ff40; color: #dedcff; font-size: 9px; }
body[data-scene="home"] > footer { width: 100%; max-width: none; padding: 22px max(24px, calc((100% - 1034px) / 2)); background: #172254; border-top: 1px solid #8795bf40; color: #bec9e8; }
/* The same palette carries through the room and match screens. */
.box, .roomplayers, .roomsettings { background: #304f91; border: 2px solid #86a6df; border-bottom: 5px solid #203970; border-radius: 15px; }
.note { background: #243f76; border: 1px solid #7597ca; color: #d9dfff; }
.field, .small, .back, p { color: #d5dcff; }
.eyebrow { color: #ffc553; }
.btn { background: #ffbb45; color: #241644; border: 2px solid #ffda83; border-bottom: 4px solid #9a4d59; border-radius: 9px; }
.btn:hover { background: #ffd17a; }
.btn.secondary { background: #375991; border: 2px solid #86a6df; border-bottom: 4px solid #203970; color: #fff; }
.btn.secondary:hover { background: #426ba8; }
input, select { background: #203f76; border-color: #86a6df; }
.roundtop { background: #304f91; border: 2px solid #86a6df; color: #e9e7ff; }
.clue { background: #3a5c97; border-color: #8c92d6; }
.option { background: #375991; border-color: #86a6df; border-bottom-color: #203970; }
.option:hover { background: #426ba8; border-color: #ffcd69; }
.mode { background: #375991; border-color: #86a6df; }
.mode p { color: #e1e1ff; }
.avatar { background-color: #394ab3; }
.modalbg { background: #171038bd; backdrop-filter: none; }
.modal { position: relative; background: #304f91; border: 3px solid #91afe6; border-bottom: 6px solid #203970; border-radius: 17px; box-shadow: 0 9px 0 #172e60; }
.modal h2 { margin: 10px 0 0; font-size: 39px; }
.modal-close { position: absolute; top: 13px; right: 13px; border: 0; border-radius: 7px; padding: 5px; color: #fff; background: #203f76; display: grid; place-items: center; }
.modal-close svg { width: 19px; height: 19px; }
.avatar-modal { display: flex; flex-direction: column; width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.avatar-modal h2 { padding-right: 24px; }
.avatar-modal .avatar-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 22px 0; padding: 3px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.avatar-modal .avatar-option { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 10px 5px; background: #263f78; border: 2px solid #668bc3; border-radius: 10px; font: 600 11px/1.3 Inter, sans-serif; color: #fff; }
.avatar-option:hover, .avatar-option.selected { background: #3f609c; border-color: #ffcf76; }
.avatar-option:focus-visible { outline: 2px solid #ffcf76; outline-offset: 2px; }
.avatar-modal .avatar-option .avatar { display: block; width: 72px; height: 72px; margin: 0; border-radius: 50%; border: 0; flex-shrink: 0; }
.avatar-modal > .btn { align-self: flex-end; flex-shrink: 0; }
@media(max-width:650px) { .avatar-modal .avatar-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .avatar-modal .avatar-option .avatar { width: 64px; height: 64px; } }
.leaderboard-modal.rankings-modal { width: min(800px, calc(100vw - 40px)); max-width: 100%; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; background: #304f94; border: 2px solid #91afe6; border-radius: 16px; box-shadow: 0 5px 0 #203a78; }
.rankings-modal h2 { margin: 0; padding-right: 40px; font-size: 40px; text-shadow: 0 3px 0 #203a78; }
.rankings-modal .modal-close { width: 44px; height: 44px; top: 16px; right: 16px; background: #263c74; border: 1px solid #708abd; }
.rankings-tabs { display: grid; grid-template-columns: .7fr 1fr 1fr 1.3fr; gap: 8px; margin: 26px 0 24px; }
.rankings-tabs button { min-height: 48px; padding: 9px 12px; border: 1px solid #819ed6; border-bottom: 3px solid #203a78; border-radius: 7px; background: #3a599b; color: #e7efff; font-size: 12px; font-weight: 600; line-height: 1.35; }
.rankings-tabs button:hover { background: #4669ad; }
.rankings-tabs button[aria-pressed="true"] { background: #ffbd6a; border-color: #ffd197; border-bottom-color: #bf7d37; color: #241c19; }
.rankings-columns { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 0 14px 12px; color: #d5e5ff; font-size: 12px; border-bottom: 1px solid #91afe64d; }
.rankings-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ranking-row { display: grid; grid-template-columns: 32px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 70px; padding: 12px; border: 2px solid transparent; border-radius: 8px; background: #ffffff04; }
.ranking-row:nth-child(even) { background: #a0bcff17; }
.ranking-row.is-you { border-color: #ffe642; background: #668aca3d; }
.ranking-avatar { display: grid; place-items: center; position: relative; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #203a78; color: #d5e5ff; font-size: 12px; font-weight: 600; }
.ranking-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ranking-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 600 24px/1.15 'Barlow Condensed', Impact, sans-serif; }
.ranking-name small { display: block; color: #d5e5ff; font: 500 10px Inter, Arial, sans-serif; margin-top: 4px; }
.rankings-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 240px; padding: 30px 12px; text-align: center; }
.rankings-empty h3 { font-size: 30px; }
.rankings-empty p { color: #d5e5ff; font-size: 13px; margin: 12px 0 0; }
@media (max-width: 600px) {
  .leaderboard-modal.rankings-modal { padding: 24px 16px 16px; }
  .rankings-modal h2 { font-size: 34px; }
  .rankings-tabs { grid-template-columns: 1fr 1fr; margin: 24px 0; }
  .rankings-tabs button { padding: 8px; }
  .rankings-columns { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding-left: 8px; padding-right: 8px; }
  .ranking-row { grid-template-columns: 24px 32px minmax(0, 1fr) auto; gap: 8px; padding: 10px 6px; }
  .ranking-avatar { width: 32px; height: 32px; }
  .ranking-name { font-size: 21px; }
  .rankings-modal .rank-score, .rankings-modal .rank-place { font-size: 24px; }
  .rankings-empty { min-height: 200px; }
}
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
@media (min-width: 1700px) {
  .play-options, .menu-games { max-width: 960px; }
  .play-options { max-width: 925px; grid-template-columns: 195px 1.06fr 1fr; gap: 33px; }
  .quick-card { height: 492px; }
  .private-card { height: 469px; }
  .menu-intro { margin-bottom: 50px; }
}
@media (max-width: 900px) {
  .play-options { grid-template-columns: 155px 1.06fr 1fr; gap: 25px; }
  .quick-card { height: 410px; }
  .private-card { height: 390px; }
  .play-card-label strong { font-size: 61px; }
  .private-card .play-card-label strong { font-size: 55px; }
  .menu-profile { padding: 30px 10px 25px; }
  .profile-avatar-button > .avatar { width: 105px; height: 105px; }
  .game-shelf { gap: 14px; }
  .game-tile-copy { padding: 17px 15px 15px; }
  .game-tile-copy h3 { font-size: 20px; }
  .game-tile-copy p { font-size: 11px; }
  .how-steps { gap: 40px; }
  .private-join { padding: 2px 10px 10px; }
}
@media (max-width: 650px) {
  body > header { height: 65px; padding: 13px 18px 8px; }
  .menu-brand { font-size: 23px; }
  .menu-nav { gap: 7px; }
  .menu-nav-button { min-height: 38px; padding: 7px 9px; gap: 6px; font-size: 10px; }
  .menu-nav-button svg { width: 19px; height: 19px; }
  .help-button { display: none; }
  .menu-user { min-width: 0; min-height: 38px; padding: 4px; }
  .menu-user > span:last-child { display: none; }
  .menu-user .avatar { width: 26px; height: 26px; }
  main, main#app { padding: 20px 17px 28px; }
  main#app.menu-home { padding: 13px 19px 0; }
  .menu-intro { margin-bottom: 27px; }
  .menu-kicker { font-size: 8px; letter-spacing: 1.8px; margin-bottom: 11px; }
  .menu-wordmark { font-size: clamp(32px, 10vw, 72px); -webkit-text-stroke-width: 6px; text-shadow: 0 6px 0 #29134e; }
  .menu-tagline { font-size: 11px; margin-top: 14px; }
  .play-options { grid-template-columns: 1.04fr 1fr; gap: 36px 17px; max-width: 470px; }
  .menu-profile { grid-column: 1 / -1; display: grid; grid-template-columns: 50px minmax(0,1fr); grid-template-rows: auto; gap: 13px; align-items: center; text-align: left; padding: 11px 13px; border-width: 3px; border-radius: 11px; }
  .profile-avatar-button { grid-row: 1; grid-column: 1; margin: 0; }
  .profile-avatar-button > .avatar { width: 49px; height: 49px; }
  .avatar-edit { width: 20px; height: 20px; right: -5px; bottom: -3px; }
  .avatar-edit svg { width: 10px; height: 10px; }
  .profile-name-row { grid-column: 2; grid-row: 1; margin: 0; background: #28246b66; }
  .profile-name-row input { padding: 6px 8px; font-size: 12px; }
  .profile-name-row button { padding: 3px 5px; }
  .profile-name-row button svg { width: 19px; height: 19px; }
  .play-card, .private-card { border-width: 4px; border-bottom-width: 6px; border-radius: 12px; box-shadow: 0 5px 0 #39245e, 0 8px 0 #1d284c66; }
  .quick-card { height: clamp(294px, 74vw, 370px); }
  .private-card { height: clamp(280px, 71vw, 352px); margin-top: 7px; }
  .card-art-window { top: -22px; left: -11px; right: -11px; height: calc(100% - 81px); clip-path: inset(0 11px 0 11px); }
  .private-create .card-art-window { top: -18px; left: -11px; right: -11px; height: calc(100% - 63px); clip-path: inset(0 11px 0 11px); }
  .play-card .card-character { object-fit: cover; }
  .quick-card::before { height: 39%; }
  .play-card-label { bottom: 22px; gap: 11px; left: 5px; right: 5px; }
  .play-card-label strong { font-size: clamp(35px, 9.5vw, 50px); -webkit-text-stroke-width: 5px; text-shadow: 0 4px 0 #25164e; }
  .private-card .play-card-label strong { font-size: clamp(33px, 9vw, 47px); }
  .play-card-label > span { font-size: 9px; padding: 5px 7px; }
  .play-card-label svg { width: 12px; height: 12px; }
  .private-card .play-card-label { bottom: 15px; gap: 10px; }
  .private-join { padding: 2px 8px 10px; }
  .join-code-toggle { padding: 9px 6px; font-size: 9px; gap: 4px; }
  .private-join label { font-size: 8px; margin-bottom: 6px; }
  .private-join-row { gap: 4px; }
  .private-join input { font-size: 10px; letter-spacing: 1px; padding: 8px 6px; border-radius: 5px; }
  .private-join button { font-size: 10px; padding: 7px 7px; gap: 0; border-radius: 5px; }
  .private-join svg { display: none; }
  .menu-games { max-width: 470px; margin-top: 31px; padding: 0; }
  .menu-section-title h2 { font-size: 26px; }
  .menu-section-title > span { font-size: 9px; }
  .game-shelf { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .game-tile { border-radius: 12px; }
  .game-tile-copy { padding: 19px 18px 17px; }
  .game-tile-copy h3 { font-size: 28px; margin: 0 0 10px; }
  .game-tile-copy p { font-size: 12px; }
  .game-mode-meta { font-size: 10px; }
  .learn-area { margin-top: 37px; padding: 37px 0 40px; }
  .learn-title { font-size: 36px; margin-bottom: 29px; }
  .how-steps { grid-template-columns: 1fr; gap: 34px; max-width: 350px; }
  .how-illustration { height: 215px; margin-bottom: 13px; }
  .how-step h3 { font-size: 24px; }
  .how-step p { font-size: 12px; max-width: 310px; }
  .game-faq { margin-top: 47px; }
  .game-faq summary { font-size: 13px; padding: 17px 25px 17px 0; }
  .game-faq p { font-size: 12px; padding-right: 15px; }
  body > footer { width: calc(100% - 38px); flex-direction: column; align-items: center; gap: 5px; font-size: 8px; text-align: center; padding-bottom: 18px; }
  .modal { padding: 26px 20px; }
  .modal h2 { font-size: 34px; }
  .avatar-options { gap: 7px; }
  .avatar-option { padding: 10px 4px; font-size: 9px; }
  .avatar-option .avatar { width: 61px; height: 61px; }
}
@media (max-width: 360px) {
  .menu-nav-button span { display: none; }
  .quick-card { height: 283px; }
  .private-card { height: 270px; }
  .play-card-label strong { font-size: 33px; }
  .play-card-label > span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .play-card:hover, .private-card:hover, .game-tile:hover { transform: none; }
}

@media(max-width:650px){body[data-scene=home]{background-image:linear-gradient(#0b173647,#0b173647),url('https://media.cs2geoguessr.com/assets/menu-courtyard-840-v1.webp')}}
