/* ============================================================
   ph365 bet app - ph365-bet-app-tokens-c8a029.css
   Mobile-first token sheet for the ph365betapp.click phone canvas.
   Canvas range: 320px - 430px, centered when the viewport is wider.
   Palette anchors: #FFD700 gold, #006400 deep green, #3CB371 sea,
   #7CFC00 lime, #6C757D slate, #0A0A0A ink.
   Visual voice: tech-grade headings, open body text, outlined game
   tiles, mixed radii, short-list rhythm, icon micro-shifts only.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --shellc8a02-ink: #0A0A0A;
  --shellc8a02-ink-2: #0D110C;
  --shellc8a02-panel: #12170F;
  --shellc8a02-panel-2: #171D12;
  --shellc8a02-line: rgba(255, 215, 0, 0.16);
  --shellc8a02-line-soft: rgba(108, 117, 125, 0.28);
  --shellc8a02-gold: #FFD700;
  --shellc8a02-gold-dim: #D4B21E;
  --shellc8a02-green-deep: #006400;
  --shellc8a02-green-sea: #3CB371;
  --shellc8a02-green-lime: #7CFC00;
  --shellc8a02-slate: #6C757D;
  --shellc8a02-text: #EDF2E4;
  --shellc8a02-text-dim: #B9C2B0;
  --shellc8a02-text-mute: #8B9484;
  --shellc8a02-danger: #E4A11B;
  --shellc8a02-radius-xl: 18px;
  --shellc8a02-radius-lg: 14px;
  --shellc8a02-radius-md: 10px;
  --shellc8a02-radius-sm: 8px;
  --shellc8a02-gap: 10px;
  --shellc8a02-pad: 14px;
  --shellc8a02-head-h: 96px;
  --shellc8a02-dock-h: 60px;
  --shellc8a02-font-head: "Avenir Next", "Segoe UI", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  --shellc8a02-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shellc8a02-font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shellc8a02-ease: cubic-bezier(0.32, 0.72, 0.24, 1);
}

/* ---------- 2. Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--shellc8a02-ink);
  color: var(--shellc8a02-text);
  font-family: var(--shellc8a02-font-body);
  font-size: 15px;
  line-height: 1.66;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--shellc8a02-green-sea);
  text-decoration: none;
  transition: color 0.18s var(--shellc8a02-ease);
}

a:hover,
a:focus-visible {
  color: var(--shellc8a02-gold);
}

h1,
h2,
h3,
h4 {
  font-family: var(--shellc8a02-font-head);
  color: var(--shellc8a02-text);
  margin: 0;
  line-height: 1.28;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--shellc8a02-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Phone canvas ---------- */
.shellc8a02-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 42% at 50% -6%, rgba(60, 179, 113, 0.14), transparent 62%),
    linear-gradient(180deg, var(--shellc8a02-ink-2) 0%, var(--shellc8a02-ink) 34%);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

.shellc8a02-main {
  padding: calc(var(--shellc8a02-head-h) + 10px) var(--shellc8a02-pad) calc(var(--shellc8a02-dock-h) + 92px);
}

/* ---------- 4. Header: brand layer + action layer ---------- */
.shellc8a02-head {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.97), rgba(13, 17, 12, 0.94));
  border-bottom: 1px solid var(--shellc8a02-line);
  backdrop-filter: blur(8px);
}

.shellc8a02-headtop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px var(--shellc8a02-pad) 6px;
}

.shellc8a02-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.shellc8a02-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--shellc8a02-panel);
}

.shellc8a02-brandname {
  font-family: var(--shellc8a02-font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--shellc8a02-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shellc8a02-menubtn {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-sm);
  flex: 0 0 auto;
}

.shellc8a02-menubtn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--shellc8a02-gold);
  transition: transform 0.2s var(--shellc8a02-ease), opacity 0.2s var(--shellc8a02-ease), width 0.2s var(--shellc8a02-ease);
}

.shellc8a02-menubtn span:nth-child(2) {
  width: 80%;
}

.shellc8a02-menubtn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.shellc8a02-menubtn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.shellc8a02-menubtn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.shellc8a02-headact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 var(--shellc8a02-pad) 9px;
}

.shellc8a02-btnreg,
.shellc8a02-btnlog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: var(--shellc8a02-radius-sm);
  font-family: var(--shellc8a02-font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.18s var(--shellc8a02-ease), color 0.18s var(--shellc8a02-ease), border-color 0.18s var(--shellc8a02-ease);
}

