/* Minton.GG — site styles. No inline styles anywhere (the CSP only allows this file). */
@font-face { font-family: "Pretendard"; font-weight: 400; font-display: swap; src: url("/fonts/Pretendard-Regular.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-display: swap; src: url("/fonts/Pretendard-SemiBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 800; font-display: swap; src: url("/fonts/Pretendard-ExtraBold.subset.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("/fonts/ChakraPetch-700.woff2") format("woff2"); }

:root {
  --court: #2f5bd3;       /* the floor in the users' own lesson videos */
  --court-deep: #2149b8;
  --net: #0d1a45;
  --line: #ffffff;
  --feather: #f6f4ec;
  --cork: #f2b544;
  --ink: #0d1a45;
  --muted: #4a5578;
  --rule: #dfe3ee;
  --bg: #ffffff;
  --surface: var(--feather);
  --display: "Chakra Petch", "Pretendard", sans-serif;
  --body: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a1230; --surface: #101b42; --ink: #eef1fa; --muted: #a9b3d1; --rule: #22305f; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--body); word-break: keep-all; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cork); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--cork); color: var(--net); padding: 8px 14px; z-index: 10; }

/* ---------- header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--line); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.wordmark { font: 700 24px/1 var(--display); letter-spacing: -0.01em; }
.wordmark b { color: var(--cork); font-weight: 700; }
.top nav a { color: var(--line); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 22px; opacity: .9; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- hero: the court is the page */
.hero { background: var(--court); color: var(--line); position: relative; overflow: hidden; padding: 120px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 32px; align-items: end; }
.hero h1 { font: 800 clamp(36px, 5.4vw, 60px)/1.15 var(--body); letter-spacing: -0.03em; margin: 0 0 20px; }
.hero p.lead { font-size: 19px; line-height: 1.6; max-width: 30em; margin: 0 0 32px; color: #dfe7ff; }
.hero-copy { padding-bottom: 88px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 800; font-size: 16px; text-decoration: none; transition: background-color .2s, color .2s; }
.btn-cork { background: var(--cork); color: var(--net); }
.btn-cork:hover { background: #ffc85e; }
.btn-line { border: 2px solid rgba(255,255,255,.7); color: var(--line); }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn svg { width: 20px; height: 20px; flex: none; }
.note { font-size: 14px; color: #c8d4fb; margin-top: 14px; }

.scene { width: 100%; height: auto; margin-bottom: -2px; }
.scene .court-line { stroke: var(--line); stroke-width: 3; fill: none; opacity: .9; }
.scene .net { stroke: var(--net); stroke-width: 5; }
.scene .net-mesh { stroke: rgba(13,26,69,.45); stroke-width: 1; }
.scene .bone { stroke: var(--cork); stroke-width: 6; stroke-linecap: round; fill: none; }
.scene .joint { fill: var(--line); stroke: var(--net); stroke-width: 2; }
.scene .racket { stroke: var(--line); stroke-width: 4; fill: none; }
.scene .path { stroke: var(--line); stroke-width: 3; fill: none; stroke-dasharray: 2 10; stroke-linecap: round; }
.scene .shuttle-cork { fill: var(--cork); }
.scene .shuttle-skirt { fill: var(--line); }
.scene .tag rect { fill: var(--net); }
.scene .tag text { fill: var(--line); font: 600 17px var(--body); }
.scene .tag .k { fill: var(--cork); font: 700 17px var(--display); }
.scene .tag line { stroke: var(--net); stroke-width: 2; }

/* the one orchestrated moment: the rally line draws itself once, then the shuttle lands */
@media (prefers-reduced-motion: no-preference) {
  .scene .path { animation: rally 1.6s .4s cubic-bezier(.3,.6,.3,1) both; }
  .scene .shuttle { animation: land .5s 1.8s ease-out both; }
  .scene .tag { animation: show .4s 2.2s ease-out both; }
  @keyframes rally { from { stroke-dashoffset: 760; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; } }
  @keyframes land { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
  @keyframes show { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- sections */
section { padding: 96px 0; }
section h2 { font: 800 clamp(28px, 3.6vw, 40px)/1.25 var(--body); letter-spacing: -0.025em; margin: 0 0 14px; }
section .sub { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0 0 48px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.mode { padding: 32px 32px 8px 0; }
.mode + .mode { padding-left: 32px; border-left: 1px solid var(--rule); }
.mode h3 { font: 800 24px/1.3 var(--body); margin: 0 0 6px; }
.mode .who { color: var(--muted); margin: 0 0 18px; }
.mode ul { list-style: none; padding: 0; margin: 0; }
.mode li { padding: 12px 0; border-top: 1px solid var(--rule); }
.mode li strong { display: block; font-weight: 600; }
.mode li span { color: var(--muted); font-size: 15px; }

/* OP.GG-style match card: the game analysis, shown as what it really is */
.match { margin: 64px 0 0; background: var(--net); color: var(--line); border-radius: 16px; overflow: hidden; }
.match-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 24px; border-bottom: 1px solid #22305f; }
.match-head b { font: 700 18px var(--display); letter-spacing: .02em; }
.match-head span { color: #a9b3d1; font-size: 14px; }
.match table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.match th, .match td { padding: 14px 24px; text-align: right; white-space: nowrap; }
.match th { color: #a9b3d1; font-weight: 600; font-size: 14px; }
.match th:first-child, .match td:first-child { text-align: left; }
.match tbody tr { border-top: 1px solid #22305f; }
.match tbody tr.me { background: #16245a; }
.match td.name { font-weight: 800; }
.match td.name small { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--cork); color: var(--net); font-size: 12px; font-weight: 800; vertical-align: 2px; }
.match .score { font: 700 20px var(--display); color: var(--cork); }
.match-scroll { overflow-x: auto; }
.match-foot { padding: 12px 24px; color: #a9b3d1; font-size: 13px; border-top: 1px solid #22305f; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; border-top: 2px solid var(--court); padding-top: 18px; }
.steps li::before { content: counter(s); font: 700 44px/1 var(--display); color: var(--court); display: block; margin-bottom: 12px; }
.steps h3 { font: 800 20px/1.35 var(--body); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.promise { background: var(--surface); }
.promise-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.promise dl { margin: 0; }
.promise dt { font-weight: 800; font-size: 18px; margin-top: 22px; }
.promise dt:first-child { margin-top: 0; }
.promise dd { margin: 4px 0 0; color: var(--muted); }

.join { text-align: left; }
.join .box { border: 2px solid var(--ink); border-radius: 16px; padding: 40px; display: flex; gap: 32px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.join h2 { margin: 0 0 8px; }
.join p { margin: 0; color: var(--muted); }
.join .btn-cork { white-space: nowrap; }

footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav a { margin-right: 18px; color: var(--ink); font-weight: 600; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 0; }
footer .wordmark { color: var(--ink); font-size: 20px; }

/* ---------- document pages (privacy) */
.doc-top { background: var(--court); color: var(--line); padding: 28px 0 40px; }
.doc-top .brand { margin-bottom: 36px; }
.doc-top h1 { font: 800 clamp(30px, 4vw, 42px)/1.2 var(--body); margin: 0 0 6px; letter-spacing: -0.02em; }
.doc-top p { margin: 0; color: #dfe7ff; }
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 72px; }
.doc h2 { font: 800 21px/1.4 var(--body); margin: 44px 0 10px; padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { width: 30%; background: var(--surface); }
.doc li { margin: 6px 0; }
.doc .callout { background: var(--surface); border-left: 4px solid var(--court); padding: 14px 18px; border-radius: 0 10px 10px 0; }

/* ---------- small screens */
@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .top nav a:not(:last-child) { display: none; }
  .modes { grid-template-columns: 1fr; }
  .mode { padding-right: 0; }
  .mode + .mode { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .promise-grid { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 72px 0; }
  .join .box { padding: 28px; }
  .match th, .match td { padding: 12px 14px; }
}
