/* ============================================================
   MENY Concierge PoC — design system
   Portrait kiosk canvas 1080 × 1920, scaled to fit any window.
   ============================================================ */

:root {
  --red: #D52B1E;
  --red-dark: #B02318;
  --red-deep: #8f1a10;
  --ink: #1d1d1b;
  --white: #ffffff;
  --cream: #FFF6EE;
  --yellow: #FFD200;
  --green: #2E7D32;
  --green-light: #43A047;
  --blue: #1565C0;
  --gray: #9aa0a6;
  --gray-soft: #efe9e2;

  --font-body: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Black", "Arial Black", "Segoe UI", sans-serif;

  --shadow-tile: 0 16px 30px rgba(70, 8, 3, 0.30);
  --shadow-card: 0 10px 24px rgba(29, 29, 27, 0.10);
  --radius-card: 26px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: #240603;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  user-select: none;
}

/* ---------- Stage: fixed 1080×1920 canvas, scaled by JS ---------- */

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 0.5));
  background:
    radial-gradient(140% 90% at 50% 12%, #e33d2e 0%, var(--red) 46%, var(--red-dark) 82%, var(--red-deep) 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

/* ---------- Header ---------- */

.kiosk-header {
  position: relative;
  padding: 34px 48px 6px;
  text-align: center;
  flex: 0 0 auto;
}

.meny-logo { width: 560px; margin: 0 auto; display: block; }

.meny-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 122px;
  letter-spacing: 7px;
  fill: var(--white);
}

.store-line {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.5px;
}

.store-line .sep { margin: 0 14px; opacity: 0.65; }

.clock {
  position: absolute;
  top: 34px;
  right: 44px;
  text-align: right;
  color: var(--white);
  background: rgba(0, 0, 0, 0.16);
  border-radius: 20px;
  padding: 12px 22px 14px;
  backdrop-filter: blur(2px);
}

.clock-time {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  letter-spacing: 1px;
}

.clock-date {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  opacity: 0.92;
}

/* ---------- Content area ---------- */

.content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 44px 24px;
  scrollbar-width: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.content::-webkit-scrollbar { display: none; }

/* Accessibility / reach mode: shrink toward the bottom edge so everything
   lands in reach — no translate, or the top of the scroll box gets clipped
   past the stage and becomes untappable. */
.stage.easy-reach .content {
  transform: scale(0.72);
  transform-origin: 50% 100%;
}
.stage.easy-reach .kiosk-header { opacity: 0.35; }

/* ---------- HOME ---------- */

.home-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 74px;
  letter-spacing: 3px;
  text-align: center;
  color: var(--ink);
  margin: 26px 0 20px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 30px;
  padding: 0 6px;
  margin: auto 0;
}

.tile {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-tile);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.14s ease;
  animation: tile-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}
.tile:active { transform: scale(0.93); }

.tile-grid .tile:nth-child(1)  { animation-delay: 0.02s; }
.tile-grid .tile:nth-child(2)  { animation-delay: 0.06s; }
.tile-grid .tile:nth-child(3)  { animation-delay: 0.10s; }
.tile-grid .tile:nth-child(4)  { animation-delay: 0.14s; }
.tile-grid .tile:nth-child(5)  { animation-delay: 0.18s; }
.tile-grid .tile:nth-child(6)  { animation-delay: 0.22s; }
.tile-grid .tile:nth-child(7)  { animation-delay: 0.26s; }
.tile-grid .tile:nth-child(8)  { animation-delay: 0.30s; }
.tile-grid .tile:nth-child(9)  { animation-delay: 0.34s; }
.tile-grid .tile:nth-child(10) { animation-delay: 0.38s; }
.tile-grid .tile:nth-child(11) { animation-delay: 0.42s; }
.tile-grid .tile:nth-child(12) { animation-delay: 0.46s; }

@keyframes tile-pop {
  from { opacity: 0; transform: scale(0.55); }
  to   { opacity: 1; transform: scale(1); }
}

.tile-icon { width: 78px; height: 78px; }
.tile-icon svg { width: 100%; height: 100%; display: block; }

