:root {
  --sky: #d8f0ff;
  --sky-deep: #9fd6f7;
  --paper: #fbfdff;
  --ink: #142339;
  --ink-soft: #46576f;
  --line: #d5e4f0;
  --coral: #ff5a77;
  --coral-deep: #e23d5c;
  --sun: #ffc53d;
  --mint: #22b8a5;
  --night: #0e1b30;
  --card: #ffffff;
  --radius: 18px;
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(60% 260px at 12% 120px, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(40% 200px at 88% 60px, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, var(--sky) 0, #ecf8ff 520px, var(--paper) 900px);
  background-repeat: no-repeat;
  background-color: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1565a8; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(240, 249, 255, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(20, 35, 57, .08); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--round); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 1px 8px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { background: #fff; color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* play area */
.play { max-width: 1180px; margin: 0 auto; padding: 14px 16px 8px; }
.play-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.play-head h1 { font-family: var(--round); font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.lede { margin: 0; color: var(--ink-soft); font-size: 17px; }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 20px; align-items: start; }

.stage {
  position: relative;
  width: 100%;
  height: clamp(430px, calc(100vh - 220px), 660px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
  box-shadow: 0 18px 40px -18px rgba(14, 27, 48, .55), 0 0 0 1px rgba(14, 27, 48, .08);
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.cover { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.stage[data-gf-state] .cover { display: none; }
.cover picture, .cover img { display: block; width: 100%; height: 100%; }
.cover img { object-fit: cover; object-position: center 40%; filter: brightness(.66) saturate(1.05) blur(1.5px); transform: scale(1.03); }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 58%, rgba(14,27,48,.55), rgba(14,27,48,0) 100%); pointer-events: none; }
.cover-panel { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; text-align: center; }
.cover-panel .play-btn { margin-top: 12%; }
.cover-note { margin: 0; color: #e8f3ff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

.play-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--round); font-weight: 800; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: .01em;
  color: #fff; background: var(--coral);
  padding: 15px 30px 15px 24px; border-radius: 999px;
  box-shadow: 0 6px 0 var(--coral-deep), 0 14px 26px -8px rgba(226, 61, 92, .7);
  transition: transform .12s ease, box-shadow .12s ease;
}
.play-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 var(--coral-deep), 0 18px 30px -8px rgba(226, 61, 92, .7); }
.play-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--coral-deep); }
.play-ico { width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.play-btn-sm { font-size: 18px; padding: 12px 24px 12px 20px; }

.loader { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(180deg, #7cc6f2 0%, #bfe6ff 55%, #e9f7ff 100%); color: var(--ink); }
.stage[data-gf-state="loading"] .loader { display: flex; }
.stage[data-gf-state="playing"] .loader { display: none; }
.loader-sky { position: relative; width: 220px; height: 170px; }
.loader-t { margin: 0; font-weight: 700; font-family: var(--round); font-size: 17px; }
.bal { position: absolute; bottom: 50px; width: 34px; height: 42px; border-radius: 50% 50% 48% 48%; animation: rise 2.4s ease-in-out infinite; }
.bal::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 46px; background: rgba(20,35,57,.45); }
.b1 { left: 58px; background: var(--coral); }
.b2 { left: 92px; background: var(--sun); animation-delay: .35s; height: 46px; }
.b3 { left: 128px; background: var(--mint); animation-delay: .7s; }
.cloud { position: absolute; height: 22px; border-radius: 999px; background: rgba(255,255,255,.9); animation: drift 6s linear infinite; }
.c1 { width: 70px; top: 26px; left: -10px; }
.c2 { width: 54px; top: 92px; left: 150px; animation-duration: 8s; animation-direction: reverse; }
@keyframes rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-58px); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(60px); } }
@media (prefers-reduced-motion: reduce) { .bal, .cloud { animation: none; } }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 650; padding: 8px 15px; border-radius: 999px; min-height: 40px;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[data-gf-liked], .chip[aria-pressed="true"] { background: #ffe6eb; border-color: var(--coral); color: var(--coral-deep); }
.chip .heart { color: var(--coral); }
.chip .count:empty { display: none; }
.chip-ghost { margin-left: auto; color: var(--ink-soft); }
.chip-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-solid:hover { background: #24395a; color: #fff; }
.share-msg { font-size: 14px; color: var(--mint); font-weight: 700; }
.credit { margin: 10px 2px 0; font-size: 14px; color: var(--ink-soft); }

/* more games */
.more { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.more-h { font-family: var(--round); font-size: 17px; margin: 2px 2px 12px; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(14,27,48,.45); }
.card img { aspect-ratio: 1200 / 626; object-fit: cover; width: 100%; }
.card-body { display: block; padding: 9px 12px 11px; }
.card-t { display: block; font-family: var(--round); font-weight: 800; font-size: 16px; }
.card-d { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }

/* guide */
.guide { max-width: 780px; margin: 0 auto; padding: 26px 16px 8px; }
.prose h2 { font-family: var(--round); font-size: clamp(25px, 3vw, 31px); line-height: 1.2; letter-spacing: -.01em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 10px; }
.prose h3 { font-family: var(--round); font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--coral); font-weight: 700; }
.prose img { border-radius: 14px; margin: 22px 0 6px; box-shadow: 0 10px 26px -14px rgba(14,27,48,.5); }
.prose em { color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15.5px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #eef7ff; font-weight: 750; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--sun); background: #fff8e6; border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose code { background: #eef4fa; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.table-wrap { overflow-x: auto; }

.faq { margin-top: 44px; padding-top: 6px; border-top: 2px dashed var(--line); }
.faq h2 { font-family: var(--round); font-size: clamp(25px, 3vw, 31px); margin: 28px 0 8px; }
.qa { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-family: var(--round); font-size: 18.5px; margin: 0 0 6px; }
.qa p { margin: 0; color: #24364f; }

/* closing call to action */
.cta { max-width: 780px; margin: 34px auto 0; padding: 30px 22px; text-align: center; border-radius: var(--radius); background: linear-gradient(180deg, #7cc6f2, #cdeeff); }
.cta h2 { font-family: var(--round); font-size: clamp(24px, 3vw, 30px); margin: 0 0 6px; }
.cta p { margin: 0 0 18px; color: #1d3150; }
@media (max-width: 720px) { .cta { margin: 26px 12px 0; } }

/* comments */
.talk { padding: 36px 16px 46px; }
.talk-in { max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.talk h2 { font-family: var(--round); font-size: 24px; margin: 0 0 4px; }
.talk-sub { margin: 0 0 14px; color: var(--ink-soft); }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--ink-soft); }
.fld input, .fld textarea, .fld select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fbfdff; font-size: 16px; }
.fld textarea { resize: vertical; }
.talk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.talk-msg { font-size: 14px; font-weight: 650; color: var(--ink-soft); }
.replying:empty, .replying:has(span:empty) { display: none; }
.talk-form [data-gf-reply-cancel] { display: none; }
.talk-form[data-gf-replying] [data-gf-reply-cancel] { display: inline-flex; }
.talk-list { margin-top: 18px; }
.talk-list[data-gf-empty]::before { content: "No comments yet. How high did your krill get today? Leave your altitude or your best Sky High answer for the next player."; display: block; padding: 14px 16px; border-radius: 12px; background: #f1f8ff; color: var(--ink-soft); }
.talk-list[data-gf-off] { display: none; }
.cmt { padding: 12px 0; border-top: 1px solid var(--line); }
.cmt[data-gf-owner] { background: #fff8e6; border-radius: 12px; padding: 12px; border-top: 0; margin: 6px 0; }
.cmt-meta { margin: 0 0 4px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-soft); }
.cmt-meta b { color: var(--ink); }
.cmt-owner { display: none; font-size: 12px; font-weight: 800; color: #8a5a00; background: var(--sun); border-radius: 999px; padding: 0 8px; }
.cmt[data-gf-owner] .cmt-owner { display: inline-block; }
.cmt-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-to { color: #1565a8; margin-right: 4px; }
.cmt-reply { border: 0; background: none; color: #1565a8; font-size: 14px; font-weight: 650; padding: 4px 0; cursor: pointer; }
.cmt-replies { margin-left: 18px; }

/* docs */
.doc { max-width: 780px; margin: 0 auto; padding: 30px 16px 50px; }
.doc-head h1 { font-family: var(--round); font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.doc-head .lede { margin-bottom: 18px; }
.doc-date { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }
.contact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 10px 0 26px; }
.cta-row { margin-top: 24px; }

/* footer */
.foot { background: var(--night); color: #c9d6e8; margin-top: 10px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 34px 16px 14px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
.foot-brand { font-family: var(--round); font-weight: 800; font-size: 20px; color: #fff; margin: 0 0 6px; }
.foot-about p { margin: 0 0 8px; font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-h { margin: 0 0 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #8fa6c4; }
.foot a { color: #e6eefa; text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--sun); }
.foot-legal { max-width: 1180px; margin: 0 auto; padding: 14px 16px 26px; font-size: 13px; color: #8fa6c4; border-top: 1px solid rgba(255,255,255,.08); }

/* fullscreen */
.stage:fullscreen { border-radius: 0; height: 100%; }

@media (max-width: 1080px) {
  .play-grid { grid-template-columns: minmax(0, 1fr); }
  .more { background: none; border: 0; padding: 4px 0 0; }
  .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .top-in { gap: 10px; padding: 6px 12px; }
  .brand-tag { display: none; }
  .nav a { font-size: 14px; padding: 6px 10px; }
  .play { padding: 10px 12px 4px; display: flex; flex-direction: column; }
  .play-head { display: contents; }
  .play-head h1 { order: 1; margin-bottom: 8px; }
  .play-grid { order: 2; }
  .play-head .lede { order: 3; font-size: 15px; margin-top: 12px; }
  .stage { height: clamp(500px, calc(100svh - 172px), 760px); border-radius: 14px; }
  .cover img { object-position: center top; }
  .cover-panel .play-btn { margin-top: 30%; }
  .chip { font-size: 14px; padding: 7px 12px; }
  .chip-ghost { margin-left: 0; }
  .more-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .more-list li { scroll-snap-align: start; }
  .guide, .doc { padding-left: 14px; padding-right: 14px; }
  .talk { padding: 26px 12px 36px; }
  .talk-in { padding: 16px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
  .prose table { font-size: 14.5px; }
  .prose th, .prose td { padding: 8px 9px; }
}
