/* One More Run game page. The look follows the game: bright sky, checkered tracks, white rounded
   panels with a soft blue edge, grass-green and sun-yellow buttons, heavy rounded lettering
   (Nunito, declared in /assets/css/studio.css). The studio header and footer come from studio.css. */

:root {
  --o-ink: #241b4b;
  --o-ink-soft: #5b5486;
  --o-sky: #2f8dff;
  --o-sky-deep: #1d4fb8;
  --o-grass: #6fd35a;
  --o-grass-edge: #3a8f2c;
  --o-sun: #ffd23f;
  --o-sun-edge: #d99a00;
  --o-coral: #ff5d73;
  --o-soft: #eaf3ff;
  --o-soft-edge: #bcd3ef;
  --o-font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --o-wrap: 1120px;
  --o-gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.omr {
  margin: 0; background: var(--o-soft); color: var(--o-ink);
  font: 700 17px/1.55 var(--o-font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.omr img { max-width: 100%; display: block; }
.omr main a { color: var(--o-sky-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.omr main :focus-visible { outline: 3px solid var(--o-sun-edge); outline-offset: 3px; border-radius: 8px; }
.o-wrap { width: min(var(--o-wrap), 100%); margin: 0 auto; padding: 0 var(--o-gutter); }

/* ---------- the game's own bar, over its sky ---------- */
.o-top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.o-top .o-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.omr .o-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 19px; text-shadow: 0 2px 0 var(--o-sky-deep); }
.o-brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 var(--o-sky-deep); }
.o-top nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.omr .o-top nav a { color: #fff; text-decoration: none; font-weight: 900; font-size: 15px; padding: 8px 12px; border-radius: 12px; text-shadow: 0 1px 0 rgba(29, 79, 184, .6); }
.omr .o-top nav a:hover { background: rgba(255, 255, 255, .22); }

/* ---------- hero: the sky the courses float in ---------- */
.o-hero {
  position: relative; overflow: hidden; isolation: isolate; padding: 96px 0 0;
  background: linear-gradient(#2f8dff 0%, #63b2ff 42%, #c4f2ff 82%, #f1fbff 100%);
}
.o-hero::before, .o-hero::after { /* two clouds drifting by */
  content: ""; position: absolute; z-index: -1; background: #fff; border-radius: 999px; opacity: .9;
  box-shadow: 40px -18px 0 6px #fff, 86px 2px 0 -4px #fff;
}
.o-hero::before { width: 120px; height: 38px; top: 84px; right: -54px; }
.o-hero::after { width: 90px; height: 30px; bottom: 140px; left: -40px; opacity: .75; }
.o-hero-grid { display: grid; gap: 22px; align-items: center; padding-bottom: 0; }
.o-hero-copy { text-align: center; padding-bottom: 8px; }
.o-logo { margin: 8px 0 0; font-weight: 900; line-height: .9; letter-spacing: -0.01em; font-size: clamp(64px, 16vw, 116px); }
.o-logo span { display: block; }
.o-logo .w { color: #fff; text-shadow: 0 4px 0 #2a63d6, 0 8px 0 var(--o-sky-deep), 0 18px 34px rgba(20, 30, 90, .35); }
.o-logo .y { color: var(--o-sun); text-shadow: 0 4px 0 #f0a400, 0 8px 0 #c47f00, 0 18px 34px rgba(90, 50, 0, .3); }
.o-tagline { font-size: clamp(19px, 2.6vw, 23px); font-weight: 900; color: #fff; max-width: 26ch; margin: 22px auto 0; text-shadow: 0 2px 0 rgba(29, 79, 184, .55); }
.o-cta { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.o-note { margin: 0; font-size: 14px; font-weight: 800; color: var(--o-ink); }

.o-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: clamp(290px, 62vw, 520px); }
.o-phones img {
  width: clamp(150px, 40vw, 250px); height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 26px;
  border: 5px solid #fff; box-shadow: 0 8px 0 var(--o-soft-edge), 0 24px 40px rgba(29, 79, 184, .28);
}
.o-phones img:first-child { transform: rotate(-6deg) translate(16px, 30px); }
.o-phones img:last-child { transform: rotate(5deg) translate(-16px, 60px); }

/* ---------- buttons (the game's own) ---------- */
.omr .o-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  padding: 10px 26px; border-radius: 20px; text-decoration: none; color: #fff; font-weight: 900; font-size: 21px;
  background: linear-gradient(#8de879, var(--o-grass)); box-shadow: 0 6px 0 var(--o-grass-edge), 0 12px 22px rgba(36, 27, 75, .22);
  text-shadow: 0 2px 0 rgba(58, 143, 44, .6); transition: transform .06s ease, box-shadow .06s ease;
}
.omr .o-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--o-grass-edge); }
.o-btn svg { width: 22px; height: 22px; flex: none; }
.o-btn .bt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.o-btn small { font-size: 12px; font-weight: 900; opacity: .9; }
.omr .o-btn.is-soon { background: #fff; color: var(--o-ink); text-shadow: none; box-shadow: 0 6px 0 var(--o-soft-edge); cursor: default; }
.omr .o-btn.is-soon:active { transform: none; box-shadow: 0 6px 0 var(--o-soft-edge); }

/* ---------- sections ---------- */
.omr main section { padding: 64px 0; }
.o-h2 { margin: 0 0 8px; font-weight: 900; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.01em; color: var(--o-ink); }
.o-lead { margin: 0 0 28px; color: var(--o-ink-soft); font-size: 18px; max-width: 58ch; }
.o-panel { background: #fff; border-radius: 22px; box-shadow: 0 6px 0 var(--o-soft-edge); }

/* how it plays: three moves */
.o-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.o-moves li { padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.o-moves svg { width: 48px; height: 48px; flex: none; }
.o-moves b { display: block; font-size: 20px; font-weight: 900; }
.o-moves span { color: var(--o-ink-soft); }

/* ten levels: each swatch is that level's checkered track */
.o-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: lvl; }
.o-levels li { display: flex; align-items: center; gap: 12px; padding: 10px; counter-increment: lvl; }
.o-levels .sw {
  width: 52px; height: 52px; border-radius: 12px; flex: none; position: relative;
  background: conic-gradient(var(--a) 0 25%, var(--b) 0 50%, var(--a) 0 75%, var(--b) 0) 0 0 / 26px 26px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14);
}
.o-levels .sw::after {
  content: counter(lvl); position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 21px; text-shadow: 0 2px 0 rgba(36, 27, 75, .55);
}
.o-levels b { font-size: 17px; font-weight: 900; line-height: 1.2; }
.o-check { margin: 22px 0 0; font-size: 17px; max-width: 60ch; }
.o-check strong { color: var(--o-grass-edge); }

/* obstacles */
.o-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.o-chips li { background: #fff; border-radius: 999px; padding: 10px 18px; box-shadow: 0 4px 0 var(--o-soft-edge); font-weight: 900; }

/* screenshots */
.o-strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--o-gutter) 22px; margin: 0 calc(var(--o-gutter) * -1); scrollbar-width: thin; }
.o-strip figure { flex: 0 0 auto; width: min(230px, 62vw); margin: 0; scroll-snap-align: center; }
.o-strip img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; border: 4px solid #fff; box-shadow: 0 6px 0 var(--o-soft-edge); }
.o-strip figcaption { margin-top: 12px; text-align: center; font-weight: 900; font-size: 15px; }
.o-hint { margin: 0; font-size: 14px; color: var(--o-ink-soft); }

/* good to know */
.o-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px 24px; }
.o-facts li { display: flex; gap: 12px; align-items: flex-start; }
.o-facts li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--o-sun); box-shadow: 0 3px 0 var(--o-sun-edge); flex: none; }
.o-facts b { display: block; font-weight: 900; }
.o-facts span { color: var(--o-ink-soft); }

.o-get { text-align: center; background: linear-gradient(var(--o-soft), #d7e9ff); }
.o-get .o-lead { margin-left: auto; margin-right: auto; }
.o-get .o-privacy { margin: 26px 0 0; font-size: 15px; color: var(--o-ink-soft); }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .o-hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .o-hero-copy { text-align: left; padding-bottom: 80px; }
  .o-tagline { margin-left: 0; }
  .o-cta { align-items: flex-start; }
  .o-phones { height: 560px; }
  .o-levels { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .o-levels li { flex-direction: column; align-items: flex-start; padding: 14px; }
}
@media (max-width: 560px) {
  body.omr { font-size: 16px; }
  .omr .o-top nav a { padding: 8px 8px; font-size: 14px; }
  .o-brand span { display: none; }
  .omr main section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.o-moves p, .o-facts p { margin: 0; }

/* level swatch colours (classes, not inline styles, so the site security policy allows them) */
.sw-1 { --a: #5cc947; --b: #47b23a; }
.sw-2 { --a: #2fcbb7; --b: #24b6a4; }
.sw-3 { --a: #a58bf7; --b: #9278e8; }
.sw-4 { --a: #e8833a; --b: #d36f2d; }
.sw-5 { --a: #4fd3f0; --b: #36bde0; }
.sw-6 { --a: #4651c4; --b: #3a44ad; }
.sw-7 { --a: #8fcdf3; --b: #7bbbe8; }
.sw-8 { --a: #3dbb59; --b: #30a44c; }
.sw-9 { --a: #8e9bc8; --b: #7f8bb9; }
.sw-10 { --a: #7fe6bf; --b: #66d4aa; }
