/* YODO — landing page. Bahasa visual sama dengan game: Lilita + Rubik, arang, lime, jingga kemah. */
:root {
  --bg: #141518; --panel: rgba(20, 21, 24, .78); --panel-solid: #1b1d21; --line: rgba(255, 255, 255, .1);
  --lime: #ccff00; --lime-dk: #7a9900; --lime-glow: rgba(204, 255, 0, .28);
  --amb: #ffb347; --text: #f1f3ec; --muted: #a3a9ae; --danger: #ff3b47;
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); font: 500 16px/1.55 'Rubik', system-ui, sans-serif; background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
b { font-weight: 800; }
[hidden] { display: none !important; }

/* ---------- kanvas 3D tetap di belakang ---------- */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; background: #22262a; }
#shade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,15,17,.82) 0%, rgba(14,15,17,.45) 34%, rgba(14,15,17,0) 60%),
              linear-gradient(0deg, rgba(14,15,17,.75) 0%, rgba(14,15,17,0) 30%);
  transition: opacity .4s; }
#shade::after { content: ''; position: absolute; inset: 0; background: rgba(14,15,17,.86); opacity: var(--dim, 0); transition: opacity .3s; }
#loading { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px; background: var(--panel); font: 700 13px/1 'Rubik'; color: var(--muted); transition: opacity .5s; }
#loading i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lime); border-right-color: transparent; animation: spin .8s linear infinite; }
#loading.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
main { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--nav-h); display: flex; align-items: center; gap: 22px;
  padding: 0 max(20px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(14,15,17,.85), rgba(14,15,17,0)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; border: 2px solid var(--lime); }
.brand b { font: 400 26px/1 'Lilita One'; letter-spacing: .02em; }
.links { display: flex; gap: 20px; }
.links a { text-decoration: none; font: 700 14px/1 'Rubik'; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--text); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca-chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20,21,24,.7); color: var(--text); font: 700 12px/1 'Rubik'; cursor: pointer; white-space: nowrap; }
.ca-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amb); }
.ca-chip.live .dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(204,255,0,.2); }
.ca-chip:disabled { cursor: default; }
.ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,21,24,.7); border: 1px solid var(--line); }
.ico svg { width: 16px; height: 16px; fill: var(--text); }
.ico:hover { border-color: var(--lime); }

/* tombol utama = tombol PLAY di game */
.btn-play { display: inline-grid; place-items: center; min-width: 180px; height: 60px; padding: 0 30px; border-radius: 18px; text-decoration: none;
  font: 400 26px/1 'Lilita One'; letter-spacing: .04em; color: #131600; background: linear-gradient(180deg, #e2ff52, #b8e600);
  box-shadow: 0 6px 0 var(--lime-dk), 0 14px 34px var(--lime-glow), inset 0 2px 0 rgba(255,255,255,.55); transition: transform .12s, box-shadow .12s; }
.btn-play:hover { transform: translateY(-2px); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--lime-dk), 0 6px 20px var(--lime-glow), inset 0 2px 0 rgba(255,255,255,.55); }
.btn-play.sm { min-width: 0; height: 38px; padding: 0 18px; border-radius: 12px; font-size: 18px; box-shadow: 0 4px 0 var(--lime-dk), inset 0 2px 0 rgba(255,255,255,.5); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 40px;
  padding: calc(var(--nav-h) + 20px) max(28px, 5vw) 150px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font: 600 13px/1 'Rubik'; color: var(--muted); }