.shellc8a02-btnreg {
  background: linear-gradient(135deg, var(--shellc8a02-gold) 0%, #E8C216 100%);
  color: #231A00;
  border: 1px solid rgba(255, 215, 0, 0.7);
}

.shellc8a02-btnlog {
  background: transparent;
  color: var(--shellc8a02-gold);
  border: 1px solid rgba(255, 215, 0, 0.45);
}

.shellc8a02-btnlog:hover,
.shellc8a02-btnlog:focus-visible {
  color: var(--shellc8a02-green-lime);
  border-color: var(--shellc8a02-green-sea);
}

.shellc8a02-btnreg:hover,
.shellc8a02-btnreg:focus-visible {
  background: linear-gradient(135deg, var(--shellc8a02-green-lime) 0%, var(--shellc8a02-green-sea) 100%);
  color: #06210B;
}

/* ---------- 5. Route panel (expandable menu) ---------- */
.shellc8a02-routes {
  display: none;
  border-top: 1px dashed var(--shellc8a02-line-soft);
  background: rgba(14, 18, 13, 0.98);
  padding: 8px var(--shellc8a02-pad) 12px;
}

.shellc8a02-routes[data-open="true"] {
  display: block;
}

.shellc8a02-routesgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shellc8a02-route {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-md);
  background: var(--shellc8a02-panel);
  color: var(--shellc8a02-text-dim);
  font-family: var(--shellc8a02-font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.shellc8a02-route .shellc8a02-routetag {
  font-family: var(--shellc8a02-font-mono);
  font-size: 10px;
  color: var(--shellc8a02-green-sea);
  margin-left: auto;
  letter-spacing: 0.08em;
}

.shellc8a02-route:hover,
.shellc8a02-route:focus-visible {
  color: var(--shellc8a02-gold);
  border-color: rgba(255, 215, 0, 0.4);
}

.shellc8a02-route[aria-current="page"] {
  color: var(--shellc8a02-gold);
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.06);
}

/* ---------- 6. Hero ---------- */
.shellc8a02-hero {
  border: 1px solid var(--shellc8a02-line);
  border-radius: var(--shellc8a02-radius-xl);
  background:
    linear-gradient(200deg, rgba(0, 100, 0, 0.35) 0%, rgba(10, 10, 10, 0) 58%),
    var(--shellc8a02-panel);
  padding: 18px var(--shellc8a02-pad) 14px;
  margin-bottom: 12px;
}

.shellc8a02-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--shellc8a02-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shellc8a02-green-sea);
  margin-bottom: 8px;
}

.shellc8a02-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--shellc8a02-green-lime);
  box-shadow: 0 0 8px rgba(124, 252, 0, 0.6);
}

.shellc8a02-hero h1 {
  font-size: 23px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.shellc8a02-herosub {
  color: var(--shellc8a02-text-dim);
  font-size: 14px;
  margin-bottom: 10px;
}

.shellc8a02-herosub strong {
  color: var(--shellc8a02-text);
  font-weight: 600;
}

/* ---------- 7. Trust strip ---------- */
.shellc8a02-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.shellc8a02-stripitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--shellc8a02-line-soft);
  border-left: 3px solid var(--shellc8a02-green-sea);
  border-radius: var(--shellc8a02-radius-sm);
  background: var(--shellc8a02-panel);
  font-size: 12px;
  color: var(--shellc8a02-text-dim);
  line-height: 1.35;
}

.shellc8a02-stripitem svg {
  flex: 0 0 auto;
  color: var(--shellc8a02-gold);
}

/* ---------- 8. Banner carousel ---------- */
.shellc8a02-carousel {
  position: relative;
  border-radius: var(--shellc8a02-radius-lg);
  border: 1px solid var(--shellc8a02-line);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--shellc8a02-panel);
}

.shellc8a02-track {
  display: flex;
  transition: transform 0.45s var(--shellc8a02-ease);
  touch-action: pan-y;
}

.shellc8a02-slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  position: relative;
  padding: 0;
  text-align: left;
}

.shellc8a02-slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.shellc8a02-cap {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 12px;
  border-radius: var(--shellc8a02-radius-sm);
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 215, 0, 0.25);
  font-family: var(--shellc8a02-font-head);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--shellc8a02-gold);
  letter-spacing: 0.03em;
  backdrop-filter: blur(3px);
}

.shellc8a02-dots {
  position: absolute;
  right: 10px;
  bottom: 6px;
  display: flex;
  gap: 2px;
  z-index: 2;
}

