/* Edcanvil — hybrid identity v3
   home/hub: toy (cream + orange + black borders + hard shadows)
   articles: editorial (serif, numbered sections, captions)
   play pages: arcade (dark, neon accent) */
:root{
  --ink:#231a14; --ink-2:#4a3a2d; --muted:#7a6a5c; --line:#231a14;
  --cream:#fff8f0; --paper:#fff; --yellow:#ffe066; --orange:#ff6b35; --orange-2:#e85826;
  --dark:#14121a; --dark-2:#1d1a26; --lime:#c9ff2e; --violet:#4b3bff;
  --shadow:4px 4px 0 var(--ink); --shadow-sm:3px 3px 0 var(--ink);
  --radius:16px; --max:1160px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);
  font:16.5px/1.6 ui-sans-serif,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 22px}
h1,h2,h3,h4{margin:0;line-height:1.1;font-weight:900;letter-spacing:-.03em}
h1{font-size:clamp(34px,5.2vw,58px)}
h2{font-size:clamp(26px,3.4vw,38px)}
h3{font-size:19px;line-height:1.28}
p{margin:0 0 15px}
.muted{color:var(--muted)}
.small{font-size:14px}
.lede{font-size:clamp(16.5px,1.9vw,19px);color:var(--ink-2);max-width:60ch}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--orange);
  color:#fff;font-weight:800;font-size:15.5px;padding:12px 22px;border-radius:999px;
  border:2px solid var(--ink);box-shadow:var(--shadow);cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease,background .12s}
.btn:hover{transform:translate(-1px,-1px);box-shadow:5px 5px 0 var(--ink);background:var(--orange-2)}
.btn:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink)}
.btn:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.btn.ghost{background:#fff;color:var(--ink)}
.btn.ghost:hover{background:var(--yellow)}
.btn.brand{background:var(--yellow);color:var(--ink)}
.btn.brand:hover{background:#ffd83d}
.btn.lg{padding:15px 28px;font-size:17px}
.btn.sm{padding:9px 16px;font-size:14px;box-shadow:var(--shadow-sm)}

/* header */
header.site{position:sticky;top:0;z-index:80;background:rgba(255,248,240,.92);
  backdrop-filter:saturate(150%) blur(10px);border-bottom:2px solid var(--ink)}
header.site .bar{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:20px;letter-spacing:-.04em}
.brand svg{width:28px;height:28px;flex:none;border:2px solid var(--ink);border-radius:9px}
header nav{display:none;gap:6px;font-size:14.5px;font-weight:700}
header nav a{padding:8px 12px;border-radius:999px}
header nav a:hover{background:var(--yellow)}
@media(min-width:880px){header nav{display:flex}}
.mnav{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;font-size:14px;font-weight:700;scrollbar-width:none}
.mnav::-webkit-scrollbar{display:none}
.mnav a{padding:6px 12px;border:2px solid var(--ink);border-radius:999px;background:#fff;white-space:nowrap}
@media(min-width:880px){.mnav{display:none}}

/* hero */
.hero{position:relative;padding:clamp(34px,5vw,60px) 0 clamp(44px,6vw,72px);overflow:hidden}
.hero:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;
  background:var(--yellow);right:-140px;top:-180px;filter:blur(2px);opacity:.85;z-index:0}
.hero:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;
  background:#ffd9c6;left:-120px;bottom:-160px;z-index:0}
.hero .wrap{position:relative;z-index:2}
.hero-grid{display:grid;gap:36px;align-items:center}
@media(min-width:940px){.hero-grid{grid-template-columns:1.02fr .98fr;gap:46px}}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:900;
  letter-spacing:.1em;text-transform:uppercase;background:#fff;border:2px solid var(--ink);
  padding:7px 14px;border-radius:999px;box-shadow:var(--shadow-sm)}
.hero h1{margin:20px 0 18px;max-width:16ch}
.mark{background:var(--yellow);border:2px solid var(--ink);border-radius:10px;padding:0 10px;
  box-shadow:var(--shadow-sm);display:inline-block;transform:rotate(-1.2deg)}
.hero .lede{max-width:42ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.hero-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px}
.hero-stats div{background:#fff;border:2px solid var(--ink);border-radius:12px;
  padding:8px 14px;box-shadow:var(--shadow-sm)}
.hero-stats b{display:block;font-size:19px;line-height:1.1}
.hero-stats span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* collage */
.collage{position:relative;aspect-ratio:1/.82;margin-top:6px}
@media(min-width:940px){.collage{aspect-ratio:auto;height:430px}}
.collage .shot{position:absolute;border-radius:14px;overflow:hidden;background:#fff;
  border:2px solid var(--ink);box-shadow:6px 6px 0 var(--ink)}
.collage .shot img{width:100%;height:100%;object-fit:cover;object-position:top}
.collage .s1{width:54%;left:4%;top:2%;transform:rotate(-3deg);z-index:3}
.collage .s2{width:46%;right:1%;top:24%;transform:rotate(2.6deg);z-index:2}
.collage .s3{width:38%;left:24%;bottom:-3%;transform:rotate(-1.2deg);z-index:4}
.badge-float{position:absolute;z-index:6;background:#fff;border:2px solid var(--ink);
  border-radius:999px;padding:8px 14px;font-size:12.5px;font-weight:900;
  box-shadow:var(--shadow-sm);display:flex;align-items:center;gap:7px}
.badge-float.a{top:0;right:0;background:var(--yellow)}
.badge-float.b{bottom:4%;left:-2%;background:#fff}
.badge-float .dot{width:8px;height:8px;border-radius:50%;background:var(--orange)}

/* sections */
section{padding:clamp(34px,4.6vw,58px) 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
  margin-bottom:22px;flex-wrap:wrap}
.section-head p{margin:6px 0 0;color:var(--muted);font-size:15px}
.link-more{font-size:14.5px;font-weight:800;color:var(--ink);background:var(--yellow);
  border:2px solid var(--ink);border-radius:999px;padding:8px 14px;box-shadow:var(--shadow-sm)}
.link-more:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--ink)}

