:root {
  --green: #00a859;
  --green-dark: #007a41;
  --red: #e50012;
  --red-dark: #b0000e;
  --blue: #0b4e8a;
  --blue-dark: #083a68;
  --yellow: #d4c463;
  --ink: #111318;
  --muted: #6b7280;
  --line: #d9dde3;
  --paper: #ffffff;
  --bg: #f2f3f5;
  --shadow: 0 14px 36px rgba(9, 12, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 18% 0%, #303645 0, #171b23 42%, #0b0d12 100%);
  color: var(--ink);
  font-family: "Segoe UI", "DejaVu Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

img {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Cabinet / dual-screen frame                                        */
/* ------------------------------------------------------------------ */

.stage {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.kiosk {
  width: 1200px;
  transform-origin: top center;
}

.kiosk-shell {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid #3b4250;
  background:
    linear-gradient(155deg, #303641 0%, #1a1e26 34%, #11141a 100%);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.kiosk-shell::before {
  content: "";
  position: absolute;
  left: 46px;
  right: 46px;
  top: 10px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--red) 80%, transparent);
  opacity: 0.8;
}

.kiosk-top {
  position: relative;
  padding: 8px 8px 0;
}

.upper-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #06070a;
  border-radius: 14px;
  background: #0b0d12;
  color: #fff;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.8),
    0 18px 34px rgba(0, 0, 0, 0.42);
}

.kiosk-body {
  padding: 14px 8px 4px;
}

.lower-screen {
  width: min(100%, 900px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  border: 8px solid #06070a;
  border-radius: 10px;
  background: var(--paper);
  box-shadow:
    inset 0 0 22px rgba(0, 0, 0, 0.22),
    0 16px 30px rgba(0, 0, 0, 0.4);
}

.kiosk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px 6px;
  color: #9ba4b3;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kiosk-foot a {
  color: #d8dee8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 2px;
  letter-spacing: 0.08em;
}

.kiosk-foot a:hover {
  color: #fff;
  border-color: #fff;
}

/* ------------------------------------------------------------------ */
/* Lower screen: shared application shell                             */
/* ------------------------------------------------------------------ */

.screen-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  color: var(--ink);
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 30px 4px;
}

.app-title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.app-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.head-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1px;
  flex-shrink: 0;
}

.head-logos img {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.head-logos .logo-canal {
  height: 42px;
}

.head-logos .logo-seeg {
  height: 50px;
}

.head-logos .logo-airtel {
  height: 45px;
}

.head-logos .logo-gabon {
  height: 43px;
}

.head-logos .logo-am {
  height: 40px;
}

.head-logos .logo-mobicash {
  height: 42px;
}

.head-logos .logo-pmug {
  height: 40px;
}

.app-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 4px 30px 0;
}

.app-main.no-pad {
  grid-template-columns: minmax(0, 1fr);
}

.app-main.no-pad .pad {
  display: none;
}

.flow {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.flow-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 6px 4px 0;
  scrollbar-width: thin;
}

.pad {
  min-height: 0;
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 30px 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* Home                                                               */
/* ------------------------------------------------------------------ */

.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 30px 14px;
  background:
    radial-gradient(circle at 50% -20%, #fff 0, #f8f9fb 55%, #eef1f5 100%);
}

.home-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.home-pmug {
  position: absolute;
  left: 0;
  top: 0;
  height: 42px;
  width: auto;
}

.home-title {
  text-align: center;
}

.home-title h1 {
  margin: 0;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.tiles {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 0;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(12, 17, 26, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: #aeb9c7;
  box-shadow: 0 16px 30px rgba(12, 17, 26, 0.13);
}

.tile:active {
  transform: translateY(0);
}

.tile-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
}

.tile-logos img {
  width: auto;
  max-width: 152px;
  max-height: 58px;
  object-fit: contain;
}

.tile-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.tile-hint {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.pmug-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 13px;
  padding: 10px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #e50012 0%, #c00010 58%, #93000c 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 10px 22px rgba(229, 0, 18, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pmug-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(229, 0, 18, 0.34);
}

.pmug-banner img {
  height: 40px;
  width: auto;
}

.pmug-text {
  flex: 1;
}

.pmug-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.pmug-text span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.88;
}

.pmug-banner .chev {
  font-size: 30px;
  line-height: 1;
  opacity: 0.9;
}

.home-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px;
}