.shellc8a02-dot {
  min-width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shellc8a02-dot i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(237, 242, 228, 0.35);
  transition: background-color 0.18s var(--shellc8a02-ease), transform 0.18s var(--shellc8a02-ease);
}

.shellc8a02-dot[aria-current="true"] i {
  background: var(--shellc8a02-gold);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.55);
}

/* ---------- 9. Category jump chips ---------- */
.shellc8a02-jumps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.shellc8a02-jumps::-webkit-scrollbar {
  display: none;
}

.shellc8a02-jump {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--shellc8a02-line-soft);
  background: var(--shellc8a02-panel);
  color: var(--shellc8a02-text-dim);
  font-family: var(--shellc8a02-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.18s var(--shellc8a02-ease), border-color 0.18s var(--shellc8a02-ease);
}

.shellc8a02-jump:hover,
.shellc8a02-jump:focus-visible {
  color: var(--shellc8a02-green-lime);
  border-color: var(--shellc8a02-green-sea);
}

/* ---------- 10. Section frame ---------- */
.shellc8a02-sec {
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-xl);
  background: linear-gradient(180deg, var(--shellc8a02-panel) 0%, rgba(18, 23, 15, 0.55) 100%);
  padding: 16px var(--shellc8a02-pad) 14px;
  margin: 0 0 12px;
}

.shellc8a02-sec-shell {
  border-color: var(--shellc8a02-line);
  background:
    linear-gradient(165deg, rgba(0, 100, 0, 0.22) 0%, rgba(18, 23, 15, 0.9) 46%),
    var(--shellc8a02-panel);
}

.shellc8a02-sec h2 {
  font-size: 18.5px;
  letter-spacing: -0.005em;
  margin: 2px 0 10px;
}

.shellc8a02-sec h3 {
  font-size: 14.5px;
  color: var(--shellc8a02-green-lime);
  letter-spacing: 0.02em;
  margin: 14px 0 6px;
}

.shellc8a02-lede {
  color: var(--shellc8a02-text);
  font-size: 14.5px;
}

.shellc8a02-sec p {
  color: var(--shellc8a02-text-dim);
  font-size: 14px;
}

.shellc8a02-sec p strong {
  color: var(--shellc8a02-text);
  font-weight: 600;
}

.shellc8a02-sec a {
  border-bottom: 1px dashed rgba(60, 179, 113, 0.6);
  padding-bottom: 1px;
}

/* ---------- 11. Short-list blocks ---------- */
.shellc8a02-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  border-bottom: 1px dashed rgba(108, 117, 125, 0.2);
  color: var(--shellc8a02-text-dim);
  font-size: 13.8px;
}

.shellc8a02-list li:last-child {
  border-bottom: 0;
}

.shellc8a02-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--shellc8a02-green-sea);
  border-radius: 2px;
  transform: rotate(45deg);
}

.shellc8a02-list li strong {
  color: var(--shellc8a02-text);
  font-weight: 600;
}

.shellc8a02-qa {
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-md);
  background: rgba(13, 17, 12, 0.7);
  padding: 10px 12px;
  margin: 8px 0;
}

.shellc8a02-qa dt {
  font-family: var(--shellc8a02-font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--shellc8a02-gold);
  margin-bottom: 4px;
}

.shellc8a02-qa dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--shellc8a02-text-dim);
}

/* ---------- 12. Numbered steps ---------- */
.shellc8a02-steps {
  counter-reset: shellc8a02step;
}

.shellc8a02-step {
  position: relative;
  counter-increment: shellc8a02step;
  padding: 8px 0 10px 44px;
  border-bottom: 1px dashed rgba(108, 117, 125, 0.22);
}

.shellc8a02-step:last-child {
  border-bottom: 0;
}

.shellc8a02-step::before {
  content: counter(shellc8a02step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--shellc8a02-radius-sm);
  background: rgba(255, 215, 0, 0.05);
  font-family: var(--shellc8a02-font-mono);
  font-size: 12px;
  color: var(--shellc8a02-gold);
}

.shellc8a02-step h3 {
  margin: 2px 0 4px;
}

.shellc8a02-step p {
  font-size: 13.8px;
}

/* ---------- 13. Game grids ---------- */
.shellc8a02-cat {
  scroll-margin-top: calc(var(--shellc8a02-head-h) + 8px);
  margin: 14px 0 4px;
}

.shellc8a02-cathead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--shellc8a02-line);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.shellc8a02-cathead h3 {
  margin: 0;
  font-size: 15.5px;
  color: var(--shellc8a02-gold);
}

.shellc8a02-catcount {
  font-family: var(--shellc8a02-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--shellc8a02-slate);
  margin-left: auto;
}

