
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Silkscreen:wght@400;700&family=Pixelify+Sans:wght@400..700&display=swap');
:root {
  --cursor-berry: url('public/cursor-strawberry.png') 1 1, auto;
  --cursor-berry-lg: url('public/cursor-strawberry-lg.png') 2 2, pointer;
  
  --c-light:        #F3E8D6;   
  --c-dark:         #17110b;   
  --on-chrome:      #EFE3D0;   
  --on-chrome-soft: #A4937D;
  
  --font-pixel:   'Press Start 2P', monospace;
  --px-star: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 12" shape-rendering="crispEdges"><g fill="black"><rect x="6" y="0" width="1" height="1"/><rect x="5" y="1" width="3" height="2"/><rect x="0" y="3" width="13" height="2"/><rect x="1" y="5" width="11" height="1"/><rect x="2" y="6" width="9" height="2"/><rect x="1" y="8" width="4" height="1"/><rect x="8" y="8" width="4" height="1"/><rect x="0" y="9" width="4" height="1"/><rect x="9" y="9" width="4" height="1"/><rect x="0" y="10" width="3" height="2"/><rect x="10" y="10" width="3" height="2"/></g></svg>');
  --px-star-mask: var(--px-star) center / contain no-repeat;
  --star-a: url('public/star-matcha.png'); --star-b: url('public/star-caramel.png'); --star-c: url('public/star-rose.png'); --star-d: url('public/star-blue.png');
  --px-star-ring: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink));
  --font-display: 'VT323', monospace;
  --font-body:    'Pixelify Sans', monospace;
  
  --notch: polygon(
    0px 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0px,
    calc(100% - 8px) 0px, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0px calc(100% - 8px)
  );
  --notch-s: polygon(
    0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)
  );
  
  --bg:         #221913;
  --bg-2:       #2c2119;
  --dot:        rgba(232,182,120,0.07);
  --vignette:   rgba(0,0,0,0.42);
  --panel:      #352a20;
  --panel-2:    #423427;
  --panel-deep: #181109;
  --field:      #1d150e;
  --ink:        #0e0a06;
  --chrome:     #2a1f17;
  --text:       #F1E6D3;
  --text-soft:  #C7B299;
  --shadow:     rgba(0,0,0,0.5);
  --matcha:       #93B36C;
  --matcha-deep:  #6E9049;
  --matcha-soft:  #46522F;   
  --matcha-foam:  #313b22;   
  --caramel:      #D89B53;
  --caramel-deep: #B27B36;
  --rose:         #DCA3B7;
  --rose-soft:    #4b3640;
  --chip-bg:      var(--panel-2);
  
  --cafe-ink:#0c0805; --cafe-wood:#241710; --cafe-wood2:#2f2014; --cafe-counter-top:#3c2917;
  --cafe-shelf:#33220f; --cafe-glow:rgba(222,160,86,0.30); --cafe-shade:#C98A45;
  --cafe-window:#eccd8a; --cafe-window-bar:#2a1d12;
  --cafe-jar-a:#6E9049; --cafe-jar-b:#C98A45; --cafe-jar-c:#DCA3B7;
  --cafe-leaf:#6E9049; --cafe-pot:#B27B36; --cafe-opacity:0.9;
}
:root[data-theme="light"] {
  --bg:         #F4E8D5;
  --bg-2:       #EBD9BE;
  --dot:        rgba(160,106,46,0.10);
  --vignette:   rgba(120,80,40,0.07);
  --panel:      #FCF6EC;
  --panel-2:    #F1E2CB;
  --panel-deep: #4A3225;
  --field:      #FBF4E9;
  --ink:        #2B1D16;
  --chrome:     #2B1D16;
  --text:       #2B1D16;
  --text-soft:  #6B4A38;
  --shadow:     rgba(43,29,22,0.30);
  --matcha:       #7C9A55;
  --matcha-deep:  #566E3B;
  --matcha-soft:  #C8D9A8;
  --matcha-foam:  #E3ECCF;
  --caramel:      #C98A45;
  --caramel-deep: #A06A2E;
  --rose:         #DDA0B4;
  --rose-soft:    #F3D8DF;
  --chip-bg:      #FFFFFF;
  
  --cafe-ink:#3a2a1e; --cafe-wood:#d3bd97; --cafe-wood2:#c7ad81; --cafe-counter-top:#e7d6b6;
  --cafe-shelf:#c3a87f; --cafe-glow:rgba(201,138,69,0.20); --cafe-shade:#C98A45;
  --cafe-window:#f4dfac; --cafe-window-bar:#b89a6a;
  --cafe-jar-a:#7C9A55; --cafe-jar-b:#C98A45; --cafe-jar-c:#DDA0B4;
  --cafe-leaf:#7C9A55; --cafe-pot:#A06A2E; --cafe-opacity:0.82;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body { cursor: var(--cursor-berry); }
a, button, [role="button"], .chip, .jr-card, .post-item, summary, label, input[type="submit"] { cursor: var(--cursor-berry-lg); }
body::before { 
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 28%, transparent 42%, var(--vignette) 100%);
}
#app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { display: block; }
.pixelated { image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--matcha); color: var(--c-dark); }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 32px; }
.section { padding: 60px 0; }
.pxl {
  position: relative;
  isolation: isolate;
  background: var(--bc, var(--ink));
  clip-path: var(--notch);
  filter: drop-shadow(5px 5px 0 var(--shadow));
}
.pxl::before {
  content: ""; position: absolute; inset: 3px;
  background: var(--bg-c, var(--panel));
  clip-path: var(--notch);
  z-index: -1;
}
.pxl-lg { filter: drop-shadow(8px 8px 0 var(--shadow)); }
.pxl-flat { filter: none; }
.eyebrow {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--matcha-deep); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 21px; height: 19px; flex: none;
  background: var(--star-a) center / contain no-repeat; image-rendering: pixelated;
}
.display { font-family: var(--font-display); line-height: 0.95; color: var(--text); }
.hud { font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.5px; line-height: 1.6; text-transform: uppercase; }
.btn {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap;
  color: var(--c-light);
  position: relative; isolation: isolate;
  background: var(--ink); clip-path: var(--notch-s);
  filter: drop-shadow(4px 4px 0 var(--shadow));
  padding: 14px 18px 12px;
  display: inline-flex; align-items: center; gap: 9px; text-align: center;
  transition: transform .08s steps(2), filter .08s steps(2);
}
.btn::before { content:""; position:absolute; inset:3px; background: var(--caramel); clip-path: var(--notch-s); z-index:-1; transition: background .15s; }
.btn:hover { transform: translate(2px,2px); filter: drop-shadow(2px 2px 0 var(--shadow)); }
.btn:hover::before { background: var(--caramel-deep); }
.btn:active { transform: translate(4px,4px); filter: drop-shadow(0 0 0 var(--shadow)); }
.btn-green::before { background: var(--matcha); }
.btn-green:hover::before { background: var(--matcha-deep); }
.btn-ghost { color: var(--text); }
.btn-ghost::before { background: var(--panel-2); }
.btn-ghost:hover::before { background: var(--bg-2); }
.chip {
  font-family: var(--font-pixel); font-size: 8.5px; letter-spacing: 0.3px; text-transform: uppercase;
  color: var(--text-soft);
  position: relative; isolation: isolate;
  background: var(--ink); clip-path: var(--notch-s);
  padding: 7px 9px 6px; display: inline-block; white-space: nowrap;
}
.chip::before { content:""; position:absolute; inset:2px; background: var(--chip-bg); clip-path: var(--notch-s); z-index:-1; }
.tag-fill {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--c-light); background: var(--matcha-deep);
  clip-path: var(--notch-s); padding: 8px 10px 7px;
  filter: drop-shadow(3px 3px 0 var(--shadow)); display: inline-block;
}
header.nav { position: sticky; top: 0; z-index: 50; background: var(--chrome); border-bottom: 4px solid #000; transition: background .3s ease, border-color .3s ease; }
header.nav.nav-hidden { background: transparent; border-bottom-color: transparent; }
header.nav.nav-hidden .brand, header.nav.nav-hidden .nav-open, header.nav.nav-hidden .theme-btn { display: none; }
header.nav.nav-hidden .nav-inner { justify-content: flex-end; height: 48px; max-width: none; padding: 0 10px 0 0; }
header.nav.nav-hidden .nav-right { gap: 0; }
header.nav.nav-hidden .nav-links { background: rgba(14,10,6,0.82); clip-path: var(--notch-s); padding: 6px 8px; backdrop-filter: blur(4px); }
.nav-inner { max-width: 1260px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-chrome); }
.brand .cup { width: 26px; height: 26px; }
.brand-name { font-family: var(--font-pixel); font-size: 13px; letter-spacing: 0.5px; }
.brand-sub { font-family: var(--font-pixel); font-size: 7px; color: var(--matcha); letter-spacing: 1px; display: block; margin-top: 3px; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--on-chrome); padding: 9px 11px; border: 2px solid transparent; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--matcha); }
.nav-links a.active { color: var(--c-dark); background: var(--matcha); border-color: #000; }
header.nav.nav-hidden .nav-links a { color: var(--c-light); }
header.nav.nav-hidden .nav-links a.active { color: var(--matcha); background: none; border-color: transparent; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nav-open {
  font-family: var(--font-pixel); font-size: 8px; color: var(--c-dark); background: #A7D8E8;
  padding: 12px 15px; letter-spacing: 1.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  clip-path: var(--notch-s); position: relative; isolation: isolate;
}
.nav-open::before { content: ""; position: absolute; inset: 3px; background: #EBA457; clip-path: var(--notch-s); z-index: -1; }
@keyframes blink { 50% { opacity: 0.25; } }
.theme-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; background: var(--bg-2); border: 2px solid #000; color: var(--on-chrome);
  clip-path: var(--notch-s); transition: transform .1s steps(2), background .15s;
}
.theme-btn:hover { transform: translateY(-2px); background: var(--matcha); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 2px solid var(--on-chrome); color: var(--on-chrome); font-size: 18px; }
.view { display: none; animation: viewIn .35s ease both; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }
.dialogue {
  display: flex; gap: 24px; align-items: center; padding: 24px 28px;
  position: relative; isolation: isolate;
  background: var(--ink); clip-path: var(--notch); filter: drop-shadow(6px 6px 0 var(--shadow));
}
.dialogue::before { content:""; position:absolute; inset:3px; background: var(--matcha-soft); clip-path: var(--notch); z-index:-1; }
.dialogue .avatar { width: 118px; flex: none; filter: drop-shadow(3px 3px 0 var(--shadow)); }
.dialogue .speaker { font-family: var(--font-pixel); font-size: 9px; color: var(--caramel); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 9px; }
.dialogue .line { font-family: var(--font-display); font-size: 26px; line-height: 1.12; color: var(--text); }
.dialogue .cursor { display:inline-block; width: 11px; height: 20px; background: var(--text); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(2) infinite; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; margin-top: 36px; align-items: stretch; }
.char-card { padding: 32px; --bg-c: var(--panel); }
.char-card .eyebrow { margin-bottom: 16px; }
.char-name { font-family: var(--font-display); font-size: 62px; line-height: 0.9; color: var(--text); }
.char-tag { font-family: var(--font-pixel); font-size: 9px; color: var(--text-soft); letter-spacing: 0.5px; margin-top: 12px; line-height: 1.7; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 18px; }
.role {
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--c-light); background: var(--matcha-deep); clip-path: var(--notch-s);
  padding: 8px 10px 7px; filter: drop-shadow(3px 3px 0 var(--shadow));
}
.role.alt { background: var(--caramel); }
.role.alt2 { background: var(--rose); color: var(--c-dark); }
.bio { font-size: 15.5px; line-height: 1.65; color: var(--text-soft); margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.exp-card { padding: 30px; --bg-c: var(--panel); display: flex; flex-direction: column; }
.exp-card .eyebrow { margin-bottom: 14px; }
.exp-title { font-family: var(--font-display); font-size: 38px; color: var(--text); line-height: 1; margin-bottom: 22px; }
.exp-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.exp-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2); clip-path: var(--notch-s); padding: 14px 16px;
}
.exp-marker { width: 30px; height: 27px; flex: none; background: var(--star-a) center / contain no-repeat; image-rendering: pixelated; }
.exp-item.now .exp-marker { background-image: var(--star-b); }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px var(--caramel-deep); } }
.exp-body { flex: 1; min-width: 0; }
.exp-role { font-family: var(--font-body); font-weight: 800; font-size: 16px; color: var(--text); line-height: 1.1; }
.exp-co { font-size: 14px; color: var(--text-soft); margin-top: 3px; }
.exp-badge {
  font-family: var(--font-pixel); font-size: 7px; letter-spacing: 0.5px; color: var(--text-soft);
  border: 2px solid var(--text-soft); padding: 5px 6px 4px; white-space: nowrap;
}
.exp-badge.now { color: var(--c-dark); background: var(--caramel); border-color: var(--ink); }
.stack { margin-top: 64px; padding: 40px; --bg-c: var(--panel); }
.stack-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.stack-title { font-family: var(--font-display); font-size: 58px; color: var(--text); line-height: 1; }
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 34px; }
.stack-cat { padding: 0; }
.stack-cat h4 { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 11px; }
.stack-cat h4::before { content:""; width: 28px; height: 25px; background: var(--star-a) center / contain no-repeat; image-rendering: pixelated; }
.stack-cat.c2 h4::before { background-image: var(--star-b); }
.stack-cat.c3 h4::before { background-image: var(--star-c); }
.stack-cat.c4 h4::before { background-image: var(--star-d); }
.stack-cat.c5 h4::before { background-image: var(--star-b); }
.tags { display: flex; flex-wrap: wrap; gap: 11px; }
.tags .chip { font-size: 9.5px; padding: 9px 11px 8px; }
.page-head { margin-bottom: 34px; }
.page-head .display { font-size: 58px; }
.page-head p { font-size: 16px; line-height: 1.6; color: var(--text-soft); max-width: 560px; margin-top: 10px; }
.menu-board {
  padding: 16px; --bg-c: var(--panel-deep);
  
  --text: #F1E6D3; --text-soft: #C7B299;
  --ink: #0e0a06; --chip-bg: #423427;
}
.menu-board-inner { border: 2px dashed rgba(243,232,214,0.32); padding: 30px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1200px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } }
.drink {
  padding: 24px; --bg-c: var(--panel); display: flex; gap: 20px; align-items: flex-start;
  transition: transform .1s steps(2), filter .1s steps(2);
}
.drink:hover { transform: translate(2px,2px); filter: drop-shadow(3px 3px 0 var(--shadow)); }
.drink-img { width: clamp(150px, 42%, calc(225px * var(--drink-scale, 1))); aspect-ratio: 1; height: auto; flex: none; display: flex; align-items: center; justify-content: center; --bg-c: var(--matcha-foam); }
.drink-img img { width: 90%; height: auto; object-fit: contain; transition: transform .25s ease; }
.drink:hover .drink-img img { transform: translateY(-5px) scale(1.05); }
.drink-body { flex: 1; min-width: 0; }
.drink-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.drink-name { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--text); }
.drink-price { font-family: var(--font-pixel); font-size: 8.5px; color: var(--matcha); white-space: nowrap; }
.drink-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-soft); margin: 10px 0 14px; }
.drink-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.drink-tags .chip { font-size: 6.5px; text-transform: none; padding: 9px 12px 8px; }
.drink-link {
  font-family: var(--font-pixel); font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text); display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 2px solid var(--caramel); padding-bottom: 4px; transition: color .15s, border-color .15s;
}
.drink-link:hover { color: var(--caramel); border-color: var(--text); }
.drink-link .arrow { transition: transform .15s steps(2); }
.drink-link:hover .arrow { transform: translateX(3px); }
.blog-head { text-align: center; margin-bottom: 30px; }
.blog-head .eyebrow { margin-bottom: 12px; }
.blog-title { font-family: var(--font-display); font-size: 52px; color: var(--text); line-height: 0.95; }
.ds {
  max-width: 1180px; margin: 0 auto;
  background: linear-gradient(165deg, #8d7f68, #6b5d49);
  border: 4px solid #1a130d; border-radius: 22px;
  box-shadow: 10px 10px 0 0 var(--shadow), inset 0 3px 0 rgba(255,255,255,.45);
  padding: 20px 26px 22px;
}
:root[data-theme="light"] .ds { background: linear-gradient(165deg, #e6dcc8, #cdb89c); }
:root[data-theme="light"] .ds-brand { color: #4a3829; }
:root[data-theme="light"] .ds-sub { color: #8a7355; }
:root[data-theme="light"] .power-led { color: #6a5743; }
:root[data-theme="light"] .wing-label { color: #4a3829; }
.ds-top { display: flex; align-items: center; gap: 14px; padding: 0 6px 14px; }
.ds-brand { font-family: var(--font-pixel); font-size: 12px; color: #f0e6d2; letter-spacing: 0.5px; }
.ds-brand b { color: #b9ce95; }
.ds-sub { font-family: var(--font-pixel); font-size: 7px; color: #cbbda3; letter-spacing: 1.5px; }
.ds-top .power-led { margin-left: auto; }
.power-led { display: flex; align-items: center; gap: 6px; font-family: var(--font-pixel); font-size: 6px; color: #d8ccb4; letter-spacing: 1px; }
.power-led::before { display: none; }
.ds-deck { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.ds-screen-frame { background: #1a2110; border-radius: 12px; padding: 14px; box-shadow: inset 0 3px 10px rgba(0,0,0,.6); position: relative; }
.ds-screen {
  background: #c4d6a4; height: 440px; overflow-y: auto; position: relative;
  border: 2px solid #1d2410; color: #243010; font-family: var(--font-display);
  scrollbar-width: thin;
}
.ds-screen::after { content:""; position:absolute; inset:0; pointer-events:none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 4px); }
.ds-screen::-webkit-scrollbar { width: 6px; }
.ds-screen::-webkit-scrollbar-thumb { background: #6f8049; }
.ds-touch { padding-bottom: 22px; }
.ds-touch .touch-tag { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font-family: var(--font-pixel); font-size: 6px; color: #7d8a5a; letter-spacing: 2px; }
.ds-hinge { display: flex; flex-direction: column; gap: 9px; align-items: center; }
.ds-hinge i { width: 11px; height: 56px; background: linear-gradient(90deg,#9a875f,#6f5d3c); border: 2px solid #1a130d; border-radius: 5px; }
.ds-wing { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wing-label { font-family: var(--font-pixel); font-size: 6px; color: #e4d9c2; letter-spacing: 1px; }
.jr-howto { margin: 12px; padding: 16px 18px; background: #243010; color: #c4d6a4; position: relative; }
.jr-howto-title { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.5px; margin-bottom: 12px; }
.ds-keys { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.krow { display: flex; align-items: center; gap: 9px; font-size: 16px; line-height: 1.1; }
.kk { font-family: var(--font-pixel); font-size: 8px; color: #243010; background: #c4d6a4; min-width: 34px; height: 24px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.jr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 12px 14px; }
.jr-card { background: #b9ce95; border: 2px solid #3f5320; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 9px; transition: transform .06s; }
.jr-card .thumb { width: 100%; height: 78px; background: #c4d6a4; border: 2px solid #243010; display: flex; align-items: center; justify-content: center; }
.jr-card .thumb img { height: 70%; }
.jr-card .jc-title { font-size: 20px; line-height: 1.05; }
.jr-card .jc-meta { font-family: var(--font-pixel); font-size: 6.5px; letter-spacing: 0.5px; color: #3f5320; margin-top: auto; }
.jr-card .jc-go { font-family: var(--font-pixel); font-size: 7px; opacity: 0; }
.jr-card.sel { background: #243010; color: #c4d6a4; border-color: #243010; }
.jr-card.sel .jc-meta { color: #b3c78f; }
.jr-card.sel .thumb { background: #c4d6a4; }
.jr-card.sel .jc-go { opacity: 1; animation: blink 1s steps(2) infinite; }
.jr-card.reading:not(.sel) { box-shadow: inset 4px 0 0 0 #5b7a35; }
.scr-head { position: sticky; top: 0; z-index: 3; background: #243010; color: #c4d6a4; font-family: var(--font-pixel); font-size: 8px; letter-spacing: 0.5px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; }
.scr-batt { display: flex; gap: 2px; align-items: center; }
.scr-batt i { width: 4px; height: 8px; background: #c4d6a4; display: inline-block; }
.scr-list { padding: 8px; }
.scr-list-title { font-size: 26px; line-height: 1; padding: 8px 6px 12px; border-bottom: 2px dashed #6f8049; margin-bottom: 8px; }
.post-item { display: flex; gap: 10px; align-items: center; padding: 11px 8px; cursor: pointer; border: 2px solid transparent; margin-bottom: 5px; }
.post-item .thumb { width: 34px; height: 42px; flex: none; background: #b3c78f; border: 2px solid #243010; display: flex; align-items: center; justify-content: center; }
.post-item .thumb img { width: 80%; }
.post-item .pi-body { min-width: 0; }
.post-item .pi-title { font-size: 19px; line-height: 1.08; }
.post-item .pi-meta { font-family: var(--font-pixel); font-size: 6px; letter-spacing: 0.5px; margin-top: 5px; color: #3f5320; }
.post-item.sel { background: #243010; color: #c4d6a4; border-color: #243010; }
.post-item.reading:not(.sel) { box-shadow: inset 4px 0 0 0 #5b7a35; }
.post-item.sel .pi-meta { color: #b3c78f; }
.post-item.sel .thumb { background: #c4d6a4; }
.post-item .pi-go { margin-left: auto; font-family: var(--font-pixel); font-size: 8px; opacity: 0; }
.post-item.sel .pi-go { opacity: 1; animation: blink 1s steps(2) infinite; }
.scr-post { padding: 18px 22px 24px; max-width: 760px; margin: 0 auto; }
.scr-post h1 { font-size: 28px; line-height: 1.05; margin-bottom: 6px; }
.scr-post .meta { font-family: var(--font-pixel); font-size: 6.5px; letter-spacing: 0.5px; color: #3f5320; margin-bottom: 12px; }
.scr-post p { font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.scr-post h2 { font-size: 20px; margin: 14px 0 6px; border-bottom: 2px dashed #6f8049; padding-bottom: 3px; }
.scr-post code { background: #b3c78f; padding: 1px 4px; font-size: 15px; }
.scr-post ul { padding-left: 20px; margin-bottom: 12px; }
.scr-post li { font-size: 18px; line-height: 1.3; margin-bottom: 4px; }
.dpad { width: 96px; height: 96px; position: relative; }
.dpad button { position: absolute; background: #1f160f; border: 2px solid #000; color: #c4b29a; display: flex; align-items: center; justify-content: center; font-size: 12px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
.dpad button:active { background: #000; transform: scale(0.96); }
.dpad .up { top: 0; left: 33px; width: 30px; height: 33px; border-radius: 4px 4px 0 0; }
.dpad .down { bottom: 0; left: 33px; width: 30px; height: 33px; border-radius: 0 0 4px 4px; }
.dpad .left { left: 0; top: 33px; width: 33px; height: 30px; border-radius: 4px 0 0 4px; }
.dpad .right { right: 0; top: 33px; width: 33px; height: 30px; border-radius: 0 4px 4px 0; }
.dpad .mid { left: 33px; top: 33px; width: 30px; height: 30px; }
.face-btns { width: 108px; height: 108px; position: relative; }
.fb { position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #1a130d; font-family: var(--font-pixel); font-size: 12px; transition: transform .06s, box-shadow .06s; }
.fb-x { top: 0; left: 33px; background:#9fb6d6; color:#1a2410; box-shadow:0 4px 0 0 #6f86a6, inset 0 2px 0 rgba(255,255,255,.3); }
.fb-y { top: 33px; left: 0; background:#e0b87a; color:#3a2a10; box-shadow:0 4px 0 0 #b08a4a, inset 0 2px 0 rgba(255,255,255,.3); }
.fb-a { top: 33px; right: 0; background:#93B36C; color:#1a2410; box-shadow:0 4px 0 0 #5b7a35, inset 0 2px 0 rgba(255,255,255,.3); }
.fb-b { bottom: 0; left: 33px; background:#DCA3B7; color:#3a2530; box-shadow:0 4px 0 0 #a9788b, inset 0 2px 0 rgba(255,255,255,.3); }
.fb:active { transform: translateY(3px); box-shadow: 0 1px 0 0 #1a130d; }
.ds-speaker { margin-top: 16px; display: flex; gap: 5px; justify-content: center; }
.ds-speaker i { width: 6px; height: 6px; background: rgba(26,19,13,.35); border-radius: 50%; }
@media (max-width: 820px) {
  .ds-deck { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .ds-screen-frame { width: 100%; max-width: 460px; }
  .ds-screen { height: 360px; }
  .jr-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-wing { flex-direction: row; gap: 30px; }
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 32px; align-items: start; }
.contact-side .display { font-size: 54px; }
.contact-side p { font-size: 16px; line-height: 1.65; color: var(--text-soft); margin: 14px 0; }
.hours-sign { padding: 26px; --bg-c: var(--panel); margin-top: 24px; }
.hours-sign .hs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hours-sign .hs-title { font-family: var(--font-display); font-size: 40px; color: var(--text); line-height: 1; }
.hs-open { font-family: var(--font-pixel); font-size: 8px; color: var(--c-dark); background: var(--matcha); padding: 7px 9px 6px; letter-spacing: 1px; clip-path: var(--notch-s); display: inline-flex; align-items: center; gap: 7px; }
.hs-open::before { display: none; }
.hours-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 2px dotted var(--text-soft); }
.hours-row:last-of-type { border-bottom: none; }
.hours-row .day { font-family: var(--font-pixel); font-size: 9px; color: var(--text); letter-spacing: 0.5px; }
.hours-row .time { font-family: var(--font-display); font-size: 21px; color: var(--matcha-deep); white-space: nowrap; }
.hours-row .time.closed { color: var(--rose); }
.hours-note { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--text); }
.hours-note b { color: var(--caramel); }
.hours-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hours-contacts a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-pixel); font-size: 8px; letter-spacing: 0.5px; color: var(--text); background: var(--bg-2); padding: 9px 11px 8px; clip-path: var(--notch-s); transition: transform .1s steps(2); }
.hours-contacts a:hover { transform: translateY(-2px); color: var(--matcha-deep); }
.form-card { padding: 30px; --bg-c: var(--panel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
label.field { display: block; }
label.field .lab { font-family: var(--font-pixel); font-size: 8px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-soft); margin-bottom: 8px; display: block; }
.input, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--field); padding: 12px 13px; border: none;
  clip-path: var(--notch-s); box-shadow: inset 0 0 0 2px var(--ink);
}
.input::placeholder, .textarea::placeholder { color: var(--text-soft); opacity: .7; }
.input:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--matcha); }
.textarea { resize: vertical; min-height: 130px; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.sent-msg { font-family: var(--font-pixel); font-size: 9px; color: var(--matcha-deep); opacity: 0; transition: opacity .3s; }
.sent-msg.show { opacity: 1; }
footer.site { background: var(--chrome); color: var(--on-chrome); border-top: 4px solid #000; margin-top: 60px; }
.footer-main { max-width: 1260px; margin: 0 auto; padding: 36px 32px 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-col h5 { font-family: var(--font-pixel); font-size: 9px; text-transform: uppercase; color: var(--matcha); margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand .fb-name { font-family: var(--font-pixel); font-size: 12px; color: var(--on-chrome); }
.footer-col p { font-size: 14px; line-height: 1.6; color: var(--on-chrome-soft); max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-family: var(--font-body); font-size: 14px; color: var(--on-chrome); display: inline-flex; align-items: center; gap: 9px; width: fit-content; transition: color .15s, transform .12s; }
.footer-links a:hover { color: var(--matcha); transform: translateX(3px); }
.footer-links a .dot { display: none; }
.footer-status { font-family: var(--font-pixel); font-size: 8px; color: var(--c-dark); background: var(--matcha); padding: 9px 11px 8px; display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.5px; clip-path: var(--notch-s); }
.footer-status::before { display: none; }
.footer-bottom { border-top: 2px solid rgba(243,232,214,0.14); padding: 16px 32px; text-align: center; }
.footer-bottom p { font-family: var(--font-pixel); font-size: 8px; color: var(--on-chrome-soft); letter-spacing: 0.5px; line-height: 1.8; }
.mascot { position: fixed; bottom: 16px; right: 16px; z-index: 60; }
.mascot button { position: relative; }
.mascot img { width: 74px; height: 74px; image-rendering: pixelated; transition: transform .15s; filter: drop-shadow(2px 2px 0 var(--shadow)); }
.mascot button:hover img { transform: scale(1.08) translateY(-2px); }
.mascot .note { position: absolute; top: -6px; left: -10px; font-family: var(--font-display); font-size: 22px; color: var(--matcha); opacity: 0; }
.mascot.playing .note { animation: floatNote 1.6s ease-in-out infinite; }
@keyframes floatNote { 0%{opacity:0; transform: translateY(0);} 30%{opacity:1;} 100%{opacity:0; transform: translateY(-26px) rotate(-12deg);} }
.bell {
  position: fixed; bottom: 18px; left: 18px; z-index: 60; font-family: var(--font-pixel); font-size: 14px;
  background: var(--matcha-soft); color: var(--text); border: 3px solid var(--ink); box-shadow: 3px 3px 0 0 var(--ink);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; clip-path: var(--notch-s);
  transition: transform .08s steps(2);
}
.bell:hover { transform: translate(2px,2px); }
.bell img { width: 24px; height: 26px; image-rendering: pixelated; display: block; }
.bell.muted img { filter: grayscale(1); opacity: .5; }
@media (max-width: 920px) {
  .hero-grid, .stack-grid, .menu-grid, .blog-stage, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .char-name { font-size: 52px; }
  .console { justify-self: center; position: relative; top: 0; margin: 0 auto; order: 2; }
  .blog-reader { order: 1; min-height: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-open { display: none; }
  .nav-links {
    position: absolute; top: 64px; right: 0; left: 0; background: var(--chrome);
    flex-direction: column; gap: 0; padding: 8px; border-bottom: 4px solid #000;
    transform: translateY(-130%); transition: transform .25s; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; }
  .display, .page-head .display, .char-name { font-size: 44px; }
  .stack-title, .reader-intro-title, .reader-title, .contact-side .display, .page-head .display { font-size: 38px; }
  .dialogue { flex-direction: column; align-items: flex-start; }
  .dialogue .avatar { width: 84px; }
  .drink { flex-direction: column; align-items: center; text-align: center; }
  .drink-img { width: clamp(150px, 70%, calc(225px * var(--drink-scale, 1))); }
  .drink-top { flex-direction: column; align-items: center; gap: 4px; }
  .drink-tags, .drink-link { justify-content: center; }
  .wrap { padding: 0 16px; }
  .section { padding: 38px 0; }
}
#cafe-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: var(--cafe-opacity);
  image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0,0,0,.5) 57%, #000 86%);
          mask-image: linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0,0,0,.5) 57%, #000 86%);
}
#cafe-bg * { position: absolute; }
.cafe-lamp { top: 0; --h: 32vh; }
.cafe-lamp.l1 { left: 14%; --h: 33vh; }
.cafe-lamp.l2 { left: 50%; --h: 25vh; }
.cafe-lamp.l3 { right: 13%; --h: 33vh; }
.cafe-lamp .cord  { top: 0; left: 50%; width: 4px; height: var(--h); background: var(--cafe-ink); transform: translateX(-50%); }
.cafe-lamp .shade { top: var(--h); left: 50%; width: 58px; height: 30px; transform: translateX(-50%); background: var(--cafe-shade); border: 3px solid var(--cafe-ink); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.cafe-lamp .shade::after { content:""; position:absolute; bottom:-7px; left:50%; transform:translateX(-50%); width:18px; height:7px; background:#ffe6ad; }
.cafe-lamp .glow  { top: calc(var(--h) + 26px); left: 50%; width: 260px; height: 300px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0%, var(--cafe-glow), transparent 68%); }
.cafe-window { left: 1.5%; top: 33vh; width: 104px; height: 130px; background: var(--cafe-window); border: 5px solid var(--cafe-ink); box-shadow: 0 0 70px 18px var(--cafe-glow); }
.cafe-window i { background: var(--cafe-window-bar); }
.cafe-window i:nth-child(1) { left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); }
.cafe-window i:nth-child(2) { top: 50%; left: 0; right: 0; height: 4px; transform: translateY(-50%); }
.cafe-hangplant { right: 7%; top: 0; }
.cafe-hangplant::before { content:""; position:absolute; top:0; left:23px; width:3px; height:24vh; background:var(--cafe-ink); }
.cafe-hangplant .pot { top: 24vh; left: 0; width: 46px; height: 28px; background: var(--cafe-pot); border: 3px solid var(--cafe-ink); }
.cafe-hangplant .vine { top: calc(24vh + 28px); width: 8px; background: var(--cafe-leaf); border: 2px solid var(--cafe-ink); }
.cafe-hangplant .v1 { left: 5px; height: 58px; }
.cafe-hangplant .v2 { left: 19px; height: 92px; }
.cafe-hangplant .v3 { left: 33px; height: 46px; }
.cafe-shelf { left: 0; right: 0; bottom: 188px; display: flex; align-items: flex-end; justify-content: center; gap: 48px; padding: 0 9%; }
.cafe-shelf::after { content:""; position:absolute; left: 7%; right: 7%; bottom: -11px; height: 8px; background: var(--cafe-shelf); border: 3px solid var(--cafe-ink); }
.cafe-shelf .jar { position: relative; width: 26px; height: 30px; background: var(--cafe-jar-a); border: 3px solid var(--cafe-ink); }
.cafe-shelf .jar.b { background: var(--cafe-jar-b); }
.cafe-shelf .jar.c { background: var(--cafe-jar-c); }
.cafe-shelf .jar.tall { height: 44px; }
.cafe-shelf .jar::before { content:""; position:absolute; top:-8px; left:50%; transform:translateX(-50%); width:15px; height:7px; background:var(--cafe-ink); }
.cafe-counter {
  left: 0; right: 0; bottom: 0; height: 215px;
  background: repeating-linear-gradient(90deg, var(--cafe-wood) 0 40px, var(--cafe-wood2) 40px 42px);
  border-top: 5px solid var(--cafe-ink);
}
.cafe-counter::before { content:""; position:absolute; top:-16px; left:0; right:0; height:16px; background:var(--cafe-counter-top); border-top:5px solid var(--cafe-ink); }
.cafe-table { position: absolute; left: 4%; bottom: 215px; width: 132px; height: 150px; }
.cafe-table .cafe-plant { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); width: 62px; image-rendering: pixelated; }
.cafe-table .top { position: absolute; left: 0; right: 0; bottom: 52px; height: 12px; background: var(--cafe-counter-top); border: 4px solid var(--cafe-ink); }
.cafe-table .leg { position: absolute; bottom: 0; width: 14px; height: 56px; background: var(--cafe-shelf); border: 4px solid var(--cafe-ink); }
.cafe-table .leg.l { left: 18px; }
.cafe-table .leg.r { right: 18px; }
#cafe-props { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; image-rendering: pixelated; }
#cafe-props * { position: absolute; }
.cafe-table.kettle-table { left: auto; right: 5%; width: 124px; height: 96px; }
.kettle-table .leg { height: 26px; }
.kettle-table .top { bottom: 22px; }
.cafe-table.kettle-table .cafe-kettle { bottom: 30px; }
.cafe-table.kettle-table .ksteam { bottom: 66px; }
.cafe-table .ksteam.s1 { margin-left: -44px; animation: kSteam 4s linear infinite; }
.cafe-table .ksteam.s2 { margin-left: -39px; animation: kSteam2 4s linear infinite 1.3s; }
.cafe-table .ksteam.s3 { margin-left: -48px; animation: kSteam3 4s linear infinite 2.6s; }
.cafe-cups { right: calc(5% + 140px); bottom: 215px; width: 84px; height: 34px; z-index: 1; }
.cafe-cups .cup { bottom: 0; width: 26px; height: 21px; background: var(--cafe-jar-b); border: 4px solid var(--cafe-ink); }
.cafe-cups .cup::after { content:""; position:absolute; right:-11px; top:50%; transform:translateY(-50%); width:9px; height:10px; border:4px solid var(--cafe-ink); border-left:none; }
.cafe-cups .cup.c1 { left: 0; }
.cafe-cups .cup.c2 { left: 44px; background: var(--cafe-shade); }
.cafe-table .cafe-kettle { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); width: 76px; image-rendering: pixelated; }
.cafe-table .ksteam { position: absolute; bottom: 112px; left: 50%; width: 6px; height: 6px; background: rgba(240,232,214,.45); opacity: 0; box-shadow: 0 -8px 0 rgba(240,232,214,.35); }
.cafe-table .ksteam.s1 { margin-left: -30px; animation: kSteam 3.4s linear infinite; }
.cafe-table .ksteam.s2 { margin-left: -24px; animation: kSteam 3.4s linear infinite 1.1s; }
.cafe-table .ksteam.s3 { margin-left: -33px; animation: kSteam 3.4s linear infinite 2.2s; }
@keyframes kSteam { 0%{opacity:0; transform:translateY(4px) scale(1)} 20%{opacity:1} 55%{opacity:.6; transform:translateY(-34px) translateX(-12px) scale(1.5)} 100%{opacity:0; transform:translateY(-72px) translateX(-26px) scale(2.2)} }
@keyframes kSteam2 { 0%{opacity:0; transform:translateY(4px) scale(1)} 20%{opacity:1} 55%{opacity:.6; transform:translateY(-32px) translateX(4px) scale(1.5)} 100%{opacity:0; transform:translateY(-70px) translateX(16px) scale(2.2)} }
@keyframes kSteam3 { 0%{opacity:0; transform:translateY(4px) scale(1)} 20%{opacity:1} 55%{opacity:.55; transform:translateY(-36px) translateX(-4px) scale(1.6)} 100%{opacity:0; transform:translateY(-80px) translateX(-8px) scale(2.4)} }
.cafe-counter .mug { top: -28px; right: 13%; width: 30px; height: 22px; background: var(--cafe-jar-b); border: 3px solid var(--cafe-ink); }
.cafe-counter .mug::after { content:""; position:absolute; right:-11px; top:3px; width:10px; height:11px; border:3px solid var(--cafe-ink); border-left:none; }
@media (max-width: 760px) {
  .cafe-window, .cafe-hangplant { display: none; }
  .cafe-shelf { gap: 26px; padding: 0 5%; }
  #cafe-bg { --cafe-opacity: 0.7; }
}