/* ------------------------------------------------------------------ */
/* Flow / steps                                                       */
/* ------------------------------------------------------------------ */

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.step .badge {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 168, 89, 0.28);
}

.step p {
  margin: 0;
  padding-top: 6px;
  font-size: 18px;
  line-height: 1.28;
}

.input-wrap {
  position: relative;
  margin: 0 0 14px 50px;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid #1b1f27;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.input-wrap input::placeholder {
  color: #b8bec8;
  font-size: 17px;
  letter-spacing: 0;
}

.input-wrap.active input {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 78, 138, 0.12);
}

.input-wrap.active::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 2px;
  height: 26px;
  margin-top: -13px;
  background: var(--blue);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 2px 0 8px 50px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 600;
}

.error::before {
  content: "!";
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Formula / bets / combination / amount                              */
/* ------------------------------------------------------------------ */

.formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-left: 50px;
}

.formula {
  position: relative;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.formula:hover {
  border-color: #aab5c3;
  transform: translateY(-1px);
}

.formula.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.14);
}

.formula-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.formula-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.formula-channels {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.formula-price {
  margin-top: 4px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.formula-logos {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.chip {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 15px;
  padding: 0 4px;
  border-radius: 3px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-left: 50px;
}

.bet {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 7px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.bet:hover {
  border-color: #aab5c3;
}

.bet.selected {
  border-color: var(--green);
  background: #eefaf3;
}

.bet .idx {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef1f4;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
}

.bet.selected .idx {
  background: var(--green);
  color: #fff;
}

.bet-hint,
.combo-hint,
.amount-hint,
.confirm-note,
.bill-note {
  margin: 8px 0 0 50px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.combo-wrap {
  margin-left: 50px;
}

.combo-title {
  margin-bottom: 12px;
  color: #303641;
  font-size: 12px;
  line-height: 1.4;
}

.combo-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 16px;
}

.combo-box {
  position: relative;
  width: 62px;
  height: 60px;
  border: 1.5px solid #1b1f27;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.combo-box.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 78, 138, 0.12);
}

.combo-box.active::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 2px;
  height: 22px;
  margin-top: -11px;
  background: var(--blue);
  animation: blink 1s step-end infinite;
}

.combo-box .lbl {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.combo-hint {
  margin-left: 0;
}

.amount-wrap {
  margin-left: 50px;
}

.amount-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.amount-big {
  position: relative;
  min-height: 66px;
  margin-top: 6px;
  padding: 4px 0 6px;
  border-bottom: 2px solid #1b1f27;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.amount-big.active {
  border-color: var(--blue);
}

.amount-big.active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 34px;
  margin-left: 4px;
  vertical-align: -4px;
  background: var(--blue);
  animation: blink 1s step-end infinite;
}

.amount-unit {
  margin-left: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.amount-placeholder {
  color: #c3c9d2;
}

.amount-hint {
  margin-left: 0;
}

/* ------------------------------------------------------------------ */
/* Payment                                                            */
/* ------------------------------------------------------------------ */

.pay-summary {
  margin-left: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.pay-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px dashed #e3e7ed;
  font-size: 13px;
}

.pay-summary-line:last-child {
  border-bottom: 0;
  background: #f7f9fb;
}

.pay-summary-line span {
  color: var(--muted);
}

.pay-summary-line strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.pay-summary-line.ok strong {
  color: var(--green-dark);
}

.bill-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 50px;
}

.bill-note img {
  width: 34px;
  height: auto;
  border-radius: 4px;
}

.pay-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.pay-slot {
  position: relative;
  height: 108px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, #182235, #0d1420);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.5);
}

.pay-slot .slot {
  width: 126px;
  height: 11px;
  border-radius: 7px;
  background: #000;
  box-shadow:
    inset 0 3px 8px #000,
    0 0 0 3px #2d3a4f;
}

.pay-slot .bill {
  position: absolute;
  top: -44px;
  width: 94px;
  height: 48px;
  border-radius: 5px;
  background: linear-gradient(135deg, #2e7d32, #66bb6a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  animation: insert-bill 1.45s ease-in-out infinite;
}

@keyframes insert-bill {
  0%,
  100% {
    top: -44px;
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  68% {
    top: 52px;
    opacity: 1;
  }
  69%,
  99% {
    top: 52px;
    opacity: 0;
  }
}

.pay-lines {
  display: grid;
  gap: 5px;
}

.pay-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #f3f5f8;
  font-size: 12px;
}

.pay-line strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.bill-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.bill-btn {
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.bill-btn:hover {
  background: #eefaf3;
  border-color: var(--green);
}

.bill-btn.reset {
  color: var(--red);
}

.bill-btn.reset:hover {
  background: #fff1f2;
  border-color: var(--red);
}

/* ------------------------------------------------------------------ */
/* Confirmation summary                                               */
/* ------------------------------------------------------------------ */

.summary {
  margin-left: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fb;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px dashed #e1e5ea;
  font-size: 13px;
  line-height: 1.3;
}

.summary-row:last-of-type {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
  flex-shrink: 0;
}

.summary-row strong {
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 2px solid #1b1f27;
  font-size: 16px;
  font-weight: 700;
}

.summary-total strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.confirm-note {
  margin-left: 50px;
}

/* ------------------------------------------------------------------ */
/* Keypad & actions                                                   */
/* ------------------------------------------------------------------ */

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  align-content: start;
  padding-top: 2px;
}

.key {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 29px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 6px 0 var(--blue-dark),
    0 11px 18px rgba(0, 0, 0, 0.16);
  transition: transform 0.07s ease, box-shadow 0.07s ease, filter 0.12s ease;
}

.key:hover {
  filter: brightness(1.08);
}

.key:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--blue-dark);
}

.key-blank {
  background: #c9ced6;
  box-shadow:
    0 6px 0 #aeb4be,
    0 11px 18px rgba(0, 0, 0, 0.08);
  cursor: default;
}

.key-blank:hover {
  filter: none;
}

.key-clear {
  background: var(--yellow);
  color: #2a2a24;
  box-shadow:
    0 6px 0 #b6a64b,
    0 11px 18px rgba(0, 0, 0, 0.12);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 10px 0 8px;
  flex-shrink: 0;
}

.action {
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  padding: 0 10px;
  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.17);
  transition: transform 0.07s ease, box-shadow 0.07s ease, opacity 0.12s ease;
}

.action:hover {
  filter: brightness(1.05);
}

.action:active {
  transform: translateY(3px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.action.red {
  background: var(--red);
}

.action.green {
  background: var(--green);
}

.action[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.action[disabled]:hover {
  filter: none;
}

/* ------------------------------------------------------------------ */
/* Receipt                                                            */
/* ------------------------------------------------------------------ */

.receipt-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 24px 10px;
  background:
    radial-gradient(circle at 50% -10%, #ffffff 0, #f3f5f8 60%, #e9edf3 100%);
  overflow-y: auto;
}

.receipt-paper {
  width: min(430px, 100%);
  padding: 16px 20px 14px;
  border: 1px solid #d8dde4;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
  font-size: 12px;
}

.receipt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

.receipt-brand img {
  width: auto;
  height: 36px;
}

.receipt-brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.receipt-brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-title {
  margin: 12px 0 2px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.receipt-meta {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.receipt-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.receipt-table td {
  padding: 4px 0;
  border-bottom: 1px dotted #dfe3e8;
  vertical-align: top;
  font-size: 11.5px;
}

.receipt-table td:first-child {
  color: var(--muted);
  width: 42%;
}

.receipt-table td:last-child {
  text-align: right;
  font-weight: 600;
  word-break: break-word;
}

.receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 2px solid #111;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-total strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.receipt-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #e9f8ef;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.barcode {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
  height: 34px;
  margin-top: 10px;
}

.barcode i {
  display: block;
  background: #111;
}

.receipt-thanks {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.receipt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  padding-bottom: 4px;
}

.receipt-actions .action {
  width: 94px;
  height: 94px;
  font-size: 15px;
}

/* ------------------------------------------------------------------ */
/* Toast & modal                                                      */
/* ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: min(420px, calc(100vw - 40px));
  padding: 10px 16px;
  border-radius: 10px;
  background: #11151d;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(3px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(840px, 100%);
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef1f5;
  color: #333;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  background: #e2e7ee;
}

.modal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.modal th,
.modal td {
  padding: 8px 7px;
  border-bottom: 1px solid #e7eaef;
  text-align: left;
  white-space: nowrap;
}

.modal th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal .status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e9f8ef;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.error-inline {
  color: var(--red);
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Démonstration, aide et raccourcis                                  */
/* ------------------------------------------------------------------ */

.kiosk-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.foot-btn {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #d8dee8;
  padding: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-btn:hover {
  color: #fff;
  border-color: #fff;
}

.home-foot-actions,
.app-foot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff6e5;
  color: #6b4e00;
  font-size: 11px;
  line-height: 1.3;
}

.demo-strip .link {
  color: #8a5a00;
}

.demo-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--yellow);
  color: #2a2a24;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0 50px;
  padding: 7px 9px;
  border: 1px dashed #d7dde5;
  border-radius: 8px;
  background: #f8f9fb;
  font-size: 11px;
  color: var(--muted);
}

.demo-hint-label {
  font-weight: 600;
}

.demo-chip {
  border: 1px solid #cfd6df;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-chip:hover {
  border-color: var(--blue);
  background: #eef4fb;
}

.demo-note {
  margin: 6px 0 0 50px;
  color: #8a5a00;
  font-size: 10.5px;
  font-weight: 600;
}

.quick-picks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-chip {
  border: 1px solid #cfd6df;
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quick-chip:hover {
  border-color: var(--green);
  background: #eefaf3;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0 50px;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
}

.quick-action:hover {
  border-color: var(--blue);
  background: #eef4fb;
}

.pay-exact {
  display: block;
  width: calc(100% - 50px);
  margin: 10px 0 0 50px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--green-dark);
}

.pay-exact:hover {
  filter: brightness(1.05);
}

.pay-exact:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--green-dark);
}

.toast.success {
  background: var(--green-dark);
}

.toast.error {
  background: var(--red-dark);
}

.receipt-status {
  animation: success-pop 0.55s ease;
}

@keyframes success-pop {
  0% { transform: scale(0.86); opacity: 0.4; }
  55% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------------------ */
/* Modal d'aide                                                       */
/* ------------------------------------------------------------------ */

.help-card {
  width: min(760px, 100%);
}

.help-body {
  color: var(--ink);
}

.help-intro {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  background: #fff9ea;
  color: #5c4a12;
  font-size: 12.5px;
  line-height: 1.45;
}

.help-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  background: #fafbfd;
}

.help-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.help-steps strong {
  display: block;
  font-size: 12.5px;
}

.help-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.help-block {
  margin-top: 14px;
}

.help-block h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.help-table th,
.help-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eceff4;
  text-align: left;
  vertical-align: top;
}

