/* ==========================================================================
   Account Appeal Helper - responsive interface stylesheet
   Mobile-first canvas: 320-430px, centered phone frame on wide screens.
   Class prefix: viewd7e99-   (CSS custom properties share the same prefix)
   Design tone: utility console - near-square corners, hairline structure,
   chartreuse signal color, rounded headings over compact body text.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom properties
   -------------------------------------------------------------------------- */
:root {
  --viewd7e99-bg-outer: #202220;
  --viewd7e99-bg: #2F2F2F;
  --viewd7e99-panel: #2D2D2D;
  --viewd7e99-panel-2: #333533;
  --viewd7e99-band: #36454F;
  --viewd7e99-band-deep: #2B3740;
  --viewd7e99-signal: #7FFF00;
  --viewd7e99-signal-soft: #9AFF9A;
  --viewd7e99-ink: #EAF2EA;
  --viewd7e99-ink-dim: #B9C4B9;
  --viewd7e99-ink-faint: #8D998D;
  --viewd7e99-line: #45525C;
  --viewd7e99-line-soft: #3D463D;
  --viewd7e99-danger: #FFB4A6;
  --viewd7e99-radius: 4px;
  --viewd7e99-radius-sm: 3px;
  --viewd7e99-radius-lg: 6px;
  --viewd7e99-gap: 14px;
  --viewd7e99-font-head: "SF Pro Rounded", "Arial Rounded MT Bold",
    "Hiragino Maru Gothic ProN", ui-rounded, "Nunito", "Quicksand",
    "Segoe UI", system-ui, sans-serif;
  --viewd7e99-font-body: "Roboto Condensed", "Arial Narrow", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  --viewd7e99-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
  --viewd7e99-dock-h: 64px;
}

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

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

body {
  margin: 0;
  background: var(--viewd7e99-bg-outer);
  color: var(--viewd7e99-ink);
  font-family: var(--viewd7e99-font-body);
  font-size: 15px;
  line-height: 1.52;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: rgba(127, 255, 0, 0.16);
}

a {
  color: var(--viewd7e99-signal-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--viewd7e99-signal);
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--viewd7e99-signal);
  outline-offset: 2px;
  border-radius: var(--viewd7e99-radius-sm);
}

/* Visible, comfortable touch zones for every control */
.viewd7e99-page a,
.viewd7e99-page button {
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   3. Phone canvas shell - stays a phone frame on any wide screen
   -------------------------------------------------------------------------- */
.viewd7e99-page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--viewd7e99-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow-x: clip;
}

@media (min-width: 430px) {
  .viewd7e99-page {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--viewd7e99-shadow);
  }
}

.viewd7e99-main {
  padding: 12px var(--viewd7e99-gap) calc(var(--viewd7e99-dock-h) + 34px + env(safe-area-inset-bottom, 0px));
}

/* --------------------------------------------------------------------------
   4. Header - centered identity bar plus separate action bar
   -------------------------------------------------------------------------- */
.viewd7e99-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #3A4A55 0%, var(--viewd7e99-band) 100%);
  border-bottom: 1px solid var(--viewd7e99-line);
  transition: box-shadow 0.25s ease;
}

.viewd7e99-header.viewd7e99-scrolled {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.viewd7e99-idbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px 8px;
}

.viewd7e99-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--viewd7e99-radius);
  border: 1px solid rgba(127, 255, 0, 0.55);
  background: #10140F;
  padding: 2px;
  flex: none;
}

.viewd7e99-brand {
  font-family: var(--viewd7e99-font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--viewd7e99-ink);
}

.viewd7e99-brand em {
  font-style: normal;
  color: var(--viewd7e99-signal);
}

.viewd7e99-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr 58px;
  gap: 8px;
  padding: 0 12px 10px;
}