.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.chip{border:2px solid var(--ink);background:#fff;color:var(--ink);border-radius:999px;
  padding:8px 16px;font-size:14px;font-weight:800;cursor:pointer;transition:all .12s}
.chip:hover{background:var(--yellow)}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff}

/* game cards */
.games{display:grid;gap:22px;grid-template-columns:1fr}
@media(min-width:600px){.games{grid-template-columns:1fr 1fr}}
@media(min-width:980px){.games{grid-template-columns:repeat(3,1fr)}}
.game-card{position:relative;display:flex;flex-direction:column;background:#fff;
  border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);transition:transform .16s,box-shadow .16s}
.game-card:hover{transform:translate(-3px,-3px) rotate(-.6deg);box-shadow:8px 8px 0 var(--ink)}
.game-card .thumb{position:relative;aspect-ratio:4/3;overflow:hidden;background:#f4eee4;
  border-bottom:2px solid var(--ink)}
.game-card .thumb img{width:100%;height:100%;object-fit:cover;object-position:top;
  transition:transform .5s cubic-bezier(.2,.8,.3,1)}
.game-card:hover .thumb img{transform:scale(1.04)}
.game-card .kick{position:absolute;left:10px;top:10px;z-index:2;background:var(--yellow);
  border:2px solid var(--ink);color:var(--ink);font-size:10.5px;font-weight:900;
  letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:999px}
