@import url('./club-type.css');
@font-face { font-family: 'Rubik'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/fonts/rubik-latin.woff2') format('woff2-variations'), url('/fonts/rubik-latin.woff2') format('woff2'); }
@font-face { font-family: 'DLE Mark'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dlemark.woff2') format('woff2'); }
/* Flipsies' own palette (src/style.css, /how-to-play/) */
:root {
  --sky: #bfe6ff; --ink: #241f2c; --ink-2: rgba(36, 31, 44, .7); --card: #fbf6ea; --tint: #efe6d2;
  --line: rgba(36, 31, 44, .16); --ledge: rgba(36, 31, 44, .22); --edge: #d9ccb1;
  --mint: #93e2bd; --mint-deep: #2c8a63; --on-mint: #12261c; --px: 'Jersey 10', ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--tint); color: var(--ink); font: 400 17px/1.55 'Rubik', 'Avenir Next', 'Segoe UI', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, iframe:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--px); font-weight: 400; letter-spacing: 0; }

.top { background: var(--sky); }
.bar { display: flex; align-items: center; gap: 14px; width: min(1100px, calc(100% - 32px)); margin: auto; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.wm { position: relative; display: inline-block; font: 400 34px/1.3 'DLE Mark', var(--px); text-shadow: 0 .2em 0 var(--ledge); }
.wm i { display: inline-block; font-style: normal; transform: translateY(-.2em); }
.club { font: 400 19px/1 var(--px); color: var(--ink-2); text-decoration: none; margin-right: auto; }
.club:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; background: var(--mint); color: var(--on-mint); box-shadow: 0 3px 0 var(--mint-deep); font: 400 27px/1 var(--px); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mint-deep); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 22px; }

main { width: min(1100px, calc(100% - 32px)); margin: auto; padding-bottom: 24px; }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(24px, 5vw, 56px) 0; }
.eyebrow { margin: 0 0 6px; font: 400 19px/1 var(--px); letter-spacing: .04em; color: var(--ink-2); }
h1 { margin: 0; font-size: clamp(46px, 6.4vw, 80px); line-height: .92; }
.lede { margin: 16px 0 20px; font-size: 18px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0; }
.alt { font: 400 22px/1 var(--px); }
.board { border-radius: 18px; overflow: hidden; background: var(--sky); box-shadow: 0 5px 0 var(--edge); }
.board img { display: block; width: 100%; height: auto; }
.board iframe { display: block; border: 0; width: 100%; height: min(82svh, 740px); min-height: 420px; background: var(--sky); }
.hero.playing { display: block; padding: 16px 0; }
.hero.playing .intro { display: none; }
#standalone { margin: 10px 0 0; font: 400 21px/1 var(--px); }

.card { margin: 0 0 22px; padding: clamp(18px, 3vw, 30px); background: var(--card); border-radius: 18px; box-shadow: 0 5px 0 var(--edge); }
h2 { margin: 0 0 12px; font-size: clamp(36px, 4.4vw, 48px); line-height: 1; }
h3 { margin: 16px 0 2px; font-size: 27px; line-height: 1.05; }
p { margin: 0 0 12px; max-width: 62ch; }
.more { margin: 18px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps img { display: block; width: 100%; max-width: 260px; height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; margin: 0 auto 6px; border-radius: 14px; box-shadow: 0 4px 0 var(--edge); background: var(--sky); }
.steps h3 span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 6px; border-radius: 50%; background: var(--mint); font-size: 22px; vertical-align: 2px; }

.tips { margin: 0 0 16px; padding-left: 1.2em; }
.tips li { margin-bottom: 8px; max-width: 64ch; }
table { width: 100%; max-width: 560px; border-collapse: collapse; }
caption { text-align: left; font: 400 22px/1.2 var(--px); padding-bottom: 4px; }
td { padding: 9px 0; border-bottom: 2px solid var(--line); vertical-align: top; }
td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font: 400 24px/1 var(--px); }

.objects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 6px 0 16px; padding: 0; list-style: none; }
.objects li { text-align: center; font: 400 20px/1.1 var(--px); }
.objects img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; margin-bottom: 6px; }

footer { width: min(1100px, calc(100% - 32px)); margin: 8px auto 0; padding: 22px 0 32px; border-top: 2px solid var(--line); }
footer h2 { font-size: 32px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.games a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card); border-radius: 14px; box-shadow: 0 3px 0 var(--edge); text-decoration: none; font: 400 22px/1 var(--px); }
.games img { width: 40px; height: 40px; object-fit: contain; }
.links { font-size: 15px; color: var(--ink-2); max-width: none; }

.dock { display: none; }
@media (max-width: 760px) {
  .bar .btn.small { display: none; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  h1 { font-size: clamp(42px, 12vw, 58px); }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 120px 1fr; column-gap: 14px; align-items: start; }
  .steps img { grid-row: span 2; margin: 4px 0 0; }
  .steps h3 { margin-top: 0; }
  .objects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(239, 230, 210, .96); border-top: 2px solid var(--line); }
  .dock .btn { width: 100%; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}
