/* =========================================================
   ronsuco — neo-brutalist / cute-alism design system
   ========================================================= */

/* ===== Fonts (self-hosted) ===== */
@font-face {
  font-family: 'Jua';
  src: url('../fonts/Jua-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../fonts/Pretendard-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; }

/* ===== Tokens ===== */
:root {
  --paper: #fdf4e3;
  --ink: #161310;
  --coral: #ff5436;
  --cobalt: #3a5bff;
  --lime: #c8f032;
  --sunny: #ffc93c;
  --white: #ffffff;

  --font-display: 'Jua', 'Pretendard', sans-serif;
  --font-body: 'Pretendard', system-ui, sans-serif;

  --bd: 3px;                       /* border weight */
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; font-weight: 400; letter-spacing: -0.01em; }
strong, b { font-weight: 700; }
p { max-width: 62ch; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--ink); color: var(--paper); padding: .7rem 1.2rem;
  border-radius: 10px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ===== Helpers ===== */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  padding: .3em .8em; border: var(--bd) solid var(--ink);
  border-radius: 999px; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.tag--coral { background: var(--coral); color: var(--white); }
.tag--cobalt { background: var(--cobalt); color: var(--white); }
.tag--lime { background: var(--lime); }
.tag--sunny { background: var(--sunny); }

.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 900;
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  background: var(--ink); color: var(--paper); padding: .35em .9em;
  border-radius: 8px; transform: rotate(-2deg);
}

.h-xl { font-size: clamp(2.6rem, 8vw, 5.4rem); }
.h-lg { font-size: clamp(2rem, 5.5vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 400; }
.muted { color: #5b554c; }

.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2.5rem; }

/* color swatches for inline highlight */
.hl { background: var(--lime); padding: 0 .15em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl--coral { background: var(--coral); color: var(--white); }
.hl--sunny { background: var(--sunny); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 900; font-size: 1.05rem;
  padding: .85em 1.6em; border: var(--bd) solid var(--ink);
  border-radius: 14px; background: var(--white); color: var(--ink);
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--cobalt { background: var(--cobalt); color: var(--white); }
.btn--lime { background: var(--lime); }
.btn--sunny { background: var(--sunny); }
.btn--lg { font-size: 1.2rem; padding: 1em 2em; }
.btn--block { display: flex; width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: var(--bd) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.card--coral { background: var(--coral); color: var(--white); }
.card--cobalt { background: var(--cobalt); color: var(--white); }
.card--lime { background: var(--lime); }
.card--sunny { background: var(--sunny); }
.card--paper { background: var(--paper); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--paper);
  border-bottom: var(--bd) solid var(--ink);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 5px 0 var(--ink); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a {
  font-weight: 700; padding: .5em .85em; border-radius: 10px;
  border: var(--bd) solid transparent; transition: background .15s, border-color .15s;
}
.nav__links a:hover { background: var(--sunny); border-color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav__cta { margin-left: .4rem; }
.nav__toggle {
  display: none; width: 48px; height: 44px; background: var(--white);
  border: var(--bd) solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-sm);
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s; position: relative;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: var(--bd) solid var(--ink);
    padding: 1rem clamp(1rem,4vw,2rem) 1.5rem; gap: .5rem;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: 0 10px 0 var(--ink);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .8em 1em; border: var(--bd) solid var(--ink); background: var(--white); }
  .nav__cta { margin: .3rem 0 0; }
}

/* ===== Hero (index) ===== */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero__title { margin-block: .4rem .6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; font-weight: 700; }
.hero__meta span { display: inline-flex; align-items: center; gap: .4em; }
.hero__art { position: relative; min-height: 360px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 420px; margin-top: 1rem; }
}

/* sticker decorations */
.sticker { position: absolute; border: var(--bd) solid var(--ink); box-shadow: var(--shadow); }
.wobble { transition: transform .2s ease; }
.wobble:hover { transform: rotate(-5deg) scale(1.06); }

/* ===== Photo frames ===== */
.photo-frame {
  border: var(--bd) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; background: var(--white);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.rot-l { transform: rotate(-3deg); } .rot-r { transform: rotate(3deg); }
.rot-l2 { transform: rotate(-1.5deg); } .rot-r2 { transform: rotate(1.5deg); }

/* ===== Player card mockup ===== */
.player-card {
  background: var(--white); border: var(--bd) solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 1.3rem; max-width: 320px;
}
.player-card__top { display: flex; align-items: center; gap: .9rem; }
.player-card__av {
  width: 60px; height: 60px; border-radius: 16px; border: var(--bd) solid var(--ink);
  display: grid; place-items: center; font-size: 1.9rem; flex-shrink: 0;
}
.player-card__name { font-family: var(--font-display); font-size: 1.4rem; }
.player-card__lv { font-weight: 900; font-size: .82rem; }
.xpbar {
  height: 18px; border: var(--bd) solid var(--ink); border-radius: 999px;
  background: var(--paper); margin-top: 1rem; overflow: hidden;
}
.xpbar__fill { height: 100%; background: var(--lime); border-right: 3px solid var(--ink); }
.badge-row { display: flex; gap: .5rem; margin-top: 1rem; }
.medal {
  width: 42px; height: 42px; border-radius: 50%; border: var(--bd) solid var(--ink);
  display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow-sm);
}

/* ===== Section headings ===== */
.sec-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ===== Steps (3-step flow) ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 1.8rem); }
.step { position: relative; }
.step__num {
  position: absolute; top: -22px; left: -10px;
  width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem;
  border: var(--bd) solid var(--ink); box-shadow: var(--shadow-sm); z-index: 2;
}
.step__icon { width: 64px; height: 64px; margin-bottom: .6rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== Generic grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 1.8rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 1.8rem); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 3vw, 1.8rem); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== Game lineup (horizontal scroll) ===== */
.scroller { display: flex; gap: 1.2rem; overflow-x: auto; padding: 1rem .25rem 1.5rem; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; flex: 0 0 clamp(230px, 70vw, 280px); }
.scroller::-webkit-scrollbar { height: 12px; }
.scroller::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 999px; }
.scroller::-webkit-scrollbar-track { background: rgba(22,19,16,.12); border-radius: 999px; }