.viewd7e99-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--viewd7e99-radius);
  font-family: var(--viewd7e99-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.viewd7e99-btn:active {
  transform: translateY(1px);
}

.viewd7e99-btn-solid {
  background: var(--viewd7e99-signal);
  color: #1A2403;
  border-color: #BFFF40;
}

.viewd7e99-btn-solid:hover {
  background: #9AFF3D;
  color: #1A2403;
}

.viewd7e99-btn-ghost {
  background: rgba(127, 255, 0, 0.07);
  color: var(--viewd7e99-signal-soft);
  border-color: rgba(154, 255, 154, 0.4);
}

.viewd7e99-btn-ghost:hover {
  background: rgba(127, 255, 0, 0.16);
  color: var(--viewd7e99-signal);
}

.viewd7e99-menubtn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--viewd7e99-band-deep);
  border: 1px solid var(--viewd7e99-line);
  border-radius: var(--viewd7e99-radius);
  color: var(--viewd7e99-ink-dim);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.viewd7e99-menubtn:hover,
.viewd7e99-menubtn[aria-expanded="true"] {
  color: var(--viewd7e99-signal);
  border-color: rgba(127, 255, 0, 0.5);
}

.viewd7e99-menubtn svg {
  width: 18px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   5. Layered dropdown menu
   -------------------------------------------------------------------------- */
.viewd7e99-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--viewd7e99-panel);
  border-bottom: 1px solid var(--viewd7e99-line);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.5);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.viewd7e99-menu.viewd7e99-open {
  max-height: 620px;
  overflow-y: auto;
}

.viewd7e99-menu-layer {
  padding: 10px 16px 8px;
  border-bottom: 1px dashed var(--viewd7e99-line-soft);
}

.viewd7e99-menu-layer:last-child {
  border-bottom: none;
}

.viewd7e99-menu-tag {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--viewd7e99-signal);
  font-family: var(--viewd7e99-font-head);
}

.viewd7e99-menu-layer a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-left: 2px solid var(--viewd7e99-line);
  border-radius: 0 var(--viewd7e99-radius-sm) var(--viewd7e99-radius-sm) 0;
  color: var(--viewd7e99-ink-dim);
  font-size: 14px;
  background: rgba(54, 69, 79, 0.16);
  margin-bottom: 5px;
  transition: color 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
}

.viewd7e99-menu-layer a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--viewd7e99-line);
  flex: none;
  transition: background 0.25s ease;
}

.viewd7e99-menu-layer a:hover,
.viewd7e99-menu-layer a:focus-visible {
  color: var(--viewd7e99-ink);
  background: rgba(127, 255, 0, 0.08);
  border-left-color: var(--viewd7e99-signal);
}

.viewd7e99-menu-layer a:hover::before {
  background: var(--viewd7e99-signal);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.viewd7e99-hero {
  padding: 16px 2px 6px;
}

.viewd7e99-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viewd7e99-signal-soft);
  border: 1px solid rgba(154, 255, 154, 0.35);
  border-radius: var(--viewd7e99-radius-sm);
  background: rgba(54, 69, 79, 0.35);
  font-family: var(--viewd7e99-font-head);
}

.viewd7e99-h1 {
  font-family: var(--viewd7e99-font-head);
  font-size: 26px;
  line-height: 1.16;
  margin: 0 0 12px;
  color: var(--viewd7e99-ink);
  letter-spacing: 0.01em;
}

.viewd7e99-h1 mark {
  background: none;
  color: var(--viewd7e99-signal);
}

.viewd7e99-lead {
  margin: 0 0 10px;
  color: var(--viewd7e99-ink-dim);
  font-size: 14.5px;
}

.viewd7e99-lead strong {
  color: var(--viewd7e99-ink);
  font-weight: 600;
}