.tile-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.06;
  letter-spacing: 0.6px;
  text-align: center;
  white-space: pre-line;
  padding: 0 12px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(213, 43, 30, 0.22);
  transform: scale(0);
  animation: ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* Home bottom banner — today's headline offer */
.home-banner {
  margin-top: auto;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 26px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-card);
  padding: 24px 34px;
  box-shadow: var(--shadow-tile);
  text-decoration: none;
  color: var(--ink);
  animation: tile-pop 0.55s 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}
.home-banner:active { transform: scale(0.985); }
.home-banner-emoji { font-size: 66px; line-height: 1; }
.home-banner-text { flex: 1; }
.home-banner-kicker {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 22px;
  letter-spacing: 2.5px;
}
.home-banner-title { font-size: 31px; font-weight: 700; margin-top: 2px; }
.home-banner-cta {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  border-radius: 999px;
  padding: 14px 26px;
  white-space: nowrap;
}

/* ---------- Generic page card ---------- */

.page {
  background: var(--cream);
  border-radius: 34px;
  padding: 38px 42px 54px;
  margin: 4px 0 20px;
  box-shadow: 0 24px 60px rgba(70, 8, 3, 0.35);
  animation: page-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(46px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}

.back-btn {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(176, 35, 24, 0.45);
  transition: transform 0.14s ease;
}
.back-btn:active { transform: scale(0.9); }
.back-btn svg { width: 46px; height: 46px; }

.page-kicker {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 24px;
  letter-spacing: 4px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1.02;
  color: var(--ink);
  margin-top: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ink);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title .sicon { width: 36px; height: 36px; color: var(--red); display: inline-flex; }
.section-title .sicon svg { width: 100%; height: 100%; }

/* ---------- Department page ---------- */

.hero {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
  line-height: 0;
}
.hero svg { width: 100%; height: auto; display: block; }

.catchphrase {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--red);
  margin: 26px 0 10px;
  line-height: 1.1;
}

.dept-desc { font-size: 28px; line-height: 1.5; color: #3c3c3a; margin: 0; }

.notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  border-radius: 16px;
  padding: 14px 22px;
  margin-top: 22px;
}
.notice .nicon { width: 28px; height: 28px; display: inline-flex; }
.notice .nicon svg { width: 100%; height: 100%; }

.funfact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-left: 10px solid var(--yellow);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  font-size: 25px;
  padding: 20px 24px;
  margin-top: 28px;
}
.funfact-bulb { font-size: 34px; }