.help-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
}

.help-table td {
  font-variant-numeric: tabular-nums;
}

.help-hint,
.help-foot {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.help-keys {
  margin: 0;
  color: #3c4350;
  font-size: 12px;
  line-height: 1.9;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #cfd6df;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.help-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.help-start {
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--green-dark);
}

.help-start:hover {
  filter: brightness(1.05);
}

.help-reset {
  border: 1px solid #d7dde5;
  border-radius: 9px;
  background: #fff;
  color: var(--red);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
}

.help-reset:hover {
  border-color: var(--red);
  background: #fff5f6;
}

/* ------------------------------------------------------------------ */
/* Upper screen scenes                                                */
/* ------------------------------------------------------------------ */

.upper-brand {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.upper-brand img {
  width: auto;
  height: 38px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.upper-brand span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.upper-ticker {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 9px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-home {
  background: radial-gradient(circle at 18% 18%, #ff5252 0, #d6001a 36%, #7a000c 100%);
}

.scene-home .orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float-orb 7s ease-in-out infinite;
}

.orb-1 {
  width: 230px;
  height: 230px;
  left: -70px;
  top: -50px;
}

.orb-2 {
  width: 140px;
  height: 140px;
  right: 8%;
  top: 16%;
  animation-delay: -2.2s;
}

.orb-3 {
  width: 340px;
  height: 340px;
  right: -110px;
  bottom: -140px;
  animation-delay: -4.4s;
}

@keyframes float-orb {
  50% {
    transform: translateY(-18px) scale(1.04);
  }
}

.home-copy {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 54%;
}

.home-logo {
  width: auto;
  height: 72px;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.home-copy h2 {
  margin: 0 0 9px;
  font-size: 43px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.home-copy p {
  margin: 0 0 17px;
  font-size: 16px;
  opacity: 0.9;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-pills span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.home-phone {
  position: absolute;
  right: 9%;
  top: 50%;
  width: 184px;
  height: 320px;
  border: 5px solid #2a2a2a;
  border-radius: 28px;
  background: #111;
  transform: translateY(-50%) rotate(-6deg);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.45);
}

.home-phone::before {
  content: "";
  position: absolute;
  inset: 13px 9px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, #eef0f2);
}

.home-phone::after {
  content: "PMUG";
  position: absolute;
  left: 0;
  right: 0;
  top: 43%;
  color: var(--red);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-align: center;
}

/* Canal+ */

.scene-canal {
  background: linear-gradient(135deg, #04060b, #0b1430 55%, #152a5e);
}

.canal-copy {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 48%;
}

.canal-logo {
  width: auto;
  height: 62px;
  padding: 9px 13px;
  border-radius: 6px;
  background: #000;
}

.canal-copy h2 {
  margin: 15px 0 7px;
  font-size: 37px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.canal-copy p {
  margin: 0;
  font-size: 15px;
  opacity: 0.8;
}

.canal-tv {
  position: absolute;
  right: 7%;
  top: 50%;
  width: 38%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 8px solid #1b1b1b;
  border-radius: 14px;
  background: #0a0a0a;
  transform: translateY(-50%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.tv-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #1e3c72, #2a5298 42%, #e50012 140%);
}

.tv-logo {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.tv-grid {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tv-grid span {
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

/* SEEG */

.scene-seeg {
  background: radial-gradient(circle at 72% 18%, #2b7fc4 0, #0b4e8a 44%, #05243f 100%);
}

.seeg-copy {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 48%;
}

.seeg-copy h2 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.seeg-copy p {
  margin: 0 0 14px;
  font-size: 15px;
  opacity: 0.82;
}

.seeg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.seeg-badge img {
  width: auto;
  height: 24px;
}

.seeg-art {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 44%;
  height: 88%;
}

.pylon {
  fill: none;
  stroke: #cfe8ff;
  stroke-width: 4.5;
  stroke-linecap: round;
  opacity: 0.9;
}

.bolt {
  fill: var(--yellow);
  filter: drop-shadow(0 0 10px rgba(212, 196, 99, 0.85));
  animation: bolt-pulse 2.4s ease-in-out infinite;
}

@keyframes bolt-pulse {
  0%,
  100% {
    opacity: 0.28;
  }
  42%,
  56% {
    opacity: 1;
  }
}

/* Credit */

.scene-credit {
  background: radial-gradient(circle at 24% 18%, #ff6262 0, #d6001a 40%, #7a000c 100%);
}

.credit-copy {
  position: absolute;
  left: 7%;
  top: 46%;
  max-width: 48%;
  transform: translateY(-50%);
}

.credit-copy h2 {
  margin: 0 0 8px;
  font-size: 39px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.credit-copy p {
  margin: 0;
  font-size: 15px;
  opacity: 0.88;
}

.credit-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.credit-logos img {
  width: auto;
  height: 38px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.phonepair {
  position: absolute;
  right: 7%;
  top: 50%;
  width: 38%;
  height: 74%;
  transform: translateY(-50%);
}

.phone {
  position: absolute;
  width: 118px;
  height: 224px;
  border: 4px solid #333;
  border-radius: 21px;
  background: #111;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.38);
}

.phone.p1 {
  left: 3%;
  top: 8%;
  transform: rotate(-8deg);
}

.phone.p2 {
  right: 3%;
  bottom: 5%;
  transform: rotate(7deg);
}

.phone .scr {
  position: absolute;
  inset: 10px 6px;
  border-radius: 13px;
  background: #fff;
}

.phone .scr::before {
  content: "Recharge";
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.phone .scr::after {
  content: "+ 1 000 FCFA";
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.bubble {
  position: absolute;
  padding: 9px 13px;
  border-radius: 15px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  animation: bubble-float 3.2s ease-in-out infinite;
}

.bubble.b1 {
  left: 16%;
  top: 12%;
}

.bubble.b2 {
  right: 4%;
  top: 38%;
  animation-delay: -1.1s;
}

.bubble.b3 {
  left: 25%;
  bottom: 10%;
  animation-delay: -2.2s;
}

@keyframes bubble-float {
  50% {
    transform: translateY(-9px);
  }
}

/* Mobile money */

.scene-money {
  background: radial-gradient(circle at 28% 18%, #16c878 0, #008a4a 45%, #004227 100%);
}

.money-copy {
  position: absolute;
  left: 7%;
  top: 46%;
  max-width: 50%;
  transform: translateY(-50%);
}

.money-copy h2 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.money-copy p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.money-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.money-logos img {
  width: auto;
  height: 38px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.money-phone {
  position: absolute;
  right: 13%;
  top: 50%;
  width: 158px;
  height: 290px;
  border: 5px solid #1e1e1e;
  border-radius: 26px;
  background: #111;
  transform: translateY(-50%) rotate(5deg);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.42);
}

.money-phone::before {
  content: "";
  position: absolute;
  inset: 12px 8px;
  border-radius: 17px;
  background: linear-gradient(160deg, #fff, #eef0f2);
}

.money-phone::after {
  content: "Mobile\A Money";
  white-space: pre;
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  color: var(--green-dark);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.coin {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe27a, #d4a017);
  color: #6b4b00;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  animation: coin-float 4s ease-in-out infinite;
}

.coin.c1 {
  right: 7%;
  top: 14%;
}

.coin.c2 {
  right: 30%;
  top: 30%;
  animation-delay: -1.2s;
}

.coin.c3 {
  right: 5%;
  bottom: 18%;
  animation-delay: -2.4s;
}

@keyframes coin-float {
  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}

/* PMUG race */

.scene-pmug {
  background: linear-gradient(180deg, #06281c 0, #0a3a28 52%, #115336 100%);
}

.pmug-copy {
  position: absolute;
  left: 7%;
  top: 16%;
  max-width: 36%;
}

.pmug-copy h2 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.pmug-copy p {
  margin: 0;
  font-size: 14px;
  opacity: 0.82;
}

.pmug-copy img {
  width: auto;
  height: 46px;
  margin-bottom: 10px;
}

.track {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 44%;
  overflow: hidden;
  border: 4px solid #5a4220;
  border-radius: 16px;
  background: #3b2a14;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

.track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 51px,
    rgba(255, 255, 255, 0.12) 51px 53px
  );
}

.track::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 0;
  bottom: 0;
  width: 13px;
  background: repeating-linear-gradient(
    180deg,
    #fff 0 9px,
    #111 9px 18px
  );
  opacity: 0.9;
}

.lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 52px;
}

.lane:nth-child(1) {
  top: 5%;
}

.lane:nth-child(2) {
  top: 24%;
}

.lane:nth-child(3) {
  top: 43%;
}

.lane:nth-child(4) {
  top: 62%;
}

.lane:nth-child(5) {
  top: 81%;
}

.horse {
  position: absolute;
  left: -12%;
  width: 82px;
  height: 56px;
  color: #fff;
  animation: race 4.8s linear infinite;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.horse svg {
  width: 100%;
  height: 100%;
}

@keyframes race {
  0% {
    left: -12%;
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    left: 88%;
    transform: translateY(0);
  }
}

/* Payment scene */

.scene-payment {
  background: radial-gradient(circle at 24% 18%, #1d3055 0, #0a1222 58%, #05080f 100%);
}

.pay-copy {
  position: absolute;
  left: 7%;
  top: 50%;
  max-width: 52%;
  transform: translateY(-50%);
}

.pay-copy h2 {
  margin: 0 0 5px;
  font-size: 39px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pay-copy .pay-amount {
  margin: 6px 0 8px;
  color: #6ee7a8;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pay-copy .pay-amount small {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.pay-copy p {
  margin: 0;
  font-size: 15px;
  opacity: 0.8;
}

.pay-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 36%;
  height: 64%;
  transform: translateY(-50%);
}

.big-slot {
  position: absolute;
  left: 50%;
  bottom: 17%;
  width: 72%;
  height: 17px;
  border-radius: 10px;
  background: #000;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 6px #2a3446,
    inset 0 4px 10px #000;
}

.big-bill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 74%;
  height: 108px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2e7d32, #66bb6a 62%, #a5d6a7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: big-bill 2.7s ease-in-out infinite;
}

@keyframes big-bill {
  0%,
  100% {
    top: 0;
    opacity: 1;
  }
  68% {
    top: 53%;
    opacity: 1;
  }
  69%,
  99% {
    top: 53%;
    opacity: 0;
  }
}

/* Confirmation scene */

.scene-confirm {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, #12bd72 0, #008a4a 46%, #004227 100%);
  text-align: center;
}

.confirm-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.check-ring {
  width: 148px;
  height: 148px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.06);
  animation: check-pop 0.55s ease-out;
}

.check-ring svg {
  width: 82px;
  height: 82px;
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes check-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scene-confirm h2 {
  margin: 20px 0 5px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.scene-confirm p {
  margin: 0;
  font-size: 15px;
  opacity: 0.86;
}

/* Receipt scene */

.scene-receipt {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 28%, #2b7fc4 0, #0b4e8a 46%, #05243f 100%);
}

.receipt-card {
  width: 32%;
  min-width: 260px;
  padding: 18px 20px;
  border-radius: 11px;
  background: #fff;
  color: #111;
  transform: rotate(-2deg);
  box-shadow: 0 34px 66px rgba(0, 0, 0, 0.45);
}

.receipt-card .rc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111;
}

.receipt-card .rc-brand img {
  width: auto;
  height: 30px;
}

.receipt-card .rc-brand strong {
  font-size: 13px;
}

.receipt-card h3 {
  margin: 9px 0 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.receipt-card .rc-meta {
  color: #6b7280;
  font-size: 8.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.receipt-card .rc-lines {
  margin-top: 9px;
  font-size: 9px;
}

.receipt-card .rc-lines div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted #e1e5ea;
}

.receipt-card .rc-lines span {
  color: #6b7280;
}

.receipt-card .rc-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 2px solid #111;
  font-size: 11px;
  font-weight: 800;
}

.receipt-card .rc-check {
  display: grid;
  place-items: center;
  margin-top: 7px;
  padding: 5px;
  border-radius: 5px;
  background: #e9f8ef;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Standalone upper screen                                            */
/* ------------------------------------------------------------------ */

.screen-only {
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.screen-frame {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.upper-screen.full {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.screen-live {
  position: fixed;
  right: 16px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37e28b;
  box-shadow: 0 0 10px rgba(55, 226, 139, 0.8);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  50% {
    opacity: 0.35;
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .stage {
    display: block;
    min-height: 0;
    padding: 10px;
    overflow: visible;
  }

  .kiosk {
    width: 100%;
    transform: none !important;
  }

  .kiosk-shell {
    padding: 10px;
    border-radius: 18px;
  }

  .kiosk-top,
  .kiosk-body {
    padding-left: 0;
    padding-right: 0;
  }

  .upper-screen {
    border-width: 4px;
  }

  .lower-screen {
    width: 100%;
    min-height: 640px;
    aspect-ratio: auto;
    border-width: 4px;
  }

  .app-main {
    grid-template-columns: 1fr;
    padding: 4px 16px 0;
    gap: 8px;
  }

  .flow {
    order: 1;
  }

  .pad {
    order: 2;
  }

  .flow-scroll {
    overflow: visible;
  }

  .keypad {
    grid-template-columns: repeat(3, 64px);
    justify-content: center;
    gap: 9px;
    padding: 6px 0;
  }

  .key {
    font-size: 24px;
  }

  .actions {
    gap: 20px;
    padding: 8px 0;
  }

  .action {
    width: 96px;
    height: 96px;
    font-size: 16px;
  }

  .app-head {
    padding: 14px 16px 2px;
  }

  .app-title {
    font-size: 22px;
  }

  .head-logos img {
    height: 36px;
  }

  .app-foot {
    padding: 7px 16px 9px;
  }

  .home {
    padding: 14px 16px;
  }

  .home-title h1 {
    font-size: 24px;
  }

  .home-pmug {
    height: 34px;
  }

  .formula-grid,
  .bet-grid,
  .combo-wrap,
  .amount-wrap,
  .pay-summary,
  .summary,
  .input-wrap,
  .error,
  .bill-note,
  .demo-hint,
  .demo-note,
  .quick-action,
  .pay-exact {
    margin-left: 0;
  }

  .pay-exact {
    width: 100%;
  }

  .help-steps {
    grid-template-columns: 1fr;
  }

  .kiosk-foot {
    flex-wrap: wrap;
  }

  .kiosk-links {
    flex-wrap: wrap;
  }

  .step p {
    font-size: 16px;
  }

  .summary,
  .pay-summary {
    margin-left: 0;
  }

  .receipt-screen {
    padding: 12px 12px 8px;
  }

  .receipt-paper {
    width: 100%;
  }

  .pay-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 9px;
  }

  .pay-slot {
    grid-column: 1 / -1;
    height: 96px;
  }

  .bill-buttons {
    align-content: start;
  }
}

@media (max-width: 560px) {
  .home-title h1 {
    font-size: 21px;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 132px;
  }

  .app-head {
    flex-direction: column;
    gap: 7px;
  }

  .head-logos img {
    height: 34px;
  }

  .app-title {
    font-size: 20px;
  }

  .step {
    gap: 10px;
  }

  .step .badge {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .step p {
    font-size: 15px;
    padding-top: 4px;
  }

  .amount-big {
    font-size: 34px;
  }

  .formula-grid {
    grid-template-columns: 1fr;
  }

  .bet-grid {
    grid-template-columns: 1fr 1fr;
  }

  .combo-box {
    width: 54px;
    height: 54px;
    font-size: 21px;
  }

  .pay-panel {
    display: flex;
  }

  .receipt-actions {
    flex-wrap: wrap;
  }

  .home-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .help-actions {
    flex-wrap: wrap;
  }

  .help-card {
    padding: 16px;
  }

  .upper-ticker {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Print                                                              */
/* ------------------------------------------------------------------ */

@media print {
  @page {
    margin: 4mm;
  }

  body {
    background: #fff !important;
  }

  .stage {
    display: block !important;
    padding: 0 !important;
  }

  .kiosk,
  .kiosk-shell {
    width: auto !important;
    transform: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .kiosk-top,
  .kiosk-foot,
  .app-head,
  .app-foot,
  .receipt-actions,
  .toast,
  .modal {
    display: none !important;
  }

  .kiosk-body {
    padding: 0 !important;
  }

  .lower-screen {
    width: 80mm !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .receipt-screen {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .receipt-paper {
    width: 80mm !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