.viewd7e99-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 14px 0 6px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #9AFF3D 0%, var(--viewd7e99-signal) 100%);
  color: #182102;
  border: 1px solid #C7FF5E;
  border-radius: var(--viewd7e99-radius);
  font-family: var(--viewd7e99-font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(127, 255, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.25s ease;
}

.viewd7e99-cta:hover {
  box-shadow: 0 8px 20px rgba(127, 255, 0, 0.34);
  color: #182102;
}

.viewd7e99-cta:active {
  transform: translateY(1px);
}

.viewd7e99-cta-note {
  margin: 0 0 4px;
  text-align: center;
  font-size: 11.5px;
  color: var(--viewd7e99-ink-faint);
  letter-spacing: 0.04em;
}

.viewd7e99-jump {
  display: inline-block;
  margin: 6px 0 2px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--viewd7e99-signal-soft);
  border-bottom: 1px dashed rgba(154, 255, 154, 0.5);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   7. Metric strip - compact metric chips with one-line captions
   -------------------------------------------------------------------------- */
.viewd7e99-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 14px 0 4px;
}

.viewd7e99-chip {
  border: 1px solid var(--viewd7e99-line-soft);
  border-radius: var(--viewd7e99-radius);
  background: var(--viewd7e99-panel);
  padding: 9px 6px 8px;
  text-align: center;
}

.viewd7e99-chip b {
  display: block;
  font-family: var(--viewd7e99-font-head);
  font-size: 16px;
  color: var(--viewd7e99-signal);
  line-height: 1.15;
}

.viewd7e99-chip span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--viewd7e99-ink-faint);
}

/* --------------------------------------------------------------------------
   8. Promo carousel - snap track, degrades to manual swipe
   -------------------------------------------------------------------------- */
.viewd7e99-carousel {
  position: relative;
  margin: 14px 0 4px;
}

.viewd7e99-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--viewd7e99-radius);
  border: 1px solid var(--viewd7e99-line);
}

.viewd7e99-track::-webkit-scrollbar {
  display: none;
}

.viewd7e99-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 0;
  border: none;
  background: var(--viewd7e99-panel-2);
  min-height: 44px;
  width: 100%;
}

.viewd7e99-slide img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}

.viewd7e99-slide-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 9px;
  background: rgba(21, 27, 21, 0.82);
  border: 1px solid rgba(127, 255, 0, 0.45);
  border-radius: var(--viewd7e99-radius-sm);
  color: var(--viewd7e99-signal);
  font-family: var(--viewd7e99-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.viewd7e99-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 0 2px;
}

.viewd7e99-dot {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.viewd7e99-dot::before {
  content: "";
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--viewd7e99-line);
  transition: background 0.25s ease, width 0.25s ease;
}

.viewd7e99-dot.viewd7e99-on::before {
  background: var(--viewd7e99-signal);
  width: 24px;
}

/* --------------------------------------------------------------------------
   9. Game shelves - grouped cover sections
   -------------------------------------------------------------------------- */
.viewd7e99-shelf {
  margin-top: 22px;
  border: 1px solid var(--viewd7e99-line-soft);
  border-radius: var(--viewd7e99-radius-lg);
  background: var(--viewd7e99-panel);
  overflow: hidden;
  scroll-margin-top: 86px;
}

.viewd7e99-shelf-head {
  position: relative;
  padding: 11px 13px 10px;
  background: linear-gradient(135deg, var(--viewd7e99-band) 0%, var(--viewd7e99-band-deep) 100%);
  border-bottom: 1px solid var(--viewd7e99-line);
}

.viewd7e99-shelf-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--viewd7e99-signal);
}

.viewd7e99-shelf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.viewd7e99-shelf-no {
  font-family: var(--viewd7e99-font-head);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--viewd7e99-signal-soft);
}

.viewd7e99-shelf-count {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--viewd7e99-ink-faint);
  border: 1px solid var(--viewd7e99-line);
  padding: 2px 7px;
  border-radius: var(--viewd7e99-radius-sm);
  white-space: nowrap;
}

.viewd7e99-h2 {
  font-family: var(--viewd7e99-font-head);
  font-size: 18.5px;
  line-height: 1.22;
  margin: 0;
  color: var(--viewd7e99-ink);
  letter-spacing: 0.015em;
}

.viewd7e99-h2 em {
  font-style: normal;
  color: var(--viewd7e99-signal);
}

