/* Self-hosted fonts (SIL OFL), latin + latin-ext subsets; other scripts fall back to system fonts */
@font-face{font-family:'Fredoka';font-weight:400 600;font-display:swap;src:url(/fonts/fredoka-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';font-weight:400 600;font-display:swap;src:url(/fonts/fredoka-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Silkscreen';font-weight:700;font-display:swap;src:url(/fonts/silkscreen-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Silkscreen';font-weight:700;font-display:swap;src:url(/fonts/silkscreen-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root{--ink:#2E3A59;--muted:#5A6582;--bg:#FDF8F0;--line:#EADFCD;--coral:#FF7A6B;--coral-d:#D9564A;--sky:#BFE6F5}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Fredoka',system-ui,-apple-system,'Hiragino Sans','Apple SD Gothic Neo','Noto Sans',sans-serif;font-size:18px;line-height:1.5}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--coral-d);outline-offset:3px;border-radius:8px}
.wrap{width:100%;max-width:1280px;margin:0 auto;padding:0 24px}
.mono{font-family:'Silkscreen',ui-monospace,monospace;font-weight:700;font-size:14px;letter-spacing:3px;text-transform:uppercase;margin:0}
.accent{color:var(--coral-d)}
.muted{color:var(--muted)}
h1,h2,h3{font-weight:600;margin:0}
h2{font-size:clamp(36px,5vw,60px);line-height:1.05;letter-spacing:-1px;margin-top:14px}

