:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #0f1417;
  color: #eef6f4;
}

.whale-game-art {
  background: #0a73bd;
}

.whale-game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(84, 217, 119, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 216, 77, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, #121a1d 0%, #171a20 48%, #101115 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto;
}

.site-home {
  display: none;
  width: min(1180px, calc(100vw - 28px));
  padding: 18px;
}

body.portal-mode .site-home {
  display: block;
}

body.portal-mode .game-shell {
  display: none;
}

.game-shell {
  position: relative;
  width: min(100vw, 1280px);
  padding: 14px;
}

body.soccer-universe-active .game-shell,
body.turbo-streets-active .game-shell {
  width: min(100vw, 1180px);
}

body.turbo-streets-active .hud,
body.turbo-streets-active .controls,
body.battle-arena-active .hud,
body.battle-arena-active .controls {
  display: none;
}

body.battle-arena-active .game-shell {
  width: min(100vw, 1180px);
}

.site-topbar,
.featured-game,
.mini-game-card {
  border: 1px solid rgba(238, 246, 244, 0.13);
  background: rgba(14, 19, 23, 0.84);
  backdrop-filter: blur(10px);
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 94px;
  margin-bottom: 14px;
  padding: 18px 22px;
  border-radius: 8px;
}

.site-kicker {
  margin: 0 0 4px;
  color: #ffd84d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: #f8fffd;
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-weight: 950;
  line-height: 0.9;
}

h2 {
  margin-bottom: 12px;
  color: #f8fffd;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 14px;
}

.featured-game {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(360px, 1fr);
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 34px;
}

.featured-copy h2 {
  font-size: clamp(2.35rem, 4vw, 3.5rem);
}

.featured-copy p:not(.game-status) {
  max-width: 430px;
  margin-bottom: 24px;
  color: #c8d5d2;
  font-size: 1.02rem;
  line-height: 1.55;
}

.game-status {
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 216, 77, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 216, 77, 0.11);
  color: #ffd84d;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.game-actions span {
  color: #9fb0ac;
  font-size: 0.88rem;
  font-weight: 800;
}

.top-play-button,
.game-actions button {
  background: #54d977;
  color: #07130f;
}

.top-play-button:hover,
.top-play-button:focus-visible,
.game-actions button:hover,
.game-actions button:focus-visible {
  background: #8effa6;
}

.game-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(81, 143, 177, 0.45), transparent 52%),
    linear-gradient(180deg, #173a31 0%, #10241f 100%);
}

.art-sun {
  position: absolute;
  top: 38px;
  right: 58px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #ffd84d;
  box-shadow: 0 0 28px rgba(255, 216, 77, 0.45);
}

.art-mountain {
  position: absolute;
  bottom: 92px;
  width: 260px;
  height: 280px;
  background: #3d4244;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.art-mountain.one {
  right: 120px;
}

.art-mountain.two {
  right: -14px;
  height: 340px;
  background: #565e61;
}

.art-ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 96px;
  background: #2d4531;
}

.art-lava {
  position: absolute;
  right: 0;
  bottom: 88px;
  left: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, #ff6538 0 26px, #ffd84d 26px 40px);
}

.art-stickman {
  position: absolute;
  left: 120px;
  bottom: 118px;
  width: 108px;
  height: 176px;
}

.art-stickman span {
  position: absolute;
  display: block;
  background: #f6fbf9;
}

.art-stickman .head {
  top: 0;
  left: 35px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.art-stickman .body,
.art-stickman .arm,
.art-stickman .leg {
  border-radius: 999px;
}

.art-stickman .body {
  top: 42px;
  left: 51px;
  width: 8px;
  height: 70px;
  background: #ffd84d;
}

.art-stickman .arm {
  top: 60px;
  width: 70px;
  height: 8px;
}

.art-stickman .arm.left {
  left: 3px;
  transform: rotate(-26deg);
}

.art-stickman .arm.right {
  right: 1px;
  transform: rotate(32deg);
}

.art-stickman .leg {
  top: 106px;
  width: 74px;
  height: 9px;
}

.art-stickman .leg.left {
  left: 4px;
  transform: rotate(42deg);
}

.art-stickman .leg.right {
  right: -5px;
  transform: rotate(-38deg);
}

.art-ball {
  position: absolute;
  right: 142px;
  bottom: 154px;
  width: 28px;
  height: 28px;
  border: 3px solid #16211c;
  border-radius: 50%;
  background: #f7fbf8;
}

.art-trophy {
  position: absolute;
  right: 52px;
  bottom: 112px;
  width: 58px;
  height: 92px;
  background: #ffd84d;
  clip-path: polygon(20% 0, 80% 0, 70% 46%, 56% 46%, 56% 72%, 82% 72%, 82% 100%, 18% 100%, 18% 72%, 44% 72%, 44% 46%, 30% 46%);
}

.modes-art {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 216, 77, 0.12), transparent 32%),
    linear-gradient(180deg, #102b32 0%, #111719 100%);
}