.game-card .play-dot{position:absolute;right:10px;bottom:10px;z-index:2;width:42px;height:42px;
  border-radius:50%;background:var(--orange);border:2px solid var(--ink);display:grid;
  place-items:center;color:#fff;transform:scale(.86) rotate(-8deg);opacity:0;transition:all .16s}
.game-card:hover .play-dot{transform:scale(1) rotate(0);opacity:1}
.game-card .body{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column}
.game-card h3{font-size:18px;margin-bottom:4px}
.game-card p{margin:0;font-size:14px;color:var(--muted);flex:1}

/* continue strip */
.continue{background:var(--yellow);border:2px solid var(--ink);border-radius:var(--radius);
  padding:12px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin-bottom:22px;box-shadow:var(--shadow-sm)}
.continue img{width:64px;height:48px;object-fit:cover;border-radius:8px;border:2px solid var(--ink);flex:none}
.continue .t{flex:1;min-width:170px}
.continue .t b{display:block;font-size:15.5px}
.continue .t span{font-size:13px;color:var(--ink-2)}

/* feature row */
.feats{display:grid;gap:18px}
@media(min-width:820px){.feats{grid-template-columns:repeat(3,1fr);gap:22px}}
.feat{display:flex;gap:14px;background:#fff;border:2px solid var(--ink);
  border-radius:var(--radius);padding:18px;box-shadow:var(--shadow-sm)}
.feat .ico{width:42px;height:42px;border-radius:12px;background:var(--yellow);
  border:2px solid var(--ink);color:var(--ink);display:grid;place-items:center;flex:none}
.feat h3{font-size:16.5px;margin-bottom:5px}
.feat p{margin:0;font-size:14px;color:var(--muted)}

/* guide cards (toy shell + editorial type) */
.guides{display:grid;gap:20px}
@media(min-width:760px){.guides{grid-template-columns:1fr 1fr}}
.guide-card{display:flex;flex-direction:column;background:#fff;border:2px solid var(--ink);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
  transition:transform .16s,box-shadow .16s}
.guide-card:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.guide-card .gcover{aspect-ratio:16/7;overflow:hidden;border-bottom:2px solid var(--ink);background:#14121a}
.guide-card .cat{padding:16px 18px 0;font-size:11px;font-weight:900;letter-spacing:.12em;
  text-transform:uppercase;color:var(--orange-2)}
.guide-card h3{padding:6px 18px 0;font-family:ui-serif,Georgia,serif;font-weight:700;
  font-size:20px;letter-spacing:-.01em;line-height:1.24}
.guide-card p{padding:8px 18px 0;margin:0;font-size:14px;color:var(--muted);flex:1}
.guide-card .meta{padding:14px 18px 18px;font-size:12.5px;color:var(--muted);
  display:flex;gap:12px;font-weight:600}

/* ---------- article (editorial) ---------- */
.article-head{padding:30px 0 24px;border-bottom:2px solid var(--ink);margin-bottom:28px}
.article-head .cat{display:inline-block;font-size:11.5px;font-weight:900;letter-spacing:.14em;
  text-transform:uppercase;background:var(--yellow);border:2px solid var(--ink);
  border-radius:999px;padding:5px 11px;margin-bottom:14px;box-shadow:2px 2px 0 var(--ink)}
.article-head h1{font-family:ui-serif,Georgia,serif;font-weight:700;letter-spacing:-.02em;
  font-size:clamp(30px,4.2vw,46px);max-width:24ch;line-height:1.08}
.article-head .meta{margin-top:16px;font-size:13px;color:var(--muted);display:flex;gap:16px;
  flex-wrap:wrap;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.disclosure{background:#fff;border:2px dashed #d9cbb8;color:#6b5844;font-size:13.5px;
  padding:12px 16px;border-radius:12px;margin:0 0 26px;max-width:70ch}
.post{font-family:ui-serif,Georgia,"Times New Roman",serif;font-size:18px;line-height:1.74;
  color:#1f1a16;max-width:70ch;padding-bottom:50px;counter-reset:h2c}
.post h2{counter-increment:h2c;font-family:ui-serif,Georgia,serif;font-size:clamp(23px,2.7vw,29px);
  margin:40px 0 12px;display:flex;gap:12px;align-items:baseline;letter-spacing:-.015em}
.post h2:before{content:counter(h2c,decimal-leading-zero);font-family:ui-sans-serif;font-size:13px;
  font-weight:900;color:var(--orange-2);letter-spacing:.06em;flex:none;border-bottom:2px solid var(--orange);
  padding-bottom:2px}
.post h3{margin:26px 0 10px;font-size:20px;font-family:ui-serif,Georgia,serif}
.post ul,.post ol{padding-left:22px;margin:0 0 18px}
.post li{margin-bottom:9px}
.post blockquote{margin:24px 0;padding:16px 20px;border-left:4px solid var(--orange);
  background:#fff;border-radius:0 12px 12px 0;color:var(--ink-2);font-size:17.5px;
  box-shadow:var(--shadow-sm)}
.post a{color:var(--orange-2);text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:2px}
.post strong{font-weight:700;color:#100c09}
.endcta{background:var(--ink);color:#fff;border:2px solid var(--ink);border-radius:var(--radius);
  padding:26px;display:flex;gap:18px;align-items:center;justify-content:space-between;
  flex-wrap:wrap;margin:36px 0 0;box-shadow:var(--shadow)}
.endcta h3{color:#fff;font-size:20px;margin-bottom:4px}
.endcta p{color:#cbbfae;margin:0;font-size:14px}

/* ---------- play page (arcade) ---------- */
body.play-page{background:var(--dark);color:#f4f0ea}
body.play-page header.site{background:rgba(20,18,26,.92);border-bottom:2px solid #2b2737}
body.play-page .brand,body.play-page header nav a{color:#fff}
body.play-page header nav a:hover{background:#2b2737}
body.play-page .btn.ghost{background:transparent;color:#fff;border-color:#4a4459}
body.play-page .btn.ghost:hover{background:#241f31;color:#fff}
body.play-page .mnav a{background:#1d1a26;color:#fff;border-color:#3a3548}
.crumbs{font-size:13px;color:#8b85a0;padding:18px 0 0}
.crumbs a:hover{color:#fff}
.play-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
  flex-wrap:wrap;padding:10px 0 20px}
.play-head h1{font-size:clamp(30px,4.2vw,44px);color:#fff}
.play-head .sub{color:#8b85a0;font-size:14.5px;margin-top:6px}
.play-grid{display:grid;gap:24px}
@media(min-width:960px){.play-grid{grid-template-columns:minmax(0,1fr) 310px;align-items:start}}
.game-frame{background:#1b1826;border:2px solid #38324a;border-radius:18px;overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.55)}
.game-frame .chrome{display:flex;align-items:center;gap:8px;padding:10px 14px;
  background:#242032;border-bottom:1px solid #38324a}
.game-frame .chrome i{width:10px;height:10px;border-radius:50%;background:#4a4459;display:block}
.game-frame .chrome i:nth-child(1){background:#ff5f57}
.game-frame .chrome i:nth-child(2){background:#febc2e}
.game-frame .chrome i:nth-child(3){background:#28c840}
.game-frame .chrome span{margin-left:8px;font-size:12px;color:#8b85a0;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.game-frame .inner{padding:16px}
.game-frame .scoreline b,.game-frame .scoreline span{color:#fff}
.game-frame .scoreline span{color:#8b85a0}
body.play-page canvas{border-radius:10px}
body.play-page input[type=email],body.play-page input[type=text]{
  background:#1b1826;border:1px solid #38324a;color:#f4f0ea}
body.play-page .grid-btns button{background:#241f31;border:1px solid #3a3548;color:#fff}
body.play-page .grid-btns button:hover{background:#2f2942}
body.play-page .gp button{background:#241f31;border:1px solid #3a3548;color:#fff}
body.play-page .tip,body.play-page .aside-card{background:#1b1826;border:2px solid #38324a;
  color:#ddd6e6;box-shadow:none}
body.play-page .aside-card h3,body.play-page .tip b{color:#fff}
body.play-page .aside-card li a{color:#cfc8dd}
body.play-page .aside-card li a:hover{color:var(--lime)}
body.play-page .steps li{color:#cfc8dd}
body.play-page .steps li:before{background:var(--lime);color:#14121a}
body.play-page h2{color:#fff}
body.play-page p{color:#cfc8dd}
body.play-page .muted{color:#8b85a0}
body.play-page .play-body h2{font-size:clamp(22px,2.6vw,28px)}

/* ---------- footer ---------- */
footer.site{background:var(--ink);color:#cbbfae;padding:48px 0 30px;font-size:14px;margin-top:20px}
footer.site .cols{display:grid;gap:28px;grid-template-columns:1fr}
@media(min-width:760px){footer.site .cols{grid-template-columns:1.6fr 1fr 1fr 1fr}}
footer.site h4{color:#fff;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px}
footer.site a{display:block;margin-bottom:8px;color:#cbbfae}
footer.site a:hover{color:var(--yellow)}
footer.site .brand{color:#fff;margin-bottom:10px}
footer.site .fine{margin-top:26px;padding-top:20px;border-top:2px solid #3a2f26;
  font-size:12.5px;color:#8f8175;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}

@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;transform:none!important}
  html{scroll-behavior:auto}}


/* ---- mobile hardening (v3.1) ---- */
.play-grid > *{min-width:0}
.game-frame{max-width:100%}
.game-frame .inner{min-width:0}
canvas{max-width:100%;height:auto}
.grid-btns{grid-template-columns:repeat(3,minmax(56px,1fr));max-width:270px;margin-left:auto;margin-right:auto}
.gp{max-width:100%}
button,a,input{-webkit-tap-highlight-color:transparent}
@media(max-width:640px){
  .chip{min-height:44px;display:inline-flex;align-items:center}
  .btn.sm{min-height:44px}
  .mnav a{padding:10px 14px}
  .grid-btns button{height:54px}
  .gp{gap:8px}
  .gp button{min-height:0}
  .hero-stats{gap:8px}
  .hero-stats div{padding:7px 12px}
  .daily{padding:18px;border-radius:16px}
  .scoreline{gap:16px;flex-wrap:wrap}
  .play-head .sub{font-size:13.5px}
  .aside-card{padding:16px}
}

