/* ==========================================================================
   1xbet ng login - mobile layer stylesheet
   File   : css/mobile-c2eb4c-layers.css
   Prefix : cc2eb4-  (all classes and CSS variables use this prefix)
   Canvas : 320-430px phone frame, centered on wide viewports
   Palette: #FFB347 amber / #333333 ink / #FAFAD2 cream / #778899 slate / #5D5D5D steel
   Voice  : poster headlines over narrow body text, mixed corner radii,
            image tiles with bottom name bars, compact metric-explainer rhythm
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --cc2eb4-ink: #333333;
  --cc2eb4-ink-deep: #262626;
  --cc2eb4-ink-raise: #2e2e2e;
  --cc2eb4-ink-tile: #2b2b2b;
  --cc2eb4-ink-rail: #232323;
  --cc2eb4-amber: #ffb347;
  --cc2eb4-amber-hot: #ffc76e;
  --cc2eb4-amber-ink: #3a2a10;
  --cc2eb4-cream: #fafad2;
  --cc2eb4-paper: #eeeade;
  --cc2eb4-mute: #c9c8b4;
  --cc2eb4-slate: #778899;
  --cc2eb4-steel: #5d5d5d;
  --cc2eb4-line: rgba(250, 250, 210, 0.14);
  --cc2eb4-line-amber: rgba(255, 179, 71, 0.35);
  --cc2eb4-font-poster: "Haettenschweiler", Impact, "Franklin Gothic Bold", "Arial Narrow Bold", "Arial Black", sans-serif;
  --cc2eb4-font-narrow: "Arial Narrow", "Helvetica Neue", "Liberation Sans Narrow", Roboto, Arial, sans-serif;
  --cc2eb4-r-top: 14px;
  --cc2eb4-r-low: 5px;
  --cc2eb4-head-h: 58px;
  --cc2eb4-rail-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #1a1a1a;
  color: var(--cc2eb4-paper);
  font-family: var(--cc2eb4-font-narrow);
  font-size: 15px;
  line-height: 1.52;
  letter-spacing: 0.1px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cc2eb4-amber);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cc2eb4-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--cc2eb4-amber);
  color: #333333;
}

/* Phone frame: stays a 430px column even on desktop-wide screens */
.cc2eb4-shell {
  position: relative;
  width: 100%;
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cc2eb4-ink);
  overflow-x: clip;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
}

.cc2eb4-main {
  display: block;
  padding: calc(var(--cc2eb4-head-h) + 14px) 13px calc(var(--cc2eb4-rail-h) + 58px);
}

.cc2eb4-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Fixed functional header (edge-aligned)
   -------------------------------------------------------------------------- */
.cc2eb4-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 80;
  background: linear-gradient(180deg, #2c2c2c 0%, var(--cc2eb4-ink) 100%);
  border-bottom: 1px solid var(--cc2eb4-line);
}

.cc2eb4-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--cc2eb4-head-h);
  padding: 8px 12px;
}

/* Brand zone: real logo image + site name only */
.cc2eb4-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 44px;
  color: var(--cc2eb4-cream);
}

.cc2eb4-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px 10px 4px 4px;
  border: 1px solid var(--cc2eb4-line-amber);
  object-fit: cover;
  flex: 0 0 auto;
}

.cc2eb4-brand-name {
  font-family: var(--cc2eb4-font-poster);
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--cc2eb4-cream);
  white-space: nowrap;
}

.cc2eb4-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Compact dual action group */
.cc2eb4-btn {
  font-family: var(--cc2eb4-font-narrow);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 9px 9px 4px 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.cc2eb4-btn:active {
  transform: translateY(1px) scale(0.97);
}

.cc2eb4-btn-reg {
  background: var(--cc2eb4-amber);
  color: #33280f;
}

.cc2eb4-btn-reg:hover {
  background: var(--cc2eb4-amber-hot);
}

.cc2eb4-btn-log {
  background: transparent;
  color: var(--cc2eb4-cream);
  border-color: var(--cc2eb4-slate);
}

.cc2eb4-btn-log:hover {
  border-color: var(--cc2eb4-amber);
  color: var(--cc2eb4-amber);
}

/* Menu trigger: 44px square, drawn lines morph into a cross */
.cc2eb4-burger {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 10px;
  cursor: pointer;
}

.cc2eb4-burger-box {
  position: relative;
  width: 18px;
  height: 12px;
}

.cc2eb4-burger-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cc2eb4-cream);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.cc2eb4-burger-box span:nth-child(1) {
  top: 0;
}