.game-card__icon { width: 56px; height: 56px; margin-bottom: .8rem; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ===== Speech bubbles (reviews) ===== */
.bubble {
  position: relative; background: var(--white); border: var(--bd) solid var(--ink);
  border-radius: 20px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem;
}
.bubble::after {
  content: ''; position: absolute; bottom: -16px; left: 32px;
  width: 26px; height: 26px; background: inherit;
  border-right: var(--bd) solid var(--ink); border-bottom: var(--bd) solid var(--ink);
  transform: rotate(45deg);
}
.bubble--coral { background: var(--coral); color: var(--white); }
.bubble--cobalt { background: var(--cobalt); color: var(--white); }
.bubble--lime { background: var(--lime); }
.bubble--sunny { background: var(--sunny); }
.review-by { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; font-weight: 700; }
.review-av { width: 38px; height: 38px; border-radius: 50%; border: var(--bd) solid var(--ink); display: grid; place-items: center; }

/* ===== Counter band ===== */
.band { background: var(--cobalt); border-block: var(--bd) solid var(--ink); color: var(--white); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.counter__num { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; }
.counter__label { font-weight: 700; margin-top: .4rem; }
@media (max-width: 640px) { .counters { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== CTA band ===== */
.cta-band { background: var(--coral); border-block: var(--bd) solid var(--ink); color: var(--white); text-align: center; }
.cta-band .btn { color: var(--ink); }

/* ===== App phone mockup (how.html) ===== */
.phone {
  width: 280px; max-width: 100%; border: 5px solid var(--ink); border-radius: 38px;
  background: var(--ink); padding: 12px; box-shadow: var(--shadow-lg); margin-inline: auto;
}
.phone__screen { background: var(--paper); border-radius: 26px; overflow: hidden; border: var(--bd) solid var(--ink); }
.phone__bar { background: var(--ink); color: var(--paper); font-size: .72rem; padding: .35rem .9rem; display: flex; justify-content: space-between; font-weight: 700; }
.phone__body { padding: 1rem; min-height: 380px; }

/* how steps alternating */
.how-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.how-step:nth-child(even) .how-step__media { order: -1; }
@media (max-width: 820px) { .how-step { grid-template-columns: 1fr; } .how-step:nth-child(even) .how-step__media { order: 0; } }

/* mini ui rows inside phone */
.ui-row { display: flex; align-items: center; gap: .7rem; padding: .7rem; border: var(--bd) solid var(--ink); border-radius: 14px; background: var(--white); margin-bottom: .7rem; box-shadow: var(--shadow-sm); }
.ui-av { width: 40px; height: 40px; border-radius: 11px; border: var(--bd) solid var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.ui-pill { font-size: .72rem; font-weight: 900; padding: .15em .6em; border: 2px solid var(--ink); border-radius: 999px; }

/* ===== FAQ accordion ===== */
.faq { display: grid; gap: 1rem; max-width: 800px; margin-inline: auto; }
.faq__item { background: var(--white); border: var(--bd) solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: var(--white); border: 0;
  padding: 1.1rem 1.3rem; font-weight: 900; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q:hover { background: var(--sunny); }
.faq__icon { flex-shrink: 0; width: 26px; height: 26px; border: var(--bd) solid var(--ink); border-radius: 7px; display: grid; place-items: center; font-weight: 900; transition: transform .2s; background: var(--paper); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--coral); color: var(--white); }
.faq__a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq__a[data-open="true"] { padding: 0 1.3rem 1.3rem; max-height: 600px; }

/* ===== Forms (start.html) ===== */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 900; }
.field .req { color: var(--coral); }
.field input, .field select {
  padding: .8em 1em; border: var(--bd) solid var(--ink); border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--cobalt); }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-weight: 700; }
.checkbox input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--coral); margin-top: .15rem; }
.checkbox a { text-decoration: underline; }
.form-note { font-size: .9rem; }

