/* Presentation only: layout, colour and typography. Gameplay lives in the unchanged scripts. */
:root {
  color-scheme: dark;
  --bg: #080e16;
  --panel: #101c28;
  --text: #f1f7fc;
  --muted: #9bafbe;
  --cyan: #66e8ed;
  --line: #233846;
  --accent-end: #b0f7e5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 78% 15%, #14364288, transparent 48%), var(--bg);
}
.page-width { width: min(1120px, calc(100% - 64px)); }
.site-header { min-height: 76px; gap: 16px; border-bottom: 1px solid #223743; }
.brand { font-size: 18px; gap: 10px; letter-spacing: -.5px; }
.brand img { width: 34px; height: 34px; }
.brand small { margin-top: 4px; font-size: 8px; letter-spacing: 1.8px; color: var(--muted); }
.header-link {
  min-height: 42px; padding: 10px 14px; border: 1px solid #2a4756;
  border-radius: 11px; background: #14273280; color: #d4e9ef; font-size: 12px; gap: 8px;
}
.header-link > span:last-child { margin-left: 3px; }
.header-link .icon { color: var(--cyan); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 410px;
  grid-template-rows: auto 1fr; align-items: start;
  column-gap: 56px; row-gap: 28px; padding: 32px 0 36px;
}
.hero-intro { grid-column: 1; grid-row: 1; text-align: left; padding: 14px 0 0; margin: 0; }
.hero-intro::before {
  content: "10 TAPS / PLAYABLE DEMO"; display: block; width: fit-content;
  margin-bottom: 14px; color: #8bd1d9; font-size: 10px; font-weight: 650;
  line-height: 1.4; letter-spacing: 1.5px;
}
h1 { margin: 0 0 14px; font-size: clamp(32px, 3.8vw, 46px); font-weight: 720; line-height: 1.08; letter-spacing: -1.8px; }
h1 span { color: var(--cyan); }
h1 br { display: block; }
.hero-prompt { max-width: 400px; margin: 0 0 15px; color: #b7cad6; font-size: 15px; line-height: 1.5; letter-spacing: -.1px; }
.try-link {
  min-height: 44px; padding: 10px 17px; gap: 15px; border: 1px solid #3d6a75;
  border-radius: 10px; background: #15323c; color: #c9f9f6; font-size: 12px; font-weight: 700;
}
.try-link .icon { color: var(--cyan); }
.hero-art { grid-column: 1; grid-row: 2; margin: 0; align-self: start; padding: 0; }
.hero-art img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 1px solid #2b4451; border-radius: 17px; }
.demo-column { grid-column: 2; grid-row: 1 / 3; width: 100%; min-width: 0; }
.mini-app {
  color-scheme: dark; color: var(--text); padding: 20px; border: 1px solid #3b6472;
  border-radius: 24px; background: linear-gradient(145deg, #172b38, #0c1723 65%);
  box-shadow: 0 20px 60px #0005, 0 0 45px #21d6db0b, inset 0 1px 0 #c2ffff18;
}
.app-header { margin-bottom: 16px; gap: 10px; }
.guest-profile { font-size: 13px; gap: 9px; }
.guest-avatar { width: 32px; height: 32px; font-size: 13px; }
.demo-badge { color: #adf7e3; background: #143d3b; border-color: #346c65; padding: 5px 7px; font-size: 9px; }
.game-stats { gap: 10px; }
.stat { padding: 10px 13px; border-radius: 10px; border-color: #2b4555; background: #162938; }
.stat-label { margin-bottom: 5px; font-size: 11px; line-height: 1.3; }
.stat strong { font-size: 17px; line-height: 1.3; }
.coin-stage { height: 220px; }
.coin-button { width: 198px; height: 198px; }
.coin-stage::before { inset: -10px -20px; background-size: 310px; opacity: .22; }
.coin-halo { opacity: .18; }
.tap-hint { min-height: 17px; margin: 0 0 12px; color: #b4d5df; font-size: 11px; line-height: 1.5; }
.balance { margin-bottom: 15px; }
.balance-label { margin-bottom: 5px; font-size: 9px; line-height: 1.4; }
.balance output { font-size: 36px; line-height: 1.05; }
.energy-section { margin-bottom: 11px; }
.bar-label { margin-bottom: 6px; font-size: 10px; line-height: 1.4; }
.rank-row { margin-bottom: 6px; line-height: 1.4; }
.app-bottom { margin-top: 17px; }
.primary-button {
  min-height: 48px; padding: 12px 14px; border-radius: 11px;
  background: linear-gradient(105deg, var(--cyan), var(--accent-end));
  color: #072b32; border-color: #9ef2eb; font-size: 13px; font-weight: 750;
  box-shadow: 0 6px 24px #36dece18;
}
.preview-note { margin-top: 8px; color: #a0b5c5; font-size: 10px; line-height: 1.4; }
.result-panel { min-height: 470px; }
.result-panel h2 { font-size: 28px; line-height: 1.2; }
.result-panel h2 span { font-size: 16px; margin-top: 8px; }
.result-icon { width: 76px; height: 76px; margin-bottom: 17px; }
.result-total strong { font-size: 70px; }
.result-description { margin-bottom: 18px; font-size: 13px; }
.result-note { color: #b9cbd5; font-size: 11px; }
.site-footer { border-top: 1px solid #1b2d39; padding-block: 20px; color: #8b9eaf; }

@media (max-width: 1050px) and (min-width: 761px) {
  .page-width { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr) 370px; column-gap: 30px; padding-top: 26px; }
  h1 { font-size: 36px; letter-spacing: -1.3px; }
  .mini-app { padding: 18px; }
  .hero-prompt { font-size: 14px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 12px; }
  .page-width { width: min(440px, calc(100% - 28px)); }
  .site-header { min-height: 64px; gap: 8px; }
  .brand { font-size: 15px; gap: 7px; }
  .brand img { width: 29px; height: 29px; }
  .brand small { font-size: 7px; letter-spacing: 1.4px; margin-top: 3px; }
  .header-link { min-height: 38px; padding: 9px 10px; gap: 6px; font-size: 10px; border-radius: 9px; }
  .header-link > span:last-child { display: none; }
  .header-link .icon { width: 14px; height: 14px; }
  .hero { display: flex; flex-direction: column; gap: 0; padding: 16px 0 22px; }
  .hero-intro { width: 100%; padding: 0 3px; margin: 0 0 14px; }
  .hero-intro::before { margin-bottom: 7px; font-size: 9px; letter-spacing: 1.15px; }
  h1 { font-size: clamp(25px, 7vw, 31px); line-height: 1.08; letter-spacing: -.9px; margin: 0 0 7px; }
  .hero-prompt { display: inline; margin: 0; font-size: 12px; line-height: 1.6; }
  .try-link { min-height: 0; padding: 4px 0; margin-left: 8px; gap: 5px; border: 0; border-radius: 0; background: transparent; font-size: 10px; line-height: 1.6; }
  .try-link .icon { width: 13px; height: 13px; }
  .demo-column { order: 2; width: 100%; }
  .mini-app { max-width: none; margin: 0; padding: 16px; border-radius: 21px; scroll-margin-top: 12px; }
  .app-header { margin-bottom: 13px; }
  .guest-profile { font-size: 12px; }
  .guest-avatar { width: 30px; height: 30px; }
  .stat { padding: 9px 12px; }
  .stat-label { font-size: 10px; margin-bottom: 4px; }
  .stat strong { font-size: 16px; }
  .stat-unit { font-size: 11px; }
  .stat .icon { width: 16px; height: 16px; }
  .coin-stage { height: 190px; }
  .coin-button { width: 176px; height: 176px; }
  .coin-stage::before { inset: -8px -16px; background-size: 270px; }
  .coin-halo { width: 150px; height: 150px; }
  .tap-hint { margin-bottom: 9px; }
  .balance { margin-bottom: 12px; }
  .balance-label { margin-bottom: 4px; font-size: 8px; letter-spacing: 1.4px; }
  .balance output { font-size: 32px; }
  .energy-section { margin-bottom: 9px; }
  .rank-row { margin-bottom: 5px; }
  .app-bottom { margin-top: 13px; }
  .primary-button { min-height: 46px; padding: 11px 13px; font-size: 12px; }
  .preview-note { margin-top: 7px; font-size: 10px; }
  .hero-art { order: 3; width: 100%; margin: 22px 0 0; padding: 0; }
  .hero-art img { height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 15px; }
  .result-panel { min-height: 435px; }
  .result-panel h2 { font-size: 27px; }
  .result-panel h2 span { font-size: 15px; }
  .result-total { margin-block: 14px; }
  .result-total strong { font-size: 66px; }
  .reward-symbol { font-size: 30px; padding-top: 6px; }
  .reward-currency { font-size: 14px; }
  .site-footer { padding-block: 17px; }
}
@media (max-width: 360px) {
  .page-width { width: calc(100% - 24px); }
  .brand { font-size: 14px; gap: 6px; }
  .brand img { width: 26px; height: 26px; }
  .header-link { padding-inline: 8px; font-size: 9px; }
  .mini-app { padding: 13px; }
  .guest-profile { font-size: 11px; }
  .stat { padding-inline: 10px; }
  .coin-stage { height: 178px; }
  .coin-button { width: 164px; height: 164px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .site-header { min-height: 58px; }
  .hero { padding-top: 12px; }
  .hero-intro { margin-bottom: 11px; }
  .hero-intro::before { margin-bottom: 5px; }
  h1 { font-size: 26px; }
  .coin-stage { height: 174px; }
  .coin-button { width: 160px; height: 160px; }
  .result-panel { min-height: 0; padding-block: 8px; }
}

/* Same compact layout, a cooler cyan accent for this landing. */
:root { --cyan: #79dcff; --accent-end: #90f1e7; }
body { background: radial-gradient(ellipse at 78% 15%, #16344788, transparent 48%), var(--bg); }