.cc2eb4-burger-box span:nth-child(2) {
  top: 5px;
}

.cc2eb4-burger-box span:nth-child(3) {
  top: 10px;
}

.cc2eb4-burger.is-open .cc2eb4-burger-box span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.cc2eb4-burger.is-open .cc2eb4-burger-box span:nth-child(2) {
  opacity: 0;
}

.cc2eb4-burger.is-open .cc2eb4-burger-box span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Compact route panel (dropdown menu)
   -------------------------------------------------------------------------- */
.cc2eb4-routes {
  display: none;
  padding: 10px 12px 14px;
  background: #292929;
  border-bottom: 3px solid var(--cc2eb4-amber);
}

.cc2eb4-routes.is-open {
  display: block;
  animation: cc2eb4-routes-drop 0.24s ease both;
}

@keyframes cc2eb4-routes-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cc2eb4-routes-group {
  margin: 0 0 10px;
}

.cc2eb4-routes-cap {
  margin: 0 0 6px;
  font-family: var(--cc2eb4-font-narrow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cc2eb4-slate);
}

.cc2eb4-routes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.cc2eb4-route {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--cc2eb4-paper);
  background: var(--cc2eb4-ink-raise);
  border: 1px solid var(--cc2eb4-line);
  border-radius: 9px 9px 4px 4px;
  transition: background 0.18s ease, color 0.18s ease;
}

.cc2eb4-route:hover {
  background: #353535;
  color: var(--cc2eb4-amber);
}

.cc2eb4-route-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cc2eb4-steel);
  transition: background 0.18s ease, transform 0.18s ease;
}

.cc2eb4-route:hover .cc2eb4-route-dot {
  background: var(--cc2eb4-amber);
  transform: scale(1.3);
}

.cc2eb4-route.is-here {
  background: var(--cc2eb4-amber-ink);
  border-color: var(--cc2eb4-line-amber);
  color: var(--cc2eb4-amber);
}

/* Scrim under the open panel */
.cc2eb4-scrim {
  position: fixed;
  top: var(--cc2eb4-head-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  bottom: 0;
  z-index: 70;
  background: rgba(12, 12, 12, 0.62);
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Intro block and poster H1
   -------------------------------------------------------------------------- */
.cc2eb4-intro {
  margin: 4px 0 16px;
}

.cc2eb4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cc2eb4-amber);
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 999px;
}

.cc2eb4-kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cc2eb4-amber);
}

.cc2eb4-title {
  margin: 0 0 10px;
  font-family: var(--cc2eb4-font-poster);
  font-weight: 400;
  font-size: 33px;
  line-height: 1.04;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cc2eb4-cream);
}

.cc2eb4-title em {
  font-style: normal;
  color: var(--cc2eb4-amber);
}

.cc2eb4-lede {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--cc2eb4-paper);
}

.cc2eb4-lede + .cc2eb4-lede {
  margin-bottom: 0;
}

/* Compact metric chips */
.cc2eb4-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 0;
}

.cc2eb4-chip {
  padding: 8px 4px 7px;
  text-align: center;
  background: var(--cc2eb4-ink-raise);
  border: 1px solid var(--cc2eb4-line);
  border-radius: 12px 12px 4px 4px;
}

.cc2eb4-chip b {
  display: block;
  font-family: var(--cc2eb4-font-poster);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--cc2eb4-amber);
  letter-spacing: 0.5px;
}

.cc2eb4-chip span {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--cc2eb4-slate);
}

/* --------------------------------------------------------------------------
   6. Direct answer slab
   -------------------------------------------------------------------------- */