.viewd7e99-shelf-sub {
  margin: 7px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--viewd7e99-ink-dim);
}

/* 4-column grid at 320px, 5 columns once the canvas reaches 400px */
.viewd7e99-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 7px;
  padding: 12px 10px 14px;
}

@media (min-width: 400px) {
  .viewd7e99-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 8px;
  }
}

.viewd7e99-gcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--viewd7e99-radius);
  min-height: 44px;
  transition: transform 0.18s ease;
}

.viewd7e99-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--viewd7e99-radius);
  border: 1px solid var(--viewd7e99-line-soft);
  background: var(--viewd7e99-panel-2);
  transition: border-color 0.25s ease;
}

.viewd7e99-gcard:hover img,
.viewd7e99-gcard:active img {
  border-color: var(--viewd7e99-signal);
}

.viewd7e99-gcard:hover {
  transform: translateY(-2px);
}

.viewd7e99-gcard-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-size: 11px;
  line-height: 1.28;
  color: var(--viewd7e99-ink-dim);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.viewd7e99-gcard:hover .viewd7e99-gcard-name,
.viewd7e99-gcard:active .viewd7e99-gcard-name {
  color: var(--viewd7e99-signal-soft);
}

/* --------------------------------------------------------------------------
   10. Content modules below the shelves
   -------------------------------------------------------------------------- */
.viewd7e99-module {
  margin-top: 22px;
  padding: 13px 13px 15px;
  border: 1px solid var(--viewd7e99-line-soft);
  border-top: 2px solid var(--viewd7e99-band);
  border-radius: var(--viewd7e99-radius-lg);
  background: var(--viewd7e99-panel);
  scroll-margin-top: 86px;
}

.viewd7e99-h3 {
  font-family: var(--viewd7e99-font-head);
  font-size: 14.5px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--viewd7e99-signal-soft);
  letter-spacing: 0.03em;
}

.viewd7e99-module p {
  margin: 0 0 9px;
  color: var(--viewd7e99-ink-dim);
  font-size: 13.5px;
}

.viewd7e99-module p:last-child {
  margin-bottom: 0;
}

.viewd7e99-module strong {
  color: var(--viewd7e99-ink);
  font-weight: 600;
}

/* Winner feed rows */
.viewd7e99-winners {
  margin: 10px 0 4px;
  border: 1px solid var(--viewd7e99-line-soft);
  border-radius: var(--viewd7e99-radius);
  overflow: hidden;
}

.viewd7e99-winrow {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px dashed var(--viewd7e99-line-soft);
  background: rgba(54, 69, 79, 0.12);
}

.viewd7e99-winrow:last-child {
  border-bottom: none;
}

.viewd7e99-winrow b {
  font-family: var(--viewd7e99-font-head);
  color: var(--viewd7e99-ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.viewd7e99-winrow .viewd7e99-win-game {
  color: var(--viewd7e99-ink-dim);
  overflow-wrap: anywhere;
}

.viewd7e99-winrow .viewd7e99-win-amt {
  font-variant-numeric: tabular-nums;
  color: var(--viewd7e99-signal);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.viewd7e99-winrow small {
  display: block;
  grid-column: 1 / -1;
  margin-top: -2px;
  font-size: 10px;
  color: var(--viewd7e99-ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Steps */
.viewd7e99-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--viewd7e99-line-soft);
}

.viewd7e99-step:last-of-type {
  border-bottom: none;
}

.viewd7e99-step-no {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--viewd7e99-signal);
  color: #182102;
  font-family: var(--viewd7e99-font-head);
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--viewd7e99-radius-sm);
}

.viewd7e99-step p {
  margin: 0;
}

/* Trick list */
.viewd7e99-tip {
  position: relative;
  padding: 9px 10px 9px 30px;
  margin-bottom: 8px;
  background: rgba(54, 69, 79, 0.16);
  border: 1px solid var(--viewd7e99-line-soft);
  border-radius: var(--viewd7e99-radius);
  font-size: 13px;
  color: var(--viewd7e99-ink-dim);
}

.viewd7e99-tip:last-of-type {
  margin-bottom: 0;
}

.viewd7e99-tip::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--viewd7e99-signal);
}

