/* ==========================================================================
   PTG Gaming - adaptive canvas stylesheet
   File    : css/adaptive-c581b7-canvas.css
   Prefix  : frame581b7-
   Canvas  : 320-430px mobile first, centered phone shell on wide screens
   Palette : #FFC0CB / #D4AF37 / #34495E / #FF1493 / #FA8072
   Feel    : near-square tool corners, outlined tile cards, compact
             metric-explanation rhythm, sliding focus indicators,
             icon+text compact CTAs, soft color transitions
   ========================================================================== */

:root {
  /* core palette */
  --frame581b7-canvas: #34495e;            /* slate canvas */
  --frame581b7-deep: #263749;              /* panel shade of canvas */
  --frame581b7-pit: #1a2531;               /* outer page background */
  --frame581b7-rose: #ffc0cb;              /* light pink text */
  --frame581b7-gold: #d4af37;              /* gold accents */
  --frame581b7-magenta: #ff1493;           /* primary CTA */
  --frame581b7-salmon: #fa8072;            /* secondary CTA */
  --frame581b7-ink: #fbeef1;               /* near-white body text */
  --frame581b7-dim: rgba(255, 192, 203, 0.74);
  --frame581b7-faint: rgba(255, 192, 203, 0.52);
  --frame581b7-line: rgba(212, 175, 55, 0.38);
  --frame581b7-line-soft: rgba(255, 192, 203, 0.16);
  --frame581b7-line-hard: rgba(255, 192, 203, 0.28);
  /* geometry */
  --frame581b7-r-tile: 3px;
  --frame581b7-r-btn: 2px;
  --frame581b7-top-h: 58px;
  --frame581b7-rail-h: 60px;
  --frame581b7-tap: 44px;
  /* type */
  --frame581b7-display: "Arial Black", "Segoe UI Black", "Avenir Next", Futura, sans-serif;
  --frame581b7-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* motion */
  --frame581b7-move: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--frame581b7-pit);
  color: var(--frame581b7-ink);
  font-family: var(--frame581b7-body);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

a {
  color: var(--frame581b7-rose);
  text-decoration: none;
  transition: color var(--frame581b7-move);
}

a:hover {
  color: var(--frame581b7-gold);
}

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

h1, h2, h3 {
  font-family: var(--frame581b7-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0 0 12px;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--frame581b7-salmon);
  outline-offset: 2px;
}

/* hidden helper for compact icon labels when needed */
.frame581b7-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* skip link */
.frame581b7-skip {
  position: fixed;
  top: -48px;
  left: 12px;
  z-index: 120;
  background: var(--frame581b7-gold);
  color: #241c04;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--frame581b7-r-btn);
  transition: top var(--frame581b7-move);
}

.frame581b7-skip:focus {
  top: 6px;
}

/* --------------------------------------------------------------------------
   Fixed top bar - asymmetric brand header
   -------------------------------------------------------------------------- */

.frame581b7-top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--frame581b7-top-h);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(38, 55, 73, 0.97);
  border-bottom: 1px solid var(--frame581b7-line-soft);
}

/* asymmetric gold tick under the brand half only */
.frame581b7-top::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, var(--frame581b7-gold) 0 78%, transparent 78%);
  pointer-events: none;
}

.frame581b7-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--frame581b7-ink);
}

.frame581b7-brand:hover {
  color: var(--frame581b7-ink);
}

.frame581b7-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid var(--frame581b7-gold);
  border-radius: var(--frame581b7-r-tile);
  object-fit: cover;
  background: var(--frame581b7-deep);
}