.cc2eb4-answer {
  margin: 16px 0;
  padding: 13px 14px 14px;
  background: linear-gradient(160deg, #303030 0%, #2a2a2a 100%);
  border: 1px solid var(--cc2eb4-line-amber);
  border-left: 4px solid var(--cc2eb4-amber);
  border-radius: 4px 14px 14px 4px;
}

.cc2eb4-answer-tag {
  display: block;
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cc2eb4-amber);
}

.cc2eb4-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cc2eb4-paper);
}

/* --------------------------------------------------------------------------
   7. Banner carousel
   -------------------------------------------------------------------------- */
.cc2eb4-stage {
  position: relative;
  margin: 16px 0 6px;
  border-radius: 16px 16px var(--cc2eb4-r-low) var(--cc2eb4-r-low);
  overflow: hidden;
  border: 1px solid var(--cc2eb4-line);
  background: var(--cc2eb4-ink-deep);
}

.cc2eb4-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.3, 1);
}

.cc2eb4-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  cursor: pointer;
}

.cc2eb4-slide img {
  width: 100%;
  height: 184px;
  object-fit: cover;
}

.cc2eb4-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.92) 78%);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cc2eb4-cream);
}

.cc2eb4-slide-cap small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: var(--cc2eb4-amber);
  text-transform: uppercase;
}

.cc2eb4-dots {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.cc2eb4-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--cc2eb4-cream);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cc2eb4-dot.is-on {
  background: var(--cc2eb4-amber);
  border-color: var(--cc2eb4-amber);
  transform: scale(1.15);
}

.cc2eb4-arrows {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.cc2eb4-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cc2eb4-font-poster);
  font-size: 15px;
  line-height: 1;
  color: var(--cc2eb4-cream);
  background: rgba(24, 24, 24, 0.72);
  border: 1px solid var(--cc2eb4-line);
  border-radius: 9px 9px 4px 4px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.cc2eb4-arrow:hover {
  background: rgba(255, 179, 71, 0.85);
  color: #33280f;
}

.cc2eb4-arrow:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   8. Section shells and game grids
   -------------------------------------------------------------------------- */
.cc2eb4-sec {
  margin: 22px 0 0;
}

.cc2eb4-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding-left: 9px;
  position: relative;
}

.cc2eb4-sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cc2eb4-amber) 0%, var(--cc2eb4-steel) 130%);
}

.cc2eb4-sec-title {
  margin: 0;
  font-family: var(--cc2eb4-font-poster);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--cc2eb4-cream);
}

.cc2eb4-count {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cc2eb4-amber);
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 999px;
  white-space: nowrap;
}

.cc2eb4-sec-note {
  margin: 6px 0 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cc2eb4-mute);
}

/* Game grid: 4 stable columns from 320px up to 430px */
.cc2eb4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 7px;
}

/* Tile: square artwork with a bottom name bar */
.cc2eb4-tile {
  display: block;
  background: var(--cc2eb4-ink-tile);
  border: 1px solid rgba(255, 179, 71, 0.09);
  border-radius: 12px 12px var(--cc2eb4-r-low) var(--cc2eb4-r-low);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.16s ease;
}

.cc2eb4-tile:hover {
  border-color: var(--cc2eb4-line-amber);
}

.cc2eb4-tile:active {
  transform: translateY(2px);
}

.cc2eb4-tile-frame {
  display: block;
  aspect-ratio: 1 / 1;
  background: #202020;
}

.cc2eb4-tile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.cc2eb4-tile:hover .cc2eb4-tile-frame img,
.cc2eb4-tile:active .cc2eb4-tile-frame img {
  transform: scale(1.07);
}

.cc2eb4-tile-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 30px;
  padding: 4px 4px 5px;
  border-top: 1px solid rgba(255, 179, 71, 0.14);
  background: #242424;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  color: var(--cc2eb4-cream);
}

/* --------------------------------------------------------------------------
   9. Player voices (testimonials)
   -------------------------------------------------------------------------- */
.cc2eb4-voices {
  display: grid;
  gap: 9px;
}