.modes-art::before {
  position: absolute;
  right: 28px;
  bottom: 30px;
  left: 28px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6538, #65d46d, #f1bd57, #a9ecff, #c8d4d3);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
  content: "";
}

.mode-showcase-title {
  position: relative;
  z-index: 2;
}

.mode-showcase-title span {
  display: block;
  color: #ffd84d;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mode-showcase-title strong {
  display: block;
  overflow: visible;
  color: #f8fffd;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  line-height: 1;
  white-space: normal;
}

.mode-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(138px, 1fr));
  gap: 10px;
}

.mode-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 246, 244, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 -34px 46px rgba(0, 0, 0, 0.22);
}

.mode-tile span {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 12px;
  color: #f8fffd;
  font-weight: 950;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.mode-tile i {
  position: absolute;
  display: block;
}

.mode-cave {
  grid-column: 1 / 3;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 101, 56, 0.28), transparent 32%),
    linear-gradient(180deg, #2a2430, #121116);
}

.mode-cave::before {
  position: absolute;
  right: -16px;
  bottom: 34px;
  left: -16px;
  height: 48px;
  background: repeating-linear-gradient(90deg, #ff6538 0 30px, #ffd84d 30px 43px, #d63a2d 43px 70px);
  content: "";
}

.mode-lava {
  right: 10px;
  bottom: 82px;
  left: 10px;
  height: 24px;
  background: repeating-linear-gradient(90deg, transparent 0 20px, #8f8b84 20px 38px);
  clip-path: polygon(0 100%, 7% 0, 14% 100%, 25% 12%, 36% 100%, 47% 8%, 58% 100%, 70% 4%, 82% 100%, 93% 16%, 100% 100%);
}

.mode-jungle {
  grid-column: 3 / 5;
  background:
    radial-gradient(circle at 70% 42%, rgba(101, 212, 109, 0.34), transparent 35%),
    linear-gradient(180deg, #173a31, #0d201b);
}

.mode-jungle::before,
.mode-jungle::after {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 116px;
  border-radius: 16px 16px 0 0;
  background: #2a5d3a;
  content: "";
}

.mode-jungle::before {
  left: 28px;
}

.mode-jungle::after {
  right: 34px;
  height: 92px;
  background: #376f43;
}

.mode-vine {
  top: -10px;
  width: 74px;
  height: 118px;
  border: 6px solid #65d46d;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 62px;
}

.mode-vine.one {
  left: 58px;
  transform: rotate(-13deg);
}

.mode-vine.two {
  right: 42px;
  transform: scaleX(-1) rotate(-8deg);
}

.mode-desert {
  grid-column: 5 / 7;
  background:
    linear-gradient(180deg, #6a9fac 0%, #f1bd57 62%, #bb7b40 100%);
}

.mode-sun {
  top: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff3a8;
  box-shadow: 0 0 34px rgba(255, 243, 168, 0.72);
}

.mode-dune {
  right: -20px;
  bottom: -8px;
  left: -20px;
  height: 74px;
  background: #e2b063;
  clip-path: polygon(0 65%, 18% 28%, 38% 62%, 58% 22%, 82% 56%, 100% 30%, 100% 100%, 0 100%);
}

.mode-polar {
  grid-column: 1 / 4;
  background:
    linear-gradient(180deg, #7fb9c5 0%, #f1d0a8 66%, #eefcff 100%);
}

.mode-polar::before {
  position: absolute;
  right: -18px;
  bottom: 12px;
  left: -18px;
  height: 70px;
  border-radius: 50% 50% 0 0;
  background: #fffef8;
  content: "";
}

.mode-board {
  left: 50%;
  bottom: 40px;
  width: 96px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ec6e57, #fff9ec, #4ab6ca);
  transform: translateX(-50%) rotate(-8deg);
}

.mode-snow {
  right: 24px;
  bottom: 72px;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.62);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mode-mountain {
  grid-column: 4 / 7;
  background:
    linear-gradient(180deg, #39464b, #14191c);
}

.mode-wall {
  top: 18px;
  bottom: 0;
  width: 36%;
  background: linear-gradient(180deg, #87908d, #31383a);
}

.mode-wall.left {
  left: 0;
  clip-path: polygon(0 0, 88% 0, 58% 100%, 0 100%);
}

.mode-wall.right {
  right: 0;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 42% 100%);
}

.mode-mountain::after {
  position: absolute;
  top: 58px;
  left: 50%;
  width: 88px;
  height: 70px;
  background: #c8d4d3;
  clip-path: polygon(0 48%, 100% 0, 100% 24%, 0 74%);
  content: "";
  transform: translateX(-50%);
}

.showcase-stickman {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 36px;
  width: 92px;
  height: 142px;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.38));
  transform: translateX(-50%);
}

.showcase-stickman span {
  position: absolute;
  display: block;
  background: #f8fffd;
}

.showcase-stickman .head {
  top: 0;
  left: 30px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset -3px -3px 0 rgba(185, 206, 205, 0.35);
}

.showcase-stickman .head i {
  position: absolute;
  top: 10px;
  right: 8px;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #14191c;
}

.showcase-stickman .body,
.showcase-stickman .arm,
.showcase-stickman .leg {
  border-radius: 999px;
}

.showcase-stickman .body {
  top: 37px;
  left: 43px;
  width: 8px;
  height: 58px;
  background: #f8fffd;
}

.showcase-stickman .arm {
  top: 55px;
  left: 46px;
  width: 46px;
  height: 8px;
  transform-origin: 0 50%;
}

.showcase-stickman .arm.left {
  transform: rotate(158deg);
}

.showcase-stickman .arm.right {
  transform: rotate(20deg);
}

.showcase-stickman .leg {
  top: 91px;
  left: 46px;
  width: 50px;
  height: 8px;
  transform-origin: 0 50%;
}

.showcase-stickman .leg.left {
  transform: rotate(126deg);
}

.showcase-stickman .leg.right {
  transform: rotate(55deg);
}

.game-grid {
  display: grid;
  gap: 14px;
}

.mini-game-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 8px;
}

.mini-art {
  height: 94px;
  border-bottom: 1px solid rgba(238, 246, 244, 0.1);
}

.ninja-game-art {position:relative;background:#47654d;overflow:hidden}
.ninja-game-art canvas {display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.dino-game-art{position:relative;overflow:hidden;background:#263c2c}
.dino-game-art canvas{display:block;width:100%;height:100%;object-fit:cover}

.power-clicker-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(70, 241, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 241, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 54%, #164a5e 0 12%, #0a222e 48%, #071117 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.clicker-core,
.clicker-orbit,
.clicker-bolt {
  position: absolute;
  display: block;
}

.clicker-core {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 5px solid #eaffff;
  border-radius: 50%;
  background: #38dbe6;
  box-shadow: 0 0 12px #38dbe6, 0 0 32px rgba(56, 219, 230, 0.8), inset 0 0 12px #ffffff;
  transform: translate(-50%, -50%);
}

.clicker-core::after {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff276;
  box-shadow: 0 0 12px #fff276;
  content: "";
}

.clicker-orbit {
  left: 50%;
  top: 50%;
  border: 2px solid rgba(122, 239, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.orbit-one { width: 105px; height: 42px; }
.orbit-two { width: 134px; height: 66px; transform: translate(-50%, -50%) rotate(28deg); }

.clicker-bolt {
  width: 9px;
  height: 22px;
  background: #fff276;
  clip-path: polygon(45% 0, 100% 0, 65% 42%, 100% 42%, 20% 100%, 38% 55%, 0 55%);
  filter: drop-shadow(0 0 5px #fff276);
}

.bolt-one { left: 22%; top: 24%; transform: rotate(-18deg); }
.bolt-two { right: 21%; top: 19%; transform: rotate(22deg); }
.bolt-three { right: 26%; bottom: 12%; transform: rotate(65deg); }

.tree-simulator-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #7bd7e6 0 58%, #bce7b3 59% 70%, #638d48 71%);
}

.tree-sun,
.tree-cloud,
.tree-preview-trunk,
.tree-preview-crown,
.tree-preview-ground {
  position: absolute;
  display: block;
}

.tree-sun {
  top: 9px;
  right: 24px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffe078;
  box-shadow: 0 0 18px rgba(255, 224, 120, 0.72);
}

.tree-cloud {
  top: 18px;
  left: 26px;
  width: 50px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.tree-cloud::before,
.tree-cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.tree-cloud::before { left: 8px; width: 22px; height: 22px; }
.tree-cloud::after { right: 7px; width: 17px; height: 17px; }

.tree-preview-trunk {
  z-index: 3;
  bottom: 11px;
  left: calc(50% - 8px);
  width: 16px;
  height: 47px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(90deg, #66402b, #a96c3f 50%, #704229);
}

.tree-preview-crown {
  z-index: 4;
  border: 3px solid rgba(27, 82, 38, 0.32);
  border-radius: 50%;
  background: #45a84f;
  box-shadow: inset -6px -7px 0 rgba(26, 105, 48, 0.32);
}

.tree-preview-crown.crown-one { bottom: 42px; left: calc(50% - 39px); width: 48px; height: 43px; }
.tree-preview-crown.crown-two { bottom: 52px; left: calc(50% - 18px); width: 52px; height: 48px; }
.tree-preview-crown.crown-three { bottom: 38px; left: calc(50% + 4px); width: 42px; height: 39px; }

.tree-preview-ground {
  right: -8%;
  bottom: -23px;
  left: -8%;
  height: 43px;
  border-radius: 50% 50% 0 0;
  background: #426d36;
}

.fish-evolution-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,.28) 0 3px, transparent 4px),
    linear-gradient(180deg, #ef9c61 0 17%, #e7c56e 18% 31%, #32a7bc 32% 47%, #075c80 48% 100%);
}

.fish-evolution-art > strong {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 50%;
  margin: 0;
  padding: 0;
  color: #fff7d8;
  font-size: 2.2rem;
  font-weight: 950;
  text-shadow: 0 3px 0 #07465d, 0 6px 16px rgba(0,0,0,.32);
  transform: translateX(-50%);
}

.fish-wave { position: absolute; right: -8%; left: -8%; height: 22px; border-radius: 50%; border-top: 5px solid rgba(225,252,248,.8); }
.fish-wave.wave-a { top: 29px; transform: rotate(-2deg); }
.fish-wave.wave-b { top: 38px; left: 12%; border-color: rgba(157,235,234,.55); transform: rotate(3deg); }
.fish-bubble { position: absolute; border: 2px solid rgba(186,247,247,.72); border-radius: 50%; }
.fish-bubble.bubble-a { right: 28px; bottom: 15px; width: 12px; height: 12px; }
.fish-bubble.bubble-b { right: 47px; bottom: 35px; width: 7px; height: 7px; }

.cave-art {
  background:
    linear-gradient(135deg, transparent 0 45%, #ff6538 45% 53%, transparent 53%),
    linear-gradient(180deg, #251f29, #15151b);
}

.racing-art {
  position: relative;
  background:
    linear-gradient(90deg, transparent 48%, #ffd84d 48% 49.2%, transparent 49.2% 50.8%, #ffd84d 50.8% 52%, transparent 52%),
    linear-gradient(90deg, #14292a 0 22%, #c8d2d0 22% 24%, #3b4145 24% 76%, #c8d2d0 76% 78%, #14292a 78%);
}

.racing-art::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.82) 0 15px, transparent 15px 30px) 34% 0 / 3px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(255,255,255,0.82) 0 15px, transparent 15px 30px) 66% 0 / 3px 100% no-repeat;
  content: "";
}

.arena-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(112deg, transparent 0 25%, rgba(255, 238, 183, 0.16) 26% 34%, transparent 35%),
    linear-gradient(248deg, transparent 0 25%, rgba(255, 238, 183, 0.13) 26% 34%, transparent 35%),
    linear-gradient(180deg, #28465a 0 55%, #17222a 56%);
}

.arena-crowd {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 33px;
  background:
    radial-gradient(circle, #e4c275 0 2px, transparent 2.5px) 4px 3px / 17px 13px,
    radial-gradient(circle, #66b7b4 0 2px, transparent 2.5px) 12px 8px / 21px 15px;
  opacity: 0.58;
}

.arena-platform {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 5px;
  left: 7%;
  height: 20px;
  transform: perspective(70px) rotateX(12deg);
  border-top: 4px solid #d8bd83;
  background: linear-gradient(#6d5d52, #2d2928);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.arena-health {
  position: absolute;
  z-index: 4;
  top: 9px;
  width: 30%;
  height: 5px;
  border: 1px solid rgba(255, 247, 220, 0.55);
  background: linear-gradient(90deg, #52d98a 0 72%, #402f33 73%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.32);
}

.arena-health-left { left: 7%; }
.arena-health-right { right: 7%; transform: scaleX(-1); }

.arena-fighter {
  --fighter-color: #4fc3bb;
  position: absolute;
  z-index: 5;
  bottom: 20px;
  width: 17px;
  height: 34px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg, #182125, var(--fighter-color));
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.45);
}

.arena-fighter::before {
  position: absolute;
  top: -13px;
  left: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d8a47e;
  box-shadow: 0 -5px 0 -2px #20272a;
  content: "";
}

.arena-fighter::after {
  position: absolute;
  top: 4px;
  width: 28px;
  height: 6px;
  border-radius: 4px;
  background: var(--fighter-color);
  content: "";
}

.arena-fighter-left { left: calc(50% - 48px); transform: rotate(8deg); }
.arena-fighter-left::after { left: 8px; transform: rotate(-24deg); transform-origin: left; }
.arena-fighter-right { --fighter-color: #e06a45; right: calc(50% - 48px); transform: rotate(-8deg); }
.arena-fighter-right::after { right: 8px; transform: rotate(24deg); transform-origin: right; }

.arena-art::after {
  position: absolute;
  z-index: 6;
  bottom: 48px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: #ffe083;
  box-shadow: 0 0 16px #ffbc56;
  content: "";
}

.mini-game-card strong,
.mini-game-card span {
  display: block;
  padding: 0 16px;
}

.mini-game-card strong {
  margin-top: 13px;
  color: #f8fffd;
  font-size: 1rem;
}

.mini-game-card span {
  margin-top: 5px;
  color: #ffd84d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-game-card button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 32px;
  background: #54d977;
  color: #07130f;
}

.alienista-game-art {
  background: #081c15;
}

.alienista-game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rome-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 72%, rgba(64, 32, 25, 0.35) 73%),
    linear-gradient(180deg, #4d7f9a 0 45%, #d69a68 67%, #c79a64 68%);
}

.rome-art::after {
  position: absolute;
  right: -8%;
  bottom: -24px;
  left: -8%;
  height: 58px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 24% 25%, rgba(92, 57, 33, 0.22) 0 2px, transparent 3px),
    linear-gradient(#d9b37c, #aa7449);
  box-shadow: inset 0 4px 0 rgba(255, 232, 183, 0.28);
  content: "";
}

.rome-sun {
  position: absolute;
  width: 38px;
  height: 38px;
  top: 10px;
  right: 24px;
  border-radius: 50%;
  background: #ffe07a;
  box-shadow: 0 0 28px rgba(255, 208, 122, 0.75);
}

.rome-colosseum {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 22px;
  height: 58px;
  border-top: 5px solid #e0c49c;
  background:
    radial-gradient(ellipse at 50% 100%, #3f2d29 0 31%, transparent 33%) 0 7px / 38px 43px repeat-x,
    linear-gradient(#c9ab84, #8b6751);
  box-shadow: inset 0 4px 0 rgba(255, 245, 218, 0.42), 0 5px 0 #6f493b;
}

.rome-colosseum::before {
  position: absolute;
  inset: -24px 9% auto;
  height: 28px;
  border-top: 4px solid #e0c49c;
  background:
    radial-gradient(ellipse at 50% 100%, #5b3b35 0 30%, transparent 32%) 0 3px / 31px 27px repeat-x,
    #ad8c6b;
  content: "";
}

.rome-banner {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 50%;
  width: 18px;
  height: 34px;
  transform: translateX(-50%);
  background: #8f2925;
  box-shadow: inset 0 0 0 2px rgba(244, 196, 92, 0.42);
}

.rome-gladiator {
  position: absolute;
  z-index: 4;
  bottom: 7px;
  width: 15px;
  height: 35px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg, #591d1d, #a4332d 55%, #581b1a);
  box-shadow: 0 5px 8px rgba(33, 18, 15, 0.38);
}

.rome-gladiator::before {
  position: absolute;
  top: -13px;
  left: -1px;
  width: 17px;
  height: 17px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(90deg, #5d6666, #d3c39b 53%, #515b5c);
  box-shadow: 0 -6px 0 -3px #9b2c25;
  content: "";
}

.rome-gladiator::after {
  position: absolute;
  top: 5px;
  width: 20px;
  height: 24px;
  border: 3px solid #c7963d;
  border-radius: 50%;
  background: #802923;
  content: "";
}

.rome-gladiator-left {
  left: calc(50% - 35px);
  transform: rotate(6deg);
}

.rome-gladiator-left::after { left: -15px; }

.rome-gladiator-right {
  right: calc(50% - 35px);
  transform: rotate(-6deg);
}

.rome-gladiator-right::after { right: -15px; }
}

.rome-sword {
  position: absolute;
  z-index: 5;
  width: 4px;
  height: 48px;
  left: calc(50% + 19px);
  bottom: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a9295, #f1f0dc 48%, #858e91);
  transform: rotate(31deg);
  box-shadow: 0 0 0 1px rgba(35, 23, 19, 0.5);
}

.rome-sword::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 4px;
  left: -7px;
  bottom: 3px;
  border-radius: 3px;
  background: #f1bd51;
}

.soccer-universe-art {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 49%, rgba(255, 255, 255, 0.45) 49% 51%, rgba(255, 255, 255, 0.08) 51%),
    radial-gradient(circle at 50% 62%, transparent 0 24px, rgba(255, 255, 255, 0.38) 25px 27px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(84, 217, 119, 0.22) 0 32px, transparent 32px 64px),
    linear-gradient(180deg, #23714b, #0f3f2d);
}

.soccer-universe-art::before {
  position: absolute;
  right: 34px;
  bottom: 14px;
  width: 72px;
  height: 52px;
  border: 5px solid rgba(248, 255, 253, 0.88);
  border-bottom: 0;
  content: "";
}

.soccer-universe-art::after {
  position: absolute;
  left: 52px;
  bottom: 22px;
  width: 34px;
  height: 34px;
  border: 3px solid #17211c;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #17211c 0 5px, transparent 6px),
    #f8fffd;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
  content: "";
}

.portal-return {
  display: block;
  width: fit-content;
  margin: 0 0 8px auto;
  background: #ffd84d;
  color: #111417;
}

.hud,
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 246, 244, 0.13);
  background: rgba(14, 19, 23, 0.82);
  backdrop-filter: blur(10px);
}

.hud {
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
}

body.menu-mode .hud {
  display: none;
}

body.soccer-universe-active .hud,
body.soccer-universe-active .controls {
  display: none;
}

.hud div {
  min-width: 0;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 78px;
}

.starIcon {
  width: 18px;
  height: 18px;
  background: #ffd84d;
  clip-path: polygon(
    50% 0%,
    61% 34%,
    98% 35%,
    68% 56%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 56%,
    2% 35%,
    39% 34%
  );
  filter: drop-shadow(0 0 5px rgba(255, 216, 77, 0.55));
  flex: 0 0 auto;
}

.label {
  display: block;
  color: #93a6a1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

strong {
  display: block;
  overflow: hidden;
  color: #f8fffd;
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0 14px;
  background: #db5b3f;
  color: #fffaf8;
  cursor: pointer;
  font-weight: 800;
}

#homeButton {
  background: #2f7773;
}

#homeButton:hover,
#homeButton:focus-visible {
  background: #3c918b;
}

button:hover,
button:focus-visible {
  background: #f0714f;
  outline: none;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-right: 1px solid rgba(238, 246, 244, 0.13);
  border-left: 1px solid rgba(238, 246, 244, 0.13);
  background: #15191d;
  image-rendering: auto;
}

body.menu-mode canvas {
  border-top: 1px solid rgba(238, 246, 244, 0.13);
  border-radius: 8px 8px 0 0;
}

body.soccer-universe-active canvas {
  border-top: 1px solid rgba(238, 246, 244, 0.13);
  border-bottom: 1px solid rgba(238, 246, 244, 0.13);
  border-radius: 8px;
}

.controls {
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 0 0 8px 8px;
  color: #c8d5d2;
  font-size: clamp(0.74rem, 1.6vw, 0.9rem);
}

.controls span {
  white-space: nowrap;
}

@media (min-width: 721px) {
  .library-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 212px;
  }

  .game-grid {
    display: contents;
  }

  .featured-game {
    grid-column: span 2;
    grid-row: span 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .featured-copy {
    padding: 20px 24px 16px;
  }

  .featured-copy h2 {
    margin-bottom: 8px;
    font-size: 30px;
    line-height: 1.05;
  }

  .featured-copy .game-status {
    margin-bottom: 10px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .featured-copy p:not(.game-status) {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .featured-game .game-art {
    min-height: 0;
  }

  .featured-game .modes-art {
    padding: 12px 16px 18px;
    gap: 8px;
  }

  .featured-game .mode-showcase-title span {
    font-size: 10px;
  }

  .featured-game .mode-showcase-title strong {
    font-size: 18px;
  }

  .featured-game .mode-mosaic {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .featured-game .mode-tile span {
    top: 5px;
    left: 7px;
    font-size: 11px;
  }

  .featured-game .showcase-stickman {
    bottom: 20px;
    transform: translateX(-50%) scale(.72);
    transform-origin: bottom center;
  }

  .featured-game .modes-art::before {
    bottom: 8px;
    height: 6px;
  }

  .library-layout .mini-game-card {
    min-width: 0;
    min-height: 0;
  }
}

@media (min-width: 721px) and (max-width: 959px) {
  .library-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    align-items: start;
  }

  .site-home {
    width: 100%;
    padding: 8px;
  }

  .site-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-layout,
  .featured-game {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding: 24px;
  }

  .game-art {
    min-height: 330px;
  }

  .modes-art {
    padding: 14px;
  }

  .mode-mosaic {
    grid-template-rows: repeat(2, minmax(108px, 1fr));
    gap: 8px;
  }

  .mode-tile span {
    top: 8px;
    left: 9px;
    font-size: 0.76rem;
  }

  .mode-showcase-title strong {
    font-size: 1.35rem;
  }

  .showcase-stickman {
    bottom: 28px;
    transform: translateX(-50%) scale(0.78);
    transform-origin: bottom center;
  }

  .art-stickman {
    left: 58px;
    transform: scale(0.88);
    transform-origin: bottom left;
  }

  .portal-return {
    margin-bottom: 8px;
  }

  .game-shell {
    padding: 8px;
  }

  .hud {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hud button {
    min-width: 0;
  }

  .controls span {
    white-space: normal;
  }
}
/* Wild Clash uses the same character atlas as the playable arena. */
.wild-game-art{display:flex!important;align-items:center;justify-content:center;background:#174f44!important;border-bottom:1px solid #3b7261;overflow:hidden;height:94px!important;min-height:0!important}.wild-cover-creature{background-repeat:no-repeat;aspect-ratio:1;width:40%;height:90px;filter:drop-shadow(0 4px 3px #0004)}.wild-cover-shark{transform:rotate(-8deg)}.wild-cover-crab{transform:scaleX(-1) rotate(-8deg)}.wild-game-art>b{font-size:20px;color:#ffe184;z-index:1}.wild-game-card>strong{position:relative;margin-top:12px;padding-right:82px}.wild-game-card>span{padding-right:82px}
.tornado-game-art{overflow:hidden;background:#4b5a32}.tornado-game-art canvas{display:block;width:100%;height:100%;object-fit:cover}.tornado-game-card>strong,.tornado-game-card>span{padding-right:82px}