.frame581b7-brandname {
  font-family: var(--frame581b7-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame581b7-brandname small {
  display: block;
  font-family: var(--frame581b7-body);
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: var(--frame581b7-gold);
}

.frame581b7-topacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* compact icon+text CTAs, near-square */
.frame581b7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: var(--frame581b7-tap);
  padding: 0 12px;
  border-radius: var(--frame581b7-r-btn);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  transition: background var(--frame581b7-move), color var(--frame581b7-move),
    border-color var(--frame581b7-move), transform var(--frame581b7-move);
}

.frame581b7-btn svg {
  flex: 0 0 auto;
}

.frame581b7-btn--reg {
  background: var(--frame581b7-magenta);
  color: #fff7fa;
  border-color: #ff5cb1;
}

.frame581b7-btn--reg:hover {
  background: #ff36a1;
  color: #fff;
}

.frame581b7-btn--login {
  background: transparent;
  color: var(--frame581b7-rose);
  border-color: var(--frame581b7-line-hard);
}

.frame581b7-btn--login:hover {
  border-color: var(--frame581b7-salmon);
  color: var(--frame581b7-salmon);
}

.frame581b7-menubtn {
  width: var(--frame581b7-tap);
  height: var(--frame581b7-tap);
  flex: 0 0 var(--frame581b7-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line);
  border-radius: var(--frame581b7-r-btn);
  color: var(--frame581b7-gold);
  transition: background var(--frame581b7-move), border-color var(--frame581b7-move);
}

.frame581b7-menubtn:hover {
  background: #2e4257;
  border-color: var(--frame581b7-gold);
}

.frame581b7-menubtn.is-open {
  border-color: var(--frame581b7-gold);
  background: #2e4257;
}

/* --------------------------------------------------------------------------
   Compact route panel (expandable menu)
   -------------------------------------------------------------------------- */

.frame581b7-routes {
  position: fixed;
  top: var(--frame581b7-top-h);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 480px;
  z-index: 85;
  background: var(--frame581b7-deep);
  border-bottom: 2px solid var(--frame581b7-gold);
  padding: 12px 12px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--frame581b7-move), transform var(--frame581b7-move),
    visibility 0s linear var(--frame581b7-move);
  max-height: calc(100vh - var(--frame581b7-top-h));
  overflow-y: auto;
}

.frame581b7-routes.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--frame581b7-move), transform var(--frame581b7-move);
}

.frame581b7-routegroup + .frame581b7-routegroup {
  margin-top: 12px;
}

.frame581b7-routelabel {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--frame581b7-gold);
  margin: 0 0 7px;
}

.frame581b7-routerows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.frame581b7-routelink {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--frame581b7-tap);
  padding: 8px 10px 8px 14px;
  background: rgba(52, 73, 94, 0.55);
  border: 1px solid var(--frame581b7-line-soft);
  border-radius: var(--frame581b7-r-btn);
  color: var(--frame581b7-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  transition: border-color var(--frame581b7-move), background var(--frame581b7-move),
    color var(--frame581b7-move);
}

.frame581b7-routelink::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--frame581b7-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--frame581b7-move);
}

.frame581b7-routelink:hover {
  border-color: var(--frame581b7-gold);
  color: var(--frame581b7-gold);
}

.frame581b7-routelink:hover::before,
.frame581b7-routelink.is-here::before {
  transform: scaleY(1);
}

.frame581b7-routelink.is-here {
  border-color: var(--frame581b7-gold);
  color: var(--frame581b7-gold);
  background: rgba(212, 175, 55, 0.12);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.frame581b7-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--frame581b7-canvas);
  padding: calc(var(--frame581b7-top-h) + 12px) 12px calc(var(--frame581b7-rail-h) + 26px);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(255, 192, 203, 0.06);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.frame581b7-hero {
  padding-top: 4px;
}

.frame581b7-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frame581b7-gold);
  border: 1px solid var(--frame581b7-line);
  border-radius: var(--frame581b7-r-btn);
  padding: 4px 8px;
  margin-bottom: 10px;
}

.frame581b7-h1 {
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--frame581b7-ink);
  margin-bottom: 10px;
}

.frame581b7-intro {
  font-size: 13.5px;
  color: var(--frame581b7-dim);
}

.frame581b7-intro strong {
  color: var(--frame581b7-rose);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */

.frame581b7-cs {
  position: relative;
  margin: 14px 0 4px;
  border: 1px solid var(--frame581b7-line);
  border-radius: var(--frame581b7-r-tile);
  overflow: hidden;
  background: var(--frame581b7-deep);
}

.frame581b7-cs-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.frame581b7-cs-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--frame581b7-deep);
}