.cc2eb4-voice {
  padding: 11px 12px 10px;
  background: var(--cc2eb4-ink-raise);
  border: 1px solid var(--cc2eb4-line);
  border-left: 3px solid var(--cc2eb4-amber);
  border-radius: 4px 13px 13px 4px;
}

.cc2eb4-voice-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.cc2eb4-voice-ava {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cc2eb4-font-poster);
  font-size: 14px;
  color: #33280f;
  background: var(--cc2eb4-amber);
  border-radius: 9px 9px 3px 3px;
}

.cc2eb4-voice-who {
  font-size: 11.5px;
  line-height: 1.25;
}

.cc2eb4-voice-who b {
  display: block;
  color: var(--cc2eb4-cream);
  letter-spacing: 0.3px;
}

.cc2eb4-voice-who span {
  color: var(--cc2eb4-slate);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.cc2eb4-voice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cc2eb4-paper);
}

/* --------------------------------------------------------------------------
   10. Habit list (tricks)
   -------------------------------------------------------------------------- */
.cc2eb4-habits {
  display: grid;
  gap: 8px;
  counter-reset: cc2eb4-habit;
}

.cc2eb4-habit {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 11px;
  background: var(--cc2eb4-ink-raise);
  border: 1px solid var(--cc2eb4-line);
  border-radius: 13px 13px 4px 4px;
}

.cc2eb4-habit-no {
  counter-increment: cc2eb4-habit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--cc2eb4-font-poster);
  font-size: 16px;
  color: var(--cc2eb4-amber);
  background: #242424;
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 10px 10px 3px 3px;
}

.cc2eb4-habit-no::before {
  content: counter(cc2eb4-habit, decimal-leading-zero);
}

.cc2eb4-habit b {
  display: block;
  margin: 0 0 3px;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--cc2eb4-cream);
}

.cc2eb4-habit p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--cc2eb4-mute);
}

/* --------------------------------------------------------------------------
   11. Metric rows (compact indicator + explanation rhythm)
   -------------------------------------------------------------------------- */
.cc2eb4-facts {
  display: grid;
  gap: 7px;
}

.cc2eb4-fact {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  background: #2b2b2b;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 4px 12px 12px 4px;
}

.cc2eb4-fact b {
  font-family: var(--cc2eb4-font-poster);
  font-weight: 400;
  font-size: 25px;
  line-height: 1;
  text-align: center;
  color: var(--cc2eb4-amber);
  border-right: 1px dashed var(--cc2eb4-line-amber);
  padding-right: 8px;
}

.cc2eb4-fact span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--cc2eb4-paper);
}

/* --------------------------------------------------------------------------
   12. Dual-button CTA slab
   -------------------------------------------------------------------------- */
.cc2eb4-cta {
  margin: 22px 0 4px;
  padding: 15px 14px 16px;
  text-align: center;
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(255, 179, 71, 0.16) 0%, rgba(255, 179, 71, 0) 62%),
    #2c2c2c;
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 18px 18px 6px 6px;
}

.cc2eb4-cta-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cc2eb4-paper);
}

.cc2eb4-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.cc2eb4-duo .cc2eb4-btn {
  min-height: 46px;
  font-size: 13.5px;
}

.cc2eb4-cta-fine {
  display: block;
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.7px;
  color: var(--cc2eb4-slate);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   13. Extended footer (brand > directory > promo shortcuts > conditional note)
   -------------------------------------------------------------------------- */
.cc2eb4-ext {
  margin: 26px -13px 0;
  padding: 16px 13px 14px;
  background: #2a2a2a;
  border-top: 1px dashed var(--cc2eb4-line-amber);
}

.cc2eb4-ext-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--cc2eb4-slate);
}

.cc2eb4-ext-brand {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.52;
  color: var(--cc2eb4-mute);
}

.cc2eb4-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 16px;
}

.cc2eb4-dir a {
  display: block;
  min-height: 44px;
  padding: 7px 9px;
  background: #313131;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 10px 10px 4px 4px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.cc2eb4-dir a:hover {
  background: #383838;
  border-color: var(--cc2eb4-line-amber);
}

