/* ============================================================
   Phfun Casino - mobile surface stylesheet
   Canvas: 320-430px, centered phone frame on wide screens
   Class + variable prefix: frameffa7f-
   Palette: #2C3E50 / #26A69A / #B2DFDB / #EEE8AA / #FFFFBA
   ============================================================ */

:root {
  --frameffa7f-ink: #2C3E50;
  --frameffa7f-ink-deep: #22303f;
  --frameffa7f-ink-raise: #35485c;
  --frameffa7f-teal: #26A69A;
  --frameffa7f-teal-deep: #1e877d;
  --frameffa7f-mint: #B2DFDB;
  --frameffa7f-gold: #EEE8AA;
  --frameffa7f-sand: #FFFFBA;
  --frameffa7f-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Roboto Mono", Menlo, monospace;
  --frameffa7f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --frameffa7f-radius: 10px;
  --frameffa7f-radius-tight: 7px;
  --frameffa7f-header-h: 96px;
  --frameffa7f-tabbar-h: 60px;
  --frameffa7f-tap: 44px;
  --frameffa7f-ease: 140ms ease-out;
}

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--frameffa7f-ink-deep);
  color: var(--frameffa7f-mint);
  font-family: var(--frameffa7f-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
}

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

a {
  color: var(--frameffa7f-teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.frameffa7f-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--frameffa7f-gold);
  color: #33301a;
  font-family: var(--frameffa7f-mono);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 0 0 var(--frameffa7f-radius-tight) 0;
  z-index: 60;
}

.frameffa7f-skip:focus {
  left: 0;
}

.frameffa7f-shell {
  position: relative;
  max-width: 430px;
  margin-inline: auto;
  min-height: 100dvh;
  background: var(--frameffa7f-ink);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.45);
  /* clearance so the fixed bottom tab bar never covers footer text */
  padding-bottom: calc(var(--frameffa7f-tabbar-h) + 26px + env(safe-area-inset-bottom, 0px));
}

.frameffa7f-main {
  padding: 12px;
}

/* ---------- header: brand + action, two layers ---------- */

.frameffa7f-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #2e4156 0%, var(--frameffa7f-ink) 100%);
  border-bottom: 1px solid rgba(178, 223, 219, 0.18);
}

.frameffa7f-brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 6px 12px 2px;
}

.frameffa7f-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--frameffa7f-tap);
  color: var(--frameffa7f-sand);
}

.frameffa7f-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(238, 232, 170, 0.4);
}

.frameffa7f-brand-name {
  font-family: var(--frameffa7f-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frameffa7f-brand a {
  color: inherit;
}

.frameffa7f-brand a:hover {
  text-decoration: none;
}

.frameffa7f-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
}

/* compact dual-button CTA group */
.frameffa7f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--frameffa7f-tap);
  padding: 8px 14px;
  border-radius: var(--frameffa7f-radius-tight);
  border: 1px solid transparent;
  font-family: var(--frameffa7f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--frameffa7f-ease), background var(--frameffa7f-ease), color var(--frameffa7f-ease);
}

.frameffa7f-btn:active {
  transform: scale(0.95);
}

.frameffa7f-btn:hover {
  text-decoration: none;
}

.frameffa7f-btn-primary {
  background: var(--frameffa7f-teal);
  color: #10231f;
}

.frameffa7f-btn-primary:hover {
  background: #2fb3a6;
  color: #10231f;
}

.frameffa7f-btn-ghost {
  background: transparent;
  color: var(--frameffa7f-gold);
  border-color: rgba(238, 232, 170, 0.55);
}

.frameffa7f-btn-ghost:hover {
  border-color: var(--frameffa7f-gold);
}

.frameffa7f-btn-gold {
  background: var(--frameffa7f-gold);
  color: #33301a;
}

.frameffa7f-btn-gold:hover {
  background: var(--frameffa7f-sand);
  color: #33301a;
}

.frameffa7f-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.frameffa7f-menubtn {
  margin-left: auto;
  width: var(--frameffa7f-tap);
  height: var(--frameffa7f-tap);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(178, 223, 219, 0.1);
  border: 1px solid rgba(178, 223, 219, 0.28);
  border-radius: var(--frameffa7f-radius-tight);
  cursor: pointer;
  transition: transform var(--frameffa7f-ease);
}

.frameffa7f-menubtn:active {
  transform: scale(0.92);
}

.frameffa7f-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--frameffa7f-sand);
  border-radius: 2px;
  transition: transform var(--frameffa7f-ease), opacity var(--frameffa7f-ease);
}

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

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

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

/* ---------- compact route panel ---------- */

.frameffa7f-routes {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--frameffa7f-ink-deep);
  border-bottom: 1px solid rgba(178, 223, 219, 0.2);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  padding: 10px 12px 14px;
  display: none;
}

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

