* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: #070b16; }
body {
  min-height: 100vh;
  font-family: "Fredoka", system-ui, sans-serif;
  color: #eef3ff;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(47, 140, 255, 0.32), transparent 60%),
    radial-gradient(ellipse at 88% -8%, rgba(255, 210, 31, 0.16), transparent 42%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, 0.6), transparent 65%),
    repeating-conic-gradient(rgba(255, 255, 255, 0.022) 0 25%, transparent 0 50%) 0 0 / 56px 56px,
    linear-gradient(180deg, #0d1a38, #0a1228 55%, #05080f);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: "Montserrat", "Fredoka", sans-serif; font-weight: 800; letter-spacing: 0.01em; }

.lobby-top { max-width: 1180px; margin: 0 auto; padding: 1.2rem 1.4rem 0.4rem; }
.back { display: inline-flex; align-items: center; padding: 0.5rem 0.95rem; border-radius: 999px; color: #fff6e2; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1.5px rgba(255, 236, 200, 0.35); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: background 0.15s; }
.back:hover { background: rgba(0, 0, 0, 0.42); }
.lobby-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lobby-right { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.5rem; }
.lobby-nav [aria-current="page"] { color: #fff; }
.lobby-music { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: rgba(255, 210, 31, 0.14); color: #ffd21f; box-shadow: inset 0 0 0 2px rgba(255, 210, 31, 0.55); transition: background 0.15s; }
.lobby-music:hover { background: rgba(255, 210, 31, 0.26); }
.lobby-music.off { color: rgba(226, 235, 255, 0.7); box-shadow: inset 0 0 0 2px rgba(226, 235, 255, 0.3); background: transparent; }
.lobby-title { display: flex; align-items: center; gap: 1rem; margin-top: 0.8rem; }
.brand-mark { width: 6.3rem; height: 6.3rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); display: inline-block; flex: 0 0 auto; transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1); }
.brand-mark:hover { transform: rotate(-6deg) scale(1.06); }
.lobby-title h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: #ffd21f; text-transform: uppercase; letter-spacing: 0.03em; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); }
.lobby-title h1 span { color: #fff; }
.lobby-title p { margin: 0.2rem 0 0; color: rgba(226, 235, 255, 0.85); font-size: 1.05rem; }

.shelf-wrap { max-width: 1180px; margin: 1.6rem auto 3rem; padding: 0 1.4rem; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.2rem 1.8rem; align-items: start; }
.plank { height: 14px; margin-top: 1.8rem; border-radius: 7px; background: linear-gradient(90deg, #0b1530, #1f6fe0 32%, #ffd21f 50%, #1f6fe0 68%, #0b1530); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 240, 180, 0.4); }

.game { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; animation: arrive 0.6s cubic-bezier(.34, 1.56, .64, 1) both; }
.game[hidden] { display: none !important; }
.game:nth-child(2) { animation-delay: 0.12s; }
.game:nth-child(3) { animation-delay: 0.24s; }
.box {
  position: relative; perspective: 900px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease;
}
.lid {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 7px rgba(0, 0, 0, 0.55), 14px 18px 0 -2px rgba(0, 0, 0, 0.35), 0 24px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.2deg); transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s ease;
}
.box-side { position: absolute; left: 10px; right: -10px; bottom: -12px; height: 14px; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, var(--accent-2), rgba(0, 0, 0, 0.6)); transform: rotate(-1.2deg); z-index: -1; }
.lid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.lid-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem 0.7rem;
  font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.7rem; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}
.shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 48%, transparent 62%); transform: translateX(-120%); pointer-events: none; }
.badge { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); background: #b23a48; color: #fff; font-weight: 700; padding: 0.25rem 2.6rem; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
.game:hover .lid, .lid-link:focus-visible .lid { transform: rotate(0deg) translateY(-8px) scale(1.02); box-shadow: 0 0 0 4px var(--accent), 0 0 0 7px rgba(0, 0, 0, 0.55), 0 0 40px rgba(80, 160, 255, 0.5), 0 30px 50px rgba(0, 0, 0, 0.55); }
.game:hover .lid img { transform: scale(1.06); }
.game:hover .shine { animation: shine 0.9s ease; }
.lid-link { display: block; text-decoration: none; color: inherit; }
.lid-link:focus-visible { outline: none; }