.frame581b7-cs-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.frame581b7-cs-cap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 78%;
  padding: 6px 10px;
  background: rgba(26, 37, 49, 0.88);
  border-left: 3px solid var(--frame581b7-magenta);
  border-radius: var(--frame581b7-r-btn);
  text-align: left;
}

.frame581b7-cs-cap b {
  font-family: var(--frame581b7-display);
  font-weight: 900;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--frame581b7-ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.frame581b7-cs-cap i {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--frame581b7-dim);
}

.frame581b7-cs-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.frame581b7-cs-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid var(--frame581b7-gold);
  background: rgba(26, 37, 49, 0.6);
  transition: width var(--frame581b7-move), background var(--frame581b7-move);
}

.frame581b7-cs-dot.is-on {
  width: 24px;
  background: var(--frame581b7-gold);
}

/* --------------------------------------------------------------------------
   Metric strip - compact metric-explanation rhythm
   -------------------------------------------------------------------------- */

.frame581b7-meters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 4px;
}

.frame581b7-meter {
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-top: 2px solid var(--frame581b7-gold);
  border-radius: var(--frame581b7-r-tile);
  padding: 8px 8px 9px;
}

.frame581b7-meter b {
  display: block;
  font-family: var(--frame581b7-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  color: var(--frame581b7-gold);
}

.frame581b7-meter span {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--frame581b7-rose);
  margin: 4px 0 3px;
}

.frame581b7-meter small {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: var(--frame581b7-faint);
}

/* --------------------------------------------------------------------------
   Category jump strip
   -------------------------------------------------------------------------- */

.frame581b7-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 4px;
  scrollbar-width: none;
}

.frame581b7-jump::-webkit-scrollbar {
  display: none;
}

.frame581b7-jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frame581b7-rose);
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-radius: var(--frame581b7-r-btn);
  transition: border-color var(--frame581b7-move), color var(--frame581b7-move);
}

.frame581b7-jump a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--frame581b7-salmon);
  transform: rotate(45deg);
}

.frame581b7-jump a:hover {
  border-color: var(--frame581b7-salmon);
  color: var(--frame581b7-salmon);
}

/* --------------------------------------------------------------------------
   Category sections + outlined tile grid
   -------------------------------------------------------------------------- */

.frame581b7-cat {
  margin-top: 22px;
  scroll-margin-top: calc(var(--frame581b7-top-h) + 8px);
}

.frame581b7-cathead {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--frame581b7-line-soft);
  padding-bottom: 7px;
  margin-bottom: 9px;
}

.frame581b7-cathead h2 {
  font-size: 14.5px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--frame581b7-ink);
  min-width: 0;
}

.frame581b7-chip {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frame581b7-gold);
  border: 1px solid var(--frame581b7-line);
  border-radius: var(--frame581b7-r-btn);
  padding: 3px 7px;
}

.frame581b7-catlead {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--frame581b7-dim);
  margin-bottom: 10px;
}

.frame581b7-catlead a {
  color: var(--frame581b7-salmon);
  font-weight: 700;
}

.frame581b7-catlead a:hover {
  color: var(--frame581b7-gold);
}

.frame581b7-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.frame581b7-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: var(--frame581b7-tap);
  padding: 5px 5px 6px;
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-radius: var(--frame581b7-r-tile);
  transition: border-color var(--frame581b7-move), background var(--frame581b7-move);
}

.frame581b7-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--frame581b7-r-btn);
  background: #202f40;
}

.frame581b7-tile b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--frame581b7-rose);
  overflow-wrap: anywhere;
}

.frame581b7-tile:hover,
.frame581b7-tile:active {
  border-color: var(--frame581b7-gold);
  background: #2b3f55;
}

.frame581b7-catguides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed var(--frame581b7-line);
  border-radius: var(--frame581b7-r-tile);
  font-size: 11px;
  color: var(--frame581b7-faint);
}

.frame581b7-catguides > span {
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9.5px;
  color: var(--frame581b7-gold);
}

.frame581b7-catguides a {
  font-weight: 700;
  color: var(--frame581b7-rose);
}

.frame581b7-catguides a:hover {
  color: var(--frame581b7-gold);
}