.frameffa7f-routes-title {
  font-family: var(--frameffa7f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(178, 223, 219, 0.6);
  margin: 2px 0 8px;
}

.frameffa7f-routes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.frameffa7f-route {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid rgba(178, 223, 219, 0.14);
  border-radius: var(--frameffa7f-radius-tight);
  background: rgba(44, 62, 80, 0.6);
  color: var(--frameffa7f-sand);
  font-size: 13px;
  transition: transform var(--frameffa7f-ease), border-color var(--frameffa7f-ease);
}

.frameffa7f-route:hover {
  text-decoration: none;
  border-color: var(--frameffa7f-teal);
}

.frameffa7f-route:active {
  transform: scale(0.96);
}

.frameffa7f-route-num {
  font-family: var(--frameffa7f-mono);
  font-size: 10px;
  color: var(--frameffa7f-teal);
}

.frameffa7f-route[aria-current="page"] {
  border-color: var(--frameffa7f-teal);
  background: rgba(38, 166, 154, 0.16);
  transform: translateY(-2px);
}

/* ---------- intro / h1 block ---------- */

.frameffa7f-intro {
  padding: 14px 2px 6px;
}

.frameffa7f-intro h1 {
  font-family: var(--frameffa7f-mono);
  font-size: 19px;
  line-height: 1.3;
  color: var(--frameffa7f-sand);
  margin: 0 0 8px;
}

.frameffa7f-lede {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--frameffa7f-mint);
}

.frameffa7f-statchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.frameffa7f-statchip {
  font-family: var(--frameffa7f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--frameffa7f-gold);
  border: 1px dashed rgba(238, 232, 170, 0.45);
  border-radius: 999px;
  padding: 4px 9px;
}

/* ---------- hero carousel ---------- */

.frameffa7f-hero {
  position: relative;
  border-radius: var(--frameffa7f-radius);
  overflow: hidden;
  border: 1px solid rgba(178, 223, 219, 0.18);
  background: var(--frameffa7f-ink-deep);
  margin: 10px 0 4px;
}

.frameffa7f-hero-track {
  display: flex;
  transition: transform 320ms ease;
  touch-action: pan-y;
}

.frameffa7f-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  color: inherit;
}

.frameffa7f-slide:hover {
  text-decoration: none;
}

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

.frameffa7f-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(34, 48, 63, 0) 0%, rgba(24, 35, 47, 0.92) 78%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.frameffa7f-slide-txt {
  min-width: 0;
}

.frameffa7f-slide-kicker {
  font-family: var(--frameffa7f-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frameffa7f-gold);
  display: block;
  margin-bottom: 3px;
}

.frameffa7f-slide-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--frameffa7f-sand);
  line-height: 1.3;
}

.frameffa7f-slide-cta {
  flex: none;
  font-family: var(--frameffa7f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 9px 12px;
  border-radius: var(--frameffa7f-radius-tight);
  background: var(--frameffa7f-teal);
  color: #10231f;
  transition: transform var(--frameffa7f-ease);
}

.frameffa7f-slide:active .frameffa7f-slide-cta {
  transform: scale(0.94);
}

.frameffa7f-dots {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.frameffa7f-dot {
  width: 22px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(178, 223, 219, 0.35);
  cursor: pointer;
  transition: background var(--frameffa7f-ease);
}

.frameffa7f-dot[aria-current="true"] {
  background: var(--frameffa7f-gold);
}

/* ---------- category chip strip ---------- */

.frameffa7f-catstrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 2px 8px;
  scrollbar-width: none;
}

.frameffa7f-catstrip::-webkit-scrollbar {
  display: none;
}

.frameffa7f-catlink {
  flex: none;
  font-family: var(--frameffa7f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frameffa7f-mint);
  border: 1px solid rgba(178, 223, 219, 0.3);
  border-radius: 999px;
  padding: 9px 13px;
  min-height: var(--frameffa7f-tap);
  display: inline-flex;
  align-items: center;
  background: rgba(34, 48, 63, 0.65);
  transition: transform var(--frameffa7f-ease), color var(--frameffa7f-ease), border-color var(--frameffa7f-ease);
}

.frameffa7f-catlink:active {
  transform: scale(0.94);
}

.frameffa7f-catlink:hover {
  color: var(--frameffa7f-gold);
  border-color: var(--frameffa7f-gold);
  text-decoration: none;
}

/* ---------- game shelves ---------- */

.frameffa7f-shelf {
  margin: 18px 0 6px;
  scroll-margin-top: calc(var(--frameffa7f-header-h) + 8px);
}

.frameffa7f-shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-left: 3px solid var(--frameffa7f-teal);
  padding-left: 9px;
  margin-bottom: 6px;
}

