/* ============================================================
   FanOne — Dinamo Zagreb
   Premium navy/gold fan platform. Built to the reference design.
   ============================================================ */

:root {
  /* surface */
  --ink:        #030f22;
  --navy:       #061a33;
  --panel:      #0a2344;
  --panel-hi:   #0e2c53;
  --line:       #16406e;
  --line-soft:  #12314f;

  /* brand */
  --gold:       #c9a24e;
  --gold-lo:    #8d6c2c;
  --gold-hi:    #edd08a;
  --blue:       #2c8dff;
  --blue-deep:  #1466cc;
  --live:       #e23a34;
  --green:      #4ade80;

  /* type */
  --text:       #ffffff;
  --dim:        #b3c4d8;
  --muted:      #7f96b2;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --shell: 440px;
  --nav-h: 62px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

/* Desktop: the stadium plate frames the phone-width app */
@media (min-width: 700px) {
  body {
    background: #020a16 url("assets/bg-stadium.jpg") center / cover fixed no-repeat;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(3,15,34,.55), rgba(2,8,20,.94));
    z-index: 0;
  }
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg.ic { display: block; flex: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

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

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

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #061c37 0%, #041428 45%, #030f22 100%);
  display: flex;
  flex-direction: column;
}

@media (min-width: 700px) {
  .app {
    min-height: auto;
    height: calc(100dvh - 48px);
    margin: 24px auto;
    border-radius: 30px;
    border: 1px solid rgba(201,162,78,.22);
    box-shadow: 0 40px 90px rgba(0,0,0,.7);
    overflow: hidden;
  }
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 26px;
  scrollbar-width: none;
}
.content::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------
   Top bars
   ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(6,26,51,.98) 60%, rgba(6,26,51,0) 100%);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand img { width: 30px; height: 30px; }
.brand span {
  font-size: 17px; font-weight: 700; letter-spacing: .1em;
}
.brand span b { font-weight: 400; color: var(--dim); }

.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--dim);
  border-radius: 50%;
  transition: color .18s, background .18s;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); }

.icon-btn .badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--live);
  color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal;
  border: 2px solid #071e39;
}

.topbar .spacer { flex: 1; }

/* ------------------------------------------------------------
   Bottom navigation
   ------------------------------------------------------------ */

.tabbar {
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(4,17,34,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
}

.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  transition: color .18s;
}
.tabbar button span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
.tabbar button:hover { color: var(--dim); }
.tabbar button.on { color: var(--blue); }

/* ------------------------------------------------------------
   Shared blocks
   ------------------------------------------------------------ */

.panel {
  background: linear-gradient(165deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
}
.section-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.section-head .link { color: var(--blue); font-size: 12.5px; font-weight: 600; }

.crest { width: 54px; height: 54px; object-fit: contain; }
.crest-sm { width: 34px; height: 34px; object-fit: contain; }

.fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.fixture .side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fixture .side strong { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; }
.fixture .vs { font-size: 14px; font-weight: 700; color: var(--dim); letter-spacing: .06em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: filter .18s, transform .12s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; }
.btn-primary:hover { filter: brightness(1.09); }
.btn-ghost { border: 1px solid var(--line); color: var(--dim); }
.btn-ghost:hover { border-color: var(--blue); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #241703; }

/* row list: STATISTIKE / SASTAVI / ... */
.rows { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.rows button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 15px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  transition: background .16s;
}
.rows button:last-child { border-bottom: 0; }
.rows button:hover { background: var(--panel-hi); }
.rows .ic:first-child { color: var(--dim); }
.rows .label { flex: 1; min-width: 0; }
.rows .label b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.rows .label small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.rows .chev { color: var(--muted); }

.tabs {
  display: flex;
  gap: 4px;
  margin: 4px 0 16px;
  border-bottom: 1px solid var(--line-soft);
}
.tabs button {
  flex: 1;
  padding: 11px 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}
.tabs button:hover { color: var(--dim); }
.tabs button.on { color: #fff; border-bottom-color: var(--gold); }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--dim);
}

.empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------
   Splash / hub  (the left panel of the reference)
   ------------------------------------------------------------ */

.splash {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 22px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Scrim je lagan gore, gdje je katedrala, a jak dolje ispod izbornika. */
  background:
    linear-gradient(180deg,
      rgba(3,13,28,.30) 0%,
      rgba(3,13,28,.20) 28%,
      rgba(3,12,26,.34) 44%,
      rgba(3,11,24,.68) 60%,
      rgba(2,10,22,.90) 76%,
      rgba(2,9,20,.97) 100%),
    url("assets/bg-splash.jpg") center top / cover no-repeat;
}

@media (min-width: 700px) {
  .splash {
    min-height: auto;
    height: calc(100dvh - 48px);
    margin: 24px auto;
    border-radius: 30px;
    border: 1px solid rgba(201,162,78,.22);
    box-shadow: 0 40px 90px rgba(0,0,0,.7);
    overflow-y: auto;
  }
}

.splash-stars {
  display: flex;
  gap: 9px;
  color: var(--gold);
  margin-bottom: 8px;
}

.splash-crest { width: 128px; height: 132px; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0,0,0,.6)); }

.splash-word {
  margin: 16px 0 0;
  text-shadow: 0 2px 18px rgba(2,10,22,.85);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}
.splash-word b { font-weight: 300; color: var(--dim); }

.splash-club {
  margin: 8px 0 0;
  text-shadow: 0 2px 12px rgba(2,10,22,.9);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--dim);
}

.splash-tagline {
  margin: 26px 0 30px;
  text-shadow: 0 2px 16px rgba(2,10,22,.92), 0 0 44px rgba(2,10,22,.7);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: .01em;
}
.splash-tagline em { font-style: normal; color: var(--blue); }

.splash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  width: 100%;
  text-align: left;
}

.splash-grid button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  transition: background .16s;
}
.splash-grid button:hover { background: rgba(255,255,255,.05); }

.splash-grid .glyph {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(201,162,78,.4);
  background: rgba(9,32,60,.7);
  color: var(--gold);
}
.splash-grid .txt { min-width: 0; }
.splash-grid .txt b {
  display: block;
  text-shadow: 0 1px 10px rgba(2,10,22,.9);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
}
.splash-grid .txt small {
  display: block;
  margin-top: 1px;
  text-shadow: 0 1px 10px rgba(2,10,22,.9);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.splash-more {
  margin: 26px 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--muted);
}

.splash-enter { max-width: 260px; margin-bottom: 22px; }

.wordmark {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 12px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 38px;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #f3dda3 0%, var(--gold) 48%, #8e6b28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: auto;
}
.wordmark::before,
.wordmark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--blue) 50%, var(--gold) 80%, transparent);
  opacity: .75;
}
.wordmark::before { top: 0; }
.wordmark::after { bottom: 0; }

/* ------------------------------------------------------------
   Home
   ------------------------------------------------------------ */

.greeting { margin: 2px 0 14px; }
.greeting h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.greeting h1 .ic { color: var(--blue); }
.greeting p { margin: 5px 0 0; font-size: 13px; color: var(--dim); }

.hero {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #04122a;
  margin-bottom: 16px;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,16,34,0), rgba(3,13,28,.7));
}

.quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 2px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel-hi), var(--panel));
  color: var(--dim);
  transition: border-color .16s, color .16s, transform .12s;
}
.quick button:hover { border-color: var(--blue); color: #fff; }
.quick button:active { transform: scale(.96); }
.quick button span {
  font-size: 7.6px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  line-height: 1.2;
}

.match-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.match-card .head b { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; }
.match-card .when {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
}
.match-card .venue {
  margin: 4px 0 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* loyalty */
.loyalty { display: flex; align-items: center; gap: 14px; }
.loyalty .main { flex: 1; min-width: 0; }
.loyalty .value { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 12px; }
.loyalty .value strong { font-size: 29px; font-weight: 800; letter-spacing: -.01em; }
.loyalty .value span { font-size: 12.5px; font-weight: 700; color: var(--green); }

.bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #d8d8dc, var(--gold-hi));
  transition: width .5s ease;
}

.loyalty .scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--muted);
}
.loyalty .scale b { color: #cfd6de; font-weight: 700; }
.loyalty .scale strong { color: var(--gold); font-weight: 700; }
.loyalty .scale span { letter-spacing: 0; }

.hex {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px; height: 84px;
  flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo));
}
.hex::before {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(165deg, #0d2c53, #071c36);
}
.hex img { position: relative; width: 40px; height: 40px; object-fit: contain; }

.feature {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  text-align: left;
}
.feature .thumb {
  display: block;
  height: 128px;
  background: #04122a url("assets/hero-fans.jpg") center 55% / cover no-repeat;
}
.feature .body { display: block; padding: 13px 15px 15px; background: var(--panel); }
.feature .body .eyebrow { display: block; }
.feature .body .h { display: block; margin-top: 5px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.feature .body .meta { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------
   Match centre
   ------------------------------------------------------------ */

.live-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--live);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
}
.live-badge i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.live-card .score { text-align: center; }
.live-card .score b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.1;
}
.live-card .score span { font-size: 11.5px; font-weight: 700; color: var(--blue); }