.cc2eb4-dir b {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: var(--cc2eb4-cream);
}

.cc2eb4-dir span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--cc2eb4-slate);
}

/* Promo shortcut rail: horizontal, thumb-scrollable */
.cc2eb4-shorts {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 2px 1px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.cc2eb4-short {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  scroll-snap-align: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--cc2eb4-cream);
  background: linear-gradient(150deg, #8a5d1d 0%, #5d431a 100%);
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.18s ease;
}

.cc2eb4-short:hover {
  filter: brightness(1.18);
}

.cc2eb4-short:active {
  transform: scale(0.96);
}

.cc2eb4-short svg {
  flex: 0 0 auto;
}

.cc2eb4-ext-note {
  margin: 0;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cc2eb4-slate);
  background: #242424;
  border-left: 3px solid var(--cc2eb4-steel);
  border-radius: 3px 10px 10px 3px;
}

/* --------------------------------------------------------------------------
   14. Common footer + bottom navigation rail
   -------------------------------------------------------------------------- */
.cc2eb4-foot {
  margin: 14px -13px 0;
  padding: 12px 13px 8px;
  text-align: center;
  background: var(--cc2eb4-ink-rail);
  border-top: 1px solid var(--cc2eb4-line);
}

.cc2eb4-foot p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--cc2eb4-slate);
}

/* Full-width rail pinned to the bottom of the phone canvas */
.cc2eb4-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: var(--cc2eb4-ink-rail);
  border-top: 1px solid var(--cc2eb4-line-amber);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cc2eb4-rail-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: var(--cc2eb4-rail-h);
}

/* Sliding indicator: amber support block that travels between slots */
.cc2eb4-rail-ind {
  position: absolute;
  top: 5px;
  left: 4%;
  width: 92%;
  height: calc(var(--cc2eb4-rail-h) - 12px);
  max-width: 74px;
  border-radius: 12px 12px 7px 7px;
  background: var(--cc2eb4-amber);
  transition: transform 0.28s cubic-bezier(0.4, 1.2, 0.4, 1);
  will-change: transform;
}

.cc2eb4-rail-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--cc2eb4-slate);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cc2eb4-rail-item svg {
  width: 21px;
  height: 21px;
  fill: var(--cc2eb4-slate);
  transition: fill 0.2s ease, transform 0.2s ease;
}

.cc2eb4-rail-item span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--cc2eb4-slate);
  transition: color 0.2s ease;
}

.cc2eb4-rail-item:active svg {
  transform: scale(0.88) translateY(1px);
}

.cc2eb4-rail-item.is-on svg {
  fill: #33280f;
  transform: translateY(-1px);
}

.cc2eb4-rail-item.is-on span {
  color: #33280f;
}

/* --------------------------------------------------------------------------
   15. Wide-screen framing (canvas stays 430px and centered)
   -------------------------------------------------------------------------- */