.frameffa7f-shelf-head h2 {
  font-family: var(--frameffa7f-mono);
  font-size: 15px;
  line-height: 1.32;
  color: var(--frameffa7f-sand);
  margin: 0;
}

.frameffa7f-count {
  flex: none;
  font-family: var(--frameffa7f-mono);
  font-size: 10px;
  color: var(--frameffa7f-gold);
  border: 1px solid rgba(238, 232, 170, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
}

.frameffa7f-shelf-note {
  font-size: 12.5px;
  color: rgba(178, 223, 219, 0.82);
  margin: 0 0 8px;
}

.frameffa7f-explore {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.frameffa7f-explore a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(38, 166, 154, 0.6);
}

/* light floating game cards */
.frameffa7f-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.frameffa7f-tile {
  display: block;
  background: rgba(178, 223, 219, 0.055);
  border: 1px solid rgba(178, 223, 219, 0.15);
  border-radius: var(--frameffa7f-radius);
  padding: 5px 4px 6px;
  text-align: center;
  color: var(--frameffa7f-sand);
  box-shadow: 0 4px 10px rgba(15, 24, 33, 0.35);
  transition: transform var(--frameffa7f-ease), border-color var(--frameffa7f-ease);
}

.frameffa7f-tile:hover {
  text-decoration: none;
  border-color: var(--frameffa7f-teal);
  transform: translateY(-3px);
}

.frameffa7f-tile:active {
  transform: scale(0.93);
}

.frameffa7f-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--frameffa7f-radius-tight);
  background: var(--frameffa7f-ink-deep);
}

.frameffa7f-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.8px;
  line-height: 1.28;
  margin-top: 5px;
  color: var(--frameffa7f-sand);
}

/* ---------- content modules ---------- */

.frameffa7f-module {
  margin: 22px 0 0;
  background: rgba(34, 48, 63, 0.55);
  border: 1px solid rgba(178, 223, 219, 0.14);
  border-radius: var(--frameffa7f-radius);
  padding: 14px 13px 15px;
}

.frameffa7f-module h2 {
  font-family: var(--frameffa7f-mono);
  font-size: 15px;
  line-height: 1.35;
  color: var(--frameffa7f-sand);
  margin: 0 0 8px;
}

.frameffa7f-module h3 {
  font-size: 13.5px;
  color: var(--frameffa7f-gold);
  margin: 12px 0 4px;
}

.frameffa7f-module p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--frameffa7f-mint);
}

.frameffa7f-module a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(38, 166, 154, 0.6);
}

/* step-progression lists */
.frameffa7f-steps {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  counter-reset: frameffa7f-step;
}

.frameffa7f-steps li {
  counter-increment: frameffa7f-step;
  position: relative;
  padding: 0 0 10px 34px;
  font-size: 13.5px;
  color: var(--frameffa7f-mint);
}

.frameffa7f-steps li::before {
  content: counter(frameffa7f-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--frameffa7f-mono);
  font-size: 10px;
  font-weight: 700;
  color: #33301a;
  background: var(--frameffa7f-gold);
  border-radius: 50%;
}

.frameffa7f-steps li strong {
  color: var(--frameffa7f-sand);
}

/* achievement cards */
.frameffa7f-achgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 4px;
}

.frameffa7f-ach {
  background: rgba(44, 62, 80, 0.75);
  border: 1px solid rgba(178, 223, 219, 0.16);
  border-radius: var(--frameffa7f-radius-tight);
  padding: 10px 9px;
}

.frameffa7f-ach-tag {
  font-family: var(--frameffa7f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frameffa7f-teal);
  display: block;
  margin-bottom: 3px;
}

.frameffa7f-ach-title {
  display: block;
  font-size: 12.8px;
  font-weight: 700;
  color: var(--frameffa7f-sand);
  margin-bottom: 3px;
}

.frameffa7f-ach p {
  margin: 0;
  font-size: 11.8px;
  line-height: 1.4;
  color: rgba(178, 223, 219, 0.85);
}

/* account mini cards */
.frameffa7f-acct {
  border: 1px dashed rgba(238, 232, 170, 0.35);
  border-radius: var(--frameffa7f-radius-tight);
  padding: 10px 11px;
  margin: 8px 0;
}

.frameffa7f-acct h3 {
  margin: 0 0 4px;
  font-family: var(--frameffa7f-mono);
  font-size: 12px;
  color: var(--frameffa7f-gold);
  letter-spacing: 0.05em;
}

.frameffa7f-acct p {
  margin: 0;
  font-size: 13px;
}