.timeline { padding: 4px 0; }
.timeline .ev {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.timeline .ev:last-child { border-bottom: 0; }
.timeline .ev b { width: 34px; flex: none; font-size: 12px; font-weight: 700; color: var(--gold); }
.timeline .ev span { font-size: 13px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-wrap th {
  padding: 10px 8px;
  background: var(--panel-hi);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: right;
}
.table-wrap th:nth-child(2) { text-align: left; }
.table-wrap td {
  padding: 11px 8px;
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
  text-align: right;
}
.table-wrap td:nth-child(2) { text-align: left; font-weight: 600; }
.table-wrap tr.me td { background: rgba(44,141,255,.12); }
.table-wrap td:first-child, .table-wrap th:first-child { padding-left: 13px; color: var(--muted); }
.table-wrap td:last-child, .table-wrap th:last-child { padding-right: 13px; font-weight: 700; }

.fx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.fx-row:last-child { border-bottom: 0; }
.fx-row .date { width: 52px; flex: none; font-size: 10.5px; color: var(--muted); letter-spacing: .05em; }
.fx-row .teams { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; }
.fx-row .teams small { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }

.stat { margin-bottom: 14px; }
.stat .cap {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 6px;
}
.stat .cap b { font-weight: 700; }
.stat .cap em { font-style: normal; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.stat .track { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.1); }
.stat .track i { display: block; height: 100%; }
.stat .track i:first-child { background: var(--blue); }
.stat .track i:last-child { background: var(--gold); }

/* ------------------------------------------------------------
   Tickets
   ------------------------------------------------------------ */

.ticket { padding: 18px 16px 16px; }
.ticket .when { margin: 15px 0 0; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; }
.ticket .venue { margin: 3px 0 15px; text-align: center; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); }

.seat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 -16px;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02);
}
.seat div { text-align: center; }
.seat span { display: block; font-size: 8.5px; letter-spacing: .12em; color: var(--muted); }
.seat b { display: block; margin-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }

.qr-holder { display: flex; flex-direction: column; align-items: center; padding: 18px 0 14px; }
.qr-holder .qr {
  padding: 9px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.qr-holder .qr svg { display: block; width: 116px; height: 116px; }
.qr-holder small {
  margin-top: 11px;
  font-size: 10.5px;
  letter-spacing: .13em;
  color: var(--muted);
}

.ticket-past { opacity: .55; }
.ticket-past .qr-holder .qr { filter: grayscale(1); }

.offer {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.offer:last-child { border-bottom: 0; }
.offer .info { flex: 1; min-width: 0; }
.offer .info b { display: block; font-size: 12.5px; font-weight: 700; }
.offer .info small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.offer .price { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }

/* ------------------------------------------------------------
   Profile
   ------------------------------------------------------------ */

.profile-head { display: flex; align-items: center; gap: 13px; }
.avatar {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(165deg, #12355f, #08203c);
  font-size: 19px;
  font-weight: 800;
  color: var(--gold-hi);
}
.profile-head .who { flex: 1; min-width: 0; }
.profile-head .who b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.profile-head .who small { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }

.tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: none;
}
.tier .mark {
  display: grid;
  place-items: center;
  width: 32px; height: 36px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  color: #23180a;
  font-size: 14px;
  font-weight: 900;
  font-family: var(--serif);
}
.tier span { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; color: var(--gold); }

.points-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.points-strip .val strong { display: block; font-size: 24px; font-weight: 800; margin-top: 2px; }
.points-strip .link { color: var(--blue); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; }

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row .info { flex: 1; min-width: 0; }
.switch-row .info b { display: block; font-size: 12.5px; font-weight: 600; }
.switch-row .info small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.switch {
  position: relative;
  width: 42px; height: 24px;
  flex: none;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  transition: background .2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(18px); }

/* ------------------------------------------------------------
   My Legacy
   ------------------------------------------------------------ */

.legacy-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 172px;
  padding: 20px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #06203d url("assets/legacy-cover.jpg") center / cover no-repeat;
  text-align: center;
  margin-bottom: 8px;
}
.legacy-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,18,38,.55), rgba(3,13,28,.86));
}
.legacy-cover .inner { position: relative; }
.legacy-cover h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .08em; }
.legacy-cover p { margin: 6px 0 15px; font-size: 12px; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.legacy-cover .btn { width: auto; padding: 9px 20px; }

.memories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.memory {
  position: relative;
  height: 84px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, var(--panel-hi), var(--panel));
  display: flex;
  align-items: flex-end;
  padding: 10px;
  text-align: left;
}
.memory.photo-a { background: #06203d url("assets/tile-stadium.jpg") center / cover no-repeat; }
.memory.photo-b { background: #06203d url("assets/tile-terrace.jpg") center / cover no-repeat; }
.memory::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,16,34,.15), rgba(3,12,26,.85));
}
.memory .glyph { position: absolute; top: 10px; right: 10px; color: var(--gold); opacity: .85; }
.memory .txt { position: relative; }
.memory .txt strong { display: block; font-size: 21px; font-weight: 800; line-height: 1; }
.memory .txt span { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; color: var(--dim); }

.film { margin-top: 14px; }
.film .track { display: flex; gap: 5px; margin-bottom: 14px; }
.film .track i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.16);
  transition: background .3s;
}
.film .track i.on { background: var(--gold); }
.film h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; }
.film p { margin: 8px 0 0; font-size: 13px; color: var(--dim); line-height: 1.55; min-height: 62px; }
.film .controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.film .controls button {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--dim);
  transition: border-color .16s, color .16s;
}
.film .controls button:hover { border-color: var(--blue); color: #fff; }
.film .controls .play {
  width: 46px; height: 46px;
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold));
  color: #23180a;
}

/* ------------------------------------------------------------
   Misc screens (shop, community, passport, stadium, assistant)
   ------------------------------------------------------------ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 15px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel-hi), var(--panel));
  text-align: left;
  transition: border-color .16s, transform .12s;
}
.tile:hover { border-color: var(--blue); }
.tile:active { transform: scale(.985); }
.tile .glyph { color: var(--gold); }
.tile b { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; }
.tile small { font-size: 11px; color: var(--muted); }

.product { padding: 0; overflow: hidden; }
.product .shot {
  width: 100%;
  height: 108px;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: linear-gradient(165deg, #123963, #08203c);
  border-bottom: 1px solid var(--line-soft);
}
.product .body { padding: 12px 13px 14px; width: 100%; }
.product .body b { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.product .body .price { margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--gold); }

.post { padding: 15px 16px; }
.post .top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post .mini {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(165deg, #14396a, #0a2444);
  font-size: 13px;
  font-weight: 700;
}
.post .top b { font-size: 12.5px; font-weight: 700; }
.post .top small { display: block; font-size: 10.5px; color: var(--muted); }
.post p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.post .like {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: color .16s, border-color .16s;
}
.post .like.on { color: var(--blue); border-color: var(--blue); }

.field {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(3,14,30,.6);
  color: #fff;
  font: inherit;
  font-size: 14px;
  margin-bottom: 10px;
  resize: vertical;
}
.field::placeholder { color: var(--muted); }
.field:focus { outline: none; border-color: var(--blue); }

.chat { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.bubble {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bubble.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-bottom-right-radius: 4px; }

.map {
  position: relative;
  height: 230px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, #0e3a2a, #061a33 70%);
  margin-bottom: 14px;
}
.map .pitch {
  position: absolute;
  inset: 24% 18%;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
}
.map .pin {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(6,26,51,.95);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-hi);
  white-space: nowrap;
}
.map .pin.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  z-index: 200;
  transform: translateX(-50%) translateY(14px);
  max-width: 84vw;
  padding: 11px 18px;
  border-radius: 999px;
  background: #f2f6fb;
  color: #06182f;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ============================================================
   Phase 5 — Advanced camera, AI analytics and highlights
   ============================================================ */
