:root {
  --blush: #FFF5F7;
  --dots: #F0C5D2;
  --ink: #2B1020;
  --muted: #6A4458;
  --pink: #EE5A86;
  --pink-pale: #FFE1EA;
  --teal: #19B5A5;
  --teal-pale: #D7F4F0;
  --teal-dark: #0B7F73;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--blush);
  background-image: radial-gradient(var(--dots) 1.6px, transparent 1.6px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, 32px); padding-right: max(16px, 32px); }
.fredoka, h1, h2, h3 { font-family: 'Fredoka', 'Trebuchet MS', sans-serif; }

/* header */
.site-header { position: relative; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 52px; height: 52px; flex: 0 0 auto; }
.brand span { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 28px; line-height: 1; }
.brand small { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 10px; font-weight: 600; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 3px solid var(--ink); background: var(--white); border-radius: 999px; padding: 8px 18px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; font-weight: 600; font-size: 15px; min-height: 44px; }
.pill.teal { background: var(--teal); }
.pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 12px); left: 0; z-index: 20; width: 270px; background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.menu[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 10px; border-radius: 14px; background: transparent; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.menu-item.live { background: var(--pink-pale); border-color: var(--ink); }
.menu-item img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); display: block; }
.menu-item strong { font-family: 'Fredoka', sans-serif; font-size: 18px; line-height: 1.1; display: block; }
.menu-item span.sub { font-size: 12px; color: var(--muted); display: block; }
.menu-item.soon { opacity: 0.55; cursor: default; }
.menu-backdrop { position: fixed; inset: 0; z-index: 10; }
.menu-backdrop[hidden] { display: none; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 40px; padding-bottom: 72px; }
.hero-text { flex: 1 1 500px; min-width: 0; }
.hero h1 { font-weight: 700; font-size: 80px; line-height: 1; letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance; }
.hl { background: linear-gradient(transparent 58%, var(--teal) 58%, var(--teal) 92%, transparent 92%); padding: 0 6px; }
.hero p { font-size: 21px; max-width: 520px; margin: 0 0 32px; color: var(--muted); }
.hero-art { flex: 0 1 400px; display: flex; justify-content: center; }
.hero-art svg { width: 340px; height: auto; }

.btn { display: inline-block; background: var(--pink); color: var(--ink); font-weight: 700; text-decoration: none; padding: 16px 30px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink); font-size: 18px; cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn.white { background: var(--white); font-size: 16px; padding: 14px 26px; box-shadow: 4px 4px 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--blush); font-weight: 600; border-color: var(--ink); box-shadow: none; font-size: 17px; }

/* panels */
.panel { border: 3px solid var(--ink); border-radius: 40px; box-shadow: 8px 8px 0 var(--ink); padding: 56px 48px 40px; }
.panel.white { background: var(--white); }
.panel.teal { background: var(--teal); margin-top: 56px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; }
.kicker.muted { color: var(--muted); }
.panel h2 { font-weight: 700; font-size: 48px; line-height: 1.05; margin: 12px 0 10px; }
.panel .lead { font-size: 18px; color: var(--muted); margin: 0 0 40px; }

/* map */
.map-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px 32px; }
.rail { flex: 0 0 120px; display: flex; flex-direction: column; align-items: center; }
.hex-btn { border: 0; background: none; padding: 0; cursor: pointer; display: block; }
.hex-btn svg { display: block; width: 124px; height: 124px; }
.hex .main { fill: var(--pink); }
.hex .light, .hex .dark { display: block; }
.hex.flat .light, .hex.flat .dark { display: none; }
.map-row.open .hex .main { fill: var(--teal); }
.hex.flat .main { stroke-dasharray: 6 5; }
.map-row.open .hex.flat .main { stroke-dasharray: none; }
.connector { flex: 1; min-height: 24px; border-left: 4px dashed var(--ink); margin: 8px 0; }
.map-card { flex: 1 1 520px; min-width: 0; margin-bottom: 28px; }
.closed-card { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; background: var(--white); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 5px 5px 0 var(--ink); padding: 26px 28px; cursor: pointer; text-align: left; min-height: 44px; }
.closed-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.closed-card .name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.1; display: block; margin-bottom: 10px; }
.chip { display: inline-block; background: var(--white); border: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 11px; border-radius: 999px; }
.chip.pink { background: #FFD9E4; }
.chip.teal { background: var(--teal-pale); }
.tap { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--muted); }
.plus { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); border: 3px solid var(--ink); color: var(--ink); font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; line-height: 1; }
.open-card { border: 3px solid var(--ink); border-radius: 32px; box-shadow: 7px 7px 0 var(--ink); padding: 32px; }
.open-card.c-pink { background: var(--pink); }
.open-card.c-teal { background: var(--teal); }
.open-card[hidden], .closed-card[hidden] { display: none; }
.open-card h3 { font-weight: 700; font-size: 40px; line-height: 1.05; margin: 0 0 14px; }
.open-card p { font-size: 18px; margin: 20px 0 0; max-width: 560px; }
.open-card .note { font-size: 15px; margin-top: 18px; }
.game-head { display: flex; align-items: center; gap: 18px; }
.game-head img { width: 84px; height: 84px; border-radius: 22px; border: 3px solid var(--ink); display: block; }
.game-head h3 { font-size: 46px; line-height: 1; margin: 0 0 10px; }
.open-card .promise { font-size: 16px; margin: 0 0 22px; }
.demo-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 28px; align-items: center; }
.demo-row[hidden] { display: none; }