.live-pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.live-pill .sep { width: 1px; height: 12px; background: var(--line); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(204,255,0,.6); } 100% { box-shadow: 0 0 0 9px rgba(204,255,0,0); } }
.wordmark { margin: 18px 0 0; font: 400 clamp(96px, 15vw, 210px)/.86 'Lilita One'; letter-spacing: .01em; color: var(--text);
  -webkit-text-stroke: 10px #0f1012; paint-order: stroke fill; text-shadow: 0 10px 0 #0f1012; }
.wordmark span { color: var(--lime); }
.tag { margin: 14px 0 0; font: 800 clamp(14px, 1.4vw, 18px)/1 'Rubik'; letter-spacing: .34em; text-transform: uppercase; }
.lead { max-width: 520px; margin: 22px 0 0; font-size: clamp(16px, 1.35vw, 19px); color: #d6dad2; }
.lead b { color: var(--text); }
.cta-row { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-note { font: 600 13px/1.3 'Rubik'; color: var(--muted); }

/* kartu CA */
.ca-card { align-self: center; padding: 20px; border-radius: 22px; background: rgba(20,21,24,.88); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.ca-top { display: flex; align-items: center; justify-content: space-between; }
.tkr { font: 400 30px/1 'Lilita One'; color: var(--lime); }
.status { padding: 6px 10px; border-radius: 8px; background: rgba(255,179,71,.14); color: var(--amb); font: 800 11px/1 'Rubik'; letter-spacing: .08em; text-transform: uppercase; }
.status.live { background: rgba(204,255,0,.14); color: var(--lime); }
.ca-addr { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); font: 600 14px/1.4 'Rubik'; color: var(--muted); min-height: 70px; }
.ca-addr.mono { font: 600 13px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--text); word-break: break-all; }
.ca-btns { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.ca-btns > * { height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 14px/1 'Rubik'; text-decoration: none; cursor: pointer; border: 0; }
.b-copy { background: rgba(255,255,255,.08); color: var(--text); }
.b-copy:disabled { opacity: .45; cursor: default; }
.b-buy { background: linear-gradient(180deg, #e2ff52, #b8e600); color: #131600; box-shadow: 0 4px 0 var(--lime-dk); }
.b-buy.off { background: transparent; color: var(--lime); border: 2px solid var(--lime); box-shadow: none; cursor: default; }
.b-chart { background: rgba(255,255,255,.08); color: var(--text); }
.b-chart.off { opacity: .45; cursor: default; }
.ca-meta { margin-top: 14px; display: flex; gap: 6px; justify-content: center; font: 600 12px/1 'Rubik'; color: var(--muted); }

/* pita bukti live */
.proof { position: absolute; left: max(28px, 5vw); right: max(28px, 5vw); bottom: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.proof > div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.proof > div:first-child { border-left: 0; }
.proof small { display: block; font: 700 11px/1 'Rubik'; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proof b { display: block; margin-top: 8px; font: 400 24px/1 'Lilita One'; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.proof-src { position: absolute; right: 14px; top: -22px; font: 600 11px/1 'Rubik'; color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font: 600 12px/1 'Rubik'; color: var(--muted); white-space: nowrap; }
.scroll-cue i { width: 14px; height: 22px; border: 2px solid var(--muted); border-radius: 8px; position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; background: var(--lime); border-radius: 1px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ---------- babak cerita ---------- */
.act { min-height: 135vh; padding: 0 max(28px, 5vw); display: flex; align-items: center; }
.act-card { position: sticky; top: calc(50vh - 170px); width: min(440px, 100%); padding: 26px 28px; border-radius: 24px; background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(6px); }
.act-n { font: 400 18px/1 'Lilita One'; color: var(--lime); }
.act h2 { margin: 10px 0 0; font: 400 clamp(36px, 4vw, 52px)/1 'Lilita One'; letter-spacing: .01em; }
.act p { margin: 16px 0 0; color: #d6dad2; }
.act[data-shot="night"] .act-n, .act[data-shot="night"] h2 { color: var(--amb); }
.act[data-shot="die"] .act-n { color: var(--danger); }
.act-btns { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip-btn { height: 44px; padding: 0 18px; border-radius: 14px; border: 0; background: rgba(255,255,255,.1); color: var(--text); font: 800 14px/1 'Rubik'; cursor: pointer;
  box-shadow: 0 4px 0 #0b0c0e; transition: transform .1s; }
.chip-btn:hover { background: rgba(255,255,255,.16); }
.chip-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0b0c0e; }
.keys { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font: 600 13px/1 'Rubik'; color: var(--muted); }
.keys li { display: flex; align-items: center; gap: 7px; }
kbd { display: inline-block; min-width: 26px; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.12); color: var(--text); font: 800 12px/1 'Rubik'; text-align: center; box-shadow: 0 2px 0 #0b0c0e; }

/* tombol tahan untuk mati */
.hold { margin-top: 20px; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 10px; border-radius: 18px; border: 0;
  background: rgba(255,59,71,.14); color: #ff7a82; font: 800 16px/1 'Rubik'; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.hold circle { fill: none; stroke-width: 4; }
.hold .trk { stroke: rgba(255,59,71,.25); }
.hold .fill { stroke: var(--danger); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; }
.hold.done { background: rgba(204,255,0,.12); color: var(--lime); }
.hold.done .fill { stroke: var(--lime); }

.hunters { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.hunter { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font: 700 14px/1.2 'Rubik'; }
.hunter i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hunter span { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.empty { color: var(--muted); font: 600 14px/1.45 'Rubik'; }

/* ---------- papan & token (panel padat di atas kota yang diredupkan) ---------- */
.boards, .token { padding: 110px max(28px, 5vw) 40px; }
.sec-head { max-width: 680px; }
.sec-head h2 { margin: 0; font: 400 clamp(38px, 4.6vw, 62px)/1 'Lilita One'; }
.sec-head p { margin: 14px 0 0; color: #c9cec5; font-size: 17px; }
.board-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.board { padding: 20px; border-radius: 20px; background: rgba(27,29,33,.92); border: 1px solid var(--line); min-width: 0; }
.board h3 { margin: 0 0 12px; font: 800 13px/1 'Rubik'; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.board ol, .board ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.row { display: grid; grid-template-columns: 26px 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.05); font: 700 15px/1.2 'Rubik'; }
.row .rk { font: 400 16px/1 'Lilita One'; color: var(--muted); }
.row:first-child .rk { color: var(--lime); }
.row i { width: 10px; height: 10px; border-radius: 50%; }
.row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v { color: var(--muted); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.board.talk h3 { display: flex; align-items: center; gap: 8px; }
.talk-log { height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.talk-log .cm { font: 600 14px/1.4 'Rubik'; color: #e6e9e2; overflow-wrap: anywhere; }
.talk-log .cm b { color: var(--lime); }
.talk-log .cm.zombie b { color: #9fb39a; }
.talk-log .cm.system { color: #ffcf8a; font-style: italic; }
.talk-cta { display: inline-block; margin-top: 12px; font: 800 14px/1 'Rubik'; color: var(--lime); text-decoration: none; }
.stone { padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.stone .who { display: flex; align-items: center; gap: 8px; font: 800 14px/1.2 'Rubik'; }
.stone .who i { width: 9px; height: 9px; border-radius: 50%; }
.stone .who span { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.stone q { display: block; margin-top: 5px; color: #d6dad2; font: italic 500 14px/1.4 'Rubik'; }
.stone small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.bento { margin-top: 36px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(170px, auto); gap: 16px; }
.tile { position: relative; padding: 24px; border-radius: 22px; background: rgba(27,29,33,.92); border: 1px solid var(--line); }
.tile h3 { margin: 26px 0 0; font: 400 28px/1.05 'Lilita One'; }
.tile p { margin: 10px 0 0; color: #c9cec5; font-size: 15px; }
.tile.big { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile.lime { background: var(--lime); color: #131600; border-color: transparent; }
.tile.lime p { color: #2b3300; }
.tile.lime h3 { font-size: 40px; margin-top: 40px; }
.when { position: absolute; top: 18px; left: 22px; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.08); font: 800 10px/1 'Rubik'; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile.lime .when { background: rgba(0,0,0,.12); color: #2b3300; }

.foot { padding: 120px max(28px, 5vw) calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.foot-cta h2 { margin: 0 0 26px; font: 400 clamp(48px, 7vw, 96px)/1 'Lilita One'; -webkit-text-stroke: 8px #0f1012; paint-order: stroke fill; }
.official { margin: 60px auto 0; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.official span { font: 800 11px/1 'Rubik'; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.official a { padding: 10px 16px; border-radius: 12px; background: rgba(27,29,33,.92); border: 1px solid var(--line); text-decoration: none; font: 700 14px/1 'Rubik'; }
.official a:hover { border-color: var(--lime); }
.fine { max-width: 620px; margin: 26px auto 0; color: var(--muted); font-size: 13px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 20; padding: 10px 18px; border-radius: 12px; background: var(--lime); color: #131600;
  font: 800 14px/1 'Rubik'; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- HP ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; align-content: start; gap: 24px; padding-bottom: 40px; }
  .ca-card { width: 100%; max-width: 440px; }
  .proof { position: static; grid-template-columns: 1fr 1fr; }
  .proof > div:nth-child(3) { border-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-src { position: static; grid-column: 1 / -1; padding: 0 18px 12px; }
  .scroll-cue { display: none; }
  .board-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.big, .tile.wide { grid-row: auto; grid-column: auto; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .nav { gap: 10px; padding: 0 14px; }
  .brand b { display: none; }
  .ca-chip { padding: 0 11px; font-size: 11px; }
  .ico { display: none; }
  .hero { padding: calc(var(--nav-h) + 14px) 16px 30px; }
  .wordmark { -webkit-text-stroke: 7px #0f1012; text-shadow: 0 7px 0 #0f1012; }
  .tag { letter-spacing: .26em; }
  .btn-play { min-width: 0; width: 100%; }
  .btn-play.sm { width: auto; }
  .cta-row { gap: 10px; }
  #shade { background: linear-gradient(0deg, rgba(14,15,17,.88) 0%, rgba(14,15,17,.55) 45%, rgba(14,15,17,.2) 100%); }
  /* babak: kartu di bawah layar, adegan terlihat di atasnya */
  .act { padding: 0 16px; align-items: flex-end; min-height: 120vh; }
  .act-card { top: auto; bottom: 16px; position: sticky; margin-bottom: 16px; padding: 20px; }
  .act h2 { font-size: 34px; }
  .act p { font-size: 15px; }
  .boards, .token { padding: 80px 16px 30px; }
  .foot { padding: 90px 16px calc(30px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pulse, .scroll-cue i::after, #loading i { animation: none; } }