.viewd7e99-tip strong {
  color: var(--viewd7e99-ink);
}

/* Offer blocks */
.viewd7e99-offer {
  padding: 11px 12px;
  margin-bottom: 9px;
  border: 1px solid var(--viewd7e99-line-soft);
  border-left: 3px solid var(--viewd7e99-signal);
  border-radius: 0 var(--viewd7e99-radius) var(--viewd7e99-radius) 0;
  background: rgba(54, 69, 79, 0.14);
}

.viewd7e99-offer:last-of-type {
  margin-bottom: 0;
}

.viewd7e99-offer p {
  margin: 0;
  font-size: 13px;
}

.viewd7e99-plink {
  display: inline;
  padding: 2px 4px;
  background: rgba(127, 255, 0, 0.1);
  border-bottom: 1px solid rgba(127, 255, 0, 0.45);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Checklist */
.viewd7e99-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  margin-bottom: 7px;
  background: rgba(54, 69, 79, 0.16);
  border: 1px solid var(--viewd7e99-line-soft);
  border-radius: var(--viewd7e99-radius);
  font-size: 13px;
  color: var(--viewd7e99-ink-dim);
}

.viewd7e99-check:last-of-type {
  margin-bottom: 0;
}

.viewd7e99-check strong {
  color: var(--viewd7e99-ink);
}

.viewd7e99-check-box {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--viewd7e99-signal);
  border-radius: var(--viewd7e99-radius-sm);
  background: rgba(127, 255, 0, 0.12);
  color: var(--viewd7e99-signal);
  font-size: 12px;
  font-weight: 800;
}

.viewd7e99-note {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px dashed rgba(255, 180, 166, 0.45);
  border-radius: var(--viewd7e99-radius);
  background: rgba(255, 180, 166, 0.06);
  font-size: 12px;
  line-height: 1.5;
  color: var(--viewd7e99-ink-dim);
}

/* --------------------------------------------------------------------------
   11. Extended footer zone (home only)
   -------------------------------------------------------------------------- */
.viewd7e99-xfoot {
  margin-top: 24px;
  padding: 14px 13px 16px;
  border: 1px solid var(--viewd7e99-line);
  border-radius: var(--viewd7e99-radius-lg);
  background: var(--viewd7e99-panel-2);
}

.viewd7e99-xfoot-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.viewd7e99-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 13px;
  background: rgba(127, 255, 0, 0.08);
  border: 1px solid rgba(127, 255, 0, 0.4);
  border-radius: var(--viewd7e99-radius);
  color: var(--viewd7e99-signal-soft);
  font-family: var(--viewd7e99-font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease,
    transform 0.18s ease;
}

.viewd7e99-shortcut::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--viewd7e99-signal);
}

.viewd7e99-shortcut:hover {
  background: rgba(127, 255, 0, 0.2);
  color: var(--viewd7e99-signal);
  transform: translateY(-1px);
}

.viewd7e99-xfoot-brand {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--viewd7e99-line-soft);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--viewd7e99-ink-dim);
}

.viewd7e99-xfoot-dir {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 375px) {
  .viewd7e99-xfoot-dir {
    grid-template-columns: 1fr 1fr;
  }
}

.viewd7e99-xfoot-dirgroup {
  border: 1px solid var(--viewd7e99-line-soft);
  border-radius: var(--viewd7e99-radius);
  padding: 10px 11px 11px;
  background: rgba(45, 45, 45, 0.6);
}

.viewd7e99-xfoot-dirgroup p {
  margin: 0 0 7px;
  font-family: var(--viewd7e99-font-head);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--viewd7e99-signal);
}