@media (min-width: 431px) {
  body {
    background:
      radial-gradient(60% 40% at 50% 0%, #262626 0%, #1a1a1a 70%) no-repeat,
      #1a1a1a;
  }
}

/* Very narrow phones: shave display sizes, keep the 4-column grid intact */
@media (max-width: 354px) {
  .cc2eb4-title {
    font-size: 28px;
  }

  .cc2eb4-sec-title {
    font-size: 18px;
  }

  .cc2eb4-brand-name {
    font-size: 16.5px;
  }

  .cc2eb4-btn {
    padding: 8px 9px;
    font-size: 11.5px;
  }

  .cc2eb4-tile-name {
    font-size: 9px;
  }

  .cc2eb4-fact {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cc2eb4-track,
  .cc2eb4-rail-ind,
  .cc2eb4-tile-frame img,
  .cc2eb4-routes.is-open {
    transition: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   16. Help desk layouts: two distinct reading modes on the same phone canvas
   -------------------------------------------------------------------------- */
.cc2eb4-help-wrap {
  display: grid;
  gap: 13px;
}

.cc2eb4-help-hero {
  position: relative;
  padding: 15px 14px 16px;
  background: linear-gradient(145deg, #383838 0%, #262626 68%);
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 4px 20px 8px 20px;
  overflow: hidden;
}

.cc2eb4-help-hero::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -52px;
  top: -58px;
  border: 1px solid rgba(255, 179, 71, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 179, 71, 0.05), 0 0 0 28px rgba(255, 179, 71, 0.035);
  pointer-events: none;
}

.cc2eb4-help-hero .cc2eb4-title {
  max-width: 330px;
  font-size: 30px;
}

.cc2eb4-help-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.cc2eb4-help-stamp span {
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cc2eb4-amber);
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 3px 8px 8px 8px;
}

.cc2eb4-help-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc2eb4-help-index a {
  display: block;
  min-height: 47px;
  padding: 8px 9px;
  color: var(--cc2eb4-paper);
  background: #292929;
  border-left: 2px solid var(--cc2eb4-steel);
  border-radius: 3px 10px 10px 3px;
  font-size: 11.5px;
  line-height: 1.25;
}

.cc2eb4-help-index a:hover {
  border-left-color: var(--cc2eb4-amber);
  color: var(--cc2eb4-amber);
}

.cc2eb4-branch {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  background: #2b2b2b;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 15px 4px 15px 4px;
}

.cc2eb4-branch-mark {
  display: grid;
  place-items: center;
  min-height: 42px;
  font-family: var(--cc2eb4-font-poster);
  font-size: 20px;
  color: var(--cc2eb4-amber);
  background: #242424;
  border: 1px solid var(--cc2eb4-line-amber);
  border-radius: 12px 3px 12px 3px;
}

.cc2eb4-branch b,
.cc2eb4-signal b,
.cc2eb4-mistake b,
.cc2eb4-review-card b {
  display: block;
  margin: 0 0 3px;
  color: var(--cc2eb4-cream);
  font-size: 13px;
}

.cc2eb4-branch p,
.cc2eb4-signal p,
.cc2eb4-mistake p,
.cc2eb4-review-card p {
  margin: 0;
  color: var(--cc2eb4-mute);
  font-size: 12.5px;
  line-height: 1.5;
}

.cc2eb4-signal {
  padding: 11px 12px;
  background: #2a2a2a;
  border-top: 3px solid var(--cc2eb4-steel);
  border-radius: 5px 5px 15px 15px;
}

.cc2eb4-signal[data-tone="amber"] {
  border-top-color: var(--cc2eb4-amber);
}

.cc2eb4-signal code {
  color: var(--cc2eb4-amber);
  font-family: var(--cc2eb4-font-narrow);
  font-weight: 700;
}

.cc2eb4-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.cc2eb4-help-actions .cc2eb4-btn {
  min-height: 44px;
  flex: 1 1 135px;
}

.cc2eb4-pay-grid {
  display: grid;
  gap: 8px;
}

.cc2eb4-pay-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  background: linear-gradient(90deg, #303030 0%, #282828 100%);
  border: 1px solid var(--cc2eb4-line);
  border-radius: 3px 13px 3px 13px;
}

.cc2eb4-pay-row strong {
  display: block;
  color: var(--cc2eb4-amber);
  font-family: var(--cc2eb4-font-poster);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.1;
}

.cc2eb4-pay-row span {
  color: var(--cc2eb4-paper);
  font-size: 12px;
  line-height: 1.45;
}

.cc2eb4-mistakes {
  display: grid;
  gap: 8px;
}

.cc2eb4-mistake {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  background: #282828;
  border-right: 3px solid var(--cc2eb4-steel);
  border-radius: 12px 3px 3px 12px;
}

.cc2eb4-mistake-mark {
  color: var(--cc2eb4-amber);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.cc2eb4-checks {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc2eb4-checks li {
  position: relative;
  padding: 9px 10px 9px 30px;
  color: var(--cc2eb4-paper);
  background: #2b2b2b;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 8px 8px 3px 3px;
  font-size: 12.5px;
  line-height: 1.45;
}

.cc2eb4-checks li::before {
  content: "+";
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--cc2eb4-amber);
  font-weight: 700;
}

.cc2eb4-takeaway {
  padding: 13px 14px;
  color: var(--cc2eb4-paper);
  background: repeating-linear-gradient(-45deg, #292929 0, #292929 8px, #2d2d2d 8px, #2d2d2d 16px);
  border: 1px dashed var(--cc2eb4-line-amber);
  border-radius: 18px 4px 18px 4px;
}

.cc2eb4-takeaway p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

/* Review page uses an evidence ledger rather than the tips page's branch flow. */
.cc2eb4-review-intro {
  display: grid;
  gap: 9px;
  padding: 14px;
  background: #292929;
  border-left: 5px solid var(--cc2eb4-amber);
  border-radius: 4px 17px 17px 4px;
}

.cc2eb4-review-intro p {
  margin: 0;
  color: var(--cc2eb4-paper);
  font-size: 13.5px;
  line-height: 1.55;
}

.cc2eb4-review-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.cc2eb4-review-meter span {
  padding: 8px 5px;
  text-align: center;
  color: var(--cc2eb4-cream);
  background: #202020;
  border-bottom: 2px solid var(--cc2eb4-amber);
  border-radius: 8px 8px 2px 2px;
  font-size: 10px;
  line-height: 1.2;
}

.cc2eb4-review-meter b {
  display: block;
  margin-bottom: 3px;
  color: var(--cc2eb4-amber);
  font-size: 16px;
}

.cc2eb4-qa {
  display: grid;
  gap: 6px;
}

.cc2eb4-qa details {
  background: #2b2b2b;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 10px 3px 10px 3px;
}

.cc2eb4-qa summary {
  min-height: 44px;
  padding: 11px 12px;
  color: var(--cc2eb4-cream);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.cc2eb4-qa details[open] summary {
  color: var(--cc2eb4-amber);
  border-bottom: 1px solid var(--cc2eb4-line);
}

.cc2eb4-qa details p {
  margin: 0;
  padding: 10px 12px 12px;
  color: var(--cc2eb4-mute);
  font-size: 12.5px;
  line-height: 1.5;
}

.cc2eb4-review-card {
  padding: 11px 12px;
  background: #2d2d2d;
  border: 1px solid var(--cc2eb4-line);
  border-radius: 3px 14px 14px 14px;
}

.cc2eb4-review-card[data-verdict="watch"] {
  border-left: 4px solid var(--cc2eb4-steel);
}

.cc2eb4-review-card[data-verdict="check"] {
  border-left: 4px solid var(--cc2eb4-amber);
}

.cc2eb4-review-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc2eb4-review-list li {
  padding: 10px 11px;
  color: var(--cc2eb4-paper);
  background: #282828;
  border-bottom: 1px solid var(--cc2eb4-line-amber);
  font-size: 12.5px;
  line-height: 1.48;
}

.cc2eb4-review-list strong {
  color: var(--cc2eb4-amber);
}

.cc2eb4-sequence {
  display: grid;
  gap: 0;
  counter-reset: cc2eb4-seq;
}

.cc2eb4-sequence li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 14px;
  list-style: none;
}

.cc2eb4-sequence li::before {
  counter-increment: cc2eb4-seq;
  content: counter(cc2eb4-seq, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: #33280f;
  background: var(--cc2eb4-amber);
  border-radius: 50%;
  font-family: var(--cc2eb4-font-poster);
  font-size: 15px;
}

.cc2eb4-sequence li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 33px;
  bottom: 0;
  width: 1px;
  background: var(--cc2eb4-line-amber);
}

.cc2eb4-sequence strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--cc2eb4-cream);
  font-size: 13px;
}

.cc2eb4-sequence span {
  color: var(--cc2eb4-mute);
  font-size: 12.5px;
  line-height: 1.48;
}

@media (max-width: 354px) {
  .cc2eb4-help-hero .cc2eb4-title {
    font-size: 27px;
  }

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

  .cc2eb4-pay-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}