/* --------------------------------------------------------------------------
   Prose blocks
   -------------------------------------------------------------------------- */

.frame581b7-block {
  margin-top: 26px;
  padding-top: 4px;
}

.frame581b7-block > h2 {
  position: relative;
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--frame581b7-ink);
  padding-left: 12px;
  margin-bottom: 10px;
}

.frame581b7-block > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: linear-gradient(180deg, var(--frame581b7-magenta), var(--frame581b7-gold));
  border-radius: 1px;
}

.frame581b7-block p {
  font-size: 13px;
  color: var(--frame581b7-dim);
}

.frame581b7-block p strong,
.frame581b7-block li strong {
  color: var(--frame581b7-rose);
  font-weight: 700;
}

.frame581b7-block a:not(.frame581b7-btn) {
  color: var(--frame581b7-salmon);
  font-weight: 700;
}

.frame581b7-block a:not(.frame581b7-btn):hover {
  color: var(--frame581b7-gold);
}

/* numbered steps */
.frame581b7-steps {
  list-style: none;
  counter-reset: frame581b7step;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.frame581b7-step {
  position: relative;
  counter-increment: frame581b7step;
  padding: 10px 10px 10px 44px;
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-radius: var(--frame581b7-r-tile);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--frame581b7-dim);
}

.frame581b7-step::before {
  content: counter(frame581b7step, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--frame581b7-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--frame581b7-gold);
}

.frame581b7-step strong {
  color: var(--frame581b7-rose);
}

/* category map (compact dt/dd rows) */
.frame581b7-catmap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.frame581b7-maprow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-left: 3px solid var(--frame581b7-salmon);
  border-radius: var(--frame581b7-r-tile);
}

.frame581b7-maprow dt {
  font-family: var(--frame581b7-display);
  font-weight: 900;
  font-size: 10.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--frame581b7-gold);
  padding-top: 2px;
}

.frame581b7-maprow dd {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--frame581b7-dim);
}

/* FAQ */
.frame581b7-faq {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.frame581b7-faq details {
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-radius: var(--frame581b7-r-tile);
}

.frame581b7-faq details[open] {
  border-color: var(--frame581b7-line);
}

.frame581b7-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--frame581b7-tap);
  padding: 10px 12px;
  cursor: pointer;
  transition: color var(--frame581b7-move);
}

.frame581b7-faq summary::-webkit-details-marker {
  display: none;
}

.frame581b7-faq summary h3 {
  flex: 1;
  font-size: 12px;
  line-height: 1.35;
  color: var(--frame581b7-rose);
  font-family: var(--frame581b7-body);
  font-weight: 800;
}

.frame581b7-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame581b7-gold);
  border-radius: 2px;
  color: var(--frame581b7-gold);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  transition: transform var(--frame581b7-move), background var(--frame581b7-move);
}

.frame581b7-faq details[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  background: rgba(212, 175, 55, 0.16);
}

.frame581b7-faq details p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--frame581b7-dim);
}

/* scenario cards */
.frame581b7-scenes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.frame581b7-scene {
  padding: 10px 12px;
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-top: 2px solid var(--frame581b7-gold);
  border-radius: var(--frame581b7-r-tile);
}

.frame581b7-scene h3 {
  font-size: 11.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--frame581b7-gold);
  margin-bottom: 5px;
}

.frame581b7-scene p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.58;
  color: var(--frame581b7-dim);
}

/* --------------------------------------------------------------------------
   Extended footer (homepage only)
   -------------------------------------------------------------------------- */

.frame581b7-xfoot {
  margin-top: 30px;
  border-top: 2px solid var(--frame581b7-gold);
  padding-top: 14px;
}

.frame581b7-xfoot section + section {
  margin-top: 16px;
}

.frame581b7-xf-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frame581b7-gold);
  margin-bottom: 9px;
}

.frame581b7-xf-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--frame581b7-line-soft);
}

.frame581b7-xf-brand {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--frame581b7-dim);
}