/* store buttons */
.store-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.store-btn { display: inline-flex; transition: transform .12s, box-shadow .12s; border-radius: 14px; box-shadow: var(--shadow); }
.store-btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-lg); }
.store-btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.store-btn svg { display: block; border-radius: 14px; }

/* qr block */
.qr { width: 120px; height: 120px; border: var(--bd) solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); }

/* ===== Safety feature list ===== */
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__ic { width: 56px; height: 56px; flex-shrink: 0; border: var(--bd) solid var(--ink); border-radius: 14px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--paper); border-top: var(--bd) solid var(--ink); padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer a:hover { color: var(--lime); }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { font-weight: 700; }
.footer-brand img { height: 40px; filter: invert(1); }
.footer-biz { font-size: .85rem; color: #b9b2a6; line-height: 1.8; margin-top: 1rem; }
.legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
.legal-open { background: none; border: 0; padding: 0; color: var(--lime); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3a352d; font-size: .85rem; color: #b9b2a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  padding: clamp(.8rem, 3vw, 2rem);
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(22,19,16,.55); }
.modal__panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border: var(--bd) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px;
  background: var(--coral); color: var(--white); border: var(--bd) solid var(--ink);
  border-radius: 10px; font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-sm);
}
.modal__close:hover { transform: rotate(90deg); }
.modal h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .3rem; padding-right: 3rem; }
.modal h3 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: .4rem; }
.modal p, .modal li { font-size: .95rem; max-width: none; }
.modal ul, .modal ol { padding-left: 1.3rem; margin: .5rem 0; }
.modal ul li { list-style: disc; margin-bottom: .3rem; }
.modal ol li { list-style: decimal; margin-bottom: .3rem; }
.modal .updated { font-size: .85rem; color: #5b554c; font-weight: 700; }
.legal-table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .88rem; }
.legal-table th, .legal-table td { border: 2px solid var(--ink); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.legal-table th { background: var(--sunny); font-weight: 900; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Decorative blobs ===== */
.blob-bg { position: absolute; z-index: 0; pointer-events: none; }
.section > .container { position: relative; z-index: 1; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