.analytics-panel{padding:14px}.analysis-tabs,.highlight-filters{display:flex;gap:6px;overflow:auto;padding-bottom:12px}.analysis-tabs button,.highlight-filters button{white-space:nowrap;border:1px solid var(--line);background:#071a31;color:var(--muted);border-radius:999px;padding:8px 11px;font-size:9px;font-weight:800}.analysis-tabs button.on,.highlight-filters button.on{background:var(--gold);border-color:var(--gold);color:#08101b}
.analysis-score{display:grid;grid-template-columns:1fr 64px 1fr;align-items:center;text-align:center;padding:18px 5px}.analysis-score div:not(.ai-orb){display:flex;flex-direction:column}.analysis-score small{font-size:9px;color:var(--muted)}.analysis-score b{font-size:30px;margin:4px 0}.analysis-score span{font-size:10px}.ai-orb{width:54px;height:54px;margin:auto;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#37a1ff,#0a4a9c 52%,#06182e 73%);box-shadow:0 0 30px #157cff66;color:white;font-weight:900;font-size:12px;border:1px solid #63b4ff}
.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.insight-grid article{padding:12px;border-radius:12px;background:#061629;border:1px solid #15314d}.insight-grid small,.insight-grid span{display:block;color:var(--muted);font-size:8px}.insight-grid strong{display:block;font-size:21px;margin:4px 0}
.ai-note{margin-top:12px;padding:13px;border-radius:12px;background:linear-gradient(145deg,#0b2850,#06172d);border:1px solid #23558c}.ai-note b{color:#78baff;font-size:11px}.ai-note p{margin:6px 0 0;color:#c7d1dc;font-size:12px;line-height:1.5}
.pitch-analytics{height:235px;border-radius:12px;position:relative;overflow:hidden;background:#0a3652;border:1px solid #4e7e93;background-image:linear-gradient(90deg,transparent 49.6%,#ffffff44 49.8%,#ffffff44 50.2%,transparent 50.4%),linear-gradient(#ffffff0b 50%,transparent 50%);background-size:100% 100%,100% 25%}.pitch-analytics:before{content:"";position:absolute;inset:10px;border:1px solid #ffffff55;border-radius:2px}.pitch-analytics:after{content:"";position:absolute;left:50%;top:50%;width:64px;height:64px;border:1px solid #ffffff55;border-radius:50%;transform:translate(-50%,-50%)}
.shot-map .shot{position:absolute;width:10px;height:10px;border-radius:50%;z-index:2;background:#47a4ff;box-shadow:0 0 10px #47a4ff}.shot-map .shot-map .shot.away{background:#fff;box-shadow:0 0 9px #fff}.shot-map .shot.goal{width:17px;height:17px;border:3px solid #e7b85d;background:transparent}
.analysis-legend{display:flex;gap:14px;justify-content:center;margin-top:10px;font-size:9px;color:var(--muted)}.analysis-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.analysis-legend .blue{background:#47a4ff}.analysis-legend .white{background:#fff}.analysis-legend .ring{border:2px solid #e7b85d}
.heat{position:absolute;width:105px;height:105px;border-radius:50%;filter:blur(18px);opacity:.9;background:radial-gradient(circle,#fff36a 0,#ff932e 28%,#f32323 48%,transparent 72%)}.heat.h1{left:55%;top:18%}.heat.h2{left:64%;top:48%;transform:scale(.8)}.heat.h3{left:30%;top:35%;transform:scale(.55)}.heat.h4{left:42%;top:63%;transform:scale(.5)}
.momentum-chart{height:210px;display:flex;align-items:center;gap:3px;padding:18px 5px;position:relative}.momentum-chart .zero{position:absolute;left:0;right:0;top:50%;height:1px;background:#ffffff22}.momentum-chart i{flex:1;max-height:44%;border-radius:3px;align-self:center}.momentum-chart i.home{background:linear-gradient(#1687ff,#084d9c);transform:translateY(calc(-50% - 1px))}.momentum-chart i.away{background:linear-gradient(#fff,#8795a5);transform:translateY(calc(50% + 1px))}
.generate-reel{width:100%;border:1px solid #2662a1;background:linear-gradient(145deg,#0d315c,#07182e);border-radius:13px;padding:14px;color:#fff;display:flex;align-items:center;gap:12px;text-align:left}.generate-reel svg{color:#66b3ff}.generate-reel span{display:flex;flex-direction:column}.generate-reel b{font-size:11px}.generate-reel small{font-size:9px;color:var(--muted);margin-top:3px}.clip-list{margin-top:10px}.clip-list>button{width:100%;height:58px;border:0;border-bottom:1px solid #17304a;background:transparent;color:#fff;display:grid;grid-template-columns:42px 1fr 38px;align-items:center;text-align:left}.clip-play{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0a5fb9}.clip-copy{display:flex;flex-direction:column}.clip-copy b{font-size:11px}.clip-copy small{font-size:9px;color:var(--muted);margin-top:3px}.clip-list em{font-style:normal;color:var(--muted);font-size:10px}
.stadium-hero{min-height:150px;margin-bottom:14px;border-radius:16px;padding:18px;background:linear-gradient(90deg,#03152bdd,#03152b55),url("assets/tile-stadium.jpg") center/cover;display:flex;justify-content:space-between;align-items:end;gap:14px}.stadium-hero h2{font-size:20px;margin:7px 0}.stadium-hero p{max-width:260px;margin:0;color:#bdc8d3;font-size:11px;line-height:1.4}.ar-launch{min-width:108px;border:1px solid #d5a84f;background:#07172bce;color:#fff;border-radius:13px;padding:11px;display:flex;align-items:center;gap:8px;text-align:left}.ar-launch svg{color:var(--gold)}.ar-launch span{display:flex;flex-direction:column}.ar-launch b{font-size:9px}.ar-launch small{font-size:8px;color:var(--muted);margin-top:3px}.facility-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.facility-strip article{padding:10px;border-radius:11px;background:#06172b;border:1px solid var(--line);text-align:center}.facility-strip b,.facility-strip span{display:block}.facility-strip b{font-size:16px;color:#62adff}.facility-strip span{font-size:8px;color:var(--muted);margin-top:3px}.route-card h2{margin:8px 0 6px;font-size:18px}.route-card p{margin:0 0 12px;font-size:12px;color:var(--muted)}.facility-pills{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.ar-shell{padding-bottom:10px}.camera-stage{height:520px;border-radius:18px;overflow:hidden;position:relative;background:#02070d;border:1px solid #21496f}.camera-stage video,.camera-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-stage video{display:none}.camera-stage.camera-on video{display:block}.camera-stage.camera-on .camera-fallback{display:none}.camera-fallback img{width:100%;height:100%;object-fit:cover;filter:brightness(.66) saturate(.85)}.camera-fallback span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:11px;color:#d4dee9}.ar-grid{position:absolute;inset:0;background-image:linear-gradient(#34a5ff15 1px,transparent 1px),linear-gradient(90deg,#34a5ff15 1px,transparent 1px);background-size:42px 42px}.ar-corners i{position:absolute;width:42px;height:42px;border-color:#59b3ff}.ar-corners i:nth-child(1){left:18px;top:18px;border-left:2px solid;border-top:2px solid}.ar-corners i:nth-child(2){right:18px;top:18px;border-right:2px solid;border-top:2px solid}.ar-corners i:nth-child(3){left:18px;bottom:18px;border-left:2px solid;border-bottom:2px solid}.ar-corners i:nth-child(4){right:18px;bottom:18px;border-right:2px solid;border-bottom:2px solid}.ar-top{position:absolute;top:18px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;font-size:9px}.player-tag{position:absolute;left:24px;bottom:92px;display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:11px;background:#031326d9;border:1px solid #2584d9;backdrop-filter:blur(8px)}.player-tag>b{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#0a6aca;font-size:14px}.player-tag span{display:flex;flex-direction:column}.player-tag strong{font-size:11px}.player-tag small{font-size:8px;color:#a8bbce;margin-top:3px}.route-arrow{position:absolute;right:25px;bottom:105px;color:#fff;font-size:52px;text-align:center;text-shadow:0 0 20px #138cff}.route-arrow span{display:block;font-size:9px;padding:6px 9px;border-radius:10px;background:#0368c9}.ar-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.ar-controls button{height:48px;border-radius:12px;border:1px solid #285d8d;background:#071a30;color:#fff;display:flex;align-items:center;justify-content:center;gap:7px;font-size:9px}.ar-controls button:first-child{background:#0a66c1;border-color:#2694f6}.ar-info{padding:14px}.ar-layers{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.ar-layers span{font-size:9px;color:#bdc9d5;padding:9px;border-radius:9px;background:#07182c}
@media(max-width:390px){.camera-stage{height:470px}.stadium-hero{flex-direction:column;align-items:stretch}.ar-launch{justify-content:center}}


/* ============================================================
   Phase 5.1 — repaired Fan Shop
   ============================================================ */
.shop-intro{
  min-height:126px;
  margin-bottom:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:
    radial-gradient(circle at 90% 15%,rgba(216,174,86,.20),transparent 31%),
    linear-gradient(145deg,#0a294d,#06162b);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.shop-intro h2{margin:7px 0 4px;font-size:22px}
.shop-intro p{margin:0;color:var(--muted);font-size:11px}
.shop-cart-count{
  width:46px;height:46px;flex:none;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid var(--gold);
  background:#061427;
  color:var(--gold);font-weight:900;font-size:17px;
}
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shop-product{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(165deg,var(--panel-hi),var(--panel));
  box-shadow:0 12px 24px rgba(0,0,0,.20);
}
.product-image{
  position:relative;
  width:100%;
  height:132px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 35% 20%,rgba(31,132,232,.42),transparent 46%),
    linear-gradient(155deg,#123b68,#071b33);
  border-bottom:1px solid var(--line-soft);
}
.product-image>span{
  position:static!important;
  width:auto!important;height:auto!important;
  display:block!important;
  font-size:52px;
  line-height:1;
  filter:drop-shadow(0 12px 17px rgba(0,0,0,.35));
}
.wishlist{
  position:absolute;right:9px;top:9px;
  width:32px;height:32px;border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(3,15,29,.72);
  color:#fff;font-size:18px;
  display:grid;place-items:center;
  z-index:3;
}
.product-body{padding:13px}
.product-body>b{
  display:block;
  min-height:32px;
  font-size:12px;
  line-height:1.35;
}
.product-price{
  margin-top:7px;
  color:var(--gold);
  font-size:15px;
  font-weight:900;
}
.product-add{
  width:100%;
  min-height:40px;
  margin-top:11px;
  padding:8px 7px;
  border:1px solid #2d6398;
  border-radius:9px;
  background:#071a31;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:8px;
  font-weight:850;
  letter-spacing:.025em;
}
.product-add:active{transform:scale(.97)}
.shop-checkout{
  position:sticky;
  bottom:78px;
  z-index:12;
  margin-top:13px;
  padding:12px;
  border:1px solid #326da7;
  border-radius:14px;
  background:rgba(4,20,38,.96);
  backdrop-filter:blur(15px);
  display:none;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 15px 34px rgba(0,0,0,.43);
}
.shop-checkout.visible{display:flex}
.shop-checkout small,.shop-checkout b{display:block}
.shop-checkout small{font-size:8px;color:var(--gold)}
.shop-checkout b{font-size:12px;margin-top:3px}
.shop-checkout button{
  border:0;border-radius:9px;
  background:linear-gradient(145deg,#147fe7,#0750a2);
  color:#fff;padding:11px 12px;
  display:flex;align-items:center;gap:6px;
  font-size:8px;font-weight:900;
}
@media(max-width:360px){
  .shop-grid{grid-template-columns:1fr}
  .product-image{height:150px}
}


/* ============================================================
   Phase 5.2 — reference home hero and restored iconography
   ============================================================ */
.home-reference-hero{
  position:relative;
  height:338px;
  margin:-2px -16px 0;
  overflow:hidden;
  background:#031326;
}
.home-reference-hero>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 54%;
  filter:brightness(.76) saturate(.92) contrast(1.08);
  transform:scale(1.012);
}
.hero-top-fade{
  position:absolute;
  left:0;right:0;top:0;
  height:132px;
  background:linear-gradient(180deg,#031326 0%,rgba(3,19,38,.83) 32%,rgba(3,19,38,.18) 74%,transparent 100%);
  pointer-events:none;
}
.hero-bottom-fade{
  position:absolute;
  left:0;right:0;bottom:0;
  height:130px;
  background:linear-gradient(180deg,transparent 0%,rgba(3,19,38,.32) 35%,rgba(3,19,38,.88) 77%,#031326 100%);
  pointer-events:none;
}
.hero-greeting{
  position:absolute;
  left:26px;
  top:26px;
  z-index:3;
  text-shadow:0 3px 14px rgba(0,0,0,.55);
}
.hero-greeting h1{
  margin:0 0 6px;
  display:flex;
  align-items:center;
  gap:7px;
  font-family:"Oswald",Inter,sans-serif;
  font-size:27px;
  line-height:1.05;
  letter-spacing:.025em;
}
.hero-greeting h1 svg{color:#087fff;fill:#087fff}
.hero-greeting p{
  margin:0;
  color:#fff;
  font-size:15px;
}
.home-match-card{
  position:relative;
  z-index:4;
  margin-top:-2px;
  border-top-color:#173b5e;
}
.home-reference-quick{
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-top:18px;
}
.home-reference-quick button{
  min-width:0;
  height:84px;
  padding:8px 4px;
  border-radius:17px;
  background:
    radial-gradient(circle at 48% 20%,rgba(25,119,218,.18),transparent 52%),
    linear-gradient(145deg,#0a294d,#06162a);
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 9px 18px rgba(0,0,0,.17);
}
.quick-icon-original{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  margin-bottom:7px;
  color:#fff;
}
.home-reference-quick button>span:last-child{
  font-size:8px;
  line-height:1.12;
  font-weight:700;
}
.reference-section-head{margin-top:4px}
.reference-feature .thumb{
  background-image:linear-gradient(180deg,transparent,rgba(2,10,20,.75)),url("assets/hero-stadium.jpg");
  background-size:cover;
  background-position:center 56%;
}

/* Restored premium navigation icon set */
.original-premium-tabbar{
  grid-template-columns:repeat(5,1fr);
}
.original-premium-tabbar button{
  min-width:0;
  padding:7px 2px 6px;
  gap:3px;
}
.tab-icon-original{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  color:currentColor;
}
.original-premium-tabbar button.on .tab-icon-original{
  color:var(--gold);
  filter:drop-shadow(0 0 8px rgba(216,174,86,.28));
}
.original-premium-tabbar button>span:last-child{
  font-size:8px;
  font-weight:700;
}
.original-premium-tabbar svg{
  display:block;
  overflow:visible;
}
@media(max-width:390px){
  .home-reference-hero{height:316px}
  .hero-greeting{left:22px;top:23px}
  .hero-greeting h1{font-size:24px}
  .home-reference-quick{gap:6px}
  .home-reference-quick button{height:78px}
  .home-reference-quick button>span:last-child{font-size:7px}
}


/* ============================================================
   Phase 5.3 — unified thin-outline reference iconography
   ============================================================ */
.home-reference-quick .quick-icon-original svg{
  width:31px!important;
  height:31px!important;
  stroke-width:1.7!important;
}
.home-reference-quick button:nth-child(1) .quick-icon-original svg{width:33px!important;height:33px!important}
.home-reference-quick button:nth-child(4) .quick-icon-original svg{width:33px!important;height:33px!important}
.original-premium-tabbar .tab-icon-original svg{
  width:25px!important;
  height:25px!important;
  stroke-width:1.7!important;
}
.original-premium-tabbar button:nth-child(3) .tab-icon-original svg{width:27px!important;height:27px!important}
.original-premium-tabbar button:nth-child(5) .tab-icon-original svg{width:27px!important;height:27px!important}
.quick-icon-original,.tab-icon-original{color:#f4f6f8}
.original-premium-tabbar button:not(.on) .tab-icon-original{color:#aeb6c1}
.original-premium-tabbar button.on .tab-icon-original{color:#fff;filter:none}
.home-reference-quick svg,.original-premium-tabbar svg{shape-rendering:geometricPrecision}


/* Phase 5.4 — splash typography alignment */
.splash-word,
.splash-club,
.splash-tagline{
  width:min(100%,420px);
  align-self:flex-start;
  text-align:left!important;
  margin-left:0!important;
  margin-right:0!important;
}
.splash-word{letter-spacing:.045em}
.splash-club{padding-left:1px}
.splash-tagline{padding-left:1px}
@media(max-width:520px){
  .splash-word,
  .splash-club,
  .splash-tagline{width:100%}
}


/* ============================================================
   Phase 5.4 — Weekly Football Quiz + Plava riznica
   ============================================================ */
.quiz-hero{
  padding:21px;
  border-radius:17px;
  border:1px solid #1d466e;
  background:
    radial-gradient(circle at 86% 10%,rgba(216,174,86,.22),transparent 32%),
    linear-gradient(145deg,#0b315b,#06172c);
  margin-bottom:13px;
  box-shadow:0 18px 38px rgba(0,0,0,.26);
}
.quiz-hero.completed{text-align:center}
.quiz-hero h2{margin:7px 0 5px;font-size:24px}
.quiz-hero p{margin:0;color:#b9c6d3;font-size:11px}
.quiz-hero small{display:block;margin-top:7px;color:#94a8bd;font-size:8px;letter-spacing:.08em}
.quiz-emblem{
  width:62px;height:62px;margin:0 auto 13px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#e5ba63,#8e6221);
  color:#07101b;
  box-shadow:0 0 30px rgba(216,174,86,.30);
}
.quiz-progress{height:6px;margin-top:17px;border-radius:10px;background:#17334f;overflow:hidden}
.quiz-progress i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#1689ff,#d8ae56)}
.quiz-card{padding:17px}
.quiz-number{font:700 11px/1 Inter;color:var(--gold);letter-spacing:.12em}
.quiz-card h3{font-size:19px;line-height:1.35;margin:12px 0 17px}
.quiz-options{display:grid;gap:8px}
.quiz-options button{
  min-height:52px;width:100%;padding:10px 12px;border-radius:11px;
  border:1px solid #1c3e5e;background:#06172b;color:#fff;
  display:grid;grid-template-columns:31px 1fr;align-items:center;gap:10px;text-align:left;
}
.quiz-options button span{
  width:29px;height:29px;border-radius:50%;display:grid;place-items:center;
  background:#0b2d52;color:#7ebcff;font-size:10px;font-weight:900;
}
.quiz-options button b{font-size:11px;line-height:1.35}
.quiz-options button.correct{border-color:#2ebd77;background:#09281f}
.quiz-options button.correct span{background:#2ebd77;color:#fff}
.quiz-options button.wrong{border-color:#dc5267;background:#2b1019}
.quiz-options button.wrong span{background:#dc5267;color:#fff}
.quiz-feedback{
  margin:12px 0;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:3px
}
.quiz-feedback.ok{background:#0b2b21;border:1px solid #2ebd77}
.quiz-feedback.bad{background:#2b1119;border:1px solid #d95268}
.quiz-feedback b{font-size:10px}.quiz-feedback span{font-size:9px;color:#c9d4df}
.quiz-result-card{display:grid;grid-template-columns:92px 1fr;gap:14px;align-items:center;padding:18px;margin-bottom:12px}
.quiz-result-ring{
  width:82px;height:82px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:6px solid var(--gold);background:#06172b
}
.quiz-result-ring strong{font-size:20px}.quiz-result-ring span{font-size:7px;color:#aab8c6;margin-top:2px}
.quiz-result-card h3{margin:0 0 5px;font-size:16px}.quiz-result-card p{margin:0;color:var(--muted);font-size:10px}
.quiz-source-note{text-align:center;color:#71859a;font-size:8px;line-height:1.5;margin:12px 16px}

.museum-hero{
  min-height:175px;padding:20px;border-radius:17px;margin-bottom:12px;
  display:flex;align-items:flex-end;justify-content:space-between;gap:15px;
  border:1px solid rgba(216,174,86,.35);
  background:
    linear-gradient(90deg,#031326f2,#0313267a),
    url("assets/hero-stadium.jpg") center 58%/cover no-repeat;
}
.museum-hero h2{font-size:27px;margin:7px 0 6px}.museum-hero p{max-width:280px;margin:0;color:#c0cbd6;font-size:11px;line-height:1.5}
.museum-seal{
  width:62px;height:62px;flex:none;border-radius:50%;display:grid;place-items:center;
  color:var(--gold);border:1px solid var(--gold);background:#051326d9;backdrop-filter:blur(8px)
}
.museum-stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:18px}
.museum-stat-strip article{padding:11px 6px;border:1px solid var(--line);border-radius:11px;background:#06172a;text-align:center}
.museum-stat-strip b,.museum-stat-strip span{display:block}.museum-stat-strip b{font-size:16px;color:var(--gold)}
.museum-stat-strip span{font-size:7px;color:#8fa0b1;margin-top:3px}
.museum-timeline{position:relative}
.museum-entry{display:grid;grid-template-columns:18px 56px 1fr;gap:9px;position:relative;padding-bottom:13px}
.museum-line{position:relative}.museum-line:before{content:"";position:absolute;left:8px;top:0;bottom:-14px;width:1px;background:#22496d}
.museum-line i{position:absolute;left:4px;top:14px;width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 12px rgba(216,174,86,.55)}
.museum-year{padding-top:12px;font-size:10px;font-weight:900;color:var(--gold)}
.museum-card{
  min-height:96px;padding:13px;border:1px solid var(--line);border-radius:13px;
  background:linear-gradient(145deg,#081e38,#051426);
  display:grid;grid-template-columns:38px 1fr;gap:11px
}
.museum-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#0c315b;color:var(--gold)}
.museum-card h3{margin:1px 0 5px;font-size:14px}.museum-card p{margin:0;color:#9eacba;font-size:10px;line-height:1.45}
.museum-quiz-cta{padding:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
.museum-quiz-cta h3{font-size:14px;margin:5px 0 0}
.museum-quiz-cta button{
  min-width:112px;padding:10px;border:1px solid #3176b7;border-radius:10px;
  background:#0a5eb4;color:#fff;display:flex;align-items:center;justify-content:center;gap:7px;font-size:8px;font-weight:900
}
@media(max-width:380px){
  .museum-entry{grid-template-columns:14px 48px 1fr;gap:7px}
  .museum-card{grid-template-columns:32px 1fr;padding:11px}
  .museum-icon{width:31px;height:31px}
  .museum-quiz-cta{flex-direction:column;align-items:stretch}
}


/* ============================================================
   Phase 5.5 — final splash composition
   ============================================================ */

/* Background image is unchanged; only its vertical position is raised. */
.splash{
  background:
    linear-gradient(180deg,
      rgba(3,13,28,.30) 0%,
      rgba(3,13,28,.20) 28%,
      rgba(3,12,26,.34) 44%,
      rgba(3,11,24,.68) 60%,
      rgba(2,10,22,.90) 76%,
      rgba(2,9,20,.97) 100%),
    url("assets/bg-splash.jpg") center -118px / cover no-repeat;
}

/* FANONE and DINAMO ZAGREB stay precisely centered beneath the crest. */
.splash-word,
.splash-club{
  width:100%;
  align-self:center;
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.splash-word{margin-top:16px!important}
.splash-club{padding-left:0!important}

/* The slogan remains a left-aligned editorial block. */
.splash-tagline{
  width:100%;
  align-self:stretch;
  text-align:left!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
}

/* Every feature title and subtitle is explicitly left aligned. */
.splash-grid button{
  justify-content:flex-start;
  text-align:left!important;
}
.splash-grid .txt{
  min-width:0;
  flex:1;
  text-align:left!important;
  align-items:flex-start;
}
.splash-grid .txt b,
.splash-grid .txt small{
  width:100%;
  text-align:left!important;
}

/* Keep the visual relationship stable on smaller phones. */
@media(max-width:520px){
  .splash{
    background-position:center -96px;
  }
}
@media(max-width:390px){
  .splash{
    background-position:center -78px;
  }
}


/* ============================================================
   Phase 6 — World-class complementary hubs
   ============================================================ */
.section-head.compact{margin:22px 0 10px}.section-head.compact h2{font-size:15px}
.hub-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 18px}
.hub-actions button{padding:13px 6px;border:1px solid var(--line);border-radius:12px;background:#06182d;text-align:center}
.hub-actions button>span{width:38px;height:38px;margin:0 auto 8px;border-radius:11px;display:grid;place-items:center;background:#0c315a;color:var(--gold)}
.hub-actions b,.hub-actions small{display:block}.hub-actions b{font-size:9px}.hub-actions small{font-size:7.5px;color:var(--muted);margin-top:3px}
.heritage-video-list{display:grid;gap:8px}
.heritage-video-list button{display:grid;grid-template-columns:116px 1fr;gap:12px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:13px;background:#06172a;text-align:left}
.video-poster{height:68px;border-radius:9px;display:flex;align-items:center;justify-content:center;position:relative;background:linear-gradient(145deg,#173f69,#071529)}
.video-poster i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ffffffea;color:#06172a}
.video-poster em{position:absolute;right:6px;bottom:5px;font-size:7px;background:#020812c9;padding:3px 5px;border-radius:4px}
.heritage-video-list small,.heritage-video-list b{display:block}.heritage-video-list small{font-size:7px;color:var(--gold)}.heritage-video-list b{font-size:11px;line-height:1.35;margin-top:4px}

.commerce-hero,.voice-hero{padding:19px;border:1px solid #25547e;border-radius:17px;background:linear-gradient(145deg,#0c315b,#041326);display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:11px}
.commerce-hero h2,.voice-hero h2{font-size:23px;margin:7px 0 5px}.commerce-hero p,.voice-hero p{margin:0;font-size:10px;line-height:1.45;color:#afbecc}
.commerce-points{flex:none;width:82px;height:82px;border-radius:50%;border:1px solid var(--gold);display:flex;flex-direction:column;align-items:center;justify-content:center}.commerce-points b{font-size:17px;color:var(--gold)}.commerce-points span{font-size:7px}
.partner-challenge{padding:18px;border-radius:15px;background:linear-gradient(145deg,#161c25,#071423);border:1px solid rgba(216,174,86,.48);margin-bottom:12px}
.partner-top,.challenge-meta{display:flex;justify-content:space-between;align-items:center}.partner-top span{font-size:7px;letter-spacing:.12em;color:#aab7c3}.partner-top b{font-size:11px;color:var(--gold)}
.partner-challenge h3{font-size:19px;margin:14px 0 6px}.partner-challenge p{font-size:10px;line-height:1.5;color:#aebbc7}
.challenge-progress,.initiative-progress{height:6px;background:#182d41;border-radius:10px;overflow:hidden}.challenge-progress i,.initiative-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--gold))}
.challenge-meta{margin:6px 0 12px;font-size:8px;color:#92a3b3}.partner-challenge>button{width:100%;padding:10px;border-radius:9px;background:var(--blue);font-size:8px;font-weight:900;color:#fff}
.commerce-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);margin:16px 0 12px}.commerce-tabs button{padding:9px;font-size:8px;font-weight:800;color:var(--muted);border-bottom:2px solid transparent}.commerce-tabs button.active{color:#fff;border-color:var(--blue)}
.points-back{display:block;color:var(--gold);font-size:7px;margin:4px 0 8px}
.partner-offers{display:grid;gap:7px}.partner-offers button{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:12px;border-radius:11px;border:1px solid var(--line);background:#06172a}.partner-offers small,.partner-offers b,.partner-offers em{display:block}.partner-offers small{font-size:7px;color:var(--gold)}.partner-offers b{font-size:10px;margin:3px 0}.partner-offers em{font-size:8px;color:var(--muted);font-style:normal}
.reward-experience{min-height:150px;padding:18px;border-radius:15px;background:linear-gradient(90deg,#061427e8,#06142776),url("assets/hero-stadium.jpg") center/cover;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:12px}.reward-experience h2{font-size:19px;margin:6px 0}.reward-experience p{font-size:9px;color:#bbc7d2}.reward-experience button{padding:9px;border-radius:8px;background:var(--gold);color:#07101b;font-size:7px;font-weight:900}

.voice-hero>span{width:62px;height:62px;border-radius:50%;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold);flex:none}
.voice-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:12px}.voice-principles article{padding:10px 5px;text-align:center;border:1px solid var(--line);border-radius:10px;background:#06172a}.voice-principles b,.voice-principles span{display:block}.voice-principles b{font-size:8px;color:var(--gold)}.voice-principles span{font-size:7px;color:var(--muted);margin-top:3px}
.pulse-card{padding:16px}.pulse-card h3{font-size:15px;line-height:1.4}.pulse-options{display:grid;gap:7px}.pulse-options button{position:relative;overflow:hidden;padding:11px;border-radius:9px;background:#071a2e;border:1px solid var(--line);text-align:left}.pulse-options button span{position:relative;z-index:2;display:flex;justify-content:space-between}.pulse-options button b{font-size:9px}.pulse-options button em{font-size:9px;color:var(--gold);font-style:normal}.pulse-options button i{position:absolute;left:0;top:0;bottom:0;background:#0d417654}.pulse-options button.selected{border-color:var(--blue)}
.official-vote{padding:18px;margin:12px 0;border-radius:15px;border:1px solid rgba(216,174,86,.45);background:linear-gradient(145deg,#102947,#061426);text-align:center}.vote-lock{width:48px;height:48px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;background:#0c315a;color:var(--gold)}.official-vote h2{font-size:18px;margin:7px 0}.official-vote p{font-size:9.5px;line-height:1.5;color:#acbac7}.vote-meta{display:flex;justify-content:center;gap:12px;font-size:7px;color:var(--gold);margin:11px}.design-votes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.design-votes button{padding:12px;border-radius:10px;border:1px solid var(--line);background:#06172a}.design-votes button span{width:32px;height:32px;margin:0 auto 7px;border-radius:8px;display:grid;place-items:center;background:#0b315d;color:var(--gold);font-weight:900}.design-votes button b{font-size:8px}.design-votes button.selected{border-color:var(--gold);background:#17314b}.official-vote>small{display:block;margin-top:10px;font-size:7px;color:#8295a8}
.initiative-list{display:grid;gap:9px}.initiative-list article{padding:14px;border:1px solid var(--line);border-radius:12px;background:#06172a}.initiative-head{display:flex;justify-content:space-between;align-items:center}.initiative-head .status{font-size:6.5px;color:var(--gold);letter-spacing:.08em}.initiative-head small{font-size:7px;color:var(--muted)}.initiative-list h3{font-size:13px;margin:10px 0 4px}.initiative-list p{font-size:8px;color:var(--muted)}.initiative-list article>button{margin-top:10px;width:100%;padding:8px;border-radius:8px;border:1px solid #2c689e;color:#82bfff;font-size:7px;font-weight:900}.initiative-list article>button.supported{background:#0d4b39;border-color:#2ebd77;color:#fff}
@media(max-width:390px){.hub-actions{grid-template-columns:1fr 1fr}.heritage-video-list button{grid-template-columns:95px 1fr}.commerce-hero,.voice-hero{align-items:flex-start}.commerce-points{width:68px;height:68px}}


/* ============================================================
   Phase 7 — Six-HUB product architecture
   ============================================================ */
.hub-tabbar button span:last-child{font-size:7px;letter-spacing:.02em}
.hub-splash-grid{grid-template-columns:1fr 1fr!important}
.hub-home-hero{min-height:260px}
.home-context{display:inline-block;font-size:7px;letter-spacing:.12em;color:var(--gold);margin-bottom:7px}
.matchday-command{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:15px 16px;margin:-8px 0 18px;border-radius:14px;background:linear-gradient(100deg,#0b3e76,#092440);border:1px solid #2b6ba4}
.matchday-command small,.matchday-command b,.matchday-command em{display:block}.matchday-command small{font-size:7px;color:var(--gold)}.matchday-command b{font-size:13px;margin:4px 0}.matchday-command em{font-size:8px;color:#b8c7d4;font-style:normal}.matchday-command strong{font-size:7px;display:flex;align-items:center;gap:4px}
.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.hub-card{min-height:132px;padding:14px;border-radius:15px;border:1px solid var(--line);background:linear-gradient(145deg,#0a223d,#051426);text-align:left;display:flex;flex-direction:column;align-items:flex-start;position:relative}
.hub-card>svg{position:absolute;right:12px;bottom:13px;color:#57728a}.hub-card-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#0b3768;color:var(--gold);margin-bottom:auto}.hub-card b,.hub-card small{display:block}.hub-card b{font-size:10px;margin-top:14px}.hub-card small{font-size:8px;color:var(--muted);line-height:1.35;margin-top:4px}.hub-card.live{border-color:#2f79bb;background:linear-gradient(145deg,#0d427c,#06182e)}
.home-personal-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.home-personal-strip button{padding:12px;border-radius:11px;background:#071a2d;border:1px solid var(--line);text-align:left}.home-personal-strip small,.home-personal-strip b{display:block}.home-personal-strip small{font-size:6.5px;color:var(--gold)}.home-personal-strip b{font-size:8.5px;margin-top:4px}

.matchday-hero{padding:18px;border-radius:18px;background:linear-gradient(180deg,#0d3e70,#06182c);border:1px solid #316c9e;text-align:center}.matchday-kicker{display:flex;justify-content:space-between;font-size:7px;color:var(--gold);letter-spacing:.08em}.matchday-hero .fixture{margin:24px 0 14px}.matchday-time{font-size:12px;font-weight:800}.matchday-venue{font-size:8px;color:var(--muted);margin-top:4px}.countdown{display:flex;justify-content:center;gap:8px;margin-top:16px}.countdown article{width:54px;padding:8px;border-radius:10px;background:#041326;border:1px solid #244c70}.countdown b,.countdown span{display:block}.countdown b{font-size:18px}.countdown span{font-size:6px;color:var(--gold)}
.journey-bar{display:flex;align-items:center;justify-content:center;padding:16px 4px}.journey-bar span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#0b2b4d;border:1px solid #315a7e;font-size:9px;font-weight:900;position:relative}.journey-bar span.done{background:var(--blue)}.journey-bar span small{position:absolute;top:39px;font-size:5.5px;color:var(--muted)}.journey-bar i{width:34px;height:1px;background:#315a7e}
.matchday-primary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0 20px}.matchday-primary button{padding:16px 12px;border-radius:14px;background:#071a2f;border:1px solid var(--line);text-align:left}.matchday-primary button>span{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#0c3764;color:var(--gold)}.matchday-primary b,.matchday-primary small,.matchday-primary em{display:block}.matchday-primary b{font-size:10px;margin-top:12px}.matchday-primary small{font-size:7.5px;color:var(--muted);margin:4px 0 12px}.matchday-primary em{font-size:6.5px;color:#62adff;font-style:normal}
.matchday-tools,.matchday-live-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.matchday-tools button,.matchday-live-grid button{padding:12px;border-radius:11px;background:#071a2d;border:1px solid var(--line);text-align:left}.matchday-tools span,.matchday-live-grid span{color:var(--gold)}.matchday-tools b,.matchday-tools small,.matchday-live-grid b,.matchday-live-grid small{display:block}.matchday-tools b,.matchday-live-grid b{font-size:8px;margin-top:8px}.matchday-tools small,.matchday-live-grid small{font-size:7px;color:var(--muted);margin-top:3px}.matchday-live-grid button{min-height:115px}
.matchday-ai{display:flex;gap:11px;padding:14px;border-radius:12px;margin:14px 0;background:linear-gradient(110deg,#122d46,#071628);border:1px solid rgba(216,174,86,.35)}.matchday-ai>span{color:var(--gold)}.matchday-ai small,.matchday-ai b,.matchday-ai p{display:block}.matchday-ai small{font-size:6px;color:var(--gold)}.matchday-ai b{font-size:9px;margin:4px 0}.matchday-ai p{font-size:7.5px;color:var(--muted);line-height:1.45;margin:0}

.hubs-hero{padding:20px 2px 16px}.hubs-hero h1{font-size:27px;line-height:1.05;margin:9px 0}.hubs-hero p{font-size:10px;color:var(--muted)}
.hubs-stack{display:grid;gap:11px}.hubs-large{min-height:190px;padding:18px;border-radius:17px;text-align:left;position:relative;overflow:hidden;border:1px solid #275376;background:linear-gradient(145deg,#10365d,#051427)}.hubs-large:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-55px;top:-55px;background:#2486df22}.hubs-large .hubs-label{font-size:6.5px;letter-spacing:.15em;color:var(--gold)}.hubs-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:#0a2850;color:var(--gold);margin:20px 0 15px}.hubs-large h2{font-size:19px;margin:0}.hubs-large p{font-size:8.5px;color:#aebdca;max-width:230px;line-height:1.45}.hubs-large em{font-size:7px;font-style:normal;color:#65b4ff;display:flex;align-items:center;gap:4px;margin-top:15px}.hub-1{background:linear-gradient(145deg,#19364c,#071626)}.hub-2{background:linear-gradient(145deg,#0e3151,#061526)}
.hub-system-map{padding:16px;margin:14px 0;border-radius:13px;background:#07182b;border:1px solid var(--line)}.hub-system-map>div:nth-child(2){display:flex;gap:5px;align-items:center;margin:12px 0}.hub-system-map span{font-size:6.5px;padding:6px;border-radius:6px;background:#0c2c4c}.hub-system-map i{font-style:normal;color:var(--gold)}.hub-system-map p{font-size:7.5px;color:var(--muted);line-height:1.5}

.passport-identity{padding:18px;border-radius:18px;background:linear-gradient(145deg,#0c3766,#06172c);border:1px solid #3a76a9}.passport-id-top{display:flex;align-items:center;gap:11px}.passport-id-top img{width:52px}.passport-id-top small,.passport-id-top h2,.passport-id-top p{display:block;margin:0}.passport-id-top small{font-size:6px;color:var(--gold)}.passport-id-top h2{font-size:17px;margin:4px 0}.passport-id-top p{font-size:7px;color:var(--muted)}.verified{margin-left:auto;font-size:6px;color:#7df0ad}.passport-level{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.passport-level div{padding:9px;border-radius:9px;background:#041426;text-align:center}.passport-level small,.passport-level b{display:block}.passport-level small{font-size:6px;color:var(--muted)}.passport-level b{font-size:11px;margin-top:4px}.passport-identity>button{width:100%;padding:10px;border-radius:9px;background:#fff;color:#071526;font-size:7px;font-weight:900}
.passport-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.passport-stats .memory{border:none;text-align:left}
.passport-timeline{margin:14px 0}.passport-timeline article{display:grid;grid-template-columns:45px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}.passport-timeline article>span{font-size:10px;color:var(--gold)}.passport-timeline b,.passport-timeline small{display:block}.passport-timeline b{font-size:8px}.passport-timeline small{font-size:7px;color:var(--muted);margin-top:3px}.passport-actions{display:grid;gap:7px}.passport-actions button{display:flex;align-items:center;gap:10px;padding:12px;border-radius:11px;background:#071a2d;border:1px solid var(--line);text-align:left}.passport-actions button>svg{color:var(--gold)}.passport-actions b,.passport-actions small{display:block}.passport-actions b{font-size:8px}.passport-actions small{font-size:7px;color:var(--muted);margin-top:3px}

.community-hero{padding:20px;border-radius:16px;background:linear-gradient(145deg,#0c355e,#061629);border:1px solid #2a628f}.community-hero h2{font-size:22px;margin:7px 0}.community-hero p{font-size:9px;color:var(--muted);line-height:1.5}.community-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:11px 0}.community-modes button{padding:11px 5px;border-radius:10px;background:#071a2d;border:1px solid var(--line);text-align:center}.community-modes svg{color:var(--gold)}.community-modes b,.community-modes small{display:block}.community-modes b{font-size:7px;margin-top:7px}.community-modes small{font-size:6px;color:var(--muted);margin-top:3px}
.community-compose{margin-top:11px}
@media(max-width:390px){.hub-grid,.matchday-primary,.matchday-tools,.matchday-live-grid{grid-template-columns:1fr 1fr}.hubs-hero h1{font-size:24px}}


/* ===== Phase 7.1 Typography Accessibility ===== */
.hub-card b{font-size:13px!important}
.hub-card small{font-size:10px!important;line-height:1.45!important}

.home-personal-strip small{font-size:8px!important}
.home-personal-strip b{font-size:11px!important}

.matchday-command small{font-size:9px!important}
.matchday-command b{font-size:17px!important}
.matchday-command em{font-size:10px!important}
.matchday-command strong{font-size:10px!important}

.matchday-primary b{font-size:13px!important}
.matchday-primary small{font-size:10px!important}
.matchday-primary em{font-size:9px!important}

.matchday-tools b,
.matchday-live-grid b{font-size:11px!important}
.matchday-tools small,
.matchday-live-grid small{font-size:9px!important;line-height:1.4!important}

.matchday-ai small{font-size:8px!important}
.matchday-ai b{font-size:12px!important}
.matchday-ai p{font-size:10px!important;line-height:1.55!important}

.passport-id-top small{font-size:8px!important}
.passport-id-top h2{font-size:22px!important}
.passport-id-top p{font-size:10px!important}

.passport-level small{font-size:8px!important}
.passport-level b{font-size:15px!important}

.passport-timeline b{font-size:11px!important}
.passport-timeline small{font-size:9px!important}

.passport-actions b{font-size:11px!important}
.passport-actions small{font-size:9px!important}

.community-hero p{font-size:11px!important}
.community-modes b{font-size:9px!important}
.community-modes small{font-size:8px!important}

.hubs-large .hubs-label{font-size:8px!important}
.hubs-large h2{font-size:24px!important}
.hubs-large p{font-size:11px!important}
.hubs-large em{font-size:9px!important}

.hub-system-map span{font-size:8px!important}
.hub-system-map p{font-size:10px!important}

.tabbar button span:last-child,
.hub-tabbar button span:last-child{font-size:10px!important}


/* ============================================================
   PHASE 8.0 — PREMIUM HOME
   ============================================================ */
.phase8-tabbar{grid-template-columns:repeat(5,1fr)!important}
.phase8-tabbar button span:last-child{font-size:9px!important;letter-spacing:.01em}
.phase8-tabbar .tab-icon-original svg{width:25px!important;height:25px!important;stroke-width:1.65!important}

.p8-home-hero{position:relative;height:310px;margin:0 -16px;overflow:hidden;background:#031326}
.p8-home-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 54%;filter:brightness(.72) saturate(.94) contrast(1.08)}
.p8-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,#031326d9 0%,transparent 31%),linear-gradient(180deg,transparent 55%,#031326 100%)}
.p8-home-greeting{position:absolute;left:24px;top:26px;right:24px;z-index:2;text-shadow:0 3px 18px #0009}
.p8-home-greeting small{display:block;color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.14em;margin-bottom:7px}
.p8-home-greeting h1{margin:0;font-size:30px;line-height:1.05;font-weight:850;letter-spacing:-.02em}
.p8-home-greeting p{margin:7px 0 0;font-size:15px;color:#f4f7fa}

.p8-match-focus{margin-top:-2px;padding:18px;border:1px solid #234e78;border-radius:16px;background:linear-gradient(145deg,#0a294d,#051527);box-shadow:0 16px 34px #0004}
.p8-focus-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:800}
.p8-focus-head small{color:var(--gold);font-size:10px}
.p8-match-focus .fixture{margin:19px 0 12px}
.p8-match-meta{text-align:center;margin-bottom:14px}
.p8-match-meta b,.p8-match-meta span{display:block}
.p8-match-meta b{font-size:13px}.p8-match-meta span{font-size:11px;color:var(--muted);margin-top:4px}
.p8-match-focus>button{width:100%;height:44px;border-radius:10px;background:#0b72d9;color:white;font-size:11px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:6px}

.p8-priority-row{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0 20px}
.p8-priority-row button{min-width:0;padding:13px;border-radius:13px;border:1px solid var(--line);background:linear-gradient(145deg,#081d35,#051426);color:#fff;display:grid;grid-template-columns:38px 1fr 15px;gap:9px;align-items:center;text-align:left}
.p8-priority-row button>span:first-child{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#0b315a;color:var(--gold)}
.p8-priority-row small,.p8-priority-row b{display:block}.p8-priority-row small{font-size:9px;color:var(--gold);margin-bottom:4px}.p8-priority-row b{font-size:11px;line-height:1.3}

.p8-continue{margin-bottom:20px}
.p8-continue>button{width:100%;min-height:118px;padding:0;border-radius:15px;border:1px solid var(--line);background:#06172a;overflow:hidden;display:grid;grid-template-columns:104px 1fr 20px;align-items:center;text-align:left}
.p8-continue-art{height:100%;min-height:118px;background:linear-gradient(90deg,transparent,#06172a),url("assets/legacy-cover.jpg") center/cover no-repeat}
.p8-continue-copy{padding:13px 8px}.p8-continue-copy small,.p8-continue-copy b,.p8-continue-copy em{display:block}
.p8-continue-copy small{font-size:9px;color:var(--gold);font-weight:850;letter-spacing:.08em}
.p8-continue-copy b{font-size:13px;line-height:1.35;margin:5px 0}
.p8-continue-copy em{font-size:10px;color:var(--muted);font-style:normal;line-height:1.35}

.p8-context-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:21px}
.p8-context-grid button{min-height:102px;padding:13px;border-radius:13px;border:1px solid #16334e;background:#061629;text-align:left;color:#fff}
.p8-context-grid button>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#0a2d50;color:#a8c9ea;margin-bottom:12px}
.p8-context-grid small,.p8-context-grid b,.p8-context-grid em{display:block}
.p8-context-grid small{font-size:9px;color:#9eafbf}.p8-context-grid b{font-size:12px;margin:4px 0}.p8-context-grid em{font-size:9px;color:#75899d;font-style:normal}
.p8-context-grid button:nth-child(3){border-color:#705e34}.p8-context-grid button:nth-child(3)>span{color:var(--gold)}

.section-head.compact h2{font-size:18px!important}
.section-head.compact p{font-size:11px!important;line-height:1.4}
.topbar-title{font-size:14px!important}.eyebrow{font-size:9px!important}.btn{font-size:11px!important}
.rows .label b{font-size:11px!important}.rows .label small{font-size:10px!important}

@media(max-width:390px){
  .p8-home-hero{height:288px}
  .p8-home-greeting h1{font-size:27px}
  .p8-priority-row{grid-template-columns:1fr}
  .p8-continue>button{grid-template-columns:86px 1fr 18px}
  .p8-context-grid{gap:7px}
}


/* ============================================================
   Phase 8.0.1 — Splash tagline + iPhone safe-area topbar
   ============================================================ */

/* Center the slogan block directly beneath the Dinamo crest / FANONE title group */
.splash-tagline{
  width:100%!important;
  max-width:320px!important;
  align-self:center!important;
  text-align:center!important;
  margin:24px auto 30px!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* Preserve left alignment for feature titles/subtitles below the slogan */
.splash-grid,
.splash-grid button,
.splash-grid .txt,
.splash-grid .txt b,
.splash-grid .txt small{
  text-align:left!important;
}

/* Lower the in-app top bar below iPhone status-area / Dynamic Island */
.topbar{
  min-height:calc(66px + env(safe-area-inset-top))!important;
  padding-top:calc(12px + env(safe-area-inset-top))!important;
  padding-left:18px!important;
  padding-right:18px!important;
  align-items:flex-end!important;
  padding-bottom:12px!important;
}

/* Ensure sticky position starts at screen top but controls live below the safe area */
.topbar{
  top:0!important;
}

/* Give tappable bell/menu area proper iOS hit target */
.topbar button{
  min-width:44px!important;
  min-height:44px!important;
  display:grid!important;
  place-items:center!important;
}

/* Home app shell gets safe top spacing without changing splash */
.app{
  padding-top:0!important;
}

/* Slightly more breathing room for compact phones */
@supports (padding: max(0px)){
  .topbar{
    padding-top:max(12px, env(safe-area-inset-top))!important;
  }
}