/* picture reel */
.reel { display: flex; align-items: center; gap: 12px; margin: 0 -8px; }
.reel-btn { flex: 0 0 auto; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; color: var(--ink); }
.reel-btn svg { width: 22px; height: 22px; }
.reel-btn.prev { background: var(--teal); }
.reel-btn.next { background: var(--white); }
.reel-btn:hover { transform: translate(-1px, -1px); }
.reel-track { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 20px 14px 30px; }
.reel-track::-webkit-scrollbar { display: none; }
.shot { position: relative; flex: 0 0 auto; scroll-snap-align: center; width: 150px; height: 267px; padding: 0; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; background: #000; box-shadow: 5px 5px 0 var(--ink); cursor: zoom-in; transform: rotate(var(--tilt, 0deg)); transition: transform .15s; }
.shot:hover { transform: rotate(0deg) scale(1.03); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.is-video::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(43, 16, 32, 0.88); }
.shot.is-video::before { content: ""; position: absolute; right: 18px; bottom: 16px; z-index: 1; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--white); }
.reel-hint { font-size: 14px; margin: 0; }

/* teal panel */
.miko { background: var(--white); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 7px 7px 0 var(--ink); padding: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; transform: rotate(-0.5deg); }
.miko-text { flex: 1 1 340px; min-width: 0; }
.miko h3 { font-weight: 700; font-size: 36px; line-height: 1.05; margin: 16px 0 10px; }
.miko p { font-size: 18px; margin: 0 0 20px; max-width: 460px; }
.soon-tag { display: inline-block; background: var(--pink-pale); font-weight: 700; padding: 12px 24px; border: 3px dashed var(--ink); border-radius: 999px; }
.stages { display: flex; gap: 14px; flex-wrap: wrap; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.stage div { width: 104px; height: 104px; border-radius: 24px; background: var(--teal-pale); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.stage svg { width: 72px; height: 72px; }
.players { padding-top: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.players svg { flex: 0 0 auto; width: 180px; height: 100px; }
.players > div { flex: 1 1 380px; min-width: 0; }
.panel .players h2, .panel #contact h2 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
.players p { font-size: 18px; margin: 0; max-width: 620px; }
#contact { padding-top: 64px; }
#contact p { font-size: 18px; margin: 0 0 20px; }
.mail-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.mail-text { font-weight: 600; user-select: all; }

/* footer */
.site-footer { margin-top: 40px; border-top: 3px solid var(--ink); padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* lightbox and demo */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(43, 16, 32, 0.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.overlay[hidden] { display: none; }
.overlay .backdrop { position: absolute; inset: 0; }
.overlay .media { position: relative; max-height: 78vh; max-width: 100%; border: 4px solid var(--white); border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); background: #000; display: block; }
.overlay .media[hidden] { display: none; }
.lb-bar { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; color: #FFF1F5; font-weight: 600; }
.lb-bar .circle { cursor: pointer; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); font-size: 22px; font-weight: 700; color: var(--ink); }
.lb-bar .close { cursor: pointer; height: 48px; padding: 0 22px; border-radius: 999px; border: 3px solid var(--ink); background: var(--pink); font-weight: 700; font-size: 16px; color: var(--ink); }
.demo-box { position: relative; width: min(1100px, 100%); height: min(86vh, 760px); background: var(--white); border: 4px solid var(--white); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 8px 8px 0 var(--ink); }
.demo-frame { flex: 1; min-height: 0; background: var(--blush); }
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-foot { margin: 0; padding: 10px 16px; font-size: 14px; text-align: center; background: var(--white); border-top: 3px solid var(--ink); }
.demo-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--pink); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }

/* text pages */
.prose { max-width: 760px; padding-bottom: 40px; }
.prose h1 { font-size: 52px; line-height: 1.05; margin: 24px 0 8px; }
.prose h2 { font-size: 26px; margin: 36px 0 8px; }
.prose p { font-size: 17px; margin: 0 0 14px; }
.prose .updated { color: var(--muted); font-size: 15px; }
.prose a { color: var(--ink); font-weight: 600; }

/* phones */
@media (max-width: 700px) {
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 18px; }
  .hero-art svg { width: 240px; }
  .panel { padding: 32px 14px 20px; border-radius: 28px; }
  .panel.teal { padding-left: 20px; padding-right: 20px; }
  .panel h2 { font-size: 36px; }
  .map-row { gap: 8px 10px; flex-wrap: nowrap; }
  .rail { flex: 0 0 56px; }
  .hex-btn svg { width: 56px; height: 56px; }
  .map-card { flex: 1 1 0; min-width: 0; }
  .closed-card { padding: 18px 16px; }
  .closed-card .name { font-size: 24px; }
  .open-card { padding: 18px; }
  .open-card h3 { font-size: 30px; }
  .game-head { gap: 12px; }
  .game-head img { width: 64px; height: 64px; border-radius: 16px; }
  .game-head h3 { font-size: 32px; }
  .open-card p { font-size: 16px; }
  .reel { margin: 0 -4px; gap: 4px; }
  .reel-btn { width: 36px; height: 36px; }
  .reel-btn svg { width: 18px; height: 18px; }
  .shot { width: 120px; height: 213px; }
  .miko { padding: 22px; }
  .prose h1 { font-size: 40px; }
}