.frame581b7-promos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.frame581b7-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  text-align: left;
  background: var(--frame581b7-deep);
  border: 1px solid var(--frame581b7-line-soft);
  border-radius: var(--frame581b7-r-tile);
  color: var(--frame581b7-ink);
  transition: border-color var(--frame581b7-move), background var(--frame581b7-move);
}

.frame581b7-promo:hover {
  border-color: var(--frame581b7-magenta);
  background: #2b3f55;
}

.frame581b7-promo .frame581b7-promoic {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame581b7-line);
  border-radius: var(--frame581b7-r-btn);
  background: rgba(255, 20, 147, 0.14);
}

.frame581b7-promo b {
  flex: 1;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

.frame581b7-promo b small {
  display: block;
  font-weight: 600;
  font-size: 10.5px;
  color: var(--frame581b7-faint);
}

.frame581b7-promo i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
  color: var(--frame581b7-salmon);
}

.frame581b7-dir {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.frame581b7-dir li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
}

.frame581b7-dir li::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  background: var(--frame581b7-gold);
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}

.frame581b7-dir a {
  font-weight: 700;
  color: var(--frame581b7-rose);
}

.frame581b7-dir a:hover {
  color: var(--frame581b7-gold);
}

.frame581b7-dir a small {
  font-weight: 500;
  font-size: 10.5px;
  color: var(--frame581b7-faint);
}

.frame581b7-xf-note {
  padding: 10px 12px;
  border: 1px dashed var(--frame581b7-line-hard);
  border-radius: var(--frame581b7-r-tile);
  font-size: 11px;
  line-height: 1.55;
  color: var(--frame581b7-faint);
}

/* --------------------------------------------------------------------------
   Copyright bar + bottom rail
   -------------------------------------------------------------------------- */

.frame581b7-copy {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(var(--frame581b7-rail-h) + 18px);
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--frame581b7-faint);
}

.frame581b7-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--frame581b7-rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(26, 37, 49, 0.98);
  border-top: 1px solid var(--frame581b7-line);
}

.frame581b7-railbtn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--frame581b7-rail-h);
  padding: 6px 2px 4px;
  background: none;
  border: 0;
  color: var(--frame581b7-dim);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--frame581b7-move);
}

.frame581b7-railbtn span {
  line-height: 1;
}

/* sliding underline marker for the current role */
.frame581b7-railbtn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 26px;
  height: 3px;
  background: var(--frame581b7-gold);
  border-radius: 2px 2px 0 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform var(--frame581b7-move);
}

.frame581b7-railbtn:hover {
  color: var(--frame581b7-rose);
}

.frame581b7-railbtn.is-here {
  color: var(--frame581b7-gold);
}

.frame581b7-railbtn.is-here::after {
  transform: translateX(-50%) scaleX(1);
}

.frame581b7-railbtn--promo svg {
  filter: drop-shadow(0 0 6px rgba(255, 20, 147, 0.45));
}

/* --------------------------------------------------------------------------
   Responsive fine-tuning
   -------------------------------------------------------------------------- */

/* small phones: keep header CTAs readable */
@media (max-width: 339px) {
  .frame581b7-btn {
    padding: 0 9px;
    font-size: 11px;
  }
  .frame581b7-brandname {
    max-width: 74px;
  }
  .frame581b7-h1 {
    font-size: 20px;
  }
}

/* 5-column game grid on wider phones */
@media (min-width: 400px) {
  .frame581b7-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* two-column directory from 360px */
@media (min-width: 360px) {
  .frame581b7-dir {
    grid-template-columns: 1fr 1fr;
  }
}

/* phablet refinements */
@media (min-width: 375px) {
  .frame581b7-h1 {
    font-size: 24px;
  }
  .frame581b7-block > h2,
  .frame581b7-cathead h2 {
    font-size: 15.5px;
  }
}

/* wide screens: keep the phone canvas centered, dress the sides */
@media (min-width: 600px) {
  body {
    background:
      radial-gradient(1200px 500px at 50% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
      var(--frame581b7-pit);
  }
  .frame581b7-shell {
    box-shadow: 0 0 0 1px rgba(255, 192, 203, 0.08), 0 18px 60px rgba(0, 0, 0, 0.45);
  }
}

/* respect users who prefer stillness */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