/* fact summary list */
.frameffa7f-facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.frameffa7f-facts li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 13.2px;
  border-bottom: 1px solid rgba(178, 223, 219, 0.1);
}

.frameffa7f-facts li:last-child {
  border-bottom: 0;
}

.frameffa7f-facts li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--frameffa7f-teal);
}

/* ---------- play-now band ---------- */

.frameffa7f-cta-band {
  margin: 22px 0 0;
  border-radius: var(--frameffa7f-radius);
  padding: 16px 13px;
  background: linear-gradient(135deg, rgba(38, 166, 154, 0.32) 0%, rgba(34, 48, 63, 0.9) 62%);
  border: 1px solid rgba(38, 166, 154, 0.55);
  text-align: center;
}

.frameffa7f-cta-band h2 {
  font-family: var(--frameffa7f-mono);
  font-size: 15.5px;
  color: var(--frameffa7f-sand);
  margin: 0 0 6px;
}

.frameffa7f-cta-band p {
  margin: 0 0 12px;
  font-size: 13.2px;
  color: var(--frameffa7f-mint);
}

.frameffa7f-cta-band .frameffa7f-btn-row {
  justify-content: center;
}

/* ---------- extended footer (home only) ---------- */

.frameffa7f-extfoot {
  margin: 26px 0 0;
  border-top: 1px solid rgba(178, 223, 219, 0.18);
  padding-top: 14px;
}

.frameffa7f-extfoot-title {
  font-family: var(--frameffa7f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(178, 223, 219, 0.65);
  margin: 12px 0 7px;
}

.frameffa7f-dirgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.frameffa7f-dirgrid a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 12.6px;
  color: var(--frameffa7f-mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(38, 166, 154, 0.5);
}

.frameffa7f-dirgrid a:hover {
  color: var(--frameffa7f-gold);
}

.frameffa7f-brandblurb {
  font-size: 12.8px;
  color: rgba(178, 223, 219, 0.88);
  margin: 0;
}

.frameffa7f-promogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.frameffa7f-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--frameffa7f-tap);
  font-family: var(--frameffa7f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--frameffa7f-sand);
  background: rgba(38, 166, 154, 0.18);
  border: 1px solid rgba(38, 166, 154, 0.55);
  border-radius: var(--frameffa7f-radius-tight);
  transition: transform var(--frameffa7f-ease);
}

.frameffa7f-promo:active {
  transform: scale(0.95);
}

.frameffa7f-promo:hover {
  text-decoration: none;
  border-color: var(--frameffa7f-gold);
}

.frameffa7f-disclaimer {
  font-size: 11.4px;
  line-height: 1.5;
  color: rgba(178, 223, 219, 0.62);
  border: 1px solid rgba(178, 223, 219, 0.12);
  border-radius: var(--frameffa7f-radius-tight);
  padding: 9px 10px;
  margin: 12px 0 0;
}

/* ---------- common footer ---------- */

.frameffa7f-footer {
  text-align: center;
  padding: 16px 12px 8px;
  border-top: 1px solid rgba(178, 223, 219, 0.14);
}

.frameffa7f-footer p {
  margin: 0;
  font-family: var(--frameffa7f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(178, 223, 219, 0.55);
}

/* ---------- fixed bottom tab bar ---------- */

.frameffa7f-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(27, 39, 51, 0.97);
  border-top: 1px solid rgba(178, 223, 219, 0.2);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
}

.frameffa7f-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 4px 2px;
  color: rgba(178, 223, 219, 0.72);
  background: none;
  border: 0;
  font-family: var(--frameffa7f-mono);
  font-size: 9.6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--frameffa7f-ease), transform var(--frameffa7f-ease);
}

.frameffa7f-tab svg {
  width: 21px;
  height: 21px;
}

.frameffa7f-tab:active {
  transform: scale(0.9);
}

.frameffa7f-tab:hover {
  color: var(--frameffa7f-gold);
  text-decoration: none;
}

.frameffa7f-tab[aria-current="page"] {
  color: var(--frameffa7f-gold);
  transform: translateY(-2px);
}

.frameffa7f-tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--frameffa7f-teal);
}

/* ---------- wide screens keep the phone canvas ---------- */

@media (min-width: 431px) {
  body {
    background: #1a2530;
  }
}

@media (min-width: 400px) and (max-width: 430px) {
  .frameffa7f-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- small phones ---------- */

@media (max-width: 339px) {
  .frameffa7f-routes-grid,
  .frameffa7f-achgrid,
  .frameffa7f-dirgrid,
  .frameffa7f-promogrid {
    grid-template-columns: 1fr;
  }

  .frameffa7f-btn {
    padding: 8px 10px;
    font-size: 12px;
  }

  .frameffa7f-intro h1 {
    font-size: 17px;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