/* Product cards */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pcard {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 20px 24px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pcard-badge {
  position: absolute;
  top: -14px;
  left: -10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px rgba(176, 35, 24, 0.4);
}

.pcard-emoji {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.pcard-name { font-weight: 700; font-size: 27px; line-height: 1.15; text-wrap: balance; }
.pcard-desc { font-size: 21px; color: #6b6b68; margin-top: 6px; min-height: 52px; }

/* In .pcard's flex column, margin-top:auto bottom-aligns the price block so
   all yellow tags in a card row share a baseline despite 1/2-line titles. */
.price-old {
  display: block;
  font-size: 22px;
  color: var(--gray);
  text-decoration: line-through;
  margin-top: auto;
  padding-top: 10px;
  min-height: 36px;
}

.price {
  display: inline-flex;
  align-items: baseline;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  border-radius: 12px;
  padding: 6px 16px 10px;
  transform: rotate(-3deg);
  margin-top: 4px;
  align-self: center;
  box-shadow: 0 6px 12px rgba(29, 29, 27, 0.18);
}
.price-main { font-size: 44px; line-height: 1; }
.price-dec { font-size: 24px; margin-left: 2px; }
.price-unit { font-family: var(--font-body); font-size: 20px; font-weight: 600; margin-left: 6px; }

/* Floor map */

.map-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  line-height: 0;
}
.map-card svg { width: 100%; height: auto; }

.map-caption {
  font-size: 23px;
  color: #6b6b68;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.3;
}
.map-caption .micon { width: 26px; height: 26px; color: var(--red); flex: 0 0 auto; }

/* "Where in the store" chip on offer cards and expiry rows */
.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 21px;
  font-weight: 600;
  color: var(--red-dark);
  text-decoration: none;
}
.place-chip .micon { width: 22px; height: 22px; color: var(--red); flex: 0 0 auto; display: inline-flex; }
.place-cta {
  font-weight: 700;
  color: var(--red);
  background: rgba(213, 43, 30, 0.08);
  border: 2px solid rgba(213, 43, 30, 0.25);
  border-radius: 999px;
  padding: 2px 14px 4px;
  margin-left: 6px;
  white-space: nowrap;
}
.xrow-name .place-chip { display: flex; margin-top: 4px; font-size: 19px; }
.map-caption .micon svg { width: 100%; height: 100%; }

/* ---------- Offers page ---------- */

.offer-intro { font-size: 27px; color: #3c3c3a; margin: 0 0 26px; }

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ocard {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: visible;
}

.ocard-emoji {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.ocard-body { flex: 1 1 auto; min-width: 0; }
/* Right padding keeps the title clear of the corner splash badge. */
.ocard-name { font-weight: 700; font-size: 26px; line-height: 1.15; padding-right: 88px; text-wrap: balance; }
.ocard-desc { font-size: 20px; color: #6b6b68; margin-top: 4px; }

.splash {
  position: absolute;
  top: -16px;
  right: -8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  padding: 12px 14px;
  transform: rotate(8deg);
  clip-path: polygon(50% 0%, 61% 12%, 76% 5%, 79% 21%, 95% 21%, 89% 36%, 100% 50%, 89% 64%, 95% 79%, 79% 79%, 76% 95%, 61% 88%, 50% 100%, 39% 88%, 24% 95%, 21% 79%, 5% 79%, 11% 64%, 0% 50%, 11% 36%, 5% 21%, 21% 21%, 24% 5%, 39% 12%);
  min-width: 96px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}

/* ---------- Expiry (Redd maten) ---------- */

.eco-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  background: linear-gradient(120deg, var(--green), var(--green-light));
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 34px;
  box-shadow: var(--shadow-card);
}
.eco-banner-emoji { font-size: 64px; }
.eco-banner-title { font-family: var(--font-display); font-size: 40px; }
.eco-banner-text { font-size: 25px; margin-top: 6px; opacity: 0.96; line-height: 1.35; }

.xrow {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 18px 26px;
  margin-top: 18px;
}
.xrow-emoji { font-size: 46px; width: 64px; text-align: center; }
.xrow-name { flex: 1; font-weight: 700; font-size: 27px; }
.xrow-date {
  font-size: 21px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--gray-soft);
  color: #5a5a57;
  white-space: nowrap;
}
.xrow-date.urgent { background: var(--red); color: var(--white); }
.xrow-old { font-size: 22px; color: var(--gray); text-decoration: line-through; white-space: nowrap; }
.xrow-price { font-family: var(--font-display); font-size: 34px; white-space: nowrap; }
.xrow-disc {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 12px;
  padding: 8px 14px;
  white-space: nowrap;
}

.eco-note {
  font-size: 22px;
  color: #5a5a57;
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Coupons ---------- */

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.coupon {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 26px 24px 22px;
  text-align: center;
  position: relative;
}
.coupon::before, .coupon::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  top: 58%;
}
.coupon::before { left: -17px; }
.coupon::after { right: -17px; }

.coupon-emoji { font-size: 52px; }
.coupon-title { font-family: var(--font-display); font-size: 28px; margin-top: 8px; line-height: 1.1; }
.coupon-desc { font-size: 21px; color: #6b6b68; margin-top: 6px; min-height: 54px; }

.coupon-qr {
  margin: 18px auto 0;
  width: 190px;
  height: 190px;
  padding: 10px;
  background: var(--white);
  border: 3px dashed #d8cfc6;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coupon-qr svg { width: 100%; height: 100%; }

.coupon-valid { font-size: 20px; color: #6b6b68; margin-top: 12px; }
.coupon-code { font-family: Consolas, monospace; font-size: 17px; color: var(--gray); margin-top: 4px; letter-spacing: 1px; }

.coupon-note {
  margin-top: 26px;
  text-align: center;
  font-size: 23px;
  font-weight: 600;
  color: #5a5a57;
}

/* ---------- News ---------- */

.news-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 600;
  color: #5a5a57;
  background: var(--gray-soft);
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.news-item {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  margin-bottom: 18px;
}

.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }

.news-cat {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  padding: 5px 12px;
}
.news-cat.cat-sport { background: var(--green); }
.news-cat.cat-innenriks { background: #3949AB; }
.news-cat.cat-forbruker { background: var(--red); }
.news-cat.cat-vaer { background: #0288D1; }
.news-cat.cat-kultur { background: #7B1FA2; }
.news-cat.cat-okonomi { background: #455A64; }

.news-time { font-size: 20px; color: var(--gray); }
.news-title { font-size: 30px; font-weight: 700; line-height: 1.2; }
.news-summary { font-size: 23px; color: #5a5a57; margin-top: 8px; line-height: 1.4; }

/* ---------- Assist ---------- */

.assist-hero { text-align: center; padding-top: 20px; }
.assist-headline { font-family: var(--font-display); font-size: 54px; }
.assist-sub { font-size: 28px; color: #5a5a57; margin-top: 10px; }

.assist-btn {
  margin: 44px auto 10px;
  width: 340px;
  height: 340px;
  padding: 0 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 50% 32%, #e8493a, var(--red) 70%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 20px 44px rgba(176, 35, 24, 0.5);
  position: relative;
  transition: transform 0.14s ease;
}
.assist-btn:active { transform: scale(0.92); }
.assist-btn::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 5px solid rgba(213, 43, 30, 0.5);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.92); opacity: 1; }
  100% { transform: scale(1.16); opacity: 0; }
}
.assist-btn .bicon { width: 76px; height: 76px; }
.assist-btn .bicon svg { width: 100%; height: 100%; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.svc {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.svc-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-icon svg { width: 36px; height: 36px; }
.svc-label { font-weight: 700; font-size: 26px; }
.svc-desc { font-size: 21px; color: #6b6b68; margin-top: 4px; line-height: 1.35; }

.faq details {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 26px;
  font-weight: 700;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { font-size: 23px; color: #5a5a57; padding: 0 28px 24px; line-height: 1.45; }

.hours-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 26px 30px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 26px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-soft);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .hv { font-weight: 700; }

/* Assist confirmation overlay */

.assist-confirm {
  position: absolute; /* inside the scaled stage — covers exactly the canvas */
  inset: 0;
  background: rgba(29, 29, 27, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.assist-confirm-card {
  background: var(--white);
  border-radius: 32px;
  padding: 56px 64px;
  text-align: center;
  max-width: 720px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: tile-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.check-ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 26px;
}
.check-ring circle {
  fill: none;
  stroke: var(--green);
  stroke-width: 5;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: draw 0.7s 0.1s ease forwards;
}
.check-ring path {
  fill: none;
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: draw 0.5s 0.65s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.assist-confirm-title { font-family: var(--font-display); font-size: 46px; }
.assist-confirm-text { font-size: 27px; color: #5a5a57; margin-top: 14px; line-height: 1.4; }

.assist-confirm-close {
  margin-top: 36px;
  border: none;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 27px;
  border-radius: 999px;
  padding: 20px 56px;
  cursor: pointer;
}

/* ---------- Footer ---------- */

.kiosk-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 44px 34px;
  position: relative;
}

.lang-chips { display: flex; gap: 10px; }

.chip {
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
}
.chip-active { background: var(--white); color: var(--red); }

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 25px;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease;
}
.footer-btn:active { transform: scale(0.94); }
.footer-btn.active { background: var(--white); color: var(--red); }
.footer-btn-icon { width: 32px; height: 32px; display: inline-flex; }
.footer-btn-icon svg { width: 100%; height: 100%; }

.poc-tag {
  position: absolute;
  right: 44px;
  bottom: 10px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}

/* ---------- Attract mode ---------- */

.attract {
  position: absolute;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(120% 80% at 50% 0%, #e33d2e 0%, var(--red-dark) 55%, #6e120a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.attract.attract-hidden { opacity: 0; pointer-events: none; }

.attract .meny-logo { width: 380px; position: absolute; top: 90px; left: 50%; transform: translateX(-50%); }

.attract-float {
  position: absolute;
  font-size: 58px;
  opacity: 0.16;
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-46px) rotate(8deg); }
}

.attract-slide {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 46%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.attract-slide.active { opacity: 1; }

.attract-emoji { font-size: 150px; line-height: 1; }
.attract-title { font-family: var(--font-display); font-size: 76px; margin-top: 30px; line-height: 1.05; }
.attract-text { font-size: 36px; margin-top: 22px; opacity: 0.95; line-height: 1.35; }

.attract-cta {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 32px;
  border-radius: 999px;
  padding: 26px 54px;
  white-space: nowrap;
  animation: cta-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
@keyframes cta-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.06); }
}

.attract-dots { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.attract-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.attract-dot.active { background: var(--white); }

/* ---------- Toast ---------- */

.toast {
  position: absolute;
  left: 50%;
  bottom: 140px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 25px;
  font-weight: 600;
  border-radius: 999px;
  padding: 18px 36px;
  z-index: 70;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 860px;
  text-align: center;
}
.toast.toast-hidden { opacity: 0; transform: translateX(-50%) translateY(24px); pointer-events: none; }

/* ---------- Boot error ---------- */

.boot-error {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  font-size: 26px;
  color: var(--ink);
}
.boot-error code { color: var(--red); }


/* ---------- One-screen fit mode (subpages never scroll) ---------- */

.content.fit { overflow: hidden; }

.page-fit {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 30px 38px 34px;
}
.page-fit .page-head { margin-bottom: 14px; }

/* Department page: map fills the screen */
.dept-lead {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--red);
  margin: 0 0 14px;
  line-height: 1.1;
}
/* Transparent, chrome-less: the SVG letterboxes inside the flex box, and a
   white card would show the empty bands. On cream they're invisible. */
.map-fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.map-fill svg { width: 100%; height: 100%; }
.page-fit .map-caption { margin: 14px 0 0; font-size: 28px; color: #4a4a48; }

.mini-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.mini {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.mini-emoji { font-size: 44px; line-height: 1.15; }
.mini-name {
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
  min-height: 54px;
  display: flex;
  align-items: center;
  text-wrap: balance;
}
.mini-price {
  font-family: var(--font-display);
  font-size: 30px;
  background: var(--yellow);
  border-radius: 10px;
  padding: 2px 16px 6px;
  transform: rotate(-2deg);
}
.mini-price small { font-size: 18px; font-weight: 400; margin-left: 3px; }

/* Offers: natural-height cards spread evenly down the screen */
.page-fit .offer-intro { margin: 0 0 16px; }
.page-fit .cards-2 {
  flex: 1 1 auto;
  min-height: 0;
  align-content: space-evenly;
}
/* Keep the corner badges inside the clipped panel */
.page-fit .splash { top: -12px; right: 10px; }
.page-fit .ocard-name { padding-right: 108px; }

/* Help page: center the hero so the panel has no dead band */
.page-fit .assist-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* min-width:0 lets cards shrink below the price row's no-wrap min-content,
   which otherwise widens the grid past the clipped panel edge. */
.page-fit .cards-2 > .ocard { min-width: 0; }
.ocard-pricerow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 12px; }
.ocard-old { font-size: 21px; color: var(--gray); text-decoration: line-through; }

/* Expiry rows spread evenly over the remaining height */
.xrows {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 12px;
  margin-top: 14px;
}
.xrows .xrow { margin: 0; }

/* Coupons: 2x2 grid stretches */
.page-fit .coupon-grid {
  flex: 1 1 auto;
  min-height: 0;
  grid-auto-rows: 1fr;
  gap: 20px;
  margin-top: 6px;
}
.page-fit .coupon {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-fit .coupon-note { margin-top: 16px; }

/* News: four large stories */
.news-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 14px;
  margin-top: 12px;
}
.page-fit .news-item { margin: 0; }

/* Help: button-first, one line of hours */
.svc-grid-fit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.svc-big {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 16px;
}
.svc-big .svc-label { font-size: 27px; }
.hours-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 26px;
  font-weight: 600;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin-top: 20px;
}
.hours-inline .micon { width: 30px; height: 30px; color: var(--red); display: inline-flex; flex: 0 0 auto; }
.hours-inline .micon svg { width: 100%; height: 100%; }