.info { background: linear-gradient(180deg, #ffffff, #eaf1fc); color: #0a0f1c; border-radius: 16px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 0 0 3px #0b1530, 0 10px 22px rgba(0, 0, 0, 0.35); }
.info h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.info p { margin: 0 0 0.6rem; line-height: 1.45; }
.chips { list-style: none; padding: 0; margin: 0 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips li { background: #f4f8ff; border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.82rem; font-weight: 600; box-shadow: inset 0 0 0 2px #d4e2fb; }
.play { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 12px; font-weight: 700; background: linear-gradient(180deg, #4aa3ff, #1f6fe0); box-shadow: 0 4px 0 #0b3d8f; transition: transform 0.12s ease; }
.game:hover .play { transform: translateY(-2px); }
.play { color: #fff; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tut { padding: 0.55rem 0.9rem; border-radius: 12px; border: 2px solid #0b1530; background: #f4f8ff; color: #0a0f1c; font: 700 0.95rem Fredoka, system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); transition: transform 0.12s ease; }
.tut:hover { transform: translateY(-2px); background: #e3eeff; }

.soon { opacity: 0.75; }
.lid.sealed { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #14213f 0 14px, #0e1830 14px 28px); box-shadow: 0 0 0 4px #5f6e8c, 0 0 0 7px rgba(0, 0, 0, 0.55), 0 24px 40px rgba(0, 0, 0, 0.5); }
.q { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 5rem; color: rgba(80, 160, 255, 0.6); animation: bob 3s ease-in-out infinite; }
.soon .info { background: linear-gradient(180deg, #e3e9f4, #cfd9ea); }

@keyframes shine { to { transform: translateX(120%); } }
@keyframes arrive { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 560px) {
  .lobby-nav { align-items: flex-start; }
  .lobby-right { gap: 0.45rem 0.7rem; font-size: 0.85rem; }
  .shelf { grid-template-columns: 1fr; }
  .lobby-title { align-items: flex-start; }
  .brand-mark { width: 4.5rem; height: 4.5rem; }
}

/* ---------- your games ---------- */
.my-games { margin: 0 0 2rem; padding: 1rem 1.1rem 1.1rem; border-radius: 16px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 2px rgba(80, 160, 255, 0.18); }
.my-games[hidden] { display: none; }
.mg-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.7rem; }
.mg-head h2 { margin: 0; font-size: 1.5rem; color: #ffd21f; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.mg-count { color: #9cc8ff; font-weight: 600; }
.mg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1.1rem 0.8rem; }
.mg-list:empty { display: none; }
.mg-card { position: relative; display: flex; gap: 0.75rem; align-items: center; padding: 0.6rem 0.75rem; border-radius: 12px; text-decoration: none; color: #0a0f1c; background: linear-gradient(180deg, #ffffff, #eaf1fc); box-shadow: 0 0 0 3px #0b1530, 0 6px 14px rgba(0, 0, 0, 0.3); transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.2s ease; }
.mg-card:hover, .mg-card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px #ffd21f, 0 10px 20px rgba(0, 0, 0, 0.35); outline: none; }
.mg-card.yours { box-shadow: 0 0 0 3px #b23a48, 0 6px 14px rgba(0, 0, 0, 0.3); }
.mg-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.mg-card { min-width: 0; }
.mg-x { position: absolute; top: -8px; right: -8px; z-index: 2; min-width: 26px; height: 26px; padding: 0 0.45rem; border: 0; border-radius: 13px; font: 700 0.8rem/26px Fredoka, sans-serif; color: #fff; background: #0b1530; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); cursor: pointer; opacity: 0.85; transition: background 0.15s ease, opacity 0.15s ease; }
.mg-x:hover, .mg-x:focus-visible { opacity: 1; background: #1f6fe0; outline: none; }
.mg-dialog { width: min(400px, calc(100vw - 2rem)); padding: 1.2rem 1.3rem; border: 0; border-radius: 16px; color: #0a0f1c; background: linear-gradient(180deg, #ffffff, #eaf1fc); box-shadow: 0 0 0 4px #0b1530, 0 18px 40px rgba(0, 0, 0, 0.5); font-family: Fredoka, system-ui, sans-serif; }
.mg-dialog[open] { animation: mgPop 0.22s cubic-bezier(.34, 1.56, .64, 1); }
.mg-dialog::backdrop { background: rgba(4, 8, 20, 0.65); }
.mg-dialog h2 { margin: 0 0 0.8rem; font-size: 1.5rem; color: #0a0f1c; }
.mg-dialog p { margin: 0.8rem 0 1rem; font-size: 0.95rem; }
.mg-dialog-game { display: flex; gap: 0.7rem; align-items: center; padding: 0.55rem; border-radius: 10px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 2px rgba(11, 21, 48, 0.25); }
.mg-dialog-game img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.mg-dialog-game > span { display: flex; flex-direction: column; line-height: 1.25; }
.mg-dialog-game small { color: #4a5875; }
.mg-dialog-btns { display: flex; gap: 0.6rem; justify-content: flex-end; }
.mg-dialog-btns button { padding: 0.55rem 1rem; border-radius: 12px; font: 700 0.95rem Fredoka, system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); transition: transform 0.12s ease; }
.mg-dialog-btns button:hover, .mg-dialog-btns button:focus-visible { transform: translateY(-2px); outline: none; }
.mg-keep { border: 2px solid #0b1530; background: #f4f8ff; color: #0a0f1c; }
.mg-remove { border: 2px solid #7d1f2c; background: #b23a48; color: #fff; }
.mg-keep:focus-visible { box-shadow: 0 0 0 3px #2f8cff, 0 3px 0 rgba(0, 0, 0, 0.25); }
.mg-remove:focus-visible { box-shadow: 0 0 0 3px #2f8cff, 0 3px 0 rgba(0, 0, 0, 0.25); }
@keyframes mgPop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mg-dialog[open] { animation: none; } }
.mg-card img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25); }
.mg-card img.mg-logo, .mg-dialog-game img.mg-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.mg-body { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 0.1rem; overflow: hidden; }
.mg-game { font-size: 0.8rem; font-weight: 600; color: #0b1530; display: flex; flex-wrap: wrap; column-gap: 0.5rem; align-items: baseline; }
.mg-game small { font-weight: 500; color: #5f6e8c; }
.mg-who { font-size: 1.05rem; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mg-state { font-size: 0.85rem; color: #33405c; overflow-wrap: anywhere; }
.mg-state b { color: #b23a48; }
.mg-flag { position: absolute; top: -9px; right: 10px; background: #b23a48; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); animation: mgPulse 2s ease-in-out infinite; }
.mg-note { margin: 0.4rem 0 0; color: rgba(226, 235, 255, 0.8); }
.mg-note:empty { display: none; }
@keyframes mgPulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .mg-flag { animation: none; } }

/* ---------- combined game history ---------- */
.lobby-right { display: flex; align-items: center; gap: 1rem; }
.history { margin: 2.4rem 0 0; padding: 1rem 1.1rem 1.1rem; border-radius: 16px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 2px rgba(80, 160, 255, 0.18); scroll-margin-top: 1rem; }
.history[hidden] { display: none; }
.hx-sub { color: rgba(226, 235, 255, 0.7); font-size: 0.9rem; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.8rem; }
.hx-stats:empty { display: none; }
.hx-stat { min-width: 5.2rem; padding: 0.4rem 0.7rem; border-radius: 12px; background: rgba(80, 160, 255, 0.1); text-align: center; }
.hx-stat b { display: block; font-size: 1.35rem; color: #ffd21f; line-height: 1.1; }
.hx-stat small { color: rgba(226, 235, 255, 0.75); font-size: 0.78rem; }
.hx-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.hx-filter:empty { display: none; }
.hx-filter button { border: 0; cursor: pointer; font: 600 0.85rem Fredoka, system-ui, sans-serif; padding: 0.3rem 0.75rem; border-radius: 999px; color: #eef3ff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 2px rgba(226, 235, 255, 0.2); }
.hx-filter button.on { color: #0a0f1c; background: #ffd21f; box-shadow: none; }
.hx-filter button small { opacity: 0.7; font-weight: 500; }
.hx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.hx-list:empty { display: none; }
.hx-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 0.7rem; align-items: center; padding: 0.45rem 0.7rem; border-radius: 12px; text-decoration: none; color: #0a0f1c; background: linear-gradient(180deg, #ffffff, #eaf1fc); box-shadow: 0 0 0 2px #0b1530; }
.hx-row:hover, .hx-row:focus-visible { box-shadow: 0 0 0 2px #ffd21f; outline: none; }
.hx-row img.hx-logo { width: 54px; height: 54px; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); }
.hx-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hx-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-main small { color: #4a5875; font-size: 0.8rem; }
.hx-res { font-weight: 700; font-size: 0.85rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(11, 21, 48, 0.15); white-space: nowrap; }
.hx-res.win { background: #2f6b3a; color: #fff; }
.hx-res.loss { background: #b23a48; color: #fff; }
.hx-res.tie { background: #c99a12; color: #0a0f1c; }
.hx-more { display: block; margin: 0.8rem auto 0; border: 0; cursor: pointer; font: 600 0.9rem Fredoka, system-ui, sans-serif; padding: 0.4rem 1rem; border-radius: 999px; color: #ffd21f; background: rgba(255, 210, 31, 0.12); box-shadow: inset 0 0 0 2px rgba(255, 210, 31, 0.5); }
.hx-more[hidden] { display: none; }
@media (max-width: 560px) {
  .hx-sub { display: none; }
  .hx-stat { min-width: 0; flex: 1 1 0; padding: 0.35rem 0.25rem; }
  .hx-stat b { font-size: 1.1rem; }
  .hx-main b { white-space: normal; }
}
.history:first-child { margin-top: 0; }
.hx-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.hx-view { font-size: 0.75rem; font-weight: 600; color: #0b1530; white-space: nowrap; }
.hx-row:hover .hx-view, .hx-row:focus-visible .hx-view { color: #b23a48; }
.hx-note a { color: #ffd21f; }
.hx-signin { display: inline-block; margin-top: 0.6rem; --accent: #2f8cff; color: #0a0f1c; }
@media (max-width: 560px) { .hx-view { display: none; } }
.lobby-title > div:not(.surprise-box) { flex: 1 1 22rem; min-width: 0; }
.surprise-box { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; max-width: 14rem; padding: 0.8rem 1rem; border-radius: 16px; text-align: center;
  background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 2px rgba(255, 210, 31, 0.3); }
.surprise-box .surprise-note { font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 760px) {
  .lobby-title { flex-wrap: wrap; }
  .lobby-title > div:not(.surprise-box) { flex: 1 1 0; }
  .surprise-box { flex: 1 1 100%; max-width: none; flex-direction: row; justify-content: flex-start; gap: 0.8rem; padding: 0.6rem 0.8rem; text-align: left; }
}
.surprise { flex: none; padding: 0.55rem 1.1rem; border: 0; border-radius: 12px; cursor: pointer; font: 700 1rem Fredoka, system-ui, sans-serif; color: #0a0f1c;
  background: linear-gradient(180deg, #ffe466, #ffc800); box-shadow: 0 4px 0 #b38600, 0 8px 16px rgba(0, 0, 0, 0.35); transition: transform 0.12s ease; }
.surprise:hover, .surprise:focus-visible { transform: translateY(-2px); outline: none; }
.surprise:disabled { cursor: progress; }
.surprise-note { color: rgba(226, 235, 255, 0.85); font-size: 0.92rem; }

/* Welcome tour, shown once per account. */
.gi { width: min(560px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 1.6rem 1.6rem 1.1rem; border: 0; border-radius: 22px; overflow: auto;
  color: #eef3ff; font-family: "Fredoka", system-ui, sans-serif; text-align: center;
  background: radial-gradient(ellipse at 50% -10%, rgba(47, 140, 255, 0.35), transparent 60%), linear-gradient(180deg, #0f1d40, #0a1228);
  box-shadow: 0 0 0 3px #ffd21f, 0 24px 60px rgba(0, 0, 0, 0.6); }
.gi::backdrop { background: rgba(4, 8, 20, 0.72); backdrop-filter: blur(3px); }
.gi-step { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gi-step.in { animation: gi-in 0.35s ease both; }
@keyframes gi-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gi h2 { margin: 0.3rem 0 0.5rem; font-size: 1.6rem; color: #fff; }
.gi p { margin: 0 0 0.6rem; color: rgba(226, 235, 255, 0.9); font-size: 1.05rem; line-height: 1.45; }
.gi-logo { width: min(260px, 70%); height: auto; margin: 0 auto 0.4rem; display: block; }
.gi-games { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; width: 100%; }
.gi-games li { border-radius: 12px; overflow: hidden; background: #0b1530; box-shadow: 0 0 0 2px rgba(255, 210, 31, 0.45); }
.gi-games img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gi-games span { display: block; padding: 0.3rem 0.35rem 0.4rem; font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.gi-ways { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; width: 100%; text-align: left; }
.gi-ways li { display: grid; gap: 0.1rem; padding: 0.65rem 0.85rem; border-radius: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 2px rgba(80, 160, 255, 0.22); }
.gi-ways b { color: #ffd21f; font-weight: 700; font-size: 1.05rem; }
.gi-ways span { color: rgba(226, 235, 255, 0.88); font-size: 0.95rem; }
.gi-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 1.1rem; }
.gi-dots { display: flex; gap: 0.4rem; }
.gi-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(226, 235, 255, 0.3); transition: background 0.2s, transform 0.2s; }
.gi-dots i.on { background: #ffd21f; transform: scale(1.25); }
.gi-nav { display: flex; gap: 0.5rem; }
.gi button { font: 700 1rem "Fredoka", system-ui, sans-serif; cursor: pointer; border: 0; border-radius: 12px; padding: 0.55rem 1rem; }
.gi-next { color: #fff; background: linear-gradient(180deg, #4aa3ff, #1f6fe0); box-shadow: 0 4px 0 #0b3d8f; }
.gi-next:hover { filter: brightness(1.08); }
.gi-back { color: #eef3ff; background: rgba(255, 255, 255, 0.1); }
.gi-skip { color: rgba(226, 235, 255, 0.7); background: transparent; padding-left: 0.2rem; }
.gi-skip:hover { color: #fff; }
@media (max-width: 520px) {
  .gi { padding: 1.2rem 1rem 0.9rem; }
  .gi-step { min-height: 0; }
  .gi h2 { font-size: 1.35rem; }
  .gi-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .gi-step.in { animation: none; } }

/* Settings page (/ahrens-games/settings) */
.gs-title h1 { color: #fff; }
.gs { max-width: 760px; margin: 1.2rem auto 3rem; padding: 0 1.4rem; display: grid; gap: 1rem; }
.gs-card { padding: 1.1rem 1.2rem 1.2rem; border-radius: 16px; background: rgba(0, 0, 0, 0.24); box-shadow: inset 0 0 0 2px rgba(80, 160, 255, 0.2); }
.gs-card h2 { margin: 0 0 0.6rem; font-size: 1.2rem; color: #ffd21f; }
.gs-note { margin: 0 0 0.7rem; color: rgba(226, 235, 255, 0.85); }
.gs-note a, .gs-text a { color: #ffd21f; }
.gs-warn { color: #ffd9a0; }
.gs-row { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.6rem 0; }
.gs-row + .gs-row { border-top: 1px solid rgba(226, 235, 255, 0.1); }
.gs-text { display: grid; gap: 0.2rem; }
.gs-text b { font-size: 1.05rem; }
.gs-text span { color: rgba(226, 235, 255, 0.82); line-height: 1.5; }
.gs-text select { font: 600 0.95rem "Fredoka", system-ui, sans-serif; color: #0a0f1c; background: #f4f8ff; border: 0; border-radius: 8px; padding: 0.15rem 0.35rem; margin: 0 0.15rem; }
.gs-text select:disabled { opacity: 0.55; }
.gs-switch { position: relative; flex: none; width: 52px; height: 30px; margin-top: 0.1rem; }
.gs-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.gs-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(226, 235, 255, 0.22); transition: background 0.2s; }
.gs-switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.gs-switch input:checked + span { background: #1f6fe0; }
.gs-switch input:checked + span::after { transform: translateX(22px); }
.gs-switch input:focus-visible + span { outline: 3px solid #ffd21f; outline-offset: 2px; }
.gs-switch input:disabled { cursor: not-allowed; }
.gs-switch input:disabled + span { opacity: 0.45; }
.gs-seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gs-seg button, .gs-btn { font: 700 0.98rem "Fredoka", system-ui, sans-serif; border: 0; border-radius: 12px; padding: 0.55rem 0.95rem; cursor: pointer; color: #eef3ff; background: rgba(255, 255, 255, 0.1); text-decoration: none; display: inline-block; }
.gs-seg button.on { color: #fff; background: linear-gradient(180deg, #4aa3ff, #1f6fe0); box-shadow: 0 3px 0 #0b3d8f; }
.gs-seg button:focus-visible, .gs-btn:focus-visible { outline: 3px solid #ffd21f; outline-offset: 2px; }
.gs-btn { color: #0a0f1c; background: #ffd21f; box-shadow: 0 3px 0 #b8860b; }
.gs-saved { min-height: 1.4em; margin: 0; text-align: center; color: #9be7a8; font-weight: 600; }
.lobby-settings { margin-left: 0.2rem; }