.viewd7e99-xfoot-dirgroup a {
  display: block;
  padding: 6px 2px;
  min-height: 34px;
  font-size: 12.5px;
  color: var(--viewd7e99-ink-dim);
  border-bottom: 1px dotted var(--viewd7e99-line-soft);
}

.viewd7e99-xfoot-dirgroup a:last-child {
  border-bottom: none;
}

.viewd7e99-xfoot-note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--viewd7e99-ink-faint);
}

/* --------------------------------------------------------------------------
   12. Common footer - copyright only
   -------------------------------------------------------------------------- */
.viewd7e99-footer {
  padding: 16px 14px 10px;
  border-top: 1px solid var(--viewd7e99-line-soft);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--viewd7e99-ink-faint);
}

.viewd7e99-footer b {
  color: var(--viewd7e99-ink-dim);
}

/* --------------------------------------------------------------------------
   13. Mobile bottom dock - compact icon rack, 5 roles
   -------------------------------------------------------------------------- */
.viewd7e99-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #33414B 0%, var(--viewd7e99-band-deep) 100%);
  border-top: 1px solid var(--viewd7e99-line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
}

.viewd7e99-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 5px 2px;
  background: none;
  border: none;
  border-radius: var(--viewd7e99-radius);
  color: var(--viewd7e99-ink-faint);
  transition: color 0.25s ease, transform 0.22s ease;
}

.viewd7e99-dock-item svg {
  width: 22px;
  height: 22px;
}

.viewd7e99-dock-tx {
  font-family: var(--viewd7e99-font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewd7e99-dock-item:hover,
.viewd7e99-dock-item:active {
  color: var(--viewd7e99-signal-soft);
}

/* Active role: slight lift plus signal underline */
.viewd7e99-dock-on {
  color: var(--viewd7e99-signal);
  transform: translateY(-3px);
}

.viewd7e99-dock-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--viewd7e99-signal);
}

/* --------------------------------------------------------------------------
   14. Short-distance reveal transitions (JS-gated so no-JS users see all)
   -------------------------------------------------------------------------- */
.viewd7e99-js .viewd7e99-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.viewd7e99-js .viewd7e99-reveal.viewd7e99-in {
  opacity: 1;
  transform: none;
}

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

  .viewd7e99-js .viewd7e99-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .viewd7e99-gcard,
  .viewd7e99-cta,
  .viewd7e99-shortcut,
  .viewd7e99-dock-item,
  .viewd7e99-btn {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   15. Small-canvas refinements
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  .viewd7e99-h1 {
    font-size: 23px;
  }

  .viewd7e99-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .viewd7e99-winrow {
    grid-template-columns: 1fr auto;
  }

  .viewd7e99-winrow .viewd7e99-win-game {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (min-width: 375px) {
  .viewd7e99-h1 {
    font-size: 27px;
  }

  .viewd7e99-h2 {
    font-size: 19.5px;
  }

  .viewd7e99-gcard-name {
    font-size: 11.5px;
  }
}

@media (min-width: 414px) {
  .viewd7e99-h1 {
    font-size: 28px;
  }

  .viewd7e99-module p,
  .viewd7e99-tip {
    font-size: 13.5px;
  }
}

/* Help-page disclosures keep answers readable without a second page shell. */
.viewd7e99-winners details {
  padding: 9px 10px;
  border-bottom: 1px dashed var(--viewd7e99-line-soft);
  background: rgba(54, 69, 79, 0.12);
}

.viewd7e99-winners details:last-child {
  border-bottom: none;
}

.viewd7e99-winners summary {
  min-height: 30px;
  padding: 3px 22px 3px 0;
  color: var(--viewd7e99-ink);
  font-family: var(--viewd7e99-font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style-position: outside;
}

.viewd7e99-winners summary::marker {
  color: var(--viewd7e99-signal);
}

.viewd7e99-winners details[open] summary {
  color: var(--viewd7e99-signal-soft);
}

.viewd7e99-winners details p {
  margin: 6px 0 0;
  color: var(--viewd7e99-ink-dim);
  font-size: 12.5px;
}