.nav{display:flex;justify-content:space-between;align-items:center;padding-top:28px;padding-bottom:12px}
.brand{display:flex;align-items:center;gap:12px;font-weight:600;font-size:20px;text-decoration:none}
.brand img{border-radius:10px}
.nav nav{display:flex;gap:36px;align-items:center;font-weight:500;font-size:17px}
.nav nav a{text-decoration:none}
.nav nav a:not(.pill):hover{color:var(--coral-d)}
.pill{padding:11px 22px;border-radius:999px;background:var(--ink);color:#fff!important}
.pill:hover{background:#1F2942}

.hero{text-align:center;margin-top:clamp(48px,9vw,110px)}
.hero h1{font-size:clamp(52px,8.6vw,108px);line-height:.98;letter-spacing:-2px;margin-top:22px}
.hero h1 span{color:var(--coral)}
.lead{font-size:clamp(18px,2vw,22px);color:var(--muted);max-width:640px;margin:28px auto 0}
.cta{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:36px}
.badge{display:inline-block;transition:transform .15s}
.badge:hover{transform:translateY(-2px)}
.badge img{height:54px;width:auto}

.show{margin-top:clamp(56px,8vw,96px)}
.stage{position:relative;border-radius:48px;background:linear-gradient(180deg,#BFE6F5,#E6F5FB);overflow:hidden;height:clamp(460px,58vw,760px)}
.stage::after{content:"";position:absolute;inset:auto 0 0 0;height:42%;background:url(/img/skyline.svg) bottom/cover no-repeat;pointer-events:none}
.dev{position:absolute;background:var(--ink);box-shadow:0 40px 80px rgba(46,58,89,.25);z-index:1}
.dev img{width:100%}
.ipad{left:50%;top:9%;width:min(46%,500px);transform:translateX(-62%);border-radius:36px;padding:12px}
.ipad img{border-radius:26px}
.iphone{left:50%;top:18%;width:min(22%,240px);transform:translateX(70%);border-radius:40px;padding:9px;z-index:2}
.iphone img{border-radius:32px}

.why{margin-top:clamp(80px,10vw,130px)}
.bento{display:grid;grid-template-columns:1.4fr 1fr 1fr;grid-auto-rows:minmax(320px,auto);gap:24px;margin-top:40px}
.b{border-radius:36px;padding:40px;position:relative;overflow:hidden}
.b h3{font-size:clamp(26px,2.6vw,34px);line-height:1.1;margin:14px 0 10px}
.b p:not(.mono){margin:0;opacity:.85}
.b1{grid-row:span 2;background:#FFE4DF;padding-bottom:0}
.b1 .mono{color:#C2463B}
.b1 img{width:min(300px,70%);margin:32px auto -120px;border-radius:30px;box-shadow:0 20px 40px rgba(46,58,89,.2)}
.b2{background:#DDF3EA}.b2 .mono{color:#25795F}
.b3{background:#FFF3CF}.b3 .mono{color:#8A6510}
.b4{background:#EAE4FC}.b4 .mono{color:#5B48B0}
.b5{background:#DCEFF9}.b5 .mono{color:#226F9C}
.mini{position:absolute;right:36px;bottom:36px;display:grid;grid-template-columns:repeat(4,22px);gap:5px}
.mini i{width:22px;height:22px;border-radius:5px;background:var(--coral)}
.mini i:nth-child(3n+2){background:#6CC3F0}.mini i:nth-child(3n){background:#FFD66B}.mini i:nth-child(4){background:#7ED6B8}.mini i:nth-child(5){background:#B8A6F2}

.faq{display:grid;grid-template-columns:1fr 1.4fr;gap:80px;margin-top:clamp(80px,10vw,130px)}
.qs details{border-top:2px solid var(--line)}
.qs details:last-child{border-bottom:2px solid var(--line)}
.qs summary{list-style:none;cursor:pointer;padding:26px 0;display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:22px;font-weight:500}
.qs summary::-webkit-details-marker{display:none}
.qs summary::after{content:"+";font-size:30px;color:var(--coral-d);transition:transform .2s;flex:none}
.qs details[open] summary::after{transform:rotate(45deg)}
.qs details p{margin:-8px 0 26px;color:var(--muted);max-width:620px}

.final{margin-top:clamp(80px,10vw,130px);background:#fff;border-radius:36px;padding:48px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:8px solid var(--line)}
.final h2{font-size:clamp(30px,3.6vw,44px);margin:0}
.final p{margin:8px 0 0}

.foot{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-top:56px;padding-bottom:56px;font-size:16px;color:var(--muted)}
.links{display:flex;gap:28px;flex-wrap:wrap}
.links a{text-decoration:none}.links a:hover,.langs a:hover{color:var(--coral-d)}
.langs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;justify-content:flex-end;max-width:620px}
.langs a{text-decoration:none}
.langs a[aria-current]{color:var(--ink);font-weight:600}

@media (max-width:900px){
  .hide-sm{display:none}
  .bento{grid-template-columns:1fr 1fr;grid-auto-rows:auto}
  .b1{grid-column:span 2;grid-row:auto}
  .b1 img{margin-bottom:-160px;max-height:520px;object-fit:cover;object-position:top}
  .faq{grid-template-columns:1fr;gap:24px}
  .final{flex-direction:column;align-items:flex-start}
  .foot{flex-direction:column}
  .langs{justify-content:flex-start}
}
@media (max-width:600px){
  .wrap{padding:0 16px}
  .nav{padding-top:18px}
  .stage{border-radius:32px;height:520px}
  .ipad{width:62%;transform:translateX(-72%);border-radius:24px;padding:8px}
  .ipad img{border-radius:17px}
  .iphone{width:34%;top:24%;transform:translateX(30%);border-radius:28px;padding:6px}
  .iphone img{border-radius:23px}
  .bento{grid-template-columns:1fr;gap:16px}
  .b1{grid-column:auto}
  .b{padding:28px;border-radius:28px;min-height:220px}
  .qs summary{font-size:19px;padding:22px 0}
  .final{padding:32px 24px;border-radius:28px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.badge,.qs summary::after{transition:none}}
h1,h2,h3{text-wrap:balance}
:lang(ko){word-break:keep-all}
:lang(ja){line-break:strict}
:lang(ja) .mono,:lang(ko) .mono,:lang(th) .mono,:lang(hi) .mono{letter-spacing:1px}
:lang(ja) .hero h1,:lang(ko) .hero h1,:lang(th) .hero h1,:lang(hi) .hero h1{font-size:clamp(40px,7vw,92px);line-height:1.12}
.b5{padding-bottom:96px}
@media (max-width:600px){.hero h1{font-size:clamp(44px,12vw,56px)}}

/* Guides (/how-to-play/, /offline-puzzle-game/, …) */
.g-hero{text-align:center;max-width:900px;margin:clamp(40px,7vw,80px) auto 0}
.g-hero h1{font-size:clamp(38px,5.6vw,72px);line-height:1.04;letter-spacing:-1.5px;margin-top:20px}
.g-meta{margin:20px 0 0;font-size:15px}
.g-layout{display:flex;flex-wrap:wrap;gap:48px;align-items:flex-start;margin-top:clamp(40px,6vw,72px)}
.prose{flex:999 1 560px;min-width:0;max-width:780px}
.prose h2{font-size:clamp(28px,3.2vw,40px);line-height:1.12;letter-spacing:-.5px;margin:64px 0 16px}
.prose h2:first-child{margin-top:0}
.prose>h3{font-size:22px;margin:32px 0 8px}
.prose p{margin:0 0 16px}
.prose ul,.prose ol:not(.steps){margin:0 0 20px;padding-left:24px}
.prose li{margin-bottom:10px}
.prose li::marker{color:var(--coral-d);font-weight:600}
.prose a{color:var(--coral-d)}
.steps{list-style:none;margin:24px 0 8px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.steps li{border-radius:28px;padding:28px;margin:0}
.steps h3{font-size:23px;line-height:1.15;margin:10px 0 6px}
.steps p:not(.mono){margin:0;opacity:.85}
.steps .mono{font-size:13px}
.t1{background:#FFE4DF}.t1 .mono{color:#C2463B}
.t2{background:#DDF3EA}.t2 .mono{color:#25795F}
.t3{background:#FFF3CF}.t3 .mono{color:#8A6510}
.t4{background:#EAE4FC}.t4 .mono{color:#5B48B0}
.t5{background:#DCEFF9}.t5 .mono{color:#226F9C}
.tip{display:flex;gap:22px;padding:22px 0;border-top:2px solid var(--line)}
.tip:not(:has(+.tip)){border-bottom:2px solid var(--line)}
.tip h3{font-size:22px;margin:0 0 4px}
.tip p{margin:0;opacity:.85}
.tip p+p{margin-top:8px}
.n{flex:none;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-family:'Silkscreen',ui-monospace,monospace;font-weight:700;font-size:17px}
.n0{background:var(--coral);color:#fff}.n1{background:#6CC3F0;color:#1D4E6B}.n2{background:#FFD66B;color:#6B4E06}.n3{background:#7ED6B8;color:#1E5C49}
.tbl{overflow-x:auto;margin:8px 0 16px;border-radius:24px;background:#fff;border-bottom:6px solid var(--line)}
.tbl table{border-collapse:collapse;width:100%;min-width:640px;font-size:16px}
.tbl th,.tbl td{text-align:left;vertical-align:top;padding:14px 16px;border-bottom:1px solid var(--line)}
.tbl thead th{font-weight:600;background:#FFF8EC}
.tbl tbody th{font-weight:500}
.tbl tbody tr:last-child>*{border-bottom:0}
.prose .qs{margin-top:8px}
.note{font-size:14px;color:var(--muted);margin-top:40px!important}
.g-aside{flex:1 1 300px;min-width:0;background:#fff;border-radius:32px;padding:32px;border-bottom:8px solid var(--line)}
.g-aside .mono{font-size:13px}
.g-aside h2{font-size:26px;line-height:1.15;letter-spacing:0;margin:12px 0 0}
.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;background:#E6F5FB;border-radius:16px;padding:12px;margin:24px 0}
.board i{aspect-ratio:1;border-radius:4px;background:#fff}
.board .co{background:var(--coral)}.board .cb{background:#6CC3F0}.board .cy{background:#FFD66B}.board .cg{background:#7ED6B8}.board .cp{background:#B8A6F2}
.more{margin-top:clamp(72px,9vw,110px)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-top:20px}
.card{display:block;border-radius:28px;padding:28px;min-height:150px;text-decoration:none;transition:transform .15s}
.card:hover{transform:translateY(-2px)}
.card .mono{font-size:12px}
.card h3{font-size:24px;line-height:1.15;margin-top:10px}
@media (max-width:600px){.steps{grid-template-columns:1fr}.g-aside{padding:24px}.tip{gap:16px}}
@media (prefers-reduced-motion:reduce){.card{transition:none}}

/* Candy buttons (same as the game) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:60px;padding:0 28px;border:0;border-radius:18px;background:var(--coral);color:#fff;font:600 21px/1 'Fredoka',system-ui,sans-serif;text-decoration:none;cursor:pointer;box-shadow:0 6px 0 var(--coral-d);transition:transform .06s}
.btn svg{width:18px;height:18px}
.btn:active{transform:translateY(4px);box-shadow:0 2px 0 var(--coral-d)}
.btn.white{background:#fff;color:var(--ink);box-shadow:0 6px 0 #E3D3BE}
.btn.mint{background:#7ED6B8;color:#1F4A3E;box-shadow:0 6px 0 #57B395}
.btn.sm{height:46px;padding:0 18px;font-size:17px;border-radius:14px;box-shadow:0 5px 0 #E3D3BE}
.btn[hidden]{display:none}
.noscript{padding:40px 24px;text-align:center;background:#fff;border-radius:24px}


/* Play page: game first */
.play-stage{background:var(--sky) url(/img/skyline.svg) repeat-x left bottom/auto 300px;padding:8px 16px 48px}
.play-grid{max-width:1280px;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:32px}
.play-center{flex:0 1 auto;min-width:0;width:min(100%,640px);display:flex;flex-direction:column;align-items:center;gap:18px}
.play-side{flex:1 1 200px;max-width:250px;padding-top:56px;display:flex;flex-direction:column;gap:18px}
.play-left h1{font-size:34px;line-height:1.08;letter-spacing:-.5px}
.chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.chips li{background:#fff;border-radius:999px;padding:8px 14px;box-shadow:0 4px 0 #E3D3BE;font:700 12px 'Silkscreen',ui-monospace,monospace;letter-spacing:1px;text-transform:uppercase}
.play-tools{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.recs{display:flex;background:#fff;border-radius:18px;box-shadow:0 6px 0 #E3D3BE}
.recs>div{flex:1;padding:14px 6px;text-align:center;display:flex;flex-direction:column;gap:4px}
.recs>div+div{border-left:2px solid #F3EADB}
.recs .mono{font-size:10px;letter-spacing:1px;color:var(--muted)}
.recs b{font-size:28px;font-weight:600}
.recs>div:first-child b{color:var(--coral-d)}
.soon{font-size:15px;margin:0}
.lead.left{margin:20px 0 0;max-width:820px}
.bento.three{grid-template-columns:repeat(3,1fr);grid-auto-rows:auto}
@media (max-width:1100px){
  .play-side{max-width:none;flex-basis:100%;padding-top:0;align-items:center;text-align:center}
  .play-left{order:-1}
  .play-left h1{font-size:26px}
  .chips{justify-content:center}
  .play-right{flex-direction:row;flex-wrap:wrap;justify-content:center}
  .play-right .recs{min-width:280px}
}
@media (max-width:600px){
  .play-stage{padding:0 0 32px}
  .play-left{display:none}
  .hero-game{flex-basis:100%}
  .bento.three{grid-template-columns:1fr}
}
/* play page: sky behind the header too */
.play-page{background:linear-gradient(var(--sky),var(--sky)) top/100% 120px no-repeat var(--bg)}
.play-page .pill{display:inline-flex;align-items:center;gap:8px;background:var(--coral);font-weight:600;box-shadow:0 4px 0 var(--coral-d)}
.play-page .pill:hover{background:#FF6A59}
.pill svg{width:14px;height:14px}
.game-host{width:100%}
/* Room for the game before its script sizes it (no layout shift under it) */
.play-center .game-host:not(.bsg){min-height:min(calc(min(100vw - 32px,640px)*1.718),calc(100svh - 110px))}
.noscript p{margin:0 0 12px}
/* Play page: facts table, tips */
.facts{margin-top:32px;background:#fff;border-radius:28px;padding:28px 32px;border-bottom:6px solid var(--line);max-width:900px}
.facts h3{font-size:22px;margin:0 0 12px}
.facts table{width:100%;border-collapse:collapse;font-size:17px}
.facts th,.facts td{text-align:left;vertical-align:top;padding:10px 12px 10px 0;border-top:2px solid var(--line)}
.facts th{width:32%;font-weight:600}
.facts td{color:var(--muted)}
.more-link{margin:24px 0 0;font-size:18px;font-weight:600}
.more-link a{color:var(--coral-d)}
.tips3{list-style:none;counter-reset:t;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tips3 li{counter-increment:t;background:#fff;border-radius:24px;padding:26px;border-bottom:6px solid var(--line)}
.tips3 li::before{content:counter(t);display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#FFD66B;color:#7A5A12;font:700 16px 'Silkscreen',monospace;margin-bottom:12px}
.tips3 h3{font-size:22px;margin:0 0 8px}
.tips3 p{margin:0;color:var(--muted)}
.devices{margin-top:56px}
@media (max-width:900px){.tips3{grid-template-columns:1fr}.facts{padding:20px}.facts th{width:40%}}
/* Play page v2: slim title row, the game as wide as the window allows */
.play-head{max-width:1280px;margin:0 auto 14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 20px;text-align:center}
.play-head h1{font-size:26px;line-height:1.15;letter-spacing:-.3px}
.play-stage .play-center{width:100%;max-width:1400px;margin:0 auto}
.play-stage .soon{text-align:center}
.btn.mint.sm{box-shadow:0 5px 0 #57B395}
@media (max-width:600px){.play-head h1{font-size:22px}.play-head .chips{display:none}}
/* Play page v3: nothing between the header and the game */
.play-stage{padding:10px 16px 40px}
.play-h1{font-size:clamp(34px,4.4vw,52px);line-height:1.05;letter-spacing:-1px}
.chips-line{margin:10px 0 28px;font:700 13px 'Silkscreen',ui-monospace,monospace;letter-spacing:2px;text-transform:uppercase;color:var(--coral-d)}
.play-tools.left{justify-content:flex-start;margin-top:18px}
/* Phones, play page: compact header (we are already on the game), a clear gap above the game */
@media (max-width:600px){
  .play-page .nav{padding-top:12px;padding-bottom:12px}
  .play-page .nav .pill{display:none}
  .play-stage{padding:14px 0 28px}
}
