/* The seneng.lol main page and its Privacy Policy and Terms. Colors, buttons and dialogs: seneng-base.css. */
body {
  /* A soft sunburst behind everything, fading out down the page. */
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, transparent 30%, var(--bg) 75%),
    repeating-conic-gradient(from 0deg at 50% -10%, var(--ray) 0 6deg, transparent 6deg 12deg),
    var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
}
.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
main { display: flex; flex-direction: column; gap: 48px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.intro h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
/* A highlighter swipe of sunshine under the greeting. */
.intro h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), var(--coral), var(--pink));
}
.intro p { margin: 18px 0 0; font-size: 19px; color: var(--ink-soft); max-width: 32em; }
.intro .next-note {
  display: inline-block;
  padding: 10px 16px;
  border: var(--line) solid var(--edge);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
}
.intro .next-note a { color: var(--coral); }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: var(--line) solid var(--edge);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 0 6px 0 var(--drop);
}
.card h2 { font-size: 30px; }
.card .sub { margin: 0; color: var(--ink-soft); }
.card .error { margin: 0; color: var(--coral); font-weight: 700; }
.card .fine { margin: 0; font-size: 14px; color: var(--ink-soft); }

.providers { display: grid; gap: 10px; }
.provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: var(--line) solid var(--edge);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 3px 0 var(--drop);
  cursor: pointer;
}
.provider svg { width: 20px; height: 20px; flex: none; }
.provider:hover { background: var(--bg-2); }
.provider:disabled { opacity: .6; cursor: progress; }

.google-btn { display: flex; justify-content: center; min-height: 44px; align-items: center; color-scheme: normal; }
/* Google's button can't be restyled, so while it's shown the other buttons copy its look:
   hub.js adds .google-style once Google's button is drawn. Light matches Google's "outline"
   theme, dark its "filled_black" theme. */
.providers.google-style .provider {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  min-height: 0;
  height: 40px;
  gap: 8px;
  padding: 0 12px;
  font-family: Roboto, "Google Sans", system-ui, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .25px;
  color: #3C4043;
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-radius: 4px;
  box-shadow: none;
}
.providers.google-style .provider:hover { background: #F8FAFF; border-color: #D2E3FC; }
.providers.google-style .provider svg { width: 18px; height: 18px; color: #000000; }
@media (prefers-color-scheme: dark) {
  .providers.google-style .provider { gap: 12px; color: #FFFFFF; background: #202124; border-color: #202124; }
  .providers.google-style .provider:hover { background: #303134; border-color: #303134; }
  /* Google's dark button puts its logo on a white square. */
  .providers.google-style .provider svg { padding: 9px; background: #FFFFFF; border-radius: 3px; }
}

/* ---------- the apps ---------- */
.games h2 { font-size: 34px; margin-bottom: 18px; }
.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.game {
  --c: var(--sun);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: var(--line) solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 6px 0 var(--drop);
  color: var(--ink);
  text-decoration: none;
  transition: transform .15s cubic-bezier(.3, 1.6, .6, 1), box-shadow .15s;
}
.game.mint { --c: var(--mint); }
.game.sky { --c: var(--sky); }
.game.pink { --c: var(--pink); }
.game.coral { --c: var(--coral); }
.game:hover, .game:focus-visible { color: var(--ink); transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 10px 0 var(--drop); }
.game img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--c);
  border-bottom: var(--line) solid var(--edge);
}
.game-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.game h3 { font-size: 26px; }
.game p { margin: 0; color: var(--ink-soft); flex: 1; }
.game .play { align-self: flex-start; margin-top: 8px; background: var(--c); padding: 10px 20px; font-size: 17px; }
.game:hover .play { transform: translateY(-1px); }
.soon {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 24px;
  border: var(--line) dashed var(--ink-soft);
  border-radius: var(--r);
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 20px;
  text-align: center;
}

footer { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-soft); font-size: 15px; text-align: center; }
footer p { margin: 0; }
footer .kesel-link { font-weight: 800; color: var(--ink); }
footer .kesel-link:hover { color: var(--coral); }

@media (max-width: 720px) {
  .page { gap: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .brand { font-size: 22px; }
  .brand .sun { width: 28px; height: 28px; }
  .top-right { gap: 6px; }
  .pill-btn { max-width: 7.5em; padding-inline: 10px; }
}

/* ---------- Privacy Policy and Terms ---------- */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-top > a:last-child { color: var(--ink-soft); font-weight: 700; }
.doc-paper {
  padding: 32px clamp(20px, 5vw, 48px);
  border: var(--line) solid var(--edge);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 0 6px 0 var(--drop);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.doc-paper > * { max-width: 66ch; }
.doc-paper h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 700; text-wrap: balance; }
.doc-paper h2 { margin: 30px 0 8px; font-size: 24px; text-wrap: balance; }
.doc-paper p, .doc-paper ul { margin: 0 0 16px; }
.doc-paper ul { padding-left: 1.2em; }
.doc-paper li { margin-bottom: 6px; }
.doc-paper .updated { color: var(--ink-soft); margin-top: 6px; }
.doc-paper a { color: var(--ink); text-decoration-color: var(--coral); }
.doc-paper > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .game, .game:hover, .game:focus-visible { transform: none; }
}