.shellc8a02-catnote {
  font-size: 12.8px;
  color: var(--shellc8a02-text-mute);
  margin: 4px 0 10px;
}

.shellc8a02-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 390px) {
  .shellc8a02-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
  }
}

.shellc8a02-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 5px 7px;
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-md);
  background: var(--shellc8a02-panel);
  text-align: center;
  transition: border-color 0.18s var(--shellc8a02-ease), background-color 0.18s var(--shellc8a02-ease), transform 0.12s var(--shellc8a02-ease);
}

.shellc8a02-tile:hover,
.shellc8a02-tile:focus-visible {
  border-color: rgba(255, 215, 0, 0.5);
  background: var(--shellc8a02-panel-2);
}

.shellc8a02-tile:active {
  transform: scale(0.96);
}

.shellc8a02-tileimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(108, 117, 125, 0.22);
  background: #0B0F0A;
}

.shellc8a02-tilename {
  font-family: var(--shellc8a02-font-head);
  font-size: 10.5px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--shellc8a02-text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.shellc8a02-tile:hover .shellc8a02-tilename,
.shellc8a02-tile:focus-visible .shellc8a02-tilename {
  color: var(--shellc8a02-gold);
}

/* ---------- 14. CTA groups ---------- */
.shellc8a02-ctagroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}

.shellc8a02-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--shellc8a02-radius-sm);
  font-family: var(--shellc8a02-font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: var(--shellc8a02-gold);
  background: rgba(255, 215, 0, 0.04);
  transition: background-color 0.18s var(--shellc8a02-ease), color 0.18s var(--shellc8a02-ease);
}

.shellc8a02-cta:hover,
.shellc8a02-cta:focus-visible {
  background: rgba(255, 215, 0, 0.14);
}

.shellc8a02-cta-solid {
  background: linear-gradient(135deg, var(--shellc8a02-gold) 0%, #DBBA18 100%);
  color: #231A00;
  border-color: rgba(255, 215, 0, 0.75);
}

.shellc8a02-cta-solid:hover,
.shellc8a02-cta-solid:focus-visible {
  background: linear-gradient(135deg, var(--shellc8a02-green-lime) 0%, var(--shellc8a02-green-sea) 100%);
  color: #06210B;
}

.shellc8a02-cta-green {
  border-color: rgba(60, 179, 113, 0.55);
  color: var(--shellc8a02-green-sea);
  background: rgba(0, 100, 0, 0.18);
}

.shellc8a02-cta-green:hover,
.shellc8a02-cta-green:focus-visible {
  background: rgba(60, 179, 113, 0.2);
  color: var(--shellc8a02-green-lime);
}

/* ---------- 15. Info cards (review desk) ---------- */
.shellc8a02-cards {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.shellc8a02-card {
  border: 1px solid var(--shellc8a02-line-soft);
  border-left: 3px solid var(--shellc8a02-gold-dim);
  border-radius: var(--shellc8a02-radius-md);
  background: rgba(13, 17, 12, 0.65);
  padding: 10px 12px;
}

.shellc8a02-card h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--shellc8a02-gold);
}

.shellc8a02-card p {
  margin: 0;
  font-size: 13.3px;
  color: var(--shellc8a02-text-dim);
}

/* ---------- 16. Checklist ---------- */
.shellc8a02-checks {
  display: grid;
  gap: 6px;
}

.shellc8a02-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-md);
  background: rgba(18, 23, 15, 0.75);
  font-size: 13.5px;
  color: var(--shellc8a02-text-dim);
}

.shellc8a02-check svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--shellc8a02-green-sea);
}

.shellc8a02-check strong {
  color: var(--shellc8a02-text);
  font-weight: 600;
}

/* ---------- 17. Extended footer (home only) ---------- */
.shellc8a02-ext {
  border: 1px solid var(--shellc8a02-line);
  border-radius: var(--shellc8a02-radius-xl);
  background: linear-gradient(180deg, rgba(0, 100, 0, 0.16), rgba(13, 17, 12, 0.96));
  padding: 16px var(--shellc8a02-pad) 14px;
  margin-bottom: 12px;
}

.shellc8a02-extbrand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.shellc8a02-extlogo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  object-fit: cover;
  flex: 0 0 auto;
}

.shellc8a02-extbrand p {
  margin: 0;
  font-size: 12.8px;
  color: var(--shellc8a02-text-dim);
}

.shellc8a02-ext h2 {
  font-size: 13px;
  font-family: var(--shellc8a02-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shellc8a02-green-sea);
  margin: 0 0 8px;
}

