/* Games and Watch: the two sister sites on games. and watch. (games.html,
   watch.html). Same galaxy look as the hub, their own header. */
:root { --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif; --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
* { box-sizing: border-box; }
html { background: #02040a; color: #eef0ff; }
body { margin: 0; min-height: 100dvh; font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
.st-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.cosmic-scene { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 12%, rgba(56, 189, 248, .16) 0%, transparent 45%), radial-gradient(circle at 80% 30%, rgba(124, 58, 237, .22) 0%, transparent 50%),
    radial-gradient(circle at 18% 42%, rgba(37, 99, 235, .2) 0%, transparent 50%), radial-gradient(circle at 30% 92%, rgba(79, 70, 229, .25) 0%, transparent 40%), #02040a; }
.cosmic-scene .horizon { position: absolute; width: 160vw; height: 160vw; left: -30vw; top: 34vh; border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(30, 64, 175, .25) 0%, #02040a 18%);
  box-shadow: 0 -2px 35px rgba(56, 189, 248, .45), 0 -10px 90px rgba(99, 102, 241, .3), inset 0 2px 25px rgba(147, 197, 253, .35); }
.cosmic-scene .orbit-ring { position: absolute; top: 6vh; left: 50%; width: 680px; max-width: 92vw; height: 220px; transform: translateX(-50%) rotate(-8deg); border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, .25); box-shadow: 0 0 25px rgba(56, 189, 248, .15), inset 0 0 20px rgba(139, 92, 246, .15); }
.cosmic-scene .orbit-ring::after { content: ""; position: absolute; inset: 22px 55px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, .25); }
.cosmic-scene .bottom-orb { position: absolute; bottom: -70px; left: 26%; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #38bdf8, #4f46e5 55%, #090d1f 90%); box-shadow: 0 0 60px rgba(56, 189, 248, .45), 0 0 110px rgba(124, 58, 237, .35); opacity: .85; }
.st-muted { color: #a6abd0; }
.st-row-title { display: flex; align-items: center; gap: 8px; }
/* Games and Watch: the shared look of the two sister sites. */
.st-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 6, 16, .8); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.st-header-in { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 16px; }
.st-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; white-space: nowrap; border-radius: 10px; }
.st-brand small { font: 600 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #c4b8ff; padding: 5px 9px; border-radius: 999px; background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .38); }
.st-search { position: relative; flex: 1; max-width: 540px; margin: 0 auto; }
.st-search input { width: 100%; height: 42px; border-radius: 999px; padding: 0 16px 0 42px; color: #fff; font-size: 14.5px; outline: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s, box-shadow .15s; }
.st-search input:focus { border-color: rgba(150, 140, 255, .65); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22); }
.st-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: #8f93c0; pointer-events: none; }
.st-links { display: flex; gap: 8px; }
.st-link { height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: #c9cbef; border: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; transition: background-color .15s, color .15s; }
.st-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 760px) { .st-header-in { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; } .st-search { order: 3; flex-basis: 100%; max-width: none; } .st-links { margin-left: auto; } .st-link span { display: none; } .st-link { width: 38px; padding: 0; justify-content: center; } }

.st-main { max-width: 1400px; margin: 0 auto; padding: 20px 20px 80px; }
@media (max-width: 640px) { .st-main { padding: 14px 14px 60px; } }
.st-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 34px 32px; background: radial-gradient(60% 120% at 88% 0%, rgba(124, 92, 255, .42), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(56, 130, 255, .3), transparent 60%), rgba(12, 13, 32, .82); border: 1px solid rgba(150, 140, 255, .22); }
.st-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; color: #f5f4ff; }
.st-hero p { margin: 8px 0 0; color: #b4b8de; font-size: 16px; max-width: 40em; }
.st-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; flex-wrap: wrap; }
.st-h h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; color: #f3f2ff; }
.st-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: #c3c6ea; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.st-chip:hover { color: #fff; }
.st-chip.on { color: #fff; background: linear-gradient(100deg, rgba(124, 92, 255, .6), rgba(79, 124, 255, .5)); border-color: rgba(160, 150, 255, .6); }
.st-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.st-seg button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: #a9add6; background: none; border: 0; cursor: pointer; }
.st-seg button.on { color: #fff; background: rgba(124, 92, 255, .35); }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.st-grid.wide { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.st-card { position: relative; display: block; width: 100%; padding: 0; text-align: left; color: inherit; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: rgba(12, 14, 34, .82); border: 1px solid rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; }
@media (hover: hover) { .st-card:hover { transform: translateY(-3px); border-color: rgba(150, 140, 255, .45); box-shadow: 0 18px 40px -18px rgba(99, 102, 241, .75); } }
.st-card:active { transform: scale(.98); }
.st-card:focus-visible, .st-chip:focus-visible, .st-link:focus-visible, .st-brand:focus-visible, .st-row:focus-visible { outline: 2px solid #a594ff; outline-offset: 2px; }
.st-thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: linear-gradient(135deg, #171a3d, #0b0c22); }
.st-card.video .st-thumb, .st-grid.wide .st-thumb { aspect-ratio: 16 / 9; }
.st-card .meta { display: block; padding: 10px 12px 12px; }
.st-card b { display: block; font-size: 14px; font-weight: 600; color: #f1f0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card .sub { display: block; margin-top: 2px; font-size: 12.5px; color: #8f94c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(5, 6, 16, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.st-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .8); }
.st-skel { border-radius: 16px; aspect-ratio: 4 / 3.7; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .08), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: st-shine 1.4s linear infinite; }
@keyframes st-shine { to { background-position: -200% 0; } }
.st-empty { padding: 60px 20px; text-align: center; color: #a3a8d3; }
.st-empty b { display: block; color: #f1f0ff; font-size: 18px; margin-bottom: 6px; }
.st-more { display: flex; justify-content: center; margin-top: 26px; }
.st-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: #fff; cursor: pointer; border: 0;
  background: linear-gradient(100deg, #7c5cff, #4f8bff); box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .85); transition: transform .15s var(--ease-out); }
.st-btn:active { transform: scale(.97); }
.st-btn.ghost { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }

/* Games player */
.st-player { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #03040b; }
.st-player-bar { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(8, 9, 22, .96); }
.st-player-bar .t { min-width: 0; flex: 1; }
.st-player-bar b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-player-bar .sub { font-size: 12.5px; color: #8f94c2; }
.st-icon-btn { flex: none; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: #dfe0ff; cursor: pointer; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.st-icon-btn:hover { background: rgba(255, 255, 255, .1); }
.st-frame { flex: 1; position: relative; background: #000; }
.st-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Watch page */
.st-watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1040px) { .st-watch { grid-template-columns: 1fr; } }
.st-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgba(79, 70, 229, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
.st-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-vtitle { margin: 16px 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.3; color: #f5f4ff; }
.st-row { position: relative; display: flex; gap: 12px; width: 100%; padding: 8px; border-radius: 14px; cursor: pointer; text-align: left; color: inherit; background: none; border: 0; }
.st-row:hover { background: rgba(255, 255, 255, .05); }
.st-row .pic { position: relative; flex: none; width: 160px; }
.st-row img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #0d0f26; }
.st-row b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #f1f0ff; }
.st-row .sub { display: block; margin-top: 4px; font-size: 12px; color: #8f94c2; }
@media (prefers-reduced-motion: reduce) { .st-card, .st-btn { transition: none; } .st-skel { animation: none; } }

/* Reporting a broken game: a centred box, a sheet from the bottom on phones */
.st-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(2, 3, 10, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.st-sheet { width: 100%; max-width: 460px; max-height: 100%; overflow-y: auto; padding: 18px 20px 20px; border-radius: 20px; background: #0c0e22; border: 1px solid rgba(150, 140, 255, .22); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.st-sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-sheet-head h2 { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #f5f4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-why { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.st-input { display: block; width: 100%; padding: 10px 14px; border-radius: 14px; resize: vertical; font: inherit; font-size: 16px; color: #fff; outline: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.st-input:focus { border-color: rgba(150, 140, 255, .65); box-shadow: 0 0 0 3px rgba(124, 92, 255, .22); }
.st-error { margin: 10px 0 0; font-size: 13.5px; color: #ff9b9b; }
.st-sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.st-btn:disabled { opacity: .6; cursor: default; }

/* Phones and small tablets */
@supports (padding: env(safe-area-inset-top)) {
  .st-header-in { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .st-player-bar { height: auto; min-height: 56px; padding-top: env(safe-area-inset-top); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .st-main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) { .st-seg button { height: 36px; } }
@media (max-width: 760px) {
  .st-search input { font-size: 16px; } /* under 16px, iPhones zoom in on focus */
}
@media (max-width: 640px) {
  .st-hero { padding: 22px 18px; border-radius: 18px; }
  .st-hero p { font-size: 14.5px; }
  .st-h { margin: 22px 0 10px; }
  .st-h h2 { font-size: 18px; }
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  /* Most played and Jump back in slide sideways instead of stacking */
  section > .st-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px; }
  section > .st-grid.wide { grid-auto-columns: 72%; }
  section > .st-grid::-webkit-scrollbar { display: none; }
  section > .st-grid > * { scroll-snap-align: start; }
  .st-card { border-radius: 14px; }
  .st-card .meta { padding: 8px 10px 10px; }
  .st-card b { font-size: 13.5px; }
  .st-card .sub { font-size: 12px; }
  .st-player-bar { gap: 8px; }
  .st-player-bar .st-lbl { display: none; }
  .st-player-bar b { font-size: 14px; }
  .st-modal { place-items: end stretch; padding: 0; }
  .st-sheet { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .st-sheet-foot .st-btn { flex: 1; justify-content: center; }
}
@media (max-width: 360px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-brand small { display: none; }
}

/* Watch player: NettleWeb's video, or YouTube's player as the fallback */
.st-video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.st-video-msg { display: grid; place-content: center; gap: 6px; text-align: center; padding: 20px; color: #b4b8de; }
.st-video-msg b { color: #f5f4ff; font-size: 18px; }
.st-note { margin: 8px 0 0; font-size: 13px; }
.st-link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #b7abff; cursor: pointer; }
.st-link-btn:hover { text-decoration: underline; }
.st-desc { margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: rgba(12, 14, 34, .88); border: 1px solid rgba(255, 255, 255, .07); color: #c9cbea; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.8em; overflow: hidden; }
.st-desc.open { max-height: none; }
@media (max-width: 640px) {
  .st-watch { gap: 18px; }
  .st-video { margin: 0 -14px; border-radius: 0; }
  .st-vtitle { font-size: 18px; }
  .st-row .pic { width: 136px; }
}
