/* Konbini 108 — base styles */
@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Bebas+Neue&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=VT323&family=Rampart+One&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: #1a1a1a;
}

:root {
  --night: #0F1419;
  --night-2: #1A2028;
  --red: #E63946;
  --red-deep: #B91C1C;
  --yellow: #FFD60A;
  --cream: #F4E9D8;
  --receipt: #F8F4E8;
  --pink: #FF3D7F;
  --ink: #0F1419;
  --line: rgba(15,20,25,0.15);
}

/* ===== Responsive site (mobile + desktop) ===== */
html, body {
  background: var(--night);
  overscroll-behavior-y: none;
}
#app {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--night);
  position: relative;
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
.screen::-webkit-scrollbar { display: none; }

/* Mobile-first content column (default). Desktop layouts override per-screen. */
.mobile-col {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* === Desktop breakpoint === */
@media (min-width: 900px) {
  .desk-only { display: initial; }
  .mobile-only { display: none !important; }
}
@media (max-width: 899px) {
  .desk-only { display: none !important; }
  .mobile-only { display: initial; }
}

/* ===== Reusable elements ===== */
.star {
  display: inline-block;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--red);
}
.barcode {
  display: flex; gap: 2px; height: 40px; align-items: stretch;
}
.barcode span { background: #0F1419; }

.dot-line {
  border-top: 2px dashed currentColor;
  width: 100%;
  opacity: 0.5;
}

/* scanline overlay */
.scanlines::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 50;
}

/* noise */
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 51;
  mix-blend-mode: overlay;
}

/* Press effect */
.press { transition: transform 0.1s ease; }
.press:active { transform: scale(0.96); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* === Marquee === */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex; overflow: hidden; white-space: nowrap;
}
.marquee-inner {
  display: flex; gap: 32px; padding-right: 32px;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}

/* === Blinking === */
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.2; } }
.blink { animation: blink 1s steps(2) infinite; }

/* === Spin === */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* === Receipt print animation === */
@keyframes printOut {
  from { max-height: 0; }
  to { max-height: 3000px; }
}

/* ===== RETRO POSTER PRODUCT CARD ===== */
.bento-card {
  position: relative;
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 4px;
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.1s;
}
.bento-card.in-cart {
  box-shadow: 4px 4px 0 var(--pink);
  transform: translate(-1px,-1px);
}
.bento-card .photo-frame {
  position: relative;
  aspect-ratio: 1/1;
  border: 2px solid var(--ink);
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Scalloped yellow border inside the photo frame (bento-poster look) */
.bento-card .photo-frame::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 4px 4px, var(--yellow) 2.5px, transparent 3px) repeat;
  background-size: 10px 10px;
  pointer-events: none;
  opacity: 0;
}
.bento-card .photo-frame.bg-pink { background: #FFE4E6; }
.bento-card .photo-frame.bg-mint { background: #DCFCE7; }
.bento-card .photo-frame.bg-cream { background: #FEF3C7; }
.bento-card .photo-frame.bg-sky { background: #DBEAFE; }
.bento-card .photo-frame.bg-peach { background: #FFEDD5; }
.bento-card .photo-frame.bg-lilac { background: #EDE9FE; }

/* The bursts behind the emoji */
.burst {
  position: absolute;
  clip-path: polygon(50% 0%, 60% 20%, 80% 10%, 78% 32%, 100% 35%, 80% 50%, 100% 70%, 75% 70%, 80% 95%, 55% 80%, 50% 100%, 45% 80%, 20% 95%, 25% 70%, 0% 70%, 20% 50%, 0% 35%, 22% 32%, 20% 10%, 40% 20%);
  pointer-events: none;
}
.burst-yellow { background: #FFD60A; }
.burst-blue   { background: #60A5FA; }
.burst-red    { background: #E63946; }
.burst-orange { background: #FB923C; }

.recommended-strip {
  background: var(--cream);
  color: var(--red);
  font-family: 'VT323', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.recommended-strip-inner {
  display: inline-block;
  animation: marquee 18s linear infinite;
}

/* halftone overlay (subtle print noise) */
.halftone {
  position: relative;
}
.halftone::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 1.4px);
  background-size: 4px 4px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* JP-style header banner (zigzag edge) */
.zigzag-banner {
  position: relative;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font-family: 'Bebas Neue';
  letter-spacing: 0.15em;
}
.zigzag-banner::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -10px;
  height: 10px;
  background:
    linear-gradient(135deg, var(--red) 25%, transparent 25%) 0 0/10px 10px,
    linear-gradient(225deg, var(--red) 25%, transparent 25%) 0 0/10px 10px;
}

/* Hairy red poster border (the bento-poster outermost frame) */
.poster-frame {
  background: var(--yellow);
  border: 4px solid var(--red);
  outline: 3px solid var(--ink);
  outline-offset: 0;
  padding: 6px;
  position: relative;
}

/* === No-scanlines tweak === */
body.no-scanlines .scanlines::after { display: none; }

/* === Daytime Pop theme override === */
body.theme-day #stage {
  background:
    radial-gradient(circle at 30% 20%, #F4E9D8 0%, #E8D8B8 60%),
    #E8D8B8;
}
body.theme-day .splash-bg {
  background: linear-gradient(180deg, #F4E9D8 0%, #FFD60A 100%) !important;
  color: var(--ink) !important;
}
body.theme-day .splash-title {
  color: var(--red) !important;
  text-shadow: 4px 4px 0 var(--yellow), 8px 8px 0 var(--ink) !important;
}
body.theme-day .splash-subtitle { color: var(--ink) !important; }
body.theme-day .splash-tag { color: var(--ink) !important; }
body.theme-day .splash-cta {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
  box-shadow: 4px 4px 0 var(--ink) !important;
}
body.theme-day .splash-cta-line { color: var(--red) !important; }
body.theme-day .splash-lanterns { filter: hue-rotate(-20deg) brightness(1.2); }
body.theme-day .splash-poster-frame { box-shadow: 6px 6px 0 var(--ink) !important; }