.shellc8a02-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.shellc8a02-dirlink {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--shellc8a02-line-soft);
  border-radius: var(--shellc8a02-radius-sm);
  background: rgba(18, 23, 15, 0.6);
  font-size: 12px;
  line-height: 1.4;
  color: var(--shellc8a02-text-dim);
}

.shellc8a02-dirlink strong {
  display: block;
  font-family: var(--shellc8a02-font-head);
  font-size: 12.5px;
  color: var(--shellc8a02-text);
}

.shellc8a02-dirlink:hover,
.shellc8a02-dirlink:focus-visible {
  color: var(--shellc8a02-text-dim);
  border-color: rgba(255, 215, 0, 0.4);
}

.shellc8a02-dirlink:hover strong,
.shellc8a02-dirlink:focus-visible strong {
  color: var(--shellc8a02-gold);
}

.shellc8a02-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.shellc8a02-promo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.05);
  font-family: var(--shellc8a02-font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--shellc8a02-gold);
  text-align: left;
  transition: background-color 0.18s var(--shellc8a02-ease), border-color 0.18s var(--shellc8a02-ease);
}

.shellc8a02-promo svg {
  flex: 0 0 auto;
  color: var(--shellc8a02-green-lime);
}

.shellc8a02-promo:hover,
.shellc8a02-promo:focus-visible {
  background: rgba(255, 215, 0, 0.13);
  border-color: var(--shellc8a02-gold);
}

.shellc8a02-disc {
  border-top: 1px dashed var(--shellc8a02-line-soft);
  padding-top: 10px;
  font-size: 11.8px;
  line-height: 1.55;
  color: var(--shellc8a02-text-mute);
}

.shellc8a02-disc strong {
  color: var(--shellc8a02-slate);
  font-weight: 600;
}

/* ---------- 18. Common footer ---------- */
.shellc8a02-foot {
  text-align: center;
  padding: 4px 0 2px;
  margin-bottom: 2px;
}

.shellc8a02-foot p {
  margin: 0;
  font-family: var(--shellc8a02-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--shellc8a02-text-mute);
}

/* ---------- 19. Bottom dock ---------- */
.shellc8a02-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  min-height: var(--shellc8a02-dock-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(13, 17, 12, 0.96), rgba(10, 10, 10, 0.99));
  border-top: 1px solid var(--shellc8a02-line);
  backdrop-filter: blur(8px);
}

.shellc8a02-dockitem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border-radius: var(--shellc8a02-radius-sm);
  color: var(--shellc8a02-slate);
  transition: color 0.18s var(--shellc8a02-ease);
}

.shellc8a02-dockitem svg {
  transition: transform 0.18s var(--shellc8a02-ease), color 0.18s var(--shellc8a02-ease);
}

.shellc8a02-docklabel {
  font-family: var(--shellc8a02-font-head);
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.shellc8a02-dockitem:hover,
.shellc8a02-dockitem:focus-visible {
  color: var(--shellc8a02-text-dim);
}

.shellc8a02-dockitem:hover svg {
  transform: translateY(-1px);
}

.shellc8a02-dockitem[aria-current="page"],
.shellc8a02-dockitem[data-live="true"] {
  color: var(--shellc8a02-gold);
}

.shellc8a02-dockitem[data-live="true"]::before,
.shellc8a02-dockitem[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--shellc8a02-gold);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.shellc8a02-dockitem[data-live="true"] svg {
  color: var(--shellc8a02-green-lime);
}

/* ---------- 20. Back-to-top ---------- */
.shellc8a02-topbtn {
  position: fixed;
  right: calc(50% - 215px + 12px);
  bottom: calc(var(--shellc8a02-dock-h) + 18px);
  z-index: 65;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(13, 17, 12, 0.92);
  color: var(--shellc8a02-gold);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--shellc8a02-ease), transform 0.2s var(--shellc8a02-ease);
}

.shellc8a02-topbtn[data-show="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 430px) {
  .shellc8a02-topbtn {
    right: 12px;
  }
}

/* ---------- 21. Motion and contrast safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

::selection {
  background: rgba(255, 215, 0, 0.3);
  color: var(--shellc8a02-text);
}

/* Wide-screen backdrop behind the phone canvas */
@media (min-width: 431px) {
  body {
    background:
      radial-gradient(60% 30% at 50% 0%, rgba(0, 100, 0, 0.18), transparent 70%),
      #060806;
  }

  .shellc8a02-shell {
    min-height: 100vh;
  }
}
