
/* Football Life — canonical application stylesheet. Order preserves the V7.1 cascade. */
/* ===== app ===== */
/* FOOTBALL LIFE — UI (mobile-first, iPhone) */
:root {
  --bg: #070b14;
  --bg2: #0d1424;
  --card: #121b2e;
  --card2: #18233a;
  --line: #22304c;
  --tx: #e9eef8;
  --tx2: #9aa8c2;
  --tx3: #6b7a96;
  --gold: #e3b341;
  --gold2: #f5d77a;
  --gold-d: rgba(227, 179, 65, .14);
  --green: #3ccf7a;
  --red: #f0545c;
  --blue: #4f9cf9;
  --orange: #f39c3d;
  --purple: #a77bf3;
  --r: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 62px;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
button, input, select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: var(--gold);
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--tx2);
}
.gold {
  color: var(--gold);
}
.pos {
  color: var(--green);
}
.neg {
  color: var(--red);
}
.small {
  font-size: 12.5px;
}
.tiny {
  font-size: 11px;
}
.b {
  font-weight: 700;
}
.c {
  text-align: center;
}
.r {
  text-align: right;
}
/* ---------- shell ---------- */
#app {
  min-height: 100vh;
  min-height: 100dvh;
}
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 11, 20, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--safe-t) + 8px) 16px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.top .t1 {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top .t2 {
  font-size: 12px;
  color: var(--tx2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top .grow {
  flex: 1;
  min-width: 0;
}
.top .cash {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.main {
  padding: 14px 16px calc(var(--nav-h) + var(--safe-b) + 24px);
  max-width: 860px;
  margin: 0 auto;
}
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(10, 15, 27, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: var(--safe-b);
}
.nav button {
  flex: 1;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--tx3);
  font-size: 10.5px;
  font-weight: 600;
}
.nav button svg {
  width: 23px;
  height: 23px;
}
.side {
  display: none;
}
@media (min-width: 900px) {
  .nav {
    display: none;
  }
  .side {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 220px;
    background: var(--bg2);
    border-right: 1px solid var(--line);
    padding: 18px 10px;
    gap: 2px;
    z-index: 40;
  }
  .side .logo {
    padding: 4px 10px 18px;
  }
  .side button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--tx2);
    font-weight: 600;
    text-align: left;
  }
  .side button svg {
    width: 20px;
    height: 20px;
  }
  .side button.on {
    background: var(--gold-d);
    color: var(--gold);
  }
  .side button:hover:not(.on) {
    background: var(--card);
  }
  .top, .main {
    margin-left: 220px;
  }
  .main {
    padding-bottom: 40px;
  }
}
/* ---------- cards & layout ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 12px;
}
.card.pad0 {
  padding: 0;
  overflow: hidden;
}
.card h3 {
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h3 .sp {
  flex: 1;
}
.sec-t {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tx3);
  font-weight: 700;
  margin: 18px 2px 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.sb {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .grid-auto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .grid-auto > .card {
    margin-bottom: 0;
  }
  .grid-auto {
    margin-bottom: 12px;
  }
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv:last-child {
  border-bottom: 0;
}
.kv span:first-child {
  color: var(--tx2);
}
.stat {
  background: var(--card2);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.stat .v {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 11px;
  color: var(--tx2);
  margin-top: 2px;
}
.list-i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.list-i:last-child {
  border-bottom: 0;
}
.empty {
  text-align: center;
  color: var(--tx3);
  padding: 18px 8px;
  font-size: 14px;
}
/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 14px;
  color: var(--tx);
  transition: transform .08s, background .15s;
}
.btn:active {
  transform: scale(.97);
}
.btn.gold {
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  color: #1a1405;
  border-color: transparent;
}
.btn.red {
  background: rgba(240, 84, 92, .14);
  color: var(--red);
  border-color: rgba(240, 84, 92, .3);
}
.btn.green {
  background: rgba(60, 207, 122, .14);
  color: var(--green);
  border-color: rgba(60, 207, 122, .3);
}
.btn.sm {
  padding: 7px 11px;
  min-height: 34px;
  font-size: 13px;
  border-radius: 10px;
}
.btn.block {
  width: 100%;
}
.btn:disabled {
  opacity: .45;
  pointer-events: none;
}
.btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.adv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.adv .btn {
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  font-size: 13px;
}
.adv .btn small {
  font-size: 10.5px;
  color: var(--tx2);
  font-weight: 500;
}
.adv .btn.gold small {
  color: #4a3a0c;
}
.adv .main-b {
  grid-column: span 3;
  flex-direction: row;
  font-size: 16px;
  min-height: 54px;
}
/* ---------- tabs / chips ---------- */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -16px 12px;
  padding: 0 16px 2px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--tx2);
  font-weight: 650;
  font-size: 13.5px;
  white-space: nowrap;
}
.tabs button.on {
  background: var(--gold);
  color: #1a1405;
  border-color: var(--gold);
}
.seg {
  display: flex;
  background: var(--card2);
  border-radius: 11px;
  padding: 3px;
  gap: 3px;
}
.seg button {
  flex: 1;
  padding: 8px 4px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--tx2);
}
.seg button.on {
  background: var(--gold);
  color: #1a1405;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--card2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  color: var(--tx2);
  white-space: nowrap;
}
.chip.gold {
  background: var(--gold-d);
  border-color: rgba(227, 179, 65, .35);
}
.chip.green {
  background: rgba(60, 207, 122, .12);
  color: var(--green);
  border-color: rgba(60, 207, 122, .3);
}
.chip.red {
  background: rgba(240, 84, 92, .12);
  color: var(--red);
  border-color: rgba(240, 84, 92, .3);
}
.chip.blue {
  background: rgba(79, 156, 249, .12);
  color: var(--blue);
  border-color: rgba(79, 156, 249, .3);
}
.res {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.res.W {
  background: var(--green);
}
.res.D {
  background: #6b7a96;
}
.res.L {
  background: var(--red);
}
/* ---------- bars ---------- */
.bar {
  height: 7px;
  background: var(--card2);
  border-radius: 99px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--gold);
}
.meter {
  margin-bottom: 10px;
}
.meter .row {
  font-size: 13px;
  margin-bottom: 5px;
}
.attr {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 4px 10px;
  align-items: center;
  padding: 5px 0;
  font-size: 13.5px;
}
.attr .bar {
  grid-column: 1 / -1;
  height: 5px;
}
.attr.key .n {
  color: var(--gold2);
  font-weight: 650;
}
.ov {
  display: inline-flex;
  min-width: 30px;
  height: 24px;
  padding: 0 5px;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #0a0f1a;
  font-variant-numeric: tabular-nums;
}
/* ---------- player card ---------- */
.pcard {
  background: radial-gradient(120% 140% at 100% 0%, rgba(227, 179, 65, .22), transparent 55%), linear-gradient(160deg, #182543, #0f1729 70%);
  border: 1px solid rgba(227, 179, 65, .3);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.pcard .top-r {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pcard .big {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: var(--gold2);
  font-variant-numeric: tabular-nums;
}
.pcard .nm {
  font-size: 20px;
  font-weight: 800;
}
.pcard .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.avatar {
  width: 74px;
  height: 74px;
  flex: none;
}
.crest {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  flex: none;
  border: 2px solid;
  letter-spacing: -.02em;
}
.crest.lg {
  width: 44px;
  height: 44px;
  font-size: 13px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
/* ---------- tables ---------- */
.tbl-w {
  overflow-x: auto;
  margin: 0 -14px;
  padding: 0 14px;
}
table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tbl th {
  text-align: right;
  color: var(--tx3);
  font-weight: 650;
  font-size: 11.5px;
  padding: 6px 5px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  text-align: right;
  padding: 7px 5px;
  border-bottom: 1px solid rgba(34, 48, 76, .6);
  white-space: nowrap;
}
.tbl th.l, .tbl td.l {
  text-align: left;
}
.tbl td.nm {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbl tr.me td {
  background: var(--gold-d);
  color: var(--gold2);
  font-weight: 700;
}
.tbl tr.z1 td:first-child {
  box-shadow: inset 3px 0 var(--blue);
}
.tbl tr.z2 td:first-child {
  box-shadow: inset 3px 0 var(--orange);
}
.tbl tr.z3 td:first-child {
  box-shadow: inset 3px 0 var(--green);
}
.tbl tr.zr td:first-child {
  box-shadow: inset 3px 0 var(--red);
}
.tbl tr.click {
  cursor: pointer;
}
/* ---------- forms ---------- */
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--tx2);
  margin-bottom: 5px;
  font-weight: 600;
}
.inp, select.inp {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 16px;
  min-height: 44px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
select.inp {
  background-image: linear-gradient(45deg, transparent 50%, var(--tx2) 50%), linear-gradient(135deg, var(--tx2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.inp:focus {
  border-color: var(--gold);
}
input[type=range] {
  width: 100%;
  accent-color: var(--gold);
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opts button {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tx2);
}
.opts button.on {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-d);
}
.opts.col button {
  text-align: left;
  width: 100%;
}
.opts.col button small {
  display: block;
  font-weight: 500;
  color: var(--tx3);
  font-size: 12px;
  margin-top: 2px;
}
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0 !important;
}
.swatch.on {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--bg) inset;
}
.tgl {
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
}
.tgl input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.tgl i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--card2);
  border: 1px solid var(--line);
  transition: .2s;
}
.tgl i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tx2);
  transition: .2s;
}
.tgl input:checked + i {
  background: var(--gold);
  border-color: var(--gold);
}
.tgl input:checked + i::after {
  left: 23px;
  background: #1a1405;
}
/* ---------- modal / sheet ---------- */
.ov-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 5, 12, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade .18s;
}
.sheet {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-bottom: 0;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(var(--safe-b) + 18px);
  animation: up .24s cubic-bezier(.2, .9, .3, 1);
  -webkit-overflow-scrolling: touch;
}
.sheet .grab {
  width: 40px;
  height: 5px;
  background: var(--line);
  border-radius: 9px;
  margin: 4px auto 12px;
}
.sheet h2 {
  font-size: 19px;
  margin-bottom: 4px;
}
@media (min-width: 700px) {
  .ov-bg {
    align-items: center;
  }
  .sheet {
    border-radius: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes up {
  from {
    transform: translateY(40px);
    opacity: .4;
  }
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
  z-index: 200;
  background: #1d2a45;
  border: 1px solid var(--line);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  max-width: calc(100% - 32px);
  animation: up .2s;
}
.toast.err {
  border-color: rgba(240, 84, 92, .5);
  color: #ffb3b7;
}
.loading {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2, 5, 12, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  font-weight: 600;
}
.spin {
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rot .8s linear infinite;
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}
/* ---------- match ---------- */
.score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0 14px;
}
.score .tm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.score .sc {
  font-size: 38px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.cmp {
  margin: 8px 0;
}
.cmp .row {
  font-size: 13px;
  margin-bottom: 4px;
}
.cmp .dbar {
  display: flex;
  height: 6px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--card2);
  gap: 2px;
}
.cmp .dbar i {
  display: block;
  height: 100%;
}
.ev {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.ev .m {
  width: 30px;
  color: var(--tx3);
  font-weight: 700;
  text-align: right;
  flex: none;
}
.ev.u {
  color: var(--gold2);
}
.rating {
  display: inline-flex;
  min-width: 38px;
  height: 26px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #0a0f1a;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.moment {
  text-align: center;
  padding: 10px 0 6px;
}
.moment .big {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 4px;
}
.tbar {
  position: relative;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(90deg, #3a1d24, #2a2230 30%, #2a2230 70%, #3a1d24);
  border: 1px solid var(--line);
  margin: 18px 0;
  overflow: hidden;
}
.tbar .gz {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(60, 207, 122, .35);
}
.tbar .pz {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(245, 215, 122, .85);
}
.tbar .nd {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 10px #fff;
}
.hit {
  font-size: 20px;
  font-weight: 900;
  min-height: 30px;
}
/* ---------- start / create ---------- */
.hero {
  text-align: center;
  padding: calc(var(--safe-t) + 34px) 16px 18px;
}
.logo-t {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .04em;
}
.logo-s {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--tx3);
  margin-top: 4px;
  font-weight: 700;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(var(--safe-b) + 30px);
}
.slot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.steps {
  display: flex;
  gap: 6px;
  margin: 4px 0 16px;
}
.steps i {
  flex: 1;
  height: 4px;
  border-radius: 9px;
  background: var(--line);
}
.steps i.on {
  background: var(--gold);
}
.news-i {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.news-i:last-child {
  border-bottom: 0;
}
.news-i .t {
  font-weight: 650;
  font-size: 14.5px;
}
.news-i.u .t {
  color: var(--gold2);
}
.news-i .b2 {
  font-size: 13px;
  color: var(--tx2);
  margin-top: 2px;
}
.news-i .d {
  font-size: 11.5px;
  color: var(--tx3);
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}
svg.chart {
  width: 100%;
  height: auto;
  display: block;
}
.legend {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--tx2);
  margin-top: 6px;
  flex-wrap: wrap;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 5px;
}
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 13px;
  margin-bottom: 10px;
  background: var(--gold-d);
  border: 1px solid rgba(227, 179, 65, .35);
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  color: var(--tx);
}
.alert.red {
  background: rgba(240, 84, 92, .1);
  border-color: rgba(240, 84, 92, .35);
}
.alert.blue {
  background: rgba(79, 156, 249, .1);
  border-color: rgba(79, 156, 249, .35);
}
.alert .grow {
  min-width: 0;
}
.alert svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn svg, .alert svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.adv .main-b svg {
  width: 22px;
  height: 22px;
}
.dim {
  opacity: .55;
}
/* V1.2 — Stadium / premium presentation */
:root {
  --bg: #0a1019;
  --bg2: #101925;
  --card: #131e2c;
  --card2: #1a293a;
  --line: #2a3a4e;
  --tx: #f0f4f9;
  --tx2: #b0bfd0;
  --tx3: #8b9cb0;
  --gold: #e9bd61;
  --gold2: #ffe19b;
  --gold-d: rgba(233,189,97,.13);
  --green: #59d6a0;
  --nav-h: 66px;
  --r: 16px;
}
body {
  background: radial-gradient(ellipse at 50% 0,#172538 0,transparent 530px),var(--bg);
}
.top {
  background: rgba(10,16,25,.96);
  padding-inline: 14px;
  min-height: 62px;
  box-shadow: 0 5px 24px #0002;
}
.top .t1 {
  letter-spacing: -.02em;
}
.top .cash {
  font-size: 14px;
}
.main {
  padding-inline: 12px;
  max-width: 1000px;
}
.card {
  background: linear-gradient(145deg,#172432,#111c29);
  box-shadow: 0 5px 18px #0002;
}
.card h3 {
  letter-spacing: -.025em;
}
.sec-t {
  color: #a9b9cb;
  letter-spacing: .12em;
}
.nav {
  background: rgba(12,21,32,.97);
  padding-inline: 5px;
}
.nav button {
  font-size: 10px;
  color: #a1afc0;
}
.nav button.on:before {
  width: 30px;
}
.nav button.on svg {
  filter: drop-shadow(0 0 6px #e9bd6144);
}
.btn {
  border-radius: 11px;
  min-height: 44px;
}
.btn.gold {
  background: linear-gradient(125deg,#ffe39e,#e5b557);
  color: #16130d;
  box-shadow: 0 4px 16px #e9bd6118;
}
.btn.sm {
  min-height: 38px;
}
.opts button,.tabs button {
  min-height: 42px;
}
.btn:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 2px;
}
.stat {
  background: #0d1724;
  border: 1px solid #29384b;
}
.dim {
  opacity: 1;
  color: var(--tx3);
}
.meter .bar {
  height: 7px;
}
.card,.hero-stat,.fixture-team {
  min-width: 0;
}
.premium-crest {
  border: 0!important;
  background: none!important;
  color: inherit!important;
  border-radius: 0;
  overflow: visible;
  width: 29px;
  height: 32px;
}
.premium-crest.lg {
  width: 50px;
  height: 56px;
}
.premium-crest svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 3px 3px #0004);
}
.career-hero {
  position: relative;
  isolation: isolate;
  border: 1px solid #b8945466;
  border-radius: 19px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 14px;
  background: radial-gradient(ellipse at 10% 25%,var(--club-color),transparent 70%),linear-gradient(120deg,#263548,#101a2b 67%);
}
.career-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,#0d19247a,#0a1221bd),repeating-linear-gradient(130deg,transparent 0 27px,#ffffff08 28px 29px);
}
.hero-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f4d48b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 13px;
}
.hero-profile {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr) 57px;
  gap: 10px;
  align-items: center;
}
.portrait-wrap {
  position: relative;
  align-self: center;
}
.portrait-wrap .avatar {
  width: 76px;
  height: 76px;
  display: block;
  filter: drop-shadow(0 4px 8px #0007);
  border: 1px solid #dfbd7a99;
  border-radius: 50%;
}
.shirt-number {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  background: #162234;
  color: var(--gold2);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #96713b;
}
.eyeline {
  font-size: 10px;
  letter-spacing: .11em;
  font-weight: 750;
  color: #bccadd;
}
.hero-name h1 {
  font-size: clamp(20px,6vw,34px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  margin: 4px 0 7px;
}
.hero-club {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
}
.hero-club .crest {
  width: 18px;
  height: 20px;
}
.hero-role {
  font-size: 10px;
  color: #bfc8d5;
  margin-top: 3px;
}
.hero-ovr {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.hero-ovr strong {
  font-size: 44px;
  letter-spacing: -.06em;
  color: var(--gold2);
  font-weight: 900;
}
.hero-ovr span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #f4d48b;
}
.hero-ovr small {
  font-size: 10px;
  color: #b4c3d4;
  margin-top: 5px;
}
.hero-ovr em {
  font-size: 12px;
  font-style: normal;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-top: 18px;
  border-block: 1px solid #c0c9d32a;
  padding: 11px 0;
}
.hero-stat {
  text-align: center;
  border-right: 1px solid #c0c9d324;
}
.hero-stat:last-child {
  border: 0;
}
.hero-stat strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.045em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  font-size: 10px;
  color: #b9c7d8;
}
.hero-money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 11px;
}
.hero-money small {
  font-size: 9px;
  color: #bac7d6;
  letter-spacing: .05em;
  display: block;
}
.hero-money b {
  font-size: 16px;
  color: #f6da99;
}
.hero-money>div:last-child {
  text-align: right;
}
.fixture {
  background: radial-gradient(ellipse at 50% 12%,#243b40,transparent 78%),#111e2b;
  padding: 14px;
}
.fixture-comp {
  text-align: center;
  color: var(--tx2);
  font-size: 11px;
  margin: 8px 0;
}
.fixture-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.fixture-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.fixture-team small {
  font-size: 10px;
  color: #b3c3ce;
  letter-spacing: .07em;
}
.fixture-vs {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #8798a9;
}
.match-cta {
  min-height: 50px;
  justify-content: center;
  position: relative;
  font-size: 16px;
}
.match-cta span {
  position: absolute;
  right: 16px;
  font-size: 24px;
}
.fast-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 6px;
  margin-top: 8px;
}
.fast-grid .btn {
  grid-column: span 2;
  font-size: 12px;
  padding: 7px 3px;
  min-height: 42px;
  white-space: normal;
}
.fast-grid .btn:nth-child(n+4) {
  grid-column: span 3;
}
.form-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 5px;
}
.form-strip .btn {
  margin-left: auto;
}
.career-overview .btn {
  margin-top: 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0,#6a542a4d,transparent 75%),linear-gradient(180deg,#1c2b3f,transparent);
  padding-bottom: 27px;
}
.logo-t {
  font-size: 36px;
  letter-spacing: -.045em;
}
.logo-s {
  color: #acb8c8;
  letter-spacing: .24em;
}
.slot {
  border-color: #384b60;
}
.sheet {
  background: linear-gradient(180deg,#172332,#0f1825);
  border-color: #42536a;
}
.broadcast-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d9e7f5;
  font-weight: 750;
  font-size: 11px;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.broadcast-label span:last-child {
  margin-left: auto;
  color: var(--gold2);
  font-size: 19px;
  letter-spacing: 0;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #59d6a0;
  box-shadow: 0 0 12px #59d6a088;
}
.pitch-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #517d64;
  border-radius: 12px;
  background: #18543d;
}
.pitch-svg circle[data-dot],#replayBall {
  transition: cx .12s linear,cy .12s linear;
}
.replay-progress {
  height: 5px;
  background: #293b4c;
  border-radius: 5px;
  margin: 12px 0;
  overflow: hidden;
}
.replay-progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0;
}
.replay-headline {
  min-height: 50px;
  padding: 10px;
  background: #102033;
  border: 1px solid #2b435b;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}
.replay-headline.goal-flash {
  border-color: var(--gold);
  color: var(--gold2);
  background: #302a1c;
}
.replay-feed {
  min-height: 100px;
  font-size: 12px;
  color: var(--tx2);
  padding: 6px 0;
}
.replay-feed>div {
  padding: 5px 0;
  border-bottom: 1px solid #ffffff12;
}
.replay-feed b {
  color: var(--tx3);
  margin-right: 5px;
}
.replay-controls {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 6px;
  margin: 8px 0;
}
.replay-controls .btn {
  padding: 8px;
}
.replay-controls .selected {
  border-color: var(--gold);
  color: var(--gold2);
  background: var(--gold-d);
}
.theatre-launch {
  margin-top: 6px;
}
.replay-score .sc {
  font-size: 40px;
}
.replay-score .tm {
  font-size: 13px;
  overflow-wrap: anywhere;
  min-width: 0;
}
@media(min-width:640px) {
  .career-hero {
    padding: 22px;
  }
  .hero-profile {
    grid-template-columns: 110px minmax(0,1fr) 90px;
    gap: 20px;
  }
  .portrait-wrap .avatar {
    width: 110px;
    height: 110px;
  }
  .hero-name h1 {
    font-size: 38px;
  }
  .hero-ovr strong {
    font-size: 60px;
  }
  .hero-stat strong {
    font-size: 27px;
  }
  .hero-club {
    font-size: 14px;
  }
  .fixture-team .crest.lg {
    width: 66px;
    height: 74px;
  }
  .fixture-team {
    font-size: 17px;
  }
  .fast-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
  .fast-grid .btn:nth-child(n) {
    grid-column: auto;
  }
  .main {
    padding-inline: 24px;
  }
}
@media(max-width:360px) {
  .hero-profile {
    grid-template-columns: 62px minmax(0,1fr) 49px;
    gap: 7px;
  }
  .portrait-wrap .avatar {
    width: 62px;
    height: 62px;
  }
  .hero-ovr strong {
    font-size: 36px;
  }
  .hero-name h1 {
    font-size: 19px;
  }
  .hero-stat strong {
    font-size: 18px;
  }
  .top .cash {
    font-size: 12px;
  }
  .main {
    padding-inline: 9px;
  }
  .hero-kicker {
    font-size: 9px;
    letter-spacing: .06em;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration: .001ms!important;
    transition-duration: .001ms!important;
    scroll-behavior: auto!important;
  }
}
.profile-radar svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 400px;
  margin: auto;
}
.club-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.club-cell>.crest {
  width: 19px;
  height: 22px;
}
.club-cell>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-name .eyeline {
  letter-spacing: .06em;
}
.career-hero {
  padding-block: 12px;
}
.hero-kicker {
  margin-bottom: 9px;
}
.hero-stats {
  margin-top: 14px;
  padding-block: 9px;
}
.hero-money {
  padding-top: 9px;
}
.broadcast .replay-controls {
  position: sticky;
  bottom: 54px;
  background: #101a27;
  padding: 5px 0;
  z-index: 2;
}
.broadcast #rpSkip {
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.broadcast .replay-feed {
  min-height: 68px;
}
.broadcast .score {
  padding-block: 5px 10px;
}
.broadcast .replay-headline {
  min-height: 44px;
}
.broadcast .pitch-svg {
  max-height: 220px;
}
.broadcast .replay-progress {
  margin: 8px 0;
}
.broadcast .replay-feed>div {
  padding: 3px 0;
}
.broadcast .tiny {
  margin: 9px 0 0;
}
.broadcast-label {
  margin-bottom: 7px;
}
@media(max-width:450px) {
  .hero-name h1 {
    font-size: clamp(19px,5.4vw,26px);
  }
  .hero-profile {
    gap: 8px;
  }
  .fixture-row {
    margin-bottom: 9px;
  }
  .fixture .crest.lg {
    width: 44px;
    height: 49px;
  }
  .fixture-comp {
    margin: 6px 0;
  }
  .card.fixture {
    padding: 12px;
  }
  .toast {
    pointer-events: none;
  }
}
/* V2: career identity and private wealth */
.ultimate-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold2);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.legend-panel,.story-panel,.empire-panel {
  border-color: #66552e;
  background: linear-gradient(135deg,#1a2535,#101b28);
}
.legend-progress {
  margin: 8px 0;
  font-size: 12px;
}
.legend-track {
  height: 6px;
  background: #293747;
  border-radius: 8px;
  margin-top: 5px;
  overflow: hidden;
}
.legend-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#b58a39,#f1d38b);
  border-radius: 8px;
}
.story-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  width: 100%;
  white-space: normal;
  margin: 6px 0;
}
.empire-value {
  font-size: clamp(24px,6vw,38px);
  font-weight: 800;
  color: var(--gold2);
  overflow-wrap: anywhere;
}
.legend-link h3 {
  margin: 0;
}
.story-panel p {
  margin: 7px 0;
}
.empire-panel .btn {
  margin-top: 8px;
}
/* V2.4: football-first career pacing and sporting reward panels. */
.career-focus {
  border-color: #52765f;
  background: linear-gradient(135deg,#152d26,#15212d 72%);
}
.career-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0 5px;
}
.career-mode button {
  flex: 1;
  min-width: 60px;
  font-size: 12px;
  padding: 9px 4px;
}
.match-importance {
  text-align: center;
  color: #f9df9b;
  background: #a67b2822;
  border: 1px solid #8e773e;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
  padding: 8px;
  margin-bottom: 10px;
}
.sporting-reward {
  display: grid;
  gap: 6px;
  text-align: center;
  border: 1px solid #a98b4b;
  border-radius: 13px;
  margin: 4px 0 12px;
  padding: 22px 10px;
  background: radial-gradient(ellipse at top,#a17c352e,transparent 70%),#13271f;
  box-shadow: 0 0 30px #b69b3919;
}
.sporting-reward span {
  font-size: 10px;
  letter-spacing: .16em;
  color: #d8bf80;
}
.sporting-reward strong {
  font-size: 23px;
  color: #ffe0a1;
}
.sporting-reward small {
  color: #cbdacb;
}
.sporting-memory {
  border-color: #526c5d;
}
.memory-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.memory-score b {
  font-size: 23px;
  color: var(--gold);
  white-space: nowrap;
}
.hero-ovr small {
  max-width: 96px;
  text-align: center;
  line-height: 1.15;
}
.honor-reward svg {
  margin: auto;
  filter: drop-shadow(0 6px 16px #efc86b50);
}
.honor-reward {
  background: radial-gradient(ellipse at 50% 5%,#9a742a44,transparent 72%),#17251d;
}
/* V2.5 — compact visual player creator; all choices are real saved values. */
.creator-portrait {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #526455;
  border-radius: 16px;
  background: radial-gradient(ellipse at 12% 20%,#384b46,#172435 62%);
  color: #eff4f4;
  overflow: hidden;
}
.creator-portrait .avatar {
  width: 106px;
  height: 106px;
  flex: none;
}
.creator-portrait b {
  display: block;
  font-size: clamp(15px,4vw,21px);
  overflow-wrap: anywhere;
}
.creator-portrait small {
  display: block;
  color: #b6c7d5;
  margin-top: 4px;
}
.creator-kicker {
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 800;
  color: #e6c470;
  margin-bottom: 6px;
}
.creator-measures {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.creator-measures span {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #516171;
  border-radius: 7px;
  color: #e6dfd0;
}
.creator-pitch {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 15px 10px;
  border-radius: 12px;
  border: 1px solid #78977b;
  background: repeating-linear-gradient(0deg,#235a3d 0px,#235a3d 28px,#286546 28px,#286546 56px);
  overflow: hidden;
}
.creator-pitch:before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #b3cfac88;
  pointer-events: none;
}
.creator-pitch-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}
.creator-pitch button {
  min-width: 48px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #94b4a5;
  background: #112b27e8;
  color: #e4f3e8;
  font: 700 13px system-ui;
  cursor: pointer;
}
.creator-pitch button.on {
  background: #eac66f;
  color: #15251d;
  border-color: #ffe1a2;
  box-shadow: 0 0 0 2px #f6d17e44;
}
.creator-form .swatch {
  min-width: 36px;
  min-height: 36px;
}
.creator-form .swatch.on {
  outline: 2px solid #edc46b;
  outline-offset: 2px;
}
@media(max-width:360px) {
  .creator-portrait .avatar {
    width: 84px;
    height: 84px;
  }
  .creator-pitch button {
    min-width: 42px;
  }
}
/* ===== playground ===== */
/* Football Playground — scoped design; no changes to existing game layouts. */
.pg-entry {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid #4a735b;
  border-radius: 14px;
  background: linear-gradient(115deg,#153c2c,#192a35 75%);
}
.pg-entry-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #254b36;
  font-size: 24px;
}
.pg-entry h3 {
  margin: 2px 0;
  font-size: 15px;
}
.pg-entry p {
  margin: 0;
  color: #bdcfca;
  font-size: 11px;
  line-height: 1.3;
}
.pg-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #e7c36e;
}
.pg-entry .btn {
  white-space: nowrap;
  padding: 10px 12px;
}
.pg-modal {
  align-items: center;
  background: #060d13e8;
  backdrop-filter: none;
}
.pg-modal .sheet {
  max-width: 470px;
  width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: 0;
  padding: 0;
  border: 0;
  background: #101c25;
  overscroll-behavior: contain;
  animation: none;
}
.pg-modal .grab {
  display: none;
}
.pg-wrap {
  padding: calc(10px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px));
  color: #e9f1f0;
  max-width: 470px;
  margin: 0 auto;
}
.pg-wrap [hidden] {
  display: none!important;
}
.pg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pg-head h2 {
  font-size: 25px;
  line-height: 1.1;
  margin: 2px 0 0;
  letter-spacing: -.035em;
}
.pg-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid #3c505c;
  background: #20313b;
  color: #e6f0f1;
  font-size: 25px;
  line-height: 1;
}
.pg-modes,.pg-kind,.pg-styles {
  display: flex;
  gap: 5px;
}
.pg-modes button,.pg-kind button,.pg-styles button {
  flex: 1;
  min-height: 36px;
  padding: 6px 5px;
  background: #1a2b35;
  color: #c2d1d6;
  border: 1px solid #344b56;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pg-wrap button.active {
  color: #0f241a;
  background: #e8c46e;
  border-color: #e8c46e;
}
.pg-wrap button:disabled {
  opacity: .42;
}
.pg-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 7px 0;
  color: #a8bcc5;
  font-size: 11px;
}
.pg-line select {
  color: #eef5f3;
  background: #182a35;
  border: 1px solid #36505c;
  border-radius: 7px;
  padding: 5px 8px;
  font: inherit;
  font-size: 12px;
  max-width: 65%;
}
.pg-score {
  display: grid;
  grid-template-columns: repeat(3,1fr) 1.2fr;
  gap: 5px;
  padding: 7px 8px;
  background: #0c151d;
  border: 1px solid #2b414a;
  border-radius: 9px;
}
.pg-score span {
  display: block;
  font-size: 9px;
  letter-spacing: .08em;
  color: #a6bbc5;
  font-weight: 700;
}
.pg-score b {
  display: block;
  font-size: 19px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #f0d58c;
}
.pg-dots {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 3px;
  align-content: center;
}
.pg-dots i {
  height: 7px;
  border-radius: 2px;
  background: #33454e;
}
.pg-dots i.current {
  background: #e4c477;
}
.pg-dots i.win {
  background: #5bd299;
}
.pg-dots i.loss {
  background: #a05b58;
}
.pg-situation {
  margin: 7px 0;
  display: grid;
  gap: 1px;
}
.pg-situation b {
  font-size: 14px;
}
.pg-situation span {
  color: #b5c7cb;
  min-height: 14px;
}
.pg-field {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  outline: 1px solid #527c65;
  border-radius: 9px;
  overflow: hidden;
  background: #1a4732;
}
.pg-field canvas {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 360/440;
}
.pg-banner {
  position: absolute;
  pointer-events: none;
  top: 37%;
  left: 5%;
  right: 5%;
  text-align: center;
  padding: 12px 8px;
  background: #101d27eb;
  border: 1px solid #9e716b;
  border-radius: 12px;
  box-shadow: 0 12px 35px #08121988;
}
.pg-banner.success {
  background: #122d22ef;
  border-color: #e5ca7f;
}
.pg-banner strong {
  display: block;
  color: #eecac5;
  font-size: clamp(17px,5vw,29px);
  font-weight: 950;
  letter-spacing: .02em;
}
.pg-banner.success strong {
  color: #ffe18c;
}
.pg-banner span {
  display: block;
  color: #d0e1da;
  font-size: 12px;
  margin-top: 3px;
}
.pg-tools {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.pg-kind {
  flex: 1 0 100%;
}
.pg-styles {
  flex: 1;
}
.pg-feedback {
  min-height: 28px;
  display: flex;
  align-items: center;
  color: #bfd0d3;
  padding: 4px 2px;
}
.pg-feedback.positive {
  color: #9ae8b1;
  font-weight: 700;
}
.pg-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 7px;
}
.pg-help {
  margin-top: 8px;
  font-size: 11px;
  color: #a4bac3;
}
.pg-help summary {
  cursor: pointer;
  font-weight: 700;
}
.pg-help p {
  margin: 6px 0;
  line-height: 1.5;
}
.pg-wrap button:focus-visible,.pg-wrap canvas:focus-visible {
  outline: 2px solid #f8d476;
  outline-offset: 2px;
}
@media(min-width:700px) {
  .pg-modal .sheet {
    border-radius: 17px;
    max-height: 96vh;
  }
  .pg-wrap {
    padding: 14px 20px;
  }
  .pg-field {
    max-width: min(360px,calc((96vh - 275px)*.818));
  }
}
@media(max-height:740px) and (max-width:699px) {
  .pg-field {
    max-width: min(100%,290px);
  }
  .pg-head h2 {
    font-size: 22px;
  }
  .pg-wrap {
    padding-top: calc(6px + env(safe-area-inset-top,0px));
  }
}
@media(max-width:340px) {
  .pg-entry {
    grid-template-columns: 1fr auto;
  }
  .pg-entry-mark {
    display: none;
  }
  .pg-entry .btn {
    padding: 8px;
  }
  .pg-field {
    max-width: 270px;
  }
}
/* Keep action buttons in view on phone-sized portrait viewports; scroll remains available. */
@media(max-width:699px) {
  .pg-field {
    max-width: min(100%,360px,max(190px,calc((100dvh - 354px)*.818)));
  }
  .pg-build .pg-field {
    max-width: min(100%,360px,max(180px,calc((100dvh - 397px)*.818)));
  }
  .pg-help {
    margin-top: 6px;
  }
}
/* Match presentation: prioritize the pitch over the training HUD. */
.pg-official .pg-field {
  max-width: min(100%,360px,max(210px,calc((100dvh - 245px)*.818)));
}
.pg-official .pg-head h2 {
  font-size: 24px;
}
.pg-official .pg-situation {
  margin: 8px 0 10px;
}
.pg-official .pg-actions {
  grid-template-columns: 1fr 1.15fr;
}
.pg-official .pg-actions .btn {
  font-size: 12px;
  padding: 10px 5px;
}
.pg-official .pg-feedback {
  min-height: 35px;
}
.pg-official .pg-wrap {
  padding-bottom: calc(16px + env(safe-area-inset-bottom,0px));
}
/* V2.3: compact possession controls and optional local audio. */
.pg-chain {
  font-size: 12px;
  color: #f4d58c;
  line-height: 1.3;
}
.pg-chain #pgMateActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 5px;
}
.pg-chain #pgMateActions[hidden],.pg-control [hidden] {
  display: none!important;
}
.pg-chain .btn {
  min-height: 38px;
  font-size: 12px;
  padding: 6px;
}
.pg-control {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.pg-control button {
  flex: 1;
  border: 1px solid #36505e;
  border-radius: 7px;
  background: #142531;
  color: #b9cbd1;
  font: 600 11px system-ui;
  padding: 7px 4px;
  min-height: 32px;
}
.pg-control button[aria-pressed=true] {
  color: #f5d58b;
  border-color: #927a46;
}
.pg-official .pg-field {
  max-width: min(100%,360px,max(195px,calc((100dvh - 320px)*.818)));
}
.pg-official.pg-build .pg-field {
  max-width: min(100%,360px,max(180px,calc((100dvh - 365px)*.818)));
}
.pg-live-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  text-align: center;
  border: 1px solid #3a515c;
  background: #0b1720;
  padding: 6px 8px;
  border-radius: 9px;
  color: #c7d8df;
  font-size: 12px;
  font-weight: 750;
}
.pg-live-score strong {
  color: #f5d58b;
  font-size: 23px;
  line-height: 1;
}
.pg-official.pg-build .pg-field {
  max-width: min(100%,360px,max(200px,calc((100dvh - 335px)*.818)));
}
.pg-official .pg-situation {
  margin: 6px 0;
}
.pg-official .pg-wrap {
  padding-top: calc(8px + env(safe-area-inset-top,0px));
}
/* V2.4 camera keeps the physical field fixed while enlarging relevant action. */
.pg-official .pg-field,.pg-official.pg-build .pg-field {
  max-width: min(100%,420px,max(245px,calc((100dvh - 310px)*.818)));
}
.pg-official .pg-situation b {
  font-size: 13px;
}
.pg-official .pg-control button {
  font-size: 10px;
}
.pg-banner.success {
  background: radial-gradient(ellipse at top,#497744ef,#122d22f5 75%);
  border: 1px solid #ffe49b;
  box-shadow: 0 0 35px #f1cf7160;
  animation: pgReward .28s ease-out;
}
.pg-banner.success strong {
  font-size: clamp(24px,7vw,36px);
  text-shadow: 0 2px 15px #eab44c65;
}
.pg-banner.success span {
  font-weight: 700;
}
@keyframes pgReward {
  from {
    transform: scale(.85);
    opacity: .3;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media(prefers-reduced-motion:reduce) {
  .pg-banner.success {
    animation: none;
  }
}
#pgPassStyles[hidden] {
  display: none!important;
}
@media(max-width:699px) and (max-height:740px) {
  .pg-official .pg-field,.pg-official.pg-build .pg-field {
    max-width: min(100%,360px,max(195px,calc((100dvh - 355px)*.818)));
  }
  .pg-official .pg-head {
    margin-bottom: 4px;
  }
  .pg-official .pg-live-score {
    padding: 4px 6px;
  }
  .pg-official .pg-feedback {
    min-height: 24px;
  }
  .pg-official .pg-control {
    margin-top: 4px;
  }
  .pg-official .pg-tools {
    margin-top: 5px;
  }
}
/* Show only relevant action at the end of a match moment. */
.pg-official .pg-actions:has(#pgNext[hidden]) {
  grid-template-columns: 1fr;
}
.pg-official #pgNext:not([hidden]) {
  animation: pg-reward-in .22s ease-out;
}
@keyframes pg-reward-in {
  from {
    opacity: .4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media(prefers-reduced-motion:reduce) {
  .pg-official #pgNext {
    animation: none;
  }
}
/* V6.2: quiet indicator while support runners are still moving; no countdown. */
.pg-official[data-support="moving"][data-phase="ready"] .pg-pitch-status::after {
  content: " · KRETANJE";
  color: #d3edaa;
  font-weight: 700;
}
/* ===== visual-studio ===== */
/* V2.6 — career studio. Layout adapts to phone safe areas and does not affect match physics. */
.studio-creator {
  max-width: 680px!important;
  padding-bottom: calc(100px + var(--safe-b));
  color: #edf3f1;
}
.studio-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.studio-header h1 {
  font-size: 24px;
  margin: 3px 0 0;
  letter-spacing: -.7px;
}
.studio-version {
  font-size: 10px;
  color: #98aba8;
  letter-spacing: .08em;
}
.studio-eyebrow,.studio-section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  color: #c7b27b;
  text-transform: uppercase;
}
.studio-steps {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 5px;
  margin-bottom: 21px;
}
.studio-steps>div {
  padding: 10px 3px 8px;
  border-top: 2px solid #34454c;
  color: #8ba0a2;
}
.studio-steps b {
  font-size: 17px;
  display: block;
}
.studio-steps small {
  font-size: 9px;
  line-height: 1.25;
  display: block;
  margin-top: 3px;
}
.studio-steps .active {
  border-color: #e4c36f;
  color: #f3d68c;
  background: linear-gradient(#d9b76516,transparent);
}
.studio-steps .done {
  border-color: #5e9a80;
  color: #a6cdbb;
}
.studio-intro {
  margin: 0 0 23px;
}
.studio-intro h2 {
  font-size: clamp(23px,6vw,34px);
  line-height: 1.08;
  margin: 8px 0 10px;
  letter-spacing: -.04em;
}
.studio-intro p {
  font-size: 13px;
  line-height: 1.5;
  color: #a9bcbe;
}
.studio-form {
  padding: 0 1px;
}
.studio-form .field {
  margin-bottom: 20px;
}
.studio-form .field>label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .065em;
  font-weight: 750;
  color: #adbfbe;
  margin-bottom: 8px;
}
.studio-form .inp {
  min-height: 48px;
  background: #11232b;
  border: 1px solid #35494e;
  border-radius: 11px;
  color: #edf3f1;
}
.studio-form .opts:not(.col) {
  gap: 7px;
}
.studio-form .opts button:not(.swatch) {
  min-height: 43px;
  border-radius: 10px;
  background: #14262e;
  border: 1px solid #35484e;
  color: #dfe9e7;
}
.studio-form .opts button.on:not(.swatch) {
  border-color: #dfc077;
  background: #34382d;
  color: #f5daa0;
}
.studio-form .opts.col {
  display: grid;
  gap: 8px;
}
.studio-form .opts.col .studio-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 14px;
  min-height: 64px;
}
.studio-choice-mark {
  height: 18px;
  width: 18px;
  border: 1px solid #617678;
  border-radius: 50%;
  flex: none;
  position: relative;
}
.studio-choice.on .studio-choice-mark {
  border-color: #e4c36f;
}
.studio-choice.on .studio-choice-mark:after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #e4c36f;
  border-radius: 50%;
}
.studio-choice small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #a8babd;
}
.studio-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 calc(12px + var(--safe-b));
  background: linear-gradient(transparent,#0a1019 20%);
  margin-top: 16px;
}
.studio-footer small,.studio-footer b {
  display: block;
}
.studio-footer small {
  font-size: 9px;
  letter-spacing: .12em;
  color: #9eaeaf;
}
.studio-footer b {
  font-size: 13px;
  margin-top: 4px;
}
.studio-footer .btn {
  min-height: 48px;
  min-width: 47%;
  font-weight: 800;
}
.studio-preview {
  display: grid!important;
  grid-template-columns: 1.15fr .85fr;
  gap: 0!important;
  padding: 0!important;
  background: #10232b!important;
  min-height: 240px;
  border: 1px solid #3e615a!important;
  align-items: stretch!important;
  margin: 0 0 25px;
}
.studio-stage {
  isolation: isolate;
  min-height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%,#547665 0%,#244c43 42%,#122e2b 73%);
}
.studio-stage-grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(125deg,transparent 0 21px,#b5d8c00a 22px 23px);
  z-index: -1;
}
.studio-back-number {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 110px;
  font-weight: 900;
  color: #d1d9a817;
  letter-spacing: -.1em;
  z-index: -1;
}
.studio-player {
  width: 100%;
  height: 270px;
  max-width: 210px;
  display: block;
  filter: drop-shadow(0 8px 10px #0006);
}
.studio-stage-tag {
  position: absolute;
  bottom: 9px;
  left: 10px;
  background: #091c20bb;
  border: 1px solid #9fbdac50;
  letter-spacing: .1em;
  padding: 5px 7px;
  border-radius: 5px;
}
.studio-id {
  padding: 17px 11px;
  align-self: center;
  min-width: 0;
}
.studio-id b {
  font-size: clamp(17px,5vw,25px)!important;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.studio-id .creator-measures {
  gap: 4px;
  display: flex;
}
.studio-id .creator-measures span {
  font-size: 10px;
  padding: 4px 5px;
}
.studio-boot {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.studio-boot i {
  width: 30px;
  height: 15px;
  background: var(--boot);
  border-radius: 8px 4px 3px 3px;
  border: 1px solid #889799;
  transform: skew(-14deg);
}
.studio-boot small {
  font-size: 9px!important;
  letter-spacing: .08em;
}
.studio-section-label {
  padding: 5px 0 12px;
  border-bottom: 1px solid #34454d;
  margin: 20px 0 16px;
}
.studio-hair-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px;
}
.studio-hair-grid button {
  padding: 5px 3px 7px;
  border: 1px solid #344b51;
  background: #10242c;
  border-radius: 10px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #d7e4e4;
  font: 600 10px system-ui;
  cursor: pointer;
}
.studio-hair-grid button.on {
  border-color: #edc874;
  background: #393b2c;
  color: #f4d48d;
}
.studio-hair-grid .avatar {
  height: auto;
  max-height: 76px;
  aspect-ratio: 174/221;
  border-radius: 6px;
}
.studio-avatar {
  border-radius: 12px!important;
  object-fit: contain;
}
.studio-form .swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%!important;
}
.studio-form .creator-pitch {
  padding: 20px 10px;
  background: repeating-linear-gradient(0deg,#164c37 0 35px,#1c583e 35px 70px);
  border-color: #55846b;
  gap: 13px;
}
.studio-form .creator-pitch button {
  border-radius: 20px;
  min-width: 46px;
  min-height: 43px;
}
.studio-clubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.studio-clubs button {
  border: 1px solid #34474f;
  background: #14252d;
  color: #e5eded;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 9px 6px;
  border-radius: 9px;
  gap: 8px;
  min-width: 0;
  font: 650 12px system-ui;
}
.studio-clubs button.on {
  border-color: #d9ba6e;
  background: #39372a;
  color: #f3d18b;
}
.studio-clubs button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.club-random {
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  background: #294047;
  border-radius: 6px 6px 12px 12px;
  font-size: 11px;
  flex: none;
  color: #e9e2c5;
}
.studio-clubs small {
  display: block;
  color: #a5b5b9;
  font-size: 10px;
  margin-top: 4px;
}
.studio-shelf,.studio-market {
  border: 1px solid #3d4c4e;
  background: radial-gradient(ellipse at 50% 0,#384332,#14232b 55%);
  padding: 16px;
  border-radius: 18px;
  margin: 12px 0;
}
.studio-shelf h2,.studio-market h2 {
  font-size: 25px;
  margin: 6px 0 10px;
  letter-spacing: -.04em;
}
.studio-totals {
  display: flex;
  gap: 24px;
  margin: 12px 0 17px;
}
.studio-totals b {
  font-size: 27px;
  color: #e9ce8c;
}
.studio-totals small {
  display: block;
  font-size: 11px;
  color: #afc1bc;
}
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.studio-trophy,.studio-asset {
  min-width: 0;
  text-align: left;
  color: #e7f0eb;
  padding: 9px;
  border-radius: 11px;
  background: #102129;
  border: 1px solid #3b5051;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}
.studio-trophy {
  align-items: center;
  text-align: center;
  background: linear-gradient(#2e3935,#0f2027 85%);
  border-bottom: 3px solid #967845;
}
.studio-trophy strong,.studio-asset strong {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.studio-trophy small,.studio-asset small {
  color: #a4b7b7;
  font-size: 11px;
}
.studio-object {
  width: 100%;
  height: auto;
  display: block;
}
.studio-art {
  width: 100%;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 30%,#56706c,#203741 70%);
  overflow: hidden;
}
.studio-asset b {
  color: #ead18f;
  font-size: 15px;
  margin-top: auto;
}
.studio-asset .studio-eyebrow {
  font-size: 9px;
  letter-spacing: .07em;
}
.studio-empty {
  grid-column: 1/-1;
  display: grid;
  justify-items: center;
  text-align: center;
  color: #bac9c6;
  padding: 12px 0;
}
.studio-empty .studio-object {
  width: 120px;
  opacity: .65;
}
.studio-empty p {
  font-size: 12px;
  margin: 5px 0;
}
.studio-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 13px 0;
  scrollbar-width: none;
}
.studio-filters button {
  flex: none;
  font: 600 11px system-ui;
  padding: 9px 11px;
  border: 1px solid #40535a;
  border-radius: 99px;
  background: #10252d;
  color: #c3d2d2;
}
.studio-filters button.on {
  background: #e3c478;
  color: #15232a;
  border-color: #e3c478;
}
.studio-detail-art,.studio-honor-detail {
  background: radial-gradient(#526454,#152932 66%);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  margin-bottom: 16px;
}
.studio-detail-art .studio-object,.studio-honor-detail .studio-object {
  max-width: 270px;
  margin: auto;
}
.studio-honor-detail h2 {
  margin: 6px 0;
}
.studio-honor-detail .studio-eyebrow {
  margin-top: 7px;
}
.studio-market .tiny {
  margin-top: 12px;
}
.studio-creator button:focus-visible,.studio-market button:focus-visible,.studio-shelf button:focus-visible {
  outline: 2px solid #ffe1a0;
  outline-offset: 2px;
}
@media(min-width:640px) {
  .studio-steps small {
    font-size: 12px;
  }
  .studio-gallery {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .studio-stage {
    min-height: 320px;
  }
  .studio-player {
    height: 320px;
    max-width: 245px;
  }
  .studio-hair-grid .avatar {
    max-height: 110px;
  }
  .studio-clubs {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}
@media(max-width:350px) {
  .studio-stage {
    min-height: 220px;
  }
  .studio-player {
    height: 220px;
  }
  .studio-id {
    padding: 10px 7px;
  }
  .studio-steps small {
    font-size: 8px;
  }
  .studio-form .creator-pitch button {
    min-width: 39px;
  }
  .studio-market,.studio-shelf {
    padding: 10px;
  }
}
.studio-clubs .crest {
  width: 32px;
  height: 36px;
  flex: none;
}
.studio-club-select {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  min-height: 0!important;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0!important;
}
.studio-club-select:focus-visible {
  position: static!important;
  width: 100%!important;
  height: 48px!important;
  clip-path: none;
}
.studio-clubs {
  margin-top: 0;
}
.studio-form .field input[type=range] {
  min-height: 30px;
}
.studio-creator .studio-footer {
  border-top: 1px solid #33434b;
  background: linear-gradient(180deg,#0a1019e8,#0a1019);
}
/* ===== academy ===== */
.academy-hero {
  padding: 18px!important;
  overflow: hidden;
  background: radial-gradient(ellipse at 10% 20%,#427b6555,transparent 70%),linear-gradient(145deg,#142f2a,#101b2c)!important;
  border: 1px solid #436b58!important;
}
.academy-player {
  display: grid;
  grid-template-columns: minmax(94px,36%) minmax(0,1fr);
  align-items: center;
  gap: 12px;
}
.academy-player>.studio-player {
  width: 100%;
  height: 190px;
}
.academy-player h2 {
  font-size: 24px;
  line-height: 1.08;
  margin: 9px 0;
}
.academy-player .row {
  gap: 8px;
  font-size: 13px;
}
.academy-ovr {
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  color: #e5ca82;
  margin: 14px 0 5px;
}
.academy-ovr small {
  font-size: 11px;
  letter-spacing: 2px;
  margin-left: 7px;
  color: #a6b8b0;
}
.academy-caption {
  border-top: 1px solid #ffffff22;
  padding-top: 12px;
  color: #cfe5d6;
  font-size: 13px;
  margin-bottom: 0;
}
.academy-contract {
  background: linear-gradient(145deg,#33412d,#17212d);
  border: 1px solid #b9a064;
}
.academy-contract-note {
  padding: 12px;
  border: 1px solid #bca35c55;
  background: #bd9b2a11;
  color: #e9cf8a;
  font-size: 12px;
  border-radius: 10px;
  margin: 8px 0;
}
.academy-pace {
  margin-top: 10px;
}
.academy-celebration {
  text-align: center;
  padding: 22px 5px;
  background: radial-gradient(ellipse at 50% 35%,#d6ac4c22,transparent 65%);
}
.academy-celebration .crest {
  margin: 12px auto;
  transform: scale(1.3);
}
.match-honors .honor-reward {
  position: relative;
  background: radial-gradient(ellipse at 50% 15%,#dbb25833,transparent 70%),linear-gradient(145deg,#2b302f,#141c29);
  border-color: #c6a452;
}
.match-honors .honor-reward svg {
  filter: drop-shadow(0 0 12px #e6c16888);
}
@media(prefers-reduced-motion:no-preference) {
  .match-honors .honor-reward svg {
    animation: honorIn .65s ease-out both;
  }
  @keyframes honorIn {
    from {
      transform: translateY(12px) scale(.8);
      opacity: .2;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}
.venue-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  background: #23392f80;
  border: 1px solid #56776477;
  border-radius: 10px;
  font-size: 11px;
  color: #c1d7c9;
  margin-bottom: 12px;
}
.venue-strip b {
  color: #edcb7d;
  white-space: nowrap;
}
.academy-player>div {
  min-width: 0;
}
.academy-player h2 {
  overflow-wrap: anywhere;
}
/* ===== match-polish ===== */
/* V3.1 — cohesive sporting presentation. Loaded after the previous themes. */
:root {
  --bg: #0b141b;
  --bg2: #111e26;
  --card: #14242c;
  --card2: #1c3038;
  --line: #344850;
  --tx: #f1f4ef;
  --tx2: #b4c4c5;
  --tx3: #8eaaad;
  --gold: #eac06c;
  --gold2: #ffe09a;
  --green: #7ce1ad;
}
body {
  background: radial-gradient(ellipse at 100% 0,#203e3c66,transparent 54%),#0b141b;
}
.top {
  background: #0b171eea;
  border-color: #31454b;
}
.top .cash {
  color: #9fb9b1;
  font-weight: 600;
  font-size: 11px;
}
.nav {
  background: #0d1b22f5;
  border-color: #324b4e;
}
.nav button.on:before {
  width: 28px;
  left: calc(50% - 14px);
  background: var(--gold2);
  border-radius: 0 0 4px 4px;
}
.nav button.on {
  background: linear-gradient(#e9c77915,transparent 70%);
}
.card {
  border-color: #34494d;
  box-shadow: 0 4px 16px #01090725;
}
.btn.gold {
  background: linear-gradient(130deg,#ffe4a5,#e4b458);
  color: #172019;
  border: 1px solid #f2ce8b;
  box-shadow: 0 3px 9px #0a100a30;
}
.btn:not(.gold):not(.red) {
  border-color: #3b5158;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.hero {
  padding-block: calc(36px + var(--safe-t)) 29px;
  background: linear-gradient(180deg,#12272211,#0b141b),radial-gradient(ellipse at 50% 0,#4b75664d,transparent 80%),repeating-linear-gradient(125deg,transparent 0 36px,#c5edce09 37px 38px),#13272a;
}
.hero .logo-t {
  font-size: clamp(32px,9vw,54px);
  font-weight: 950;
  letter-spacing: -.065em;
}
.logo-s {
  color: #bad0ca;
}
.slot {
  background: linear-gradient(110deg,#20343b,#14242d 85%);
  border-radius: 13px;
}
.sec-t {
  color: #c6d6d1;
  letter-spacing: .11em;
}
.career-hero {
  border: 1px solid #69857b;
  background: radial-gradient(ellipse at 7% 22%,var(--club-color,#346654),transparent 75%),linear-gradient(125deg,#243f40,#0d1b24 80%);
  box-shadow: 0 10px 30px #0004;
}
.career-hero:before {
  background: linear-gradient(100deg,#09181e69,#0a1822c9),repeating-linear-gradient(125deg,transparent 0 27px,#f0ffea0a 28px 29px);
}
.hero-name h1 {
  font-weight: 850;
}
.hero-ovr strong {
  color: #ffe2a2;
}
.hero-money b {
  font-size: 14px;
  color: #c9d2c8;
}
.hero-money small {
  color: #a7bbb7;
}
.fixture {
  border-color: #57786a;
  background: radial-gradient(ellipse at 50% 0,#3860475c,transparent 80%),repeating-linear-gradient(90deg,transparent 0 36px,#d6f5c509 36px 72px),#142b2b;
}
.fixture-team .crest.lg {
  filter: drop-shadow(0 4px 8px #061d1590);
}
.fixture-vs {
  color: #c8d3c4;
}
.match-cta {
  font-weight: 850;
  letter-spacing: -.02em;
}
.studio-stage {
  background: radial-gradient(ellipse at 50% 35%,#698f76 0%,#335b4d 44%,#132a2c 82%);
}
.studio-stage-grid {
  background: repeating-linear-gradient(125deg,transparent 0 24px,#dff3d315 25px 26px);
}
.studio-preview {
  border-color: #65847b!important;
  background: linear-gradient(135deg,#213e3b,#13252e)!important;
}
.studio-player {
  filter: drop-shadow(4px 9px 7px #08130c88);
}
.studio-form .studio-hair-grid button,.studio-clubs button {
  background: #192f35;
  border-radius: 9px;
}
.studio-form .studio-hair-grid button.on,.studio-clubs button.on {
  background: #3c4234;
  border: 1px solid #e9c67c;
}
.studio-footer {
  background: linear-gradient(180deg,#0b141be8,#0b141b)!important;
}
.studio-shelf,.studio-market {
  background: radial-gradient(ellipse at top,#31483e,#14252d 65%);
}
/* Match screen: higher contrast and an uninterrupted large playing area. */
.pg-official .sheet {
  background: linear-gradient(180deg,#0d1e25,#132932 70%,#0b1c24);
  max-width: 500px;
}
.pg-official .pg-kicker {
  letter-spacing: .08em;
  color: #b9d0c3;
}
.pg-official .pg-head h2 {
  font-size: 21px;
  letter-spacing: -.035em;
  font-weight: 850;
}
.pg-close {
  color: #e5d4ac;
}
.pg-live-score {
  background: #09191f;
  border-color: #3a5a54;
  border-radius: 7px;
}
.pg-live-score strong {
  font-size: 27px;
  color: #ffe2a0;
  letter-spacing: .04em;
}
.pg-live-score>span {
  font-size: 12px;
  line-height: 1.15;
}
.pg-situation b {
  color: #f4e1b0;
}
.pg-situation span {
  color: #bacfca;
}
.pg-field {
  outline: 1px solid #88a58b;
  border-radius: 7px;
  box-shadow: 0 5px 18px #0005;
}
.pg-field canvas {
  cursor: crosshair;
}
.pg-official .pg-field,.pg-official.pg-build .pg-field {
  max-width: min(100%,440px,max(220px,calc((100dvh - 305px)*.818)));
}
.pg-kind,.pg-styles {
  gap: 5px;
}
.pg-kind button,.pg-styles button {
  font-weight: 750;
  border-radius: 6px;
}
.pg-kind button.active,.pg-styles button.active {
  background: #dcc078;
  color: #172c24;
  border-color: #f7d68b;
}
.pg-control button {
  min-height: 34px;
  background: #142c33;
  border-color: #426059;
}
.pg-feedback {
  font-size: 12px;
  line-height: 1.3;
}
.pg-chain {
  color: #ebd59e;
}
.pg-banner.success {
  top: 32%;
  border-radius: 8px;
  padding: 16px 10px;
  background: linear-gradient(135deg,#0e392cf5,#11252af2);
  border: 1px solid #e5cb7e;
  box-shadow: 0 0 0 4px #d8b9671c,0 9px 35px #081c1c99;
}
.pg-banner.success strong {
  font-size: clamp(26px,7vw,40px);
  letter-spacing: .035em;
  color: #ffdf8e;
}
.pg-banner[data-event=assist].success strong {
  color: #b6f3d0;
}
.pg-banner.success span {
  color: #e5eee2;
}
.pg-banner:not(.success) {
  top: 40%;
  padding: 10px;
  background: #102229ed;
  border-color: #81918c;
}
.pg-banner:not(.success) strong {
  font-size: 19px;
  color: #e6e9d8;
}
.pg-actions .btn {
  font-size: 13px;
  min-height: 42px;
}
.pg-actions #pgNext:not([hidden]) {
  font-weight: 850;
}
@media(max-height:740px) and (max-width:699px) {
  .pg-official .pg-field,.pg-official.pg-build .pg-field {
    max-width: min(100%,360px,max(190px,calc((100dvh - 345px)*.818)));
  }
  .pg-live-score {
    min-height: 37px;
  }
  .pg-kind button,.pg-styles button {
    min-height: 30px;
  }
  .pg-control button {
    min-height: 30px;
  }
}
@media(min-width:700px) {
  .pg-official .pg-field,.pg-official.pg-build .pg-field {
    max-width: min(440px,calc((96vh - 300px)*.818));
  }
}
@media(prefers-reduced-motion:reduce) {
  .pg-banner.success {
    animation: none;
  }
  .btn:active:not(:disabled) {
    transform: none;
  }
}
/* No transparent flash from the underlying dashboard when switching highlights. */
.pg-official {
  animation: none;
  background: #0c1b22;
}
/* V3.2: compact three-way combination controls. */
.pg-chain #pgMateActions:has(#pgCombine:not([hidden])) {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.pg-chain #pgCombine[hidden] {
  display: none!important;
}
.pg-chain #pgMateActions .btn {
  white-space: normal;
  line-height: 1.18;
}
/* ===== identity ===== */
/* Football Identity — high-contrast editorial sports styling, mobile first. */
:root {
  --bg: #09151c;
  --bg2: #10242b;
  --card: #12272e;
  --card2: #1b343a;
  --line: #34535a;
  --gold: #e6c17a;
  --gold2: #ffe7ad;
  --tx: #f3f5ef;
  --tx2: #bcced0;
  --tx3: #94b2b4;
  --r: 13px;
}
body {
  background: radial-gradient(ellipse at 95% 0,#214a436b,transparent 40%),#09151c;
}
.top {
  background: #0b1b22f5;
}
.identity-top-ovr {
  display: grid;
  align-items: center;
  text-align: right;
  line-height: 1.1;
}
.identity-top-ovr strong {
  font-size: 24px;
  color: var(--gold2);
  font-weight: 900;
}
.identity-top-ovr small {
  font-size: 10px;
  color: var(--tx2);
  font-weight: 700;
}
.nav {
  background: #0a2027fa;
}
.nav button.on {
  color: #ffe1a0;
}
.nav button.on:before {
  width: 36px;
  left: calc(50% - 18px);
}
.hero {
  padding-bottom: 12px;
}
.identity-cover {
  position: relative;
  overflow: hidden;
  text-align: left;
  margin: 22px auto 0;
  max-width: 680px;
  min-height: 142px;
  padding: 16px 20px;
  background: linear-gradient(110deg,#0a222a 0%,#143b3a 60%,#527357 100%);
  border-block: 1px solid #648478;
}
.identity-cover:before {
  content: '';
  position: absolute;
  right: -32px;
  top: -67px;
  width: 220px;
  height: 240px;
  border: 2px solid #d1e5c539;
  border-radius: 50%;
  box-shadow: 0 0 0 20px #d1e5c512,0 0 0 48px #d1e5c508;
  transform: rotate(-20deg);
}
.identity-cover:after {
  content: '';
  position: absolute;
  right: 10%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d2edcc35;
  transform: rotate(27deg);
}
.identity-cover span,.identity-cover small {
  display: block;
  position: relative;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #c7d8cc;
}
.identity-cover strong {
  display: block;
  position: relative;
  font-size: clamp(26px,7.6vw,40px);
  font-style: italic;
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.055em;
  color: #f0f5e9;
  margin: 10px 0;
}
.identity-cover small {
  color: #e8c784;
}
.slot {
  border-color: #37565b;
  background: linear-gradient(115deg,#1a353a,#10252f);
}
.studio-creator .studio-header {
  margin-bottom: 12px;
}
.studio-steps>div {
  border-top-width: 3px;
}
.studio-steps>div.active {
  background: #e6c17a0c;
}
.studio-form .field {
  border-bottom: 1px solid #29454c;
  padding-bottom: 15px;
}
.studio-form .field:last-child {
  border-bottom: 0;
}
.studio-form .opts button:not(.swatch) {
  border-radius: 8px;
  min-height: 42px;
}
.studio-form .opts button.on:not(.swatch) {
  border-color: #eac67c;
  background: #ddba6730;
  color: #fff1d0;
}
.studio-preview {
  overflow: hidden;
  background: #102b33!important;
  border-color: #52736b!important;
}
.studio-stage {
  min-height: 330px;
  background: radial-gradient(ellipse at 48% 28%,#678779 0%,#2b5550 39%,#0d2730 75%);
  position: relative;
}
.studio-stage:after {
  position: absolute;
  content: '';
  bottom: 12px;
  left: 9%;
  right: 9%;
  height: 20%;
  border: 1px solid #d9e5c33a;
  border-radius: 50%;
  pointer-events: none;
}
.studio-player.identity-player {
  height: 315px;
  max-width: 100%;
  z-index: 2;
  position: relative;
  filter: drop-shadow(5px 8px 7px #0006);
}
.studio-stage-tag {
  z-index: 3;
}
.studio-hair-grid {
  grid-template-columns: repeat(4,minmax(0,1fr))!important;
  gap: 6px!important;
}
.studio-hair-grid button {
  padding: 4px!important;
  min-width: 0;
  background: #193a42!important;
}
.studio-hair-grid button.on {
  background: #3c4b36!important;
}
.studio-hair-grid .avatar {
  width: 100%;
  height: 74px;
  object-fit: contain;
  border-radius: 5px;
}
.studio-hair-grid button span {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.studio-id {
  border-left: 1px solid #53716b;
}
.identity-equipment .opts {
  gap: 5px;
}
.identity-equipment .opts button {
  font-size: 12px;
  flex: 1;
}
.studio-footer {
  border-top: 1px solid #49635e;
}
.studio-shelf,.studio-market {
  border-color: #4b6b66;
}
.studio-art {
  background: linear-gradient(160deg,#3b6061,#183038 65%);
}
.identity-locker {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #526f66;
  border-radius: 13px;
  background: linear-gradient(110deg,#203b38,#12282e);
}
.identity-locker-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.identity-locker-top>div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.identity-locker h3 {
  font-size: 17px;
  margin: 3px 0;
}
.identity-locker p {
  font-size: 12px;
  color: var(--tx2);
  margin: 0;
}
.identity-kit .avatar {
  width: 52px;
  height: 65px;
  border-radius: 7px;
}
.identity-locker-meta {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  border-top: 1px solid #48655f;
  margin-top: 10px;
  padding-top: 8px;
}
.identity-locker-meta span {
  font-size: 10px;
  color: #b4cbc5;
}
.identity-locker-meta b {
  display: block;
  font-size: 17px;
  color: #f4e4b6;
}
.identity-dressing h2 {
  font-size: 25px;
  margin: 4px 0 10px;
}
.identity-lockers {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  border: 1px solid #8b765a;
  background: #42382c;
  padding: 7px;
  border-radius: 7px;
}
.identity-locker-bay {
  background: linear-gradient(90deg,#2d2925,#534537,#2d2925);
  border: 1px solid #7b6b54;
  padding: 6px;
  text-align: center;
  border-radius: 3px;
}
.identity-locker-bay div {
  font-size: 10px;
  letter-spacing: .08em;
  color: #f4e6c7;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity-locker-bay svg {
  width: 100%;
  max-height: 92px;
}
.identity-squad-row {
  display: grid;
  grid-template-columns: 45px 1fr 35px;
  gap: 8px;
  align-items: center;
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.identity-squad-row span {
  color: var(--tx2);
}
.identity-squad-row strong {
  text-align: right;
  color: var(--gold2);
}
.identity-squad-row.self {
  background: #e3c17618;
}
.identity-dressing .btn {
  margin-top: 12px;
}
.identity-prematch {
  margin-top: 8px;
}
.pg-official .pg-live-score {
  border: 1px solid #608277;
  background: linear-gradient(90deg,#142b32,#08191f,#142b32);
  border-radius: 9px;
}
.pg-field {
  box-shadow: 0 8px 22px #0007;
}
.pg-banner.success {
  border-width: 2px;
  background: linear-gradient(115deg,#0a251ef7,#174638f7);
  box-shadow: 0 0 0 5px #dfc77a26,0 10px 32px #0008;
}
.pg-banner.success strong {
  font-style: italic;
}
.pg-banner.success:before {
  content: 'MATCH DAY';
  display: block;
  font-size: 9px;
  letter-spacing: .25em;
  color: #e4c77f;
  margin-bottom: 4px;
}
.pg-kind button.active,.pg-styles button.active {
  background: #f1d49a;
}
.pg-official .pg-control button {
  font-size: 11px;
}
.pg-field canvas {
  touch-action: none;
}
@media(max-width:380px) {
  .studio-stage {
    min-height: 270px;
  }
  .studio-player.identity-player {
    height: 260px;
  }
  .studio-hair-grid .avatar {
    height: 60px;
  }
  .identity-locker-meta span {
    font-size: 9px;
  }
  .identity-locker-top {
    gap: 6px;
  }
  .identity-locker h3 {
    font-size: 15px;
  }
}
@media(min-width:700px) {
  .identity-cover {
    border-radius: 12px;
  }
  .studio-player.identity-player {
    height: 350px;
  }
  .studio-hair-grid .avatar {
    height: 100px;
  }
  .studio-stage {
    min-height: 365px;
  }
}
.academy-player .studio-player.identity-player {
  height: 186px;
  width: 105px;
  max-width: 38%;
  flex-shrink: 0;
}
.academy-hero .academy-player {
  min-height: 0;
}
.identity-equipment-preview {
  height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse,#456b5f,#122932 78%);
  border-radius: 10px;
  margin: 10px 0 16px;
}
.identity-equipment-preview .identity-player {
  height: 232px;
}
.identity-equipment-preview~h3 {
  margin: 14px 0 6px;
}
.identity-equipment-preview~.opts {
  margin-bottom: 12px;
}
.honor-reward .honor-illustration {
  width: 110px;
  height: 98px;
  display: block;
  margin: 0 auto;
}
.studio-trophy .honor-illustration {
  filter: drop-shadow(1px 5px 7px #0004);
}
/* ===== football-story ===== */
/* Ink-art player cards and compact career story panel. */
.studio-stage:has(.ink-player) {
  background: radial-gradient(ellipse at 48% 32%,#608b76,#244844 54%,#0e242d 95%);
}
.studio-player.ink-player {
  filter: drop-shadow(4px 8px 1px #07151c60);
  max-width: 100%;
  height: 310px;
}
.studio-preview:has(.ink-player) {
  grid-template-columns: 1.2fr .8fr;
  border-color: #527f70!important;
}
.studio-hair-grid .ink-portrait {
  max-height: none;
  height: 81px;
  aspect-ratio: 130/158;
  object-fit: contain;
  background: #264b46;
}
.studio-hair-grid button {
  min-height: 106px;
}
.studio-hair-grid button.on {
  border: 2px solid #f1c978!important;
}
.studio-form .face-grid button {
  min-height: 101px;
}
.studio-form .field label {
  letter-spacing: .05em;
}
.studio-form .opts button {
  min-height: 44px;
}
.football-story {
  background: linear-gradient(120deg,#193a35,#12262e);
  border-color: #496b61!important;
}
.football-story h3 {
  font-size: 20px;
  margin: 5px 0;
}
.story-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.story-metrics>div {
  background: #091b23a0;
  padding: 10px;
  border: 1px solid #40605a;
  border-radius: 9px;
}
.story-metrics small,.story-season small,.story-badge small {
  display: block;
  color: #b1c9c2;
  font-size: 11px;
}
.story-metrics strong {
  font-size: 23px;
  color: #f0d18b;
  display: block;
  margin-top: 4px;
}
.story-peer-line {
  font-size: 12px;
  color: #c6d8d1;
}
.story-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #152e31;
  border: 1px solid #4c685d;
  border-radius: 9px;
  margin: 7px 0;
}
.story-badge>span {
  font-size: 23px;
  color: #f1c978;
}
.story-rival {
  background: #172e32;
  border: 1px solid #4b6b60;
  border-radius: 12px;
  padding: 12px;
}
.story-season {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #3a5356;
  font-size: 12px;
}
.story-season b {
  color: #f0d18b;
}
@media(max-width:380px) {
  .studio-player.ink-player {
    height: 275px;
  }
  .studio-hair-grid .ink-portrait {
    height: 67px;
  }
  .studio-hair-grid button {
    min-height: 92px;
  }
}
@media(min-width:700px) {
  .studio-player.ink-player {
    height: 355px;
  }
  .studio-hair-grid .ink-portrait {
    height: 105px;
  }
}
.ink-face-live {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #46665c;
  background: #142c30f5;
  border-radius: 12px;
  padding: 8px;
  margin: 0 0 15px;
  position: sticky;
  top: calc(var(--safe-t) + 5px);
  z-index: 4;
  box-shadow: 0 4px 12px #06141866;
}
.ink-face-live .avatar {
  width: 62px;
  height: 70px;
  object-fit: cover;
  flex: none;
}
.ink-face-live small {
  display: block;
  color: #b4c8c3;
  font-size: 11px;
  margin-top: 3px;
}
.ink-face-live b {
  font-size: 14px;
  color: #f0d18b;
}
.ink-wardrobe {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #193a35;
  border: 1px solid #4b6b60;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 16px;
}
.ink-wardrobe .avatar {
  width: 100px;
  height: 118px;
  flex: none;
}
.ink-wardrobe b {
  font-size: 17px;
}
/* ===== football-legacy ===== */
/* Editorial, football-first presentation; no external assets. */
.legacy-entry {
  background: linear-gradient(130deg,#213e36,#14232c 72%);
  border-color: #59746b!important;
}
.legacy-entry h3 {
  font-size: 20px;
  margin: 6px 0;
}
.legacy-entry .btn+.btn {
  margin-top: 8px;
}
.legacy-eyebrow {
  font-size: 10px;
  letter-spacing: .19em;
  color: #e6c67a;
  font-weight: 800;
}
.legacy-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #708679;
  background: radial-gradient(ellipse at 50% 20%,#476e5a,#132c30 60%,#0c1c26);
  padding: 20px 14px;
  text-align: center;
  margin-bottom: 14px;
}
.legacy-cover h2 {
  font-size: 29px;
  line-height: 1.05;
  margin: 12px 0 4px;
  color: #f1f6ee;
  letter-spacing: -.04em;
}
.legacy-cover p {
  color: #b8d1c8;
  font-size: 12px;
  margin: 0 0 15px;
}
.legacy-portrait .avatar {
  width: 100px;
  height: 118px;
  display: block;
  margin: 12px auto;
  border: 1px solid #92a58c;
  border-radius: 10px;
  box-shadow: 0 8px 20px #071a2260;
}
.legacy-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
.legacy-metrics>div {
  padding: 10px 3px;
  border: 1px solid #547366;
  background: #0b222b95;
  border-radius: 9px;
  text-align: center;
  min-width: 0;
}
.legacy-metrics strong {
  display: block;
  font-size: clamp(19px,6vw,28px);
  color: #f0d18d;
  line-height: 1.1;
}
.legacy-metrics small {
  display: block;
  font-size: 10px;
  color: #b7cfc6;
  margin-top: 6px;
}
.legacy-secondary {
  margin: 8px 0 18px;
}
.legacy-records {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.legacy-record {
  padding: 12px;
  border: 1px solid #48665f;
  border-radius: 10px;
  background: #19322f;
}
.legacy-record small,.legacy-record span {
  display: block;
  color: #b4cbc2;
  font-size: 11px;
}
.legacy-record b {
  display: block;
  font-size: 25px;
  color: #eac77c;
}
.legacy-line,.legacy-season {
  padding: 10px 0;
  border-bottom: 1px solid #35514f;
  font-size: 13px;
}
.legacy-season {
  display: grid;
  gap: 4px;
}
.legacy-season span,.legacy-season small {
  color: #b1c9c0;
}
.legacy-clip {
  width: 100%;
  display: flex;
  gap: 13px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border: 1px solid #56736a;
  background: #162e30;
  color: #f1f3ed;
  border-radius: 12px;
  margin: 8px 0;
}
.legacy-play {
  background: #e7c778;
  color: #162c26;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
}
.legacy-clip div {
  display: grid;
  gap: 4px;
}
.legacy-clip small {
  font-size: 11px;
  color: #abc2b9;
}
.legacy-clip b {
  color: #ecd18d;
}
.legacy-canvas {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 8px auto;
  border: 1px solid #617a68;
  border-radius: 10px;
}
.legacy-replay-head {
  text-align: center;
}
.legacy-replay-head h2 {
  margin: 5px 0;
}
.legacy-replay-head p {
  font-size: 12px;
  color: #c1d5c9;
}
#legacySeek {
  width: 100%;
  margin: 8px 0;
}
.legacy-replay-head+.legacy-canvas~.btn {
  margin-top: 8px;
}
.pg-official .pg-live-score {
  border: 1px solid #7a927e;
  background: linear-gradient(110deg,#172d32,#253f36);
  box-shadow: 0 4px 14px #0005;
}
.pg-official .pg-live-score strong {
  letter-spacing: .04em;
}
.pg-banner[data-event=goal],.pg-banner[data-event=assist] {
  background: linear-gradient(115deg,#18392aee,#102a31f5);
  border: 2px solid #f2d48b;
  box-shadow: 0 0 35px #c6c07640;
}
.pg-banner[data-event=goal] strong,.pg-banner[data-event=assist] strong {
  letter-spacing: .06em;
  color: #ffe6a3;
}
.ink-player {
  filter: drop-shadow(4px 9px 4px #091e2855)!important;
}
.legacy-celebration .honor-reward {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 10%,#6e653958,#19382e 65%);
  border-color: #e2c275!important;
  box-shadow: inset 0 0 26px #c5b77520;
}
.legacy-celebration .honor-reward::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%,#f4d17a 0 2px,transparent 3px),radial-gradient(circle at 80% 24%,#e7d9a3 0 2px,transparent 3px),radial-gradient(circle at 7% 57%,#e8cb77 0 2px,transparent 3px),radial-gradient(circle at 92% 63%,#f3d584 0 2px,transparent 3px);
  animation: honor-spark 1.2s ease-out both;
}
.legacy-celebration .honor-illustration {
  animation: honor-rise .6s cubic-bezier(.2,.7,.4,1) both;
  filter: drop-shadow(0 5px 10px #f4d07432);
}
@keyframes honor-rise {
  from {
    transform: translateY(10px) scale(.9);
    opacity: .3;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes honor-spark {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media(prefers-reduced-motion:reduce) {
  .legacy-celebration .honor-reward::before,.legacy-celebration .honor-illustration {
    animation: none;
  }
}
#pgPassStyles button {
  font-size: 11px;
  min-width: 0;
  padding-inline: 3px;
}
.studio-stage:has(.ink-player) {
  background: radial-gradient(ellipse at 55% 25%,#6b8e73,#30574c 42%,#142d32 85%);
}
.studio-form .face-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.studio-form .face-grid button span {
  white-space: normal;
  font-size: 11px;
}
/* ===== reborn ===== */
/* V4.1 — training studio and streamlined match controls. */
.reborn-training {
  background: linear-gradient(155deg,#162d2c,#111c28 58%);
  border-color: #34554f;
  padding: 17px;
}
.reborn-eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  color: #8fdbbc;
  font-weight: 800;
  margin-bottom: 6px;
}
.reborn-training h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.reborn-training p {
  line-height: 1.5;
  margin: 8px 0 14px;
}
.reborn-blocks {
  display: grid;
  gap: 7px;
  margin: 10px 0 16px;
}
.reborn-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b1920aa;
  border: 1px solid #29413f;
  border-radius: 12px;
  padding: 10px;
}
.reborn-index {
  font-size: 22px;
  font-weight: 800;
  color: #7ac5a9;
  font-variant-numeric: tabular-nums;
}
.reborn-block label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #b4c7c3;
}
.reborn-block .inp {
  margin: 4px 0;
  min-height: 40px;
}
.reborn-report {
  border-top: 1px solid #34554f;
  padding-top: 14px;
}
.reborn-gain {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #ffffff0c;
  font-size: 13px;
}
.reborn-gain b {
  color: #8ee4b7;
  font-variant-numeric: tabular-nums;
}
.pg-official .pg-live-score {
  background: linear-gradient(110deg,#142c2d,#0b1622 50%,#142c2d);
  border-color: #42625b;
}
.pg-official .pg-kind button {
  min-height: 42px;
  font-weight: 800;
}
.pg-official .pg-kind button.active {
  background: #e8c87f;
  color: #16221c;
  border-color: #f5dc9f;
}
.pg-official #pgMateActions .btn {
  min-height: 42px;
}
.pg-official #pgMateActions {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.pg-official .pg-feedback {
  line-height: 1.35;
}
.pg-official .pg-banner.success {
  box-shadow: 0 5px 30px #081e15b0,0 0 30px #d9b45255;
}
.pg-official .pg-banner.success strong {
  letter-spacing: .02em;
}
/* ===== social-life ===== */
/* A Real Life: scoped mobile-first visual system. */
.rl-hero {
  padding: 21px 17px 17px;
  border: 1px solid #35535c;
  border-radius: 20px;
  background: radial-gradient(ellipse at 100% 0%,#30524e 0,transparent 65%),linear-gradient(150deg,#192d39,#13222c);
  margin: 0 0 12px;
  overflow: hidden;
}
.rl-tag,.rl-hub small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  color: #a7d5c0;
  text-transform: uppercase;
}
.rl-hero h2 {
  margin: 7px 0 4px;
  font-size: 29px;
  letter-spacing: -1px;
}
.rl-hero p {
  color: #b4c6c9;
  font-size: 13px;
  margin: 0 0 16px;
}
.rl-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}
.rl-metrics div {
  padding: 10px 7px;
  background: #101d27a8;
  border-radius: 12px;
}
.rl-metrics small {
  display: block;
  color: #a8bdc4;
  font-size: 10px;
}
.rl-metrics strong {
  display: block;
  font-size: 23px;
  margin-top: 3px;
  color: #e5e9e7;
}
.rl-section {
  background: #15232e;
  border: 1px solid #2d404e;
  border-radius: 17px;
  padding: 14px;
  margin: 12px 0;
}
.rl-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.rl-heading span {
  font-size: 11px;
  color: #aac0c6;
}
.rl-section h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.rl-heading h3 {
  margin: 0;
}
.rl-person,.rl-invite,.rl-choice {
  border: 1px solid #354c57;
  background: #1c303c;
  color: #f1f5f4;
  border-radius: 13px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  margin: 6px 0;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.rl-person:hover,.rl-invite:hover,.rl-choice:hover {
  border-color: #93bba9;
}
.rl-person>span:nth-child(2),.rl-invite>span:nth-child(2),.rl-choice>span {
  flex: 1;
  min-width: 0;
}
.rl-person b,.rl-person small,.rl-invite b,.rl-invite small {
  display: block;
  overflow-wrap: anywhere;
}
.rl-person small,.rl-invite small {
  font-size: 11px;
  color: #aac0c6;
  margin-top: 3px;
}
.rl-portrait {
  width: 57px;
  height: 61px;
  flex: 0 0 auto;
  border-radius: 10px;
}
.rl-rel {
  text-align: right;
}
.rl-rel b {
  color: #b9d9bd;
  font-size: 20px;
}
.rl-invite {
  background: linear-gradient(110deg,#25473e,#20303b);
  border-color: #436b5e;
}
.rl-invite small {
  font-size: 9px;
  letter-spacing: .06em;
  color: #c2d4bb;
}
.rl-event-icon {
  color: #e8c879;
  font-size: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #36554a;
}
.rl-pause {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #b6c8cd;
  font-size: 12px;
  margin-top: 10px;
}
.rl-log {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #334651;
}
.rl-log:last-child {
  border: 0;
}
.rl-log small,.rl-log span {
  font-size: 11px;
  color: #a9bdc7;
}
.rl-meter {
  margin: 12px 0;
}
.rl-meter>div {
  display: flex;
  justify-content: space-between;
  color: #c4d6d9;
  font-size: 13px;
}
.rl-meter>i {
  display: block;
  height: 7px;
  background: #0c1821;
  border-radius: 9px;
  margin-top: 6px;
  overflow: hidden;
}
.rl-meter em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,#5a977f,#c1dbb2);
  border-radius: 9px;
}
.rl-sheet h2 {
  font-size: 25px;
  margin: 8px 0;
}
.rl-sheet p {
  line-height: 1.45;
}
.rl-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0;
}
.rl-profile .rl-portrait {
  width: 87px;
  height: 93px;
}
.rl-profile p {
  font-size: 12px;
  color: #b5c9cf;
  margin: 3px 0;
}
.rl-choice {
  padding: 11px 13px;
}
.rl-choice b {
  color: #e6cf91;
  font-size: 13px;
}
.rl-choice.danger {
  border-color: #744449;
  color: #f2acac;
}
.rl-choice:disabled {
  opacity: .45;
}
.rl-actions {
  margin: 13px 0;
}
.rl-actions .btn,.rl-sheet>.btn {
  margin-top: 7px;
}
.rl-hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid #385b54;
  border-radius: 13px;
  background: #1b3435;
}
.rl-hub small,.rl-hub b {
  display: block;
}
.rl-hub b {
  font-size: 13px;
  margin-top: 3px;
}
.rl-event-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
  background: linear-gradient(120deg,#34594a,#213745);
  border-radius: 15px;
  padding: 10px 15px;
}
.rl-event-hero>span {
  font-size: 40px;
  color: #e7ca80;
}
.rl-event-hero .rl-portrait {
  width: 75px;
  height: 80px;
}
@media(prefers-reduced-motion:no-preference) {
  .rl-invite,.rl-person,.rl-choice {
    transition: background .13s,transform .13s;
  }
  .rl-invite:active,.rl-person:active,.rl-choice:active {
    transform: scale(.986);
  }
}
/* Living Career: compact chapter cards and readable dialogue history. */
.rl-chapter {
  padding: 13px;
  margin: 10px 0;
  background: linear-gradient(135deg,#294637,#1c3028);
  border: 1px solid #536d57;
  border-left: 3px solid #c7e878;
  border-radius: 11px;
  display: grid;
  gap: 7px;
}
.rl-chapter>small,.rl-due {
  font-size: 10px;
  letter-spacing: .06em;
  color: #b8d18e;
}
.rl-chapter>b {
  font-size: 17px;
  letter-spacing: -.03em;
  color: #f0f0df;
}
.rl-chapter>p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: #c8d6c9;
}
.rl-chapter>.btn {
  justify-self: start;
}
.rl-bond {
  background: #14251e;
  border: 1px solid #46624e;
  border-radius: 12px;
  padding: 11px 13px;
  margin: 12px 0;
}
.rl-bond h3 {
  margin: 0;
  font-size: 14px;
  color: #d7edb3;
}
.rl-bond .rl-meter {
  margin: 8px 0;
}
.rl-bond summary {
  font-size: 12px;
  color: #d2ddc7;
  cursor: pointer;
  padding: 8px 0;
}
.rl-person .rl-bond-label {
  color: #b8d18e;
  font-size: 10px;
}
.rl-dialogue {
  border-left: 3px solid #d4eaa1;
  background: #203a2c;
  padding: 12px;
  border-radius: 0 12px 12px 0;
  margin: 10px 0;
}
.rl-dialogue small {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .07em;
  color: #d0e6aa;
}
.rl-dialogue p {
  margin: 7px 0 0;
  font-size: 14px;
  color: #e6eadc;
  line-height: 1.55;
}
.rl-actions .rl-choice>span {
  line-height: 1.35;
}
.rl-chapter button {
  min-height: 40px;
}
/* ===== leisure ===== */
/* Scoped, compact and keyboard/touch friendly leisure cards. */
.lw-hero {
  padding: 20px 16px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 95% 0%,#436a64,transparent 72%),linear-gradient(135deg,#233e48,#172632);
  border: 1px solid #42616a;
  margin: 12px 0;
  color: #edf4ef;
}
.lw-hero>small {
  font-size: 10px;
  letter-spacing: .15em;
  color: #bfdccd;
  font-weight: 800;
}
.lw-hero h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0;
}
.lw-hero p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #b7ced0;
}
.lw-balance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lw-balance>div {
  padding: 9px;
  background: #10222abf;
  border-radius: 11px;
  min-width: 0;
}
.lw-balance small,.lw-balance b {
  display: block;
}
.lw-balance small {
  font-size: 11px;
  color: #a9c8c9;
}
.lw-balance b {
  font-size: 19px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.lw-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.lw-nav button,.lw-companions button {
  font: inherit;
  font-size: 12px;
  color: #d5e4e5;
  background: #192e3b;
  border: 1px solid #36515e;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 38px;
  cursor: pointer;
}
.lw-nav button.on,.lw-companions button.on {
  color: #10242a;
  background: #b5dac4;
  border-color: #c2e7d2;
  font-weight: 750;
}
.lw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap: 9px;
}
.lw-card {
  width: 100%;
  display: flex;
  gap: 12px;
  background: #182a36;
  color: #f0f3f2;
  border: 1px solid #334a56;
  border-radius: 15px;
  padding: 10px;
  text-align: left;
  font: inherit;
  align-items: center;
  cursor: pointer;
  min-height: 110px;
}
.lw-art {
  width: 100px;
  max-width: 35%;
  height: auto;
  flex: none;
  display: block;
  border-radius: 12px;
}
.lw-card-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lw-card-text>small {
  font-size: 11px;
  line-height: 1.35;
  color: #adc2ca;
}
.lw-card-text>small:first-child {
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #b2d3bd;
}
.lw-card-text>b {
  font-size: 15px;
}
.lw-card-bottom {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}
.lw-card-bottom strong {
  color: #eed59b;
  font-size: 13px;
}
.lw-card-bottom>span {
  color: #a6bfc5;
  font-size: 10px;
}
.lw-section {
  margin: 12px 0;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid #344a55;
  background: #15242f;
}
.lw-section h3,.lw-sheet h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.lw-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.lw-section-head>b {
  font-size: 11px;
  color: #a9c4bd;
}
.lw-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid #32444e;
  font-size: 13px;
}
.lw-record:last-child {
  border: 0;
}
.lw-record small,.lw-item small {
  display: block;
  color: #a6bec5;
  font-size: 11px;
  margin-top: 4px;
}
.lw-record>span {
  color: #e9d6aa;
}
.lw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}
.lw-item .lw-art {
  width: 78px;
}
.lw-skill {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin: 10px 0;
  font-size: 13px;
}
.lw-skill i {
  grid-column: 1/-1;
  background: #0c1923;
  height: 7px;
  border-radius: 5px;
  overflow: hidden;
}
.lw-skill em {
  display: block;
  height: 100%;
  background: #9ccfb3;
}
.lw-sheet>.lw-art {
  width: 100%;
  max-width: 100%;
  height: 135px;
  margin-bottom: 14px;
  background: #203440;
}
.lw-sheet h2 {
  font-size: 25px;
  letter-spacing: -.4px;
  margin: 7px 0;
}
.lw-sheet p {
  line-height: 1.5;
}
.lw-sheet>.btn {
  margin-top: 8px;
  min-height: 44px;
}
.lw-chips,.lw-companions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.lw-chip {
  padding: 6px 9px;
  border-radius: 9px;
  background: #28414b;
  font-size: 11px;
  color: #d6e9ec;
}
.lw-chip.up {
  color: #a9e2b5;
  background: #244a3c;
}
.lw-chip.down {
  color: #ffc3b0;
  background: #4d3439;
}
.lw-confirm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  margin: 14px 0;
  border-radius: 12px;
  background: #12232e;
  font-size: 13px;
  color: #c4d7d9;
}
.lw-confirm b {
  color: #f1d39b;
}
.lw-warning {
  color: #ffd4a0;
  background: #48382a;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}
.lw-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #223c3e;
  border: 1px solid #47635e;
  border-radius: 14px;
  color: #ecf4ec;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lw-shortcut>span:nth-child(2) {
  flex: 1;
}
.lw-shortcut>span:first-child {
  font-size: 25px;
  color: #c3dfb1;
}
.lw-shortcut b,.lw-shortcut small {
  display: block;
}
.lw-shortcut small {
  font-size: 11px;
  color: #b8cfc7;
  margin-top: 3px;
}
.lw-result {
  text-align: center;
}
.lw-result .lw-chips {
  justify-content: center;
}
.lw-card:focus-visible,.lw-nav button:focus-visible,.lw-companions button:focus-visible {
  outline: 2px solid #b9e3ce;
  outline-offset: 2px;
}
@media(prefers-reduced-motion:no-preference) {
  .lw-card,.lw-nav button,.lw-companions button {
    transition: background .12s,transform .12s;
  }
  .lw-card:active {
    transform: scale(.985);
  }
}
/* V6.5 scene planning */
.lr-scene .lr-steps {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px;
  margin: 12px 0;
}
.lr-steps span {
  padding: 8px 4px;
  border-bottom: 2px solid #527064;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.lr-steps .on {
  border-color: #c7ef70;
  color: #d7f3a9;
  font-weight: 800;
}
.lr-summary {
  border-left: 3px solid #9bbd79;
  padding: 4px 12px;
  margin: 12px 0;
  background: #92b68412;
  border-radius: 5px;
}
.lr-summary p {
  margin: 7px 0;
  font-size: 13px;
}
.lr-scene .rl-choice {
  min-height: 52px;
  text-align: left;
}
.lr-scene .lw-art {
  max-height: 140px;
  width: 100%;
  object-fit: contain;
}
.sheet:has(.lr-scene) {
  background: #192c25;
  animation: none;
}
.lr-scene .rl-dialogue {
  background: #223d31;
}
.lr-scene .lw-art {
  display: block;
  background: transparent;
  max-height: 132px;
}
.lr-scene .btn.block {
  margin-top: 6px;
}
/* ===== beyond ===== */
/* Beyond the Pitch: match-program editorial design. Mobile first. */
:root {
  --bg: #0e1917;
  --bg2: #152320;
  --card: #192b26;
  --card2: #233830;
  --line: #3a5047;
  --tx: #f2f5e8;
  --tx2: #c2d0c5;
  --tx3: #93a99b;
  --gold: #c7ef70;
  --gold2: #e0f8a9;
  --gold-d: #c7ef701c;
  --green: #72dca6;
  --red: #ff9292;
  --blue: #8dc6ef;
  --r: 12px;
  --nav-h: 64px;
}
body {
  background: var(--bg);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
#app {
  background: radial-gradient(ellipse at 75% 0,#294139 0,transparent 390px),var(--bg);
}
.top {
  background: #0e1917f5;
  border-color: #3a5047;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-left: 14px;
  padding-right: 12px;
}
.top .t1 {
  font-size: 16px;
  letter-spacing: -.025em;
}
.top .t2 {
  font-size: 11px;
}
.b5-menu {
  width: 40px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--tx2);
  flex: none;
}
.b5-menu svg {
  width: 21px;
  height: 21px;
}
.nav {
  background: #11201cfb;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 -8px 30px #07120e40;
}
.nav button {
  position: relative;
  color: #a4b9aa;
  gap: 5px;
  font-weight: 650;
}
.nav button.on {
  color: var(--gold);
}
.nav button.on:before {
  content: '';
  height: 3px;
  border-radius: 0 0 3px 3px;
  width: 32px;
  position: absolute;
  top: 0;
  left: calc(50% - 16px);
}
.nav button svg {
  width: 21px;
  height: 21px;
}
.main {
  padding-top: 14px;
  max-width: 920px;
}
.card,.rl-section,.lw-section {
  box-shadow: none;
  border-color: var(--line);
}
.card h3 {
  font-size: 16px;
  letter-spacing: -.03em;
}
.sec-t {
  color: #b0c2b2;
}
.btn.gold,.tabs button.on,.seg button.on {
  color: #152111;
  border-color: transparent;
  box-shadow: none;
}
.btn {
  border-radius: 9px;
}
.btn:focus-visible,button:focus-visible,select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn:active {
  transform: scale(.985);
}
.tabs {
  gap: 4px;
}
.tabs button {
  border-radius: 8px;
  background: #20322b;
}
.tabs button.on {
  font-weight: 800;
}
.chip.gold {
  color: var(--gold);
  background: #c7ef7018;
  border-color: #c7ef7040;
}
.b5-today {
  display: grid;
  gap: 14px;
}
.b5-identity {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  border: 1px solid #42614c;
  border-radius: 14px;
  background: #142b23;
  isolation: isolate;
}
.b5-identity-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.b5-identity-art>svg:first-child {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  opacity: .9;
}
.b5-identity-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#10221ff5 0%,#10221fbb 46%,#10221f00 80%);
}
.b5-identity-art>.avatar {
  position: absolute;
  right: 5px;
  bottom: 28px;
  width: 43%;
  height: calc(100% - 30px);
  max-height: 200px;
  object-fit: contain;
  border-radius: 0;
  z-index: 1;
  mask-image: linear-gradient(#000 0%,#000 78%,transparent 100%);
}
.b5-player {
  position: relative;
  padding: 16px 14px 11px;
  max-width: 65%;
  min-height: 158px;
}
.b5-kicker {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  color: var(--gold);
  line-height: 1.4;
}
.b5-player h1 {
  font-size: clamp(24px,7.2vw,36px);
  letter-spacing: -.055em;
  text-transform: uppercase;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.b5-player p {
  font-size: 11px;
  color: #d4e4d3;
  margin: 0 0 8px;
}
.b5-overall {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #c7ef7060;
  background: #15251b;
  border-radius: 4px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}
.b5-overall small {
  font-size: 9px;
  letter-spacing: .1em;
}
.b5-statline {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  position: relative;
  background: #0c1c18ee;
  border-top: 1px solid #476352;
  padding: 10px 8px;
}
.b5-statline>div {
  display: grid;
  text-align: center;
  gap: 2px;
  border-right: 1px solid #395044;
}
.b5-statline>div:last-child {
  border: 0;
}
.b5-statline strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.b5-statline small {
  font-size: 10px;
  color: var(--tx2);
}
.b5-match,.b5-section {
  padding: 15px;
  background: #192c26;
  border: 1px solid #3c5549;
  border-radius: 12px;
}
.b5-match {
  background: linear-gradient(145deg,#294238,#192c26 70%);
}
.b5-match h2 {
  font-size: 22px;
  letter-spacing: -.04em;
  margin: 9px 0;
}
.b5-match .b5-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.b5-live {
  font-size: 10px;
  border-radius: 4px;
  background: var(--gold);
  color: #152111;
  padding: 3px 6px;
  letter-spacing: .08em;
}
.b5-match-meta {
  font-size: 12px;
  color: var(--tx2);
  margin: 7px 0 0;
}
.b5-versus {
  display: grid;
  grid-template-columns: 1fr 38px 1fr;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
}
.b5-team {
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.b5-team .crest {
  width: 56px;
  height: 62px;
}
.b5-versus>span {
  color: #a3baaa;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.b5-importance {
  font-size: 11px;
  color: #e8f6d6;
  margin-bottom: 8px;
  text-align: center;
}
.b5-main-cta {
  min-height: 50px;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 15px;
}
.b5-main-cta svg,.b5-time svg {
  width: 20px;
  height: 20px;
}
.b5-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  color: var(--tx2);
  font-size: 13px;
  margin-top: 5px;
  padding: 0 3px;
}
.b5-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.b5-time-grid button[data-v="season"],.b5-time-grid button[data-v="seasonStops"] {
  grid-column: 1/-1;
}
.b5-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.b5-heading h2,.b5-football-menu h2 {
  font-size: 19px;
  letter-spacing: -.04em;
}
.b5-heading>span {
  color: var(--tx3);
  font-size: 10px;
  text-align: right;
}
.b5-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.b5-quick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 11px 9px;
  background: #233b30;
  border: 1px solid #486354;
  min-width: 0;
}
.b5-quick button:nth-child(2n) {
  background: #283934;
}
.b5-quick small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  color: #bbd5a2;
}
.b5-quick b {
  font-size: 15px;
  letter-spacing: -.025em;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.b5-quick span {
  color: var(--tx2);
  font-size: 11px;
}
.b5-inbox {
  display: grid;
  text-align: left;
  gap: 4px;
  padding: 12px;
  background: #3e4d2d;
  border: 1px solid #9ab56880;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 9px;
}
.b5-inbox small,.b5-inbox span {
  font-size: 10px;
  color: #dceab9;
}
.b5-notice {
  color: #ffd1bd;
  font-size: 12px;
  padding: 8px 0;
}
.b5-link {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  min-height: 45px;
  padding: 10px 12px;
  background: #1c3028;
  border: 1px solid #3e5a49;
  border-radius: 9px;
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.b5-link span:last-child {
  color: var(--gold);
}
.b5-pace {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 4px;
  margin: 8px 0;
}
.b5-pace button {
  font-size: 10px;
  font-weight: 700;
  min-height: 38px;
  padding: 4px 2px;
  background: #20382d;
  border: 1px solid #45604e;
  border-radius: 6px;
}
.b5-pace button.on {
  background: var(--gold);
  color: #142111;
  border-color: transparent;
}
.b5-back {
  font-weight: 700;
  color: var(--gold);
  min-height: 44px;
}
.b5-football-menu {
  margin-bottom: 12px;
}
.b5-shortcuts,.b5-life-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.b5-life-top {
  margin: 0 0 12px;
}
.b5-cover {
  isolation: isolate;
  position: relative;
  text-align: left;
  border: 1px solid #466150;
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
  margin: 20px auto 0;
  height: 177px;
  background: #1c382b;
}
.b5-cover svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.b5-cover>div {
  padding: 18px 20px;
  background: linear-gradient(90deg,#0b1a17dc,transparent);
  height: 100%;
}
.b5-cover span,.b5-cover small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #d5ecaf;
}
.b5-cover strong {
  display: block;
  font-size: 46px;
  line-height: .89;
  letter-spacing: -.055em;
  margin: 10px 0;
  color: #f4f7e8;
}
.logo-t b {
  color: var(--gold);
}
/* Unify previously independent interface layers. Keep strong semantics for errors. */
.sheet {
  background: #192a24;
  border-color: #476151;
  border-radius: 18px 18px 0 0;
}
.sheet h2 {
  letter-spacing: -.04em;
}
.ov-bg {
  background: #071511c9;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sheet:not(:has(.pg-wrap)) {
  animation: b5sheet .16s ease-out;
}
.rl-hero,.lw-hero,.career-hero,.legacy-cover {
  background: linear-gradient(135deg,#254735,#14251f);
  border-color: #53795d;
}
.rl-person,.rl-choice,.lw-card,.lw-item,.lw-record {
  border-color: #45604e;
  background: #21392e;
}
.rl-tag,.lw-hero>small,.studio-eyebrow,.legacy-eyebrow {
  color: #d3f38f;
}
.rl-choice {
  min-height: 48px;
}
.lw-card {
  border-radius: 9px;
}
.lw-art {
  border-radius: 8px;
}
.lw-nav button.on {
  background: var(--gold);
  color: #152111;
}
.creator-portrait,.studio-card {
  border-color: #4c6956;
}
.studio-hair-grid button.on {
  border-color: var(--gold);
}
.creator-portrait .avatar,.studio-player {
  filter: drop-shadow(0 6px 4px #071a1250);
}
.pg-official .sheet {
  background: #0e201b;
}
.pg-live-score {
  background: #162c24;
  border-color: #4a6e55;
}
.pg-field {
  border: 1px solid #6d8e6c;
  border-radius: 10px;
  box-shadow: 0 8px 18px #06160f40;
}
.pg-kind button,.pg-styles button,.pg-control button {
  border-radius: 6px;
}
.pg-banner.success {
  background: linear-gradient(135deg,#173c29ed,#0e2118ef);
  border: 1px solid #c7ef70;
  box-shadow: 0 0 24px #c7ef7040;
}
.pg-banner.success strong {
  color: #e6ffb0;
  font-weight: 950;
  letter-spacing: .04em;
}
.pg-banner[data-event=assist].success strong {
  color: #b4f6d2;
}
.pg-feedback {
  color: #d4e4d2;
}
.pg-actions #pgNext {
  background: var(--gold);
  color: #172111;
}
.pg-chain #pgMateActions .btn {
  min-height: 42px;
}
.pg-official .pg-control button {
  color: #c6d9cc;
}
@keyframes b5sheet {
  from {
    opacity: .7;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media(min-width:700px) {
  .b5-today {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .b5-identity,.b5-match {
    min-height: 245px;
  }
  .b5-player {
    padding: 20px;
    min-height: 185px;
  }
  .b5-identity-art>.avatar {
    max-height: 240px;
  }
  .b5-identity-art {
    height: 100%;
  }
  .b5-match {
    padding: 20px;
  }
  .b5-cover {
    height: 200px;
  }
  .sheet {
    border-radius: 16px;
  }
}
@media(max-width:350px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .b5-quick button {
    padding: 8px;
  }
  .b5-pace button {
    font-size: 9px;
  }
  .top .t2 {
    font-size: 10px;
  }
  .b5-menu {
    width: 34px;
  }
  .b5-player h1 {
    font-size: 24px;
  }
  .b5-match,.b5-section {
    padding: 12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .sheet:not(:has(.pg-wrap)) {
    animation: none;
  }
  .btn:active {
    transform: none;
  }
}
/* Match presentation: keep the canvas prominent, show controls at a predictable size. */
.pg-wrap button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #132517;
}
.pg-live-score strong {
  color: var(--gold2);
}
.pg-situation b {
  color: #e3f5d7;
}
.pg-official .pg-field,.pg-official.pg-build .pg-field {
  max-width: min(100%,400px,max(224px,calc((100dvh - 310px)*.818)));
}
.pg-control button {
  font-size: 10.5px;
  background: #182e26;
  border-color: #486554;
}
.pg-actions #pgReset {
  color: #afc0b1;
  background: #172a23;
}
.pg-banner.b5-celebrate {
  animation: b5goal .38s cubic-bezier(.2,.85,.35,1.2) both;
}
.pg-banner.b5-celebrate:before {
  display: block;
  letter-spacing: .2em;
  margin-bottom: 4px;
}
.toast {
  background: #20362d;
  pointer-events: none;
}
.nav button.on {
  background: linear-gradient(#c7ef7013,transparent);
}
@keyframes b5goal {
  0% {
    opacity: 0;
    transform: scale(.82);
  }
  65% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media(prefers-reduced-motion:reduce) {
  .pg-banner.b5-celebrate {
    animation: none;
  }
}
/* The hero uses the illustrated portrait directly over the stadium artwork. */
.b5-identity-art>.avatar>rect,.b5-identity-art>.avatar>path,.b5-identity-art>.avatar>.pixel-backdrop {
  opacity: 0;
}
/* ===== first-touch ===== */
/* First Touch — compact, high-contrast sports editorial UI. No domain logic. */
:root {
  --bg: #101d19;
  --bg2: #14251f;
  --card: #1c3028;
  --card2: #253b31;
  --line: #41574a;
  --tx: #f4f6eb;
  --gold: #c8f36d;
  --gold2: #e1f8b0;
}
#app {
  background: radial-gradient(ellipse at 95% 0,#354d33 0,transparent 360px),var(--bg);
}
.main {
  padding-top: 12px;
}
.card,.b5-match,.b5-section {
  border-radius: 11px;
}
.b5-identity {
  border-radius: 11px;
  border-color: #617b59;
}
.b5-statline {
  padding-block: 13px;
}
.b5-player h1 {
  font-weight: 900;
}
.b5-match {
  border-top: 3px solid #c8f36d;
  background: linear-gradient(155deg,#2d4938,#172d24 68%);
}
.b5-match-meta {
  font-weight: 650;
}
.b5-versus .crest {
  filter: drop-shadow(0 3px 3px #09170d70);
}
.b5-main-cta {
  font-weight: 850;
  letter-spacing: -.02em;
  box-shadow: 0 4px 0 #779b39;
}
.b5-main-cta:active {
  box-shadow: 0 1px 0 #779b39;
  transform: translateY(2px);
}
.b5-quick button {
  position: relative;
  border-radius: 9px;
  border-left: 3px solid #82a96b;
  min-height: 83px;
}
.b5-quick button:nth-child(2) {
  border-left-color: #e8bd7c;
}
.b5-quick button:nth-child(3) {
  border-left-color: #8bc9b6;
}
.b5-quick button:nth-child(4) {
  border-left-color: #c5a3df;
}
.b5-quick button:after {
  content: '›';
  position: absolute;
  right: 9px;
  top: 9px;
  color: #b9d3a2;
  font-size: 18px;
}
.b5-quick button b {
  padding-right: 10px;
}
.b5-pace button {
  min-height: 44px;
}
.b5-time-grid button {
  min-height: 48px;
}
.nav button.on {
  background: #c8f36d16;
}
.nav button.on svg {
  stroke-width: 2.5;
}
.btn:not(.sm) {
  min-height: 44px;
}
.btn:active,.rl-choice:active,.lw-card:active,.studio-hair-grid button:active {
  transform: scale(.98);
}
.sheet {
  border-top: 1px solid #78936b;
}
.rl-choice {
  border-left: 3px solid #6c9671;
  gap: 10px;
  min-height: 50px;
}
.rl-choice.danger {
  border-left-color: #ff9292;
}
.rl-person {
  border-radius: 12px;
}
.rl-profile .rl-portrait {
  outline: 1px solid #98b37e;
  outline-offset: 2px;
}
.rl-event-hero {
  background: radial-gradient(ellipse at 50% 25%,#627b44,#17342a 75%);
}
.lw-card {
  border-bottom: 2px solid #5c805d;
}
.tabs button {
  min-height: 39px;
}
.tabs button.on,.seg button.on {
  box-shadow: inset 0 -3px #749a37;
}
.rl-meter i,.lw-item {
  border-radius: 5px;
}
.studio-stage {
  background: radial-gradient(ellipse at 45% 30%,#749267 0%,#305342 43%,#132d25 80%);
}
.studio-preview {
  border-color: #779268;
  background: #162c24;
}
.studio-stage-grid {
  opacity: .25;
}
.studio-id {
  padding: 14px 10px;
}
.studio-id b {
  color: #f5f8e8;
}
.studio-section-label {
  color: #b4cc95;
  letter-spacing: .14em;
}
.studio-hair-grid {
  gap: 7px;
}
.studio-hair-grid button {
  border-color: #48614e;
  background: #1b3027;
  position: relative;
  padding: 5px 3px 9px;
}
.studio-hair-grid button.on {
  background: #365038;
  border: 2px solid var(--gold);
  padding: 4px 2px 8px;
  color: #e6ffb8;
}
.studio-hair-grid button.on:after {
  content: '✓';
  position: absolute;
  right: 4px;
  top: 4px;
  background: var(--gold);
  color: #18301d;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.studio-hair-grid .avatar {
  max-height: 90px;
}
.studio-form .swatch.on {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.studio-form .opts button:not(.swatch) {
  min-height: 44px;
}
.studio-clubs button.on {
  background: #385439;
  color: #e5ffc1;
  border-color: var(--gold);
}
.studio-creator .studio-footer {
  background: #11251fef;
  border-top: 1px solid #65805a;
  backdrop-filter: blur(8px);
}
/* Match: less chrome, more pitch. Settings are accessible but collapsed by default. */
.pg-official .sheet {
  background: #11241d;
}
.pg-official .pg-wrap {
  padding-inline: 10px;
}
.pg-official .pg-head {
  margin-bottom: 5px;
  gap: 8px;
}
.pg-official .pg-head h2 {
  line-height: 1.05;
}
.pg-official .pg-kicker {
  font-size: 9px;
  letter-spacing: .07em;
}
.pg-official .pg-close {
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 8px;
  background: #203b31;
  border-color: #53785f;
}
.pg-live-score {
  background: #0a1a16;
  border-radius: 8px;
  border-color: #6c885e;
  min-height: 42px;
}
.pg-live-score strong {
  font-size: 26px;
  color: #ecf9d7;
}
.pg-situation small {
  color: #d1dba0;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.pg-situation b {
  font-size: 15px;
  line-height: 1.15;
  color: #f4efd8;
}
.pg-situation span {
  font-size: 11px;
  line-height: 1.25;
  color: #bfd0c9;
}
.pg-official .pg-field,.pg-official.pg-build .pg-field {
  max-width: min(100%,410px,max(204px,calc((100dvh - 278px)*.818)));
  border: 1px solid #8caf76;
  outline: 0;
  border-radius: 10px;
  box-shadow: 0 6px 14px #04120c55;
}
.pg-tools {
  margin-top: 7px;
  gap: 5px;
}
.pg-kind button,.pg-styles button {
  background: #21382f;
  border-color: #496957;
  min-height: 38px;
  font-size: 12px;
}
.pg-kind button.active,.pg-styles button.active {
  background: #c8f36d;
  border-color: #c8f36d;
  color: #132719;
  box-shadow: inset 0 -3px #7ea63f;
}
.pg-styles button {
  min-height: 33px;
  font-size: 11px;
}
.pg-chain {
  color: #c9dfb8;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}
.pg-settings {
  margin-top: 5px;
}
.pg-settings summary {
  font-size: 11px;
  color: #b6cdb6;
  cursor: pointer;
  padding: 5px 2px;
  min-height: 28px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pg-settings summary::-webkit-details-marker {
  display: none;
}
.pg-settings summary span {
  font-size: 16px;
  color: #d6ecbf;
}
.pg-settings[open] summary {
  color: #e6f7d4;
}
.pg-control {
  margin-top: 0;
}
.pg-control button {
  min-height: 36px;
}
.pg-official .pg-feedback {
  min-height: 27px;
  font-size: 11px;
  line-height: 1.25;
}
.pg-actions .btn {
  min-height: 43px;
  font-size: 12px;
}
.pg-official #pgReset {
  background: transparent;
  border-color: #496957;
}
.pg-banner {
  border-radius: 8px;
}
.pg-banner.success {
  border: 2px solid #c8f36d;
  background: #12291df2;
}
.pg-banner.success strong {
  font-size: clamp(24px,8vw,38px);
  letter-spacing: -.035em;
}
.pg-banner.b5-celebrate:before {
  content: 'MATCH DAY';
  letter-spacing: .19em;
  color: #d9f49f;
}
.pg-banner[data-event=assist].success strong {
  color: #a5efd5;
}
@media(max-height:740px) and (max-width:699px) {
  .pg-official .pg-field,.pg-official.pg-build .pg-field {
    max-width: min(100%,360px,max(180px,calc((100dvh - 292px)*.818)));
  }
  .pg-official .pg-wrap {
    padding-top: calc(5px + env(safe-area-inset-top,0px));
  }
  .pg-official .pg-feedback {
    min-height: 23px;
  }
  .pg-official .pg-head h2 {
    font-size: 18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .btn:active,.rl-choice:active,.lw-card:active,.studio-hair-grid button:active {
    transform: none;
  }
  .b5-main-cta:active {
    transform: none;
  }
}
/* Physical profile: distinct groups, with a compact persistent player preview. */
.studio-look-tabs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 5px;
  margin: 12px 0 2px;
  background: #142720;
  border: 1px solid #496651;
  border-radius: 10px;
  padding: 5px;
}
.studio-look-tabs button {
  padding: 9px 4px;
  font: 750 12px system-ui;
  color: #c3d5c4;
  border-radius: 6px;
  border: 1px solid transparent;
}
.studio-look-tabs button.on {
  color: #12271a;
  border-color: #d6f89e;
}
.studio-look-panel[hidden] {
  display: none!important;
}
.studio-look-panel .studio-section-label {
  margin: 12px 0 10px;
  padding: 2px 0 8px;
}
.studio-look-panel .field {
  margin-top: 12px;
}
.studio-preview:has(.ink-player) {
  grid-template-columns: 1.06fr .94fr;
}
.studio-stage:has(.ink-player) {
  min-height: 245px;
  background: radial-gradient(ellipse at 40% 25%,#7b9b67,#355845 48%,#142e25 85%);
}
.studio-stage .studio-player.identity-player {
  height: 238px;
  max-width: 100%;
}
.studio-id .creator-kicker {
  font-size: 9px;
}
.studio-id .creator-measures {
  flex-wrap: wrap;
}
.studio-creator .studio-form .opts button.on:not(.swatch) {
  background: #355537;
  color: #e5ffc0;
  border-color: var(--gold);
}
.studio-creator .studio-steps>div.active {
  border-color: var(--gold);
  color: var(--gold2);
  background: #c8f36d12;
}
.studio-creator .studio-steps>div.active b {
  color: var(--gold);
}
.studio-creator .studio-steps>div.active small {
  color: var(--gold2);
}
.studio-preview .studio-player {
  transition: filter .2s ease;
}
.studio-hair-grid button.on {
  border-color: var(--gold)!important;
  background: #355237!important;
  box-shadow: 0 0 0 1px var(--gold);
}
.studio-hair-grid button.on span {
  color: #dcffae;
}
.studio-creator .studio-footer {
  background: #13291fed!important;
}
@media(min-width:700px) {
  .studio-stage:has(.ink-player) {
    min-height: 300px;
  }
  .studio-stage .studio-player.identity-player {
    height: 292px;
  }
}
@media(max-width:350px) {
  .studio-stage:has(.ink-player) {
    min-height: 218px;
  }
  .studio-stage .studio-player.identity-player {
    height: 212px;
  }
  .studio-look-tabs button {
    font-size: 11px;
  }
}
/* Gentle idle motion only on the large studio preview, never on thumbnails. */
@media(prefers-reduced-motion:no-preference) {
  .studio-stage .studio-player {
    transform-origin: 50% 94%;
    animation: fl51Idle 3.8s ease-in-out infinite;
  }
  @keyframes fl51Idle {
    0%,100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-1.6px);
    }
  }
}
/* ===== signature ===== */
/* V5.2 — Match Programme. One visual system, no domain logic. */
:root {
  --bg: #101c1b;
  --bg2: #172725;
  --card: #1b2e2b;
  --card2: #243a35;
  --line: #415851;
  --tx: #f5f3e8;
  --tx2: #c3d3cb;
  --tx3: #9eafa7;
  --gold: #d5f483;
  --gold2: #ebf8b9;
  --gold-d: #d5f48322;
  --green: #a0e6bc;
  --r: 10px;
}
body,#app {
  background: var(--bg);
}
#app {
  background: radial-gradient(ellipse at top right,#2b4338 0,transparent 330px),var(--bg);
}
.top,.nav {
  background: #111f1d;
  border-color: #3c5149;
}
.nav button.on {
  background: #d5f48315;
}
.nav button.on:before {
  background: var(--gold);
}
.b5-identity {
  background: #1a352a;
  border-color: #536c58;
}
.b5-player h1 {
  letter-spacing: -.045em;
}
.b5-player p {
  line-height: 1.35;
}
.b5-identity-art>.avatar {
  right: -4px;
}
.b5-identity-art>.avatar>.portrait-kit {
  opacity: 1;
}
.b5-statline {
  background: #12221ff2;
}
.b5-overall {
  background: #132720;
  border-color: #7b984e;
}
.b5-match {
  background: linear-gradient(135deg,#2e4234,#182b27 68%);
  border-color: #475e4d;
  border-top: 3px solid var(--gold);
}
.b5-section,.card,.rl-section,.lw-section {
  background-color: var(--card);
  border-color: var(--line);
}
.b5-kicker,.sec-t,.studio-eyebrow,.creator-kicker {
  letter-spacing: .09em;
}
.b5-quick button {
  background: #20362f;
  border-left-width: 3px;
}
.b5-quick button span {
  line-height: 1.3;
}
.b5-cover {
  height: 184px;
}
.b5-cover strong {
  letter-spacing: -.045em;
  line-height: .99;
}
.b5-cover>div {
  padding: 16px;
}
.b5-cover small {
  color: #e6eadb;
}
.btn.gold,.tabs button.on,.seg button.on {
  background: var(--gold);
  color: #14231c;
}
.btn.gold:active {
  filter: brightness(.91);
}
.btn:not(.gold):not(.red):not(.sm) {
  border-color: #50665b;
}
.btn.red {
  color: #ffd3d1;
}
.btn,.nav button,.rl-choice,.lw-card,.studio-look-tabs button {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,select:focus-visible,input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}
.sheet {
  background: #1a2c28;
  border-color: #566b5c;
}
.sheet h2 {
  font-weight: 850;
}
.ov-bg {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.rl-choice,.lw-card,.studio-preview,.studio-form,.studio-id {
  background-color: #1d322c;
}
.rl-choice {
  padding: 12px;
  line-height: 1.3;
}
.rl-choice.danger {
  border-left-color: #f99591;
}
.rl-person,.lw-item {
  border-color: #52655a;
}
.rl-person .rl-portrait {
  border-radius: 8px;
}
.rl-portrait>rect {
  fill: #29463d;
}
.rl-portrait>circle {
  fill: #425d4f;
}
.rl-event-hero {
  background: radial-gradient(ellipse at 20% 10%,#516e46,#203b30 72%);
}
/* Studio: a clean contact-sheet layout. Don't put the tag on top of boots. */
.studio-preview:has(.signature-player) {
  grid-template-columns: 1.1fr .9fr;
  background: #192d28;
  overflow: hidden;
  border-color: #67806a;
}
.studio-stage:has(.signature-player) {
  background: linear-gradient(145deg,#486752 0,#253d32 58%,#172c25 100%);
  min-height: 260px;
  padding-bottom: 16px;
}
.studio-stage-grid {
  opacity: .16;
}
.studio-stage .signature-player.identity-player {
  height: 248px;
  transform: none;
  animation: none;
}
.studio-stage-tag {
  top: 7px;
  bottom: auto;
  left: 7px;
  font-size: 9px;
  background: #172b26e8;
  border: 1px solid #688270;
}
.studio-id {
  background: #1a2f29;
}
.studio-id .creator-kicker {
  color: #c4e9a2;
}
.studio-steps>div {
  min-width: 0;
}
.studio-steps small {
  overflow-wrap: anywhere;
}
.studio-look-tabs {
  background: #1b3029;
  border-color: #506b58;
}
.studio-look-tabs button.on {
  background: var(--gold);
  color: #16291c;
}
.studio-hair-grid button {
  background: #20352c;
  border-color: #4d6856;
}
.studio-form .field {
  border-color: #3b5348;
}
.studio-form .swatch.on {
  outline-color: var(--gold);
}
/* Keep the pitch stable while the ball is moving. Status has no pointer hitbox. */
.pg-official .sheet {
  background: #12211e;
}
.pg-official .pg-field,.pg-official.pg-build .pg-field {
  border-color: #74906c;
  background: #2f673f;
  box-shadow: 0 4px 0 #0a1611;
}
.pg-live-score {
  background: #101f1c;
  border-color: #536d58;
  min-height: 44px;
}
.pg-live-score strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.pg-pitch-status {
  position: absolute;
  z-index: 1;
  left: 7px;
  top: 7px;
  background: #122b24e8;
  color: #eaf4d4;
  padding: 4px 6px;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .08em;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 1px 3px #10211870;
}
.pg-modal[data-phase=flight] .pg-pitch-status {
  background: #152a27bb;
  color: #dce8dc;
}
.pg-modal[data-phase=done] .pg-pitch-status {
  display: none;
}
.pg-kind button,.pg-styles button {
  background: #20352e;
  border-color: #536d5d;
}
.pg-kind button.active,.pg-styles button.active {
  background: var(--gold);
  color: #14271b;
  border-color: var(--gold);
}
.pg-chain {
  padding: 5px 8px;
  border-left: 2px solid #b3d98b;
  background: #20392e;
  border-radius: 3px;
  line-height: 1.25;
}
.pg-actions:has(#pgNext:not([hidden])) {
  grid-template-columns: 1fr 1.4fr;
}
.pg-actions #pgNext {
  box-shadow: 0 3px 0 #88a847;
}
.pg-official #pgReset {
  color: #b6c8bd;
}
.pg-banner {
  top: auto;
  bottom: 8%;
  left: 4%;
  right: 4%;
  padding: 12px 9px;
  border-radius: 6px;
  text-align: left;
  overflow: hidden;
}
.pg-banner strong {
  font-size: 22px;
  line-height: 1.06;
}
.pg-banner span {
  font-size: 11px;
  font-weight: 550;
  line-height: 1.3;
}
.pg-banner small {
  display: block;
  font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d5ecad;
  letter-spacing: .03em;
  margin-top: 6px;
  border-top: 1px solid #839991;
  padding-top: 5px;
}
.pg-banner small:empty {
  display: none;
}
.pg-banner.success {
  background: linear-gradient(105deg,#172c24f7,#2e5439f5);
  border: 1px solid #d5f483;
  border-left: 5px solid var(--gold);
  box-shadow: 0 9px 20px #0b1b1699;
}
.pg-banner.success strong {
  font-size: clamp(22px,6.8vw,32px);
  text-shadow: 2px 2px 0 #0e252b;
  font-weight: 900;
  font-style: normal;
  letter-spacing: -.025em;
}
.pg-banner.b5-celebrate:before {
  content: 'TRENUTAK UTAKMICE';
  margin-bottom: 5px;
  letter-spacing: .14em;
}
.pg-score-pop {
  animation: signature-score .65s ease-out;
}
.pg-banner.b5-celebrate {
  animation: signature-reward .34s cubic-bezier(.16,.7,.28,1) both;
}
@keyframes signature-score {
  0% {
    color: #fff;
    transform: scale(1.22);
  }
  100% {
    color: var(--gold2);
    transform: none;
  }
}
@keyframes signature-reward {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media(max-width:350px) {
  .studio-stage:has(.signature-player) {
    min-height: 221px;
  }
  .studio-stage .signature-player.identity-player {
    height: 207px;
  }
  .studio-stage-tag {
    font-size: 8px;
  }
  .pg-kind button,.pg-styles button {
    padding-inline: 3px;
  }
  .b5-player h1 {
    font-size: 25px;
  }
}
@media(min-width:700px) {
  .studio-stage:has(.signature-player) {
    min-height: 315px;
  }
  .studio-stage .signature-player.identity-player {
    height: 302px;
  }
  .b5-cover {
    height: 208px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .pg-score-pop,.pg-banner.b5-celebrate {
    animation: none;
  }
}
.studio-preview:has(.signature-player) {
  background: #1a2f29;
}
.studio-preview:has(.signature-player) .studio-id {
  background: transparent;
}
.studio-creator .studio-form .avatar {
  background: #203b31;
}
.studio-creator .studio-form .card {
  background: #20352e;
}
@media(max-width:440px) {
  .studio-header {
    margin-bottom: 10px;
  }
  .studio-steps {
    margin-bottom: 12px;
  }
  .studio-stage:has(.signature-player) {
    min-height: 224px;
    padding-bottom: 10px;
  }
  .studio-stage .signature-player.identity-player {
    height: 218px;
  }
  .studio-preview:has(.signature-player) {
    margin-bottom: 10px;
  }
}
/* V5.3 — Touchline: programme-like editorial system. */
.b5-identity,.b5-match,.b5-section {
  border-radius: 13px;
}
.b5-identity {
  border-top: 3px solid #b5d78b;
}
.b5-statline {
  background: #10231d;
}
.b5-statline strong {
  font-weight: 850;
}
.b5-quick button {
  border-radius: 8px;
  min-height: 85px;
}
.b5-quick button b {
  font-size: 15px;
}
.b5-inbox {
  border-left: 3px solid #d5f483;
}
.studio-stage:has(.editorial-player) {
  background: linear-gradient(150deg,#577a62 0%,#355545 43%,#1c3931 100%);
}
.studio-look-tabs button {
  min-height: 42px;
}
.studio-hair-grid button {
  min-height: 54px;
}
.studio-stage .editorial-player {
  filter: drop-shadow(0 3px 3px #0b1e1666);
}
.pg-official .pg-field {
  border: 1px solid #8ea785;
  overflow: hidden;
  border-radius: 9px;
}
.pg-official .pg-live-score {
  background: #122721;
  border: 1px solid #6b866f;
}
.pg-live-score strong {
  font-size: 25px;
}
.pg-kind button,.pg-styles button {
  border-radius: 7px;
  min-height: 34px;
}
.pg-kind button.active {
  box-shadow: inset 0 -2px #78983b;
}
.pg-pitch-status {
  font-size: 10px;
  padding: 5px 7px;
  letter-spacing: .06em;
}
.pg-banner[data-event=goal],.pg-banner[data-event=assist] {
  border-radius: 8px;
  background: linear-gradient(110deg,#152b22f7,#365a39f7);
}
.pg-banner[data-event=assist] {
  border-left-color: #f1d087;
}
.pg-banner.b5-celebrate:before {
  content: 'TRENUTAK KARIJERE';
  font-size: 9px;
}
.pg-official .pg-actions #pgNext {
  min-height: 44px;
}
.fl53-report {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #78966a;
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(130deg,#263c2c,#152a24);
}
.fl53-report-kicker {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  color: #c7e2a6;
  margin-bottom: 5px;
}
.fl53-report>strong {
  font-size: 23px;
  letter-spacing: -.04em;
  line-height: 1.12;
  color: #f0f6dc;
}
.fl53-report-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  margin-top: 12px;
  background: #5b765844;
  border-radius: 6px;
  overflow: hidden;
}
.fl53-report-grid>div {
  display: flex;
  flex-direction: column;
  padding: 9px;
  text-align: center;
  background: #192e25;
}
.fl53-report-grid b {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  color: #e4f4b0;
}
.fl53-report-grid small {
  font-size: 10px;
  color: #c1cfc3;
}
.fl53-report p {
  margin: 10px 0 0;
  font-size: 12px;
  color: #c6d5c8;
}
@media(max-width:350px) {
  .pg-live-score strong {
    font-size: 20px;
  }
  .pg-kind button,.pg-styles button {
    min-height: 31px;
  }
  .fl53-report>strong {
    font-size: 20px;
  }
}
.pg-chain #pgMateActions #pgFinish {
  grid-column: 1/-1;
}
.pg-chain #pgMateActions #pgThrough.gold {
  color: #14231c;
  background: var(--gold);
}
/* V5.4 — comic portraits, arcade pixel pitch, shared sports-print identity. */
.studio-stage:has(.editorial-player) {
  background: repeating-linear-gradient(135deg,#395a4940 0 1px,transparent 1px 12px),linear-gradient(155deg,#a9bd91 0%,#587a5a 46%,#203e34 47%,#17342e 100%);
  border: 1px solid #8ca77a;
  box-shadow: inset 0 0 0 4px #1a3e3155;
}
.studio-stage .editorial-player {
  filter: drop-shadow(3px 4px 0 #163c2c40);
  height: 245px;
}
.studio-stage-tag {
  background: #17342f;
  color: #e5efcc;
  border: 1px solid #b1c48d;
}
.ink-portrait {
  background: #d6dec1;
  border-radius: 6px;
  overflow: hidden;
}
.studio-hair-grid button .avatar {
  border-radius: 4px;
}
.studio-hair-grid button.on {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.studio-look-tabs button {
  font-weight: 750;
}
.pg-field canvas,#legacyCanvas {
  image-rendering: pixelated;
  touch-action: none;
}
.pg-official .pg-field {
  border: 2px solid #789b71;
  border-radius: 5px;
  box-shadow: 0 3px 0 #091c13;
}
.pg-pitch-status {
  border-radius: 2px;
  letter-spacing: .1em;
}
.pg-official .pg-kind button.active,.pg-official .pg-styles button.active {
  background: #d8f58b;
  color: #14281e;
}
.pg-banner.success {
  border-radius: 3px;
  border-left-width: 5px;
}
.b5-identity .b5-identity-art .avatar {
  border: 1px solid #a6bf8a;
}
.studio-creator .studio-id {
  border-top: 1px solid #627e61;
}
@media(max-width:440px) {
  .studio-stage .editorial-player {
    height: 225px;
  }
}
.comic-contact {
  border: 1px solid #b2c49a;
  background: #d7dfc5;
}
.rl-profile .comic-contact {
  border-radius: 5px;
}
.rl-event-hero .comic-contact {
  filter: drop-shadow(3px 3px 0 #152b24);
}
/* Football Intelligence: actual manual contributions, not reward currency. */
.fl55-iq {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #68806a70;
}
.fl55-iq>small {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 800;
  color: #b7d48d;
  margin-bottom: 6px;
}
.fl55-iq>div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.fl55-iq span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
  background: #18382b;
  color: #e9efdb;
  font-size: 11px;
  line-height: 1.2;
}
.fl55-iq span b {
  font-size: 15px;
  color: #d3e7ad;
  font-variant-numeric: tabular-nums;
}
/* V6.3 — illustrated player cards. Keep live preview large and readable. */
.studio-preview:has(.fl63-player) {
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  border-color: #819477;
  background: #162c23;
  gap: 0;
}
.studio-stage:has(.fl63-player) {
  background: repeating-linear-gradient(0deg,#304b50 0 15px,#38585b 15px 30px);
  border: 0;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 0 0 0 1px #9cb18d;
  min-height: 288px;
  overflow: hidden;
  justify-content: center;
}
.studio-stage .fl63-player.identity-player {
  height: 272px;
  max-width: 100%;
  filter: drop-shadow(1px 2px 0 #142c2340);
}
.studio-stage:has(.fl63-player) .studio-back-number {
  opacity: .18;
}
.studio-stage:has(.fl63-player) .studio-stage-grid {
  opacity: .12;
}
.studio-preview:has(.fl63-player) .studio-id {
  min-width: 0;
  padding: 14px 10px;
  border-top: 0;
  overflow-wrap: anywhere;
}
.ink-face-live .fl63-portrait {
  width: 88px;
  height: 104px;
  object-fit: contain;
  border: 1px solid #9bab87;
}
.studio-hair-grid .fl63-portrait {
  object-fit: contain;
  background: #a2b497;
}
.rl-portrait.fl63-portrait {
  background: #c3d0b2;
  border: 1px solid #809e80;
  object-fit: cover;
}
@media(max-width:350px) {
  .studio-stage:has(.fl63-player) {
    min-height: 244px;
  }
  .studio-stage .fl63-player.identity-player {
    height: 230px;
  }
  .studio-preview:has(.fl63-player) .studio-id {
    padding: 10px 7px;
  }
}
@media(min-width:700px) {
  .studio-stage:has(.fl63-player) {
    min-height: 342px;
  }
  .studio-stage .fl63-player.identity-player {
    height: 326px;
  }
}
/* V6.4 — match-day broadcast: result leaves most of the pitch visible. */
.pg-official .pg-banner {
  top: auto;
  bottom: 3%;
  left: 3%;
  right: 3%;
  height: auto;
  padding: 8px 11px;
  border-radius: 2px;
  background: #142a32f5;
  box-shadow: 3px 3px 0 #0c1c23;
  text-align: left;
}
.pg-official .pg-banner[data-moment=major] {
  border-color: #e3c67e;
  border-left-width: 5px;
  background: #233a3ef7;
  box-shadow: 3px 3px 0 #917442;
}
.pg-official .pg-banner[data-moment=major] strong {
  color: #fbe3a1;
}
.pg-official .pg-banner.b5-celebrate:before {
  content: '◆  TRENUTAK UTAKMICE';
  margin-bottom: 4px;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}
.pg-official .pg-banner span {
  margin-top: 2px;
}
.pg-official .pg-banner small {
  margin-top: 4px;
}
.pg-official .pg-field {
  box-shadow: 0 3px 0 #091c13,0 7px 18px #07120e60;
}
.pg-official .pg-pitch-status {
  background: #132c25e6;
  border: 1px solid #b4d29245;
}
.pg-official .pg-live-score {
  box-shadow: 0 3px 12px #09171355;
}
.pg-official .pg-banner:not([data-event=goal]):not([data-event=assist]):not([data-event=team]) strong {
  font-size: clamp(16px,5vw,22px);
  letter-spacing: -.025em;
  font-style: normal;
}
.pg-official .pg-banner:not([data-event=goal]):not([data-event=assist]):not([data-event=team]):before {
  display: none;
}
/* ===== definitive ===== */
/* Unified illustrated locations. Small, responsive, no asset downloads. */
.fl60-place {
  margin: 0 0 14px;
  border: 1px solid #526c5d;
  border-radius: 12px;
  overflow: hidden;
  background: #192c25;
  box-shadow: 0 3px 0 #0a1712;
}
.fl60-scene {
  position: relative;
  height: clamp(115px,32vw,185px);
  overflow: hidden;
  background: #31483e;
}
.fl60-scene svg {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.fl60-scene>span {
  position: absolute;
  bottom: 9px;
  left: 11px;
  background: #11241eea;
  color: #e7f1cd;
  padding: 5px 8px;
  border: 1px solid #9aad8b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  border-radius: 3px;
}
.fl60-place-body {
  padding: 12px;
}
.fl60-place-body h2 {
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 0 0 5px;
}
.fl60-place-body p {
  font-size: 12px;
  color: var(--tx2);
  margin: 0 0 5px;
}
.fl60-place-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin-top: 11px;
}
.fl60-place-actions .btn {
  min-height: 44px;
  justify-content: space-between;
  text-align: left;
  font-size: 12px;
  background: #253e31;
  border-color: #547261;
  padding: 8px;
  white-space: normal;
}
.fl60-place-actions .btn span {
  color: var(--gold);
  font-size: 17px;
}
.fl60-place-actions .btn:only-child {
  grid-column: 1/-1;
}
.pg-banner[data-moment=major].success {
  border: 2px solid #e3c67e;
  border-left: 5px solid #e3c67e;
  background: #233a3ef7;
  box-shadow: 3px 3px 0 #917442;
}
.pg-banner[data-moment=major].b5-celebrate:before {
  content: '◆  VELIKI TRENUTAK';
  color: #f8e4a2;
}
.pg-banner[data-moment=major] strong {
  color: #fff0ac;
  font-size: clamp(24px,7vw,34px);
  font-style: normal;
}
.pg-banner:not(.success) {
  box-shadow: none;
  padding: 9px 10px;
  bottom: 5%;
  background: #182b25ed;
}
.pg-banner:not(.success) strong {
  font-size: 17px;
}
.pg-official .pg-kind button {
  min-height: 40px;
}
.pg-official .pg-styles button {
  min-height: 36px;
}
.pg-official .pg-feedback {
  font-size: 12px;
}
.pg-official .pg-live-score {
  position: relative;
}
.pg-official .pg-live-score strong {
  letter-spacing: .05em;
  font: 800 25px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  color: #f2e7b5;
}
.pg-official .pg-head h2 {
  font-size: 20px;
}
.pg-official .pg-head .pg-kicker {
  letter-spacing: .08em;
  font-size: 9px;
}
.rl-choice {
  transition: background .12s;
}
.rl-choice:active,.fl60-place-actions .btn:active {
  background: #405946;
}
.b5-player h1 {
  line-height: 1.02;
}
.b5-match {
  border-top: 3px solid #c7ef70;
}
.sheet .btn:not(.sm) {
  min-height: 42px;
}
@media(max-width:350px) {
  .fl60-place-body h2 {
    font-size: 20px;
  }
  .fl60-place-actions .btn {
    font-size: 11px;
    padding: 7px;
  }
  .fl60-place-body {
    padding: 10px;
  }
  .pg-official .pg-styles button {
    font-size: 10px;
    padding: 4px 3px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .rl-choice {
    transition: none;
  }
}
.fl60-place.rl-hero {
  padding: 0;
  background: #192c25;
}
.fl60-place .rl-metrics {
  margin: 11px 0 0;
  gap: 5px;
}
.fl60-place .rl-metrics>div {
  padding: 8px 4px;
  min-width: 0;
}
.fl60-place .rl-metrics small {
  font-size: 10px;
}
.fl60-place .rl-metrics strong {
  font-size: 20px;
}
.fl60-place .b5-life-top {
  margin: 11px 0 0;
}
/* V6.1 — focus on match action; sticky score within the actual scroll container. */
.pg-official .pg-live-score {
  position: sticky;
  top: 0;
  z-index: 12;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  background: #152c33;
  border: 1px solid #77958e;
  border-radius: 3px;
  box-shadow: 2px 2px 0 #0c1d25;
  margin-bottom: 4px;
}
.pg-official .pg-live-score .pg-minute {
  grid-column: 1/-1;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #b3c9a9;
  line-height: 1.1;
}
.pg-official .pg-live-score span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.pg-official .pg-head {
  margin-bottom: 3px;
}
.pg-official .pg-head h2 {
  font-size: 17px;
}
.pg-official .pg-situation {
  margin: 5px 0 6px;
  padding: 6px 8px;
  border-left: 3px solid #d3e798;
  background: #20363a;
  gap: 2px;
}
.pg-official .pg-field,.pg-official.pg-build .pg-field {
  max-width: min(100%,420px,max(180px,calc((100dvh - 305px)*.818)));
}
@media(max-width:699px) {
  .pg-official .sheet {
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100%;
    border-radius: 0;
  }
  .pg-official .pg-wrap {
    max-width: 100%;
    padding-inline: 8px;
  }
  .pg-official .pg-settings {
    margin: 2px 0;
  }
  .pg-official .pg-feedback {
    min-height: 20px;
    padding-block: 2px;
  }
  .pg-official .pg-control {
    margin-top: 2px;
  }
  .pg-official .pg-kind button,.pg-official .pg-styles button {
    min-height: 36px;
  }
}
/* ===== ux ===== */
/* Football Life / V6.6 editorial mobile design. Presentation only. */
:root {
  --ux-ink: #101e19;
  --ux-panel: #1b2e26;
  --ux-line: #405a4b;
  --ux-paper: #e8eddc;
  --ux-accent: #c7ef70;
}
#app[data-ux-view] .main {
  min-width: 0;
  padding-top: 10px;
  overflow-wrap: anywhere;
}
.top {
  min-height: 58px;
  padding-top: calc(var(--safe-t) + 6px);
  padding-bottom: 6px;
  gap: 8px;
}
.top .t2 {
  font-size: 10px;
}
.top .cash {
  max-width: 35%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top .cash .tiny {
  display: none;
}
.nav {
  border-top: 1px solid #405a4b;
  background: #12231c;
}
.nav button {
  min-width: 0;
  gap: 4px;
  font-size: 11px;
}
.nav button.on {
  background: #263d2d;
}
.nav button.on:before {
  width: 24px;
  left: calc(50% - 12px);
  height: 2px;
}
.nav button svg {
  width: 22px;
  height: 22px;
}
.ux-section-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 5px;
  margin: 0 0 12px;
  padding: 5px;
  background: #13241e;
  border: 1px solid var(--ux-line);
  border-radius: 12px;
}
.ux-section-tabs button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 60px;
  padding: 5px 2px;
  border-radius: 8px;
  color: #b9cbbd;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.ux-section-tabs button svg {
  width: 21px;
  height: 21px;
}
.ux-section-tabs button.on {
  background: #c7ef70;
  color: #142519;
  border-color: #d8f8a3;
}
.ux-section-tabs button:active {
  transform: scale(.98);
}
.ux-heading {
  margin: 12px 2px 14px;
}
.ux-heading small {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold);
  font-weight: 800;
}
.ux-heading h2 {
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 5px 0;
}
.ux-heading p {
  font-size: 13px;
  color: var(--tx2);
  margin: 4px 0;
}
.ux-action {
  width: 100%;
  min-height: 44px;
  justify-content: space-between;
  margin-top: 7px;
  text-align: left;
}
.ux-action span {
  color: inherit;
  font-size: 18px;
}
.ux-club-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0 14px;
}
.ux-club-mark strong,.ux-club-mark small {
  display: block;
}
.ux-club-mark strong {
  font-size: 20px;
  letter-spacing: -.03em;
}
.ux-club-mark small {
  color: var(--tx2);
  font-size: 12px;
  margin-top: 4px;
}
.ux-club-mark .crest {
  width: 60px;
  height: 67px;
}
.ux-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--ux-line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #14241d;
}
.ux-switch button {
  min-height: 42px;
  font-size: 13px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--tx2);
}
.ux-switch button.on {
  color: #17251a;
  background: var(--gold);
}
.tabs.ux-tabgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(95px,1fr));
  gap: 5px;
  overflow: visible;
  margin: 0 0 12px;
  padding: 5px;
  background: #13241e;
  border: 1px solid var(--ux-line);
  border-radius: 12px;
}
.tabs.ux-tabgrid button {
  white-space: normal;
  min-height: 42px;
  line-height: 1.15;
  font-size: 11.5px;
  padding: 7px 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tabs.ux-tabgrid button.on {
  background: var(--gold);
  color: #162219;
}
.b5-today {
  gap: 10px;
}
.b5-identity,.b5-match,.b5-section {
  border-radius: 5px;
}
.b5-player {
  padding: 12px 13px 9px;
  min-height: 134px;
}
.b5-player h1 {
  margin: 5px 0;
  font-size: clamp(23px,7vw,34px);
}
.b5-identity {
  min-height: 175px;
}
.b5-statline {
  padding: 9px 6px;
}
.b5-match {
  padding: 12px;
}
.b5-versus {
  padding: 10px 0;
}
.b5-team .crest {
  width: 49px;
  height: 55px;
}
.b5-quick button {
  min-height: 68px;
  padding: 8px 10px;
}
.b5-quick button b {
  margin: 3px 0;
}
.b5-section {
  padding: 12px;
}
.b5-heading {
  margin-bottom: 8px;
}
.b5-main-cta {
  min-height: 48px;
}
.ux-pace {
  padding: 0 12px;
  border: 1px solid var(--ux-line);
  border-radius: 10px;
  background: #192d24;
}
.ux-pace summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 750;
}
.ux-pace summary::-webkit-details-marker {
  display: none;
}
.ux-pace[open] summary span {
  transform: rotate(90deg);
}
.ux-pace p {
  padding-bottom: 10px;
}
.b5-link {
  min-height: 44px;
}
#app[data-ux-view=dev] .fl60-scene {
  height: clamp(70px,20vw,120px);
}
#app[data-ux-view=dev] .fl60-place-body h2 {
  font-size: 20px;
}
#app[data-ux-view=dev] .fl60-place-body {
  padding: 10px;
}
#app[data-ux-view=dev] .fl60-place-actions {
  margin-top: 6px;
}
#app[data-ux-view=dev] .reborn-training {
  margin-top: 0;
}
#app[data-ux-view=dev] .reborn-block {
  padding: 8px;
}
#app[data-ux-view=dev] .reborn-training h3 {
  font-size: 19px;
}
.card {
  border-radius: 11px;
}
.card h3 {
  letter-spacing: -.02em;
}
.btn:not(.sm),.rl-choice,.lw-card {
  min-height: 44px;
}
.sheet {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #587262 transparent;
}
.sheet:not(:has(.pg-wrap)) {
  border-radius: 19px 19px 0 0;
  box-shadow: 0 -14px 50px #06130e66;
}
.sheet:not(:has(.pg-wrap)) h2 {
  font-size: 22px;
  line-height: 1.12;
}
.sheet .grab {
  background: #597367;
}
.sheet .rl-choice {
  padding: 12px;
}
.sheet .btn:active {
  transform: scale(.99);
}
#app[data-ux-view] .main>* {
  min-width: 0;
  max-width: 100%;
}
.main .row>.grow {
  min-width: 0;
}
.main .tabs button {
  touch-action: manipulation;
}
.main .card .table-wrap {
  max-width: 100%;
}
@media(min-width:700px) {
  .b5-today {
    gap: 12px;
  }
  .b5-player {
    padding: 18px;
    min-height: 180px;
  }
  .b5-identity,.b5-match {
    min-height: 235px;
  }
  .ux-section-tabs button {
    min-height: 54px;
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
  }
  .sheet:not(:has(.pg-wrap)) {
    border-radius: 16px;
  }
  .tabs.ux-tabgrid {
    grid-template-columns: repeat(auto-fit,minmax(100px,1fr));
  }
}
@media(max-width:350px) {
  .ux-section-tabs button {
    font-size: 10px;
  }
  .tabs.ux-tabgrid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .b5-player {
    max-width: 63%;
  }
  .b5-player h1 {
    font-size: 22px;
  }
  .top .t2 {
    font-size: 9px;
  }
  .nav button {
    font-size: 10px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .ux-section-tabs button:active,.sheet .btn:active {
    transform: none;
  }
  .sheet:not(:has(.pg-wrap)) {
    animation: none;
  }
}
.tabs.ux-tabgrid button.on,.ux-section-tabs button.on,.ux-switch button.on {
  box-shadow: none;
  border-color: var(--gold);
}
.ux-life-compact {
  padding: 10px 12px!important;
  margin-bottom: 10px;
}
.ux-life-compact .rl-tag,.ux-life-compact h2,.ux-life-compact>p {
  display: none;
}
.ux-life-compact .rl-metrics {
  margin: 0;
  gap: 5px;
}
.ux-life-compact .rl-metrics>div {
  padding: 7px 6px;
}
.ux-life-compact .rl-metrics strong {
  font-size: 20px;
}
.ux-life-compact .rl-metrics small {
  font-size: 10px;
}
.b5-life-top:has(>button:only-child) {
  grid-template-columns: 1fr;
}
/* V6.7 — earned milestones, squad honors and match context */
.reward-moment,.reward-honor {
  padding: 18px 14px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.reward-major {
  background: #253b40!important;
  border-color: #e0c27f!important;
  box-shadow: 3px 3px 0 #7b673f!important;
}
.reward-moment strong,.reward-honor strong {
  font-size: clamp(19px,5vw,26px);
  line-height: 1.12;
}
.reward-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #d9e6da;
}
.reward-score b {
  font-size: 27px;
  white-space: nowrap;
  color: #fff1c2;
}
.reward-note {
  padding: 9px 10px;
  border-top: 1px solid #d0c4a133;
  font-size: 12px;
  line-height: 1.4;
  color: #d8e1d6;
}
.reward-squad {
  background: #1b3029!important;
  border-color: #667d70!important;
  box-shadow: none!important;
}
.reward-squad strong,.reward-squad span {
  color: #c7d5c9!important;
}
.reward-squad svg {
  filter: none!important;
  animation: none!important;
  width: 65px!important;
  height: 65px!important;
}
.reward-squad:before {
  display: none!important;
}
.reward-prematch {
  display: grid;
  gap: 5px;
  border-left: 3px solid #9fbc78;
  background: #78976812;
  padding: 11px 13px;
  margin-top: 12px;
  border-radius: 0 9px 9px 0;
}
.reward-prematch small {
  font-size: 10px;
  letter-spacing: .12em;
  color: #c6d99e;
}
.reward-prematch span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted,#b7c5bb);
}
@media(prefers-reduced-motion:no-preference) {
  .reward-major strong {
    animation: rewardReveal .45s ease-out both;
  }
  @keyframes rewardReveal {
    from {
      opacity: .3;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* V8.1 — interface consistency. Existing components, no new stylesheet or UI layer.
   Controls share the same surface, typography and selection language. Match canvas
   dimensions, pointer coordinates and match animation timing are intentionally untouched. */
:root {
  --bg:#0c1717; --bg2:#142221; --card:#192a29; --card2:#233735;
  --line:#3b514c; --tx:#f1f5ef; --tx2:#b8cbc5; --tx3:#9eb5ad;
  --gold:#d5f483; --gold2:#e3f9aa; --gold-d:#d5f48318;
  --ui-edge:#526a60; --ui-control:#243934; --ui-control-top:#2d443c;
  --ui-selected:#344b32; --ui-radius:12px; --r:14px;
  color-scheme:dark;
}
#app {background:radial-gradient(ellipse at 95% 0,#263f36 0,transparent 350px),var(--bg)}
.main {padding-inline:clamp(10px,3.5vw,20px); min-width:0}
.top {background:#122120f5; padding-inline:clamp(10px,3.5vw,18px); gap:10px}
.top .t1 {font-size:16px;letter-spacing:-.025em}
.top .t2 {font-size:10px;color:var(--tx2)}
.top .crest,.top .b5-menu,.identity-top-ovr {flex-shrink:0}
.top .cash {min-width:0;max-width:38%;font-size:clamp(11px,3.1vw,14px)}
.b5-menu {width:44px;height:44px;min-width:44px;border-radius:12px;background:var(--ui-control);border:1px solid var(--ui-edge)}
.nav {background:#142422f7;gap:3px;padding-inline:5px;border-color:var(--line)}
.nav button {position:relative;min-width:0;line-height:1.15;padding:6px 2px;white-space:normal;font-size:11px;color:var(--tx2);border-radius:10px 10px 0 0}
.nav button.on {background:#2b4035;color:var(--gold)}
.nav button.on:before {height:3px;border-radius:0 0 3px 3px}
.card,.b5-section,.b5-match,.b5-identity,.rl-section,.lw-section {border-radius:14px;border-color:var(--line);box-shadow:0 3px 12px #020b091b}
.card:not(.pad0),.b5-section,.b5-match {padding:14px}
.card h3,.sheet h2 {line-height:1.23;overflow-wrap:break-word;min-width:0}
.card h3 {font-size:16px;letter-spacing:-.025em;flex-wrap:wrap}
.b5-identity {border-top-color:#a8cd76}
.b5-player {max-width:58%;padding:14px 12px;min-height:150px}
.b5-player h1 {font-size:clamp(21px,6.1vw,34px);line-height:1.02;overflow-wrap:anywhere}
.b5-player p {font-size:12px;overflow-wrap:anywhere}
.b5-statline {grid-template-columns:repeat(3,minmax(0,1fr));padding:11px 6px}
.b5-statline>div {min-width:0;padding-inline:3px}
.b5-statline strong {font-size:clamp(18px,5.4vw,24px);overflow-wrap:anywhere}
.b5-statline small {font-size:11px}
.b5-versus {grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)}
.b5-team b {overflow-wrap:break-word;max-width:100%}
.b5-heading {flex-wrap:wrap;align-items:center}
.b5-heading>span {font-size:11px;color:var(--tx2)}
.b5-quick,.b5-shortcuts,.b5-life-top,.b5-time-grid,.grid2,.studio-gallery {grid-template-columns:repeat(2,minmax(0,1fr))}
.grid3,.adv,.rl-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
.b5-pace {grid-template-columns:repeat(4,minmax(0,1fr))}
.b5-quick button {border-radius:12px;padding:12px 22px 12px 10px;min-height:86px;background:#233934;line-height:1.25}
.b5-quick button:nth-child(2n) {background:#263b36}
.b5-quick b {font-size:15px;overflow-wrap:break-word}
.b5-quick span {font-size:12px;overflow-wrap:anywhere}
.b5-quick button:after {right:8px}
.b5-time {background:#142622;border:1px solid var(--line);border-radius:11px;padding:10px 12px;margin-top:8px;gap:8px;line-height:1.2;text-align:left}
.b5-time svg,.b5-main-cta svg,.ux-action>span,.b5-link>span:last-child {flex:none}
.b5-link,.ux-action {gap:10px;text-align:left;min-height:48px}
.b5-link>span:first-child {min-width:0;overflow-wrap:break-word}
.b5-link>span:last-child {font-size:18px;line-height:1}
/* Unified action states. Retain action semantics and disabled guards. */
.btn,.b5-link,.b5-time-grid button,.alert,.b5-pace button,.seg button,.tabs button,
.ux-section-tabs button,.ux-switch button,.opts button:not(.swatch),.studio-look-tabs button,
.studio-filters button,.lw-nav button,.lw-companions button,.rl-choice,.rl-person,.rl-invite,.lw-card {
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word;
  font-weight:650;line-height:1.25;touch-action:manipulation;
}
.btn,.b5-link,.b5-time-grid button,.alert,.opts button:not(.swatch),.studio-look-tabs button,
.studio-filters button,.lw-nav button,.lw-companions button,.rl-choice,.rl-person,.rl-invite,.lw-card {
  background:linear-gradient(180deg,var(--ui-control-top),var(--ui-control));
  border:1px solid var(--ui-edge);border-radius:var(--ui-radius);color:var(--tx);
  box-shadow:inset 0 1px #ffffff09,0 2px 0 #06171250;
}
.btn,.btn:not(.sm),.sheet .btn:not(.sm),.btn.sm {min-height:44px;padding:10px 13px;font-size:14px;font-weight:700;line-height:1.25;gap:7px}
.btn.sm {min-height:40px;font-size:12px;padding:8px 10px}
.btn.gold,.btn.gold:not(.sm),.b5-main-cta {background:linear-gradient(180deg,#e4faa9,#c9e879);border:1px solid #e5f8ad;color:#14241a;box-shadow:0 3px 0 #7c9a4e,inset 0 1px #f8ffd2; font-weight:800}
.btn.red,.btn.red:not(.sm),.rl-choice.danger {background:#492e31;border-color:#9d6263;color:#ffd8d6;box-shadow:0 2px 0 #27181a}
.btn.green {background:#254839;border-color:#598c72;color:#d0f4db}
.btn:disabled,.rl-choice:disabled,.lw-card:disabled,button[aria-disabled=true] {opacity:.5;box-shadow:none;cursor:not-allowed;filter:saturate(.45)}
.btn:active:not(:disabled),.b5-link:active,.b5-time:active,.rl-choice:active,.lw-card:active {transform:translateY(1px);box-shadow:none;filter:brightness(.94)}
.btns {gap:8px;align-items:stretch}
.btns>.btn {flex:1 1 auto;min-width:0}
.btns>.btn.block {flex-basis:100%}
.btn svg,.alert svg {flex:none}
.ux-section-tabs,.tabs.ux-tabgrid,.ux-switch,.seg {background:#11211e;border:1px solid var(--line);border-radius:14px;padding:5px;gap:5px}
.ux-section-tabs {grid-template-columns:repeat(4,minmax(0,1fr))}
.ux-section-tabs button,.tabs.ux-tabgrid button,.ux-switch button,.seg button,.b5-pace button {min-height:44px;border:1px solid transparent;border-radius:9px;background:#20332e;color:var(--tx2);padding:8px 5px}
.ux-section-tabs button {min-height:62px;font-size:12px;gap:4px}
.ux-section-tabs button span {max-width:100%;overflow-wrap:break-word}
.tabs.ux-tabgrid {grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr));margin:0 0 14px}
.tabs.ux-tabgrid button {font-size:12px;line-height:1.2}
.seg {flex-wrap:wrap}
.seg button {flex:1 1 70px;font-size:13px}
.b5-pace button {font-size:11px}
.tabs:not(.ux-tabgrid) {margin:0 0 12px;padding:4px;max-width:100%;gap:6px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--ui-edge) transparent}
.tabs:not(.ux-tabgrid) button {min-height:40px;border-radius:9px;background:var(--ui-control);border:1px solid var(--line);font-size:13px;max-width:min(220px,85%);padding:8px 12px}
.tabs:not(.ux-tabgrid) button.on,.tabs.ux-tabgrid button.on,.ux-section-tabs button.on,.ux-switch button.on,.seg button.on,.b5-pace button.on,
.opts button.on:not(.swatch),.studio-creator .studio-form .opts button.on:not(.swatch),.studio-look-tabs button.on,.studio-filters button.on,.lw-nav button.on,.lw-companions button.on {
  background:var(--ui-selected);border-color:var(--gold);color:var(--gold2);box-shadow:inset 0 -2px #d5f48380;font-weight:800;
}
.opts button:not(.swatch),.studio-look-tabs button,.studio-filters button,.lw-nav button,.lw-companions button {min-height:44px;font-size:13px}
.studio-form .opts.col .studio-choice {min-height:68px;align-items:center;gap:12px}
.studio-choice>span:last-child,.studio-clubs button>span:last-child {min-width:0;overflow-wrap:break-word}
.studio-choice small {font-size:12px;line-height:1.4}
.studio-form .opts:not(.col) {gap:8px}
.studio-form .opts button:not(.swatch) {min-width:0;max-width:100%}
.studio-hair-grid button,.studio-form .face-grid button {min-width:0;padding-inline:3px}
.studio-hair-grid button span {font-size:11px;line-height:1.2;overflow-wrap:break-word}
.studio-footer {gap:8px}
.studio-footer .btn {min-width:0;flex:1 1 42%}
/* Native form controls retain keyboard and picker behaviour. */
.inp,select.inp,.studio-form .inp {max-width:100%;min-width:0;min-height:48px;background-color:#12231f;border:1px solid var(--ui-edge);border-radius:10px;font-size:16px;color:var(--tx);padding-block:10px}
.inp:focus,.studio-form .inp:focus {border-color:var(--gold);box-shadow:0 0 0 2px #d5f48325}
.field>label,.studio-form .field>label {color:var(--tx2);font-size:12px;line-height:1.3}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible,.tbl-w:focus-visible {outline:2px solid var(--gold2);outline-offset:2px}
/* Readable long values, local horizontal scroll only for data tables and filters. */
.main,.sheet:not(:has(.pg-wrap)),.studio-creator {overflow-wrap:break-word}
.main :is(.row,.list-i,.kv,.card,.stat,.chip,.field,.grid2,.grid3,.grid-auto,.meter,.reborn-block,.rl-metrics>div,.lw-card-text,.lw-record>div),.sheet:not(:has(.pg-wrap)) :is(.row,.list-i,.kv,.field,.card,.chip,.rl-choice>span,.lw-record>div) {min-width:0;max-width:100%}
.main :is(.grid2,.grid3,.grid-auto)>*,.sheet:not(:has(.pg-wrap)) :is(.grid2,.grid3)>* {min-width:0;max-width:100%}
.kv {align-items:baseline;gap:12px;line-height:1.3}
.kv>span {min-width:0;overflow-wrap:anywhere}
.kv>span:first-child {flex:1 1 45%}
.kv>span:last-child {flex:0 1 55%;text-align:right}
.chip {white-space:normal;line-height:1.2;overflow-wrap:anywhere}
.stat .v,.empire-value,.lw-balance b {overflow-wrap:anywhere}
.stat .v {font-size:clamp(17px,5vw,22px)}
.list-i>.grow,.row>.grow {min-width:0;overflow-wrap:anywhere}
.list-i>.btn {flex:0 1 auto;max-width:45%}
.tbl-w {margin:0;max-width:100%;padding:0;overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--ui-edge) transparent;border:1px solid var(--line);border-radius:10px;overscroll-behavior-x:contain}
.tbl th {background:#20352f;color:var(--tx2);font-size:11px;padding:9px 7px}
.tbl td {padding:9px 7px;border-bottom-color:#344a41;font-size:12px}
.tbl tr:nth-child(even):not(.me) td {background:#ffffff03}
.tbl td.nm {max-width:160px;white-space:normal;overflow-wrap:break-word;text-overflow:clip}
/* Sheets keep the existing actions and DOM; background can't scroll under a dialog. */
body:has(#modal) {overflow:hidden}
.sheet:not(:has(.pg-wrap)) {padding:9px clamp(12px,4vw,20px) calc(20px + var(--safe-b));background:#172925;border-color:var(--ui-edge);max-height:92dvh;overflow-x:hidden;overscroll-behavior:contain;box-shadow:0 -14px 55px #0007}
.sheet:not(:has(.pg-wrap)) h2 {font-size:clamp(21px,5.5vw,26px);margin:4px 0 10px;letter-spacing:-.035em}
.sheet:not(:has(.pg-wrap)) p {line-height:1.45}
.sheet:not(:has(.pg-wrap))>.btn.block,.sheet:not(:has(.pg-wrap)) .lw-sheet>.btn.block,.sheet:not(:has(.pg-wrap)) .rl-sheet>.btn.block {margin-top:9px}
.rl-choice,.rl-person,.rl-invite {padding:12px;gap:12px;min-height:56px}
.rl-choice>span {font-size:14px;line-height:1.35;overflow-wrap:break-word}
.rl-choice>b {flex:0 1 auto;max-width:36%;color:var(--gold2);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}
.lw-card {padding:12px;gap:12px;min-height:106px}
.lw-card-text>b {font-size:16px;line-height:1.2}
.lw-card-text>small {font-size:12px;color:var(--tx2)}
.lw-card-bottom {flex-wrap:wrap;align-items:baseline}
.lw-card-bottom>span {font-size:11px;overflow-wrap:anywhere}
.lw-nav,.lw-companions,.studio-filters {gap:7px;flex-wrap:wrap}
.lw-nav button,.lw-companions button,.studio-filters button {flex:1 1 auto}
.lw-art {border-radius:9px}
.lw-record {gap:7px;flex-wrap:wrap}
.lw-record>div {flex:1 1 100px}
.studio-asset {min-width:0;border-radius:12px;overflow-wrap:break-word}
.studio-asset strong,.studio-asset b {max-width:100%;overflow-wrap:anywhere}
.rl-metrics strong {font-size:clamp(18px,5.5vw,24px)}
.rl-metrics small {font-size:11px;overflow-wrap:break-word}
/* Match interface controls only: preserve the sizing of the playing area. */
.pg-wrap button:not(.pg-close):not(.btn) {border-radius:8px;line-height:1.2;min-width:0;overflow-wrap:break-word}
.pg-wrap .btn {min-height:40px;font-size:13px;padding:8px 10px}
.pg-wrap .btn.gold {box-shadow:inset 0 1px #ffffff40}
.pg-wrap button[aria-pressed=true],.pg-wrap button.active {outline:1px solid var(--gold);outline-offset:-1px}
.pg-wrap button:disabled {box-shadow:none}
.toast {max-width:calc(100% - 28px);width:max-content;overflow-wrap:anywhere;line-height:1.35;font-size:13px;bottom:calc(var(--nav-h) + var(--safe-b) + 10px)}
@media(max-width:370px) {
  .main {padding-inline:9px}
  .card:not(.pad0),.b5-match,.b5-section {padding:11px}
  .nav button {font-size:10px}
  .ux-section-tabs button {font-size:10.5px;padding-inline:2px}
  .tabs.ux-tabgrid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .b5-pace {grid-template-columns:repeat(2,minmax(0,1fr))}
  .b5-quick button {padding:10px 18px 10px 8px}
  .b5-quick b {font-size:14px}
  .b5-player {max-width:58%;min-height:145px;padding:11px 9px}
  .b5-player h1 {font-size:21px}
  .btn,.btn:not(.sm),.sheet .btn:not(.sm) {padding-inline:10px;font-size:13px}
  .list-i>.btn {max-width:48%}
  .studio-asset {padding-inline:7px}
  .lw-card {gap:8px;padding:9px}
  .lw-card-text>b {font-size:14px}
}
@media(min-width:900px) {.top,.main {margin-left:220px}.side {background:#142422;border-color:var(--line)}.side button.on {background:var(--ui-selected);color:var(--gold2)}.main {max-width:860px}}
@media(prefers-reduced-motion:reduce) {.btn,.b5-link,.b5-time,.rl-choice,.lw-card {transition:none}.btn:active,.b5-link:active,.b5-time:active,.rl-choice:active,.lw-card:active {transform:none}}
/* Finish existing choice presentation: text remains available, no decision changes. */
.train-targets {margin:6px 0 0;line-height:1.45;color:var(--tx2)}
.train-targets summary {font-size:12px;cursor:pointer;color:var(--gold2);padding:8px 0;line-height:1.3;overflow-wrap:break-word}
.train-targets[open] summary {margin-bottom:3px}
.b5-time-grid button {display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;min-height:60px;padding:10px 12px}
.b5-time-grid button span {font-size:14px;font-weight:750;line-height:1.25}
.b5-time-grid button small {color:var(--tx2);font-size:11px;font-weight:500;line-height:1.3}
.b5-time-grid button[data-v="season"] {border-left:3px solid #d3ad72}
.b5-time-grid button[data-v="seasonStops"] {border-left:3px solid #9ccf9b}
.sheet:not(:has(.pg-wrap)) .btn[data-act="lwSceneCancel"],.sheet:not(:has(.pg-wrap)) .btn[data-act="importCancel"] {background:transparent;border-color:var(--line);color:var(--tx2);box-shadow:none}
.sheet:not(:has(.pg-wrap)) .rl-choice>b {font-size:12px;color:var(--gold2)}
#app[data-ux-view] .main>.card:not(.hero):not(.pad0) {background-color:var(--card)}

/* V8.2 season archive and report, using the existing sheet and card system. */
.sr-review {min-width:0; margin:12px 0; border:1px solid #416159; border-radius:14px; overflow:hidden; background:var(--card);}
.sr-banner {padding:16px; background:linear-gradient(120deg,#1c3931,#162822 65%,#3b3524); border-bottom:1px solid #476155;}
.sr-eyebrow {font-size:10px; font-weight:800; letter-spacing:.12em; color:#d8bb83; margin-bottom:10px;}
.sr-title {display:grid; grid-template-columns:minmax(0,1fr) minmax(74px,auto); gap:10px; align-items:center;}
.sr-title h3 {font-size:clamp(26px,7vw,34px); line-height:1.1; margin:0 0 6px; color:#f7f2df;}
.sr-title b,.sr-title small {display:block; overflow-wrap:anywhere;}
.sr-title small {font-size:11px; color:var(--tx2); margin-top:5px;}
.sr-ovr {padding:10px 7px; border:1px solid #8d784d; border-radius:10px; text-align:center; background:#10241f;}
.sr-ovr strong {display:block; font-size:33px; line-height:1.05; color:#e9cf8e; font-variant-numeric:tabular-nums;}
.sr-ovr>span {display:block; font-size:9px; font-weight:750; margin-top:4px;}
.sr-ovr .sr-delta {font-size:13px;}
.sr-metrics {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); border-bottom:1px solid var(--line);}
.sr-stat {background:var(--card); min-width:0; padding:13px 5px; text-align:center;}
.sr-stat strong {display:block; font-size:clamp(18px,5.5vw,26px); color:var(--tx); font-variant-numeric:tabular-nums; overflow-wrap:anywhere;}
.sr-stat span {display:block; font-size:11px; line-height:1.2; color:var(--tx2); margin-top:4px; overflow-wrap:break-word;}
.sr-note {font-size:11px; color:var(--tx2); line-height:1.45; margin:10px 12px;}
.sr-compare,.sr-awards,.sr-ballon,.sr-money {padding:11px 12px; border-top:1px solid var(--line);}
.sr-compare h4,.sr-honors h4 {font-size:13px; margin:0 0 9px;}
.sr-compare>div {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px;}
.sr-compare>div>div {background:var(--card2); border-radius:8px; padding:8px 4px; text-align:center; min-width:0;}
.sr-compare>div>div>span {display:block; font-size:11px; overflow-wrap:break-word;}
.sr-compare .sr-delta {font-size:16px; font-weight:800; margin-top:3px;}
.sr-awards {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;}
.sr-honors {min-width:0;} .sr-honors h4 span {color:var(--gold2);}
.sr-honor {display:flex; align-items:center; gap:7px; min-width:0; border-radius:8px; background:var(--card2); padding:6px; margin:5px 0;}
.sr-honor svg {width:34px; height:34px; flex:0 0 34px;}
.sr-honor span {font-size:11px; line-height:1.25; overflow-wrap:anywhere;}
.sr-ballon,.sr-money {display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px;}
.sr-ballon span,.sr-money span {color:var(--tx2); min-width:0;}
.sr-ballon b,.sr-money strong {text-align:right; overflow-wrap:anywhere; color:var(--gold2); max-width:58%;}
.season-period {padding:8px 10px; border:1px solid var(--line); border-radius:9px; margin:8px 0;}
.sr-review .season-period {margin:10px 12px;}
.season-period summary {font-size:13px; color:var(--gold2); font-weight:700; cursor:pointer; padding:5px 0;}
.sr-archive-row {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,auto) 10px; gap:8px; align-items:center; text-align:left; width:100%; background:var(--card2); border:1px solid var(--line); border-radius:10px; padding:10px; min-height:56px; margin-top:6px; color:var(--tx);}
.sr-archive-row b,.sr-archive-row small {display:block; overflow-wrap:anywhere;} .sr-archive-row small {color:var(--tx2); font-size:11px; margin-top:4px;}
.sr-archive-output {text-align:right; font-size:12px;} .sr-archive-row>span:last-child {font-size:20px;color:var(--gold2);}
.sr-archive-row:active {border-color:var(--gold); background:var(--ui-selected);}
@media(max-width:370px){.sr-banner{padding:12px}.sr-awards{grid-template-columns:minmax(0,1fr)}.sr-stat span{font-size:10px}.sr-archive-row{padding:8px;gap:6px}}

/* V8.3 — legend leaderboard and role-specific milestones, existing profile. */
.road-panel{min-width:0;overflow:hidden}.road-panel .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;margin:12px 0}.road-panel .tabs button{min-width:0;white-space:normal;min-height:44px;font-size:12px}.road-panel h4{margin:16px 0 9px;color:var(--gold2);font-size:13px}.road-target{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:14px;border:1px solid #70613c;border-radius:12px;background:linear-gradient(125deg,#203b30,#272b21)}.road-target small{display:block;color:#d9c18e;font-size:10px;letter-spacing:.09em;font-weight:800}.road-target strong{font-size:30px;line-height:1.15;display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#f0d69b}.road-target strong span{font-size:12px;font-weight:600;color:var(--tx2)}.road-place{font-size:12px;font-weight:800;color:var(--gold2);border:1px solid #70613c;border-radius:8px;padding:7px;white-space:nowrap}.road-target p{grid-column:1/-1;font-size:12px;line-height:1.45;margin:0;color:var(--tx)}.road-target> :last-child:not(p){grid-column:1/-1}.road-list{margin-top:12px;display:grid;gap:5px}.road-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;align-items:center;background:var(--card2);border:1px solid var(--line);border-radius:9px;min-height:54px;padding:9px 10px}.road-rank{color:var(--tx2);font-size:12px;font-variant-numeric:tabular-nums}.road-name{min-width:0;overflow-wrap:anywhere}.road-name b{display:block;font-size:13px}.road-name b small{color:var(--gold2);font-size:9px}.road-name>span{display:block;font-size:11px;color:var(--tx2);margin-top:3px}.road-row>strong{font-size:17px;font-variant-numeric:tabular-nums;color:var(--tx)}.road-me{border-color:#9a8051;background:#303324}.road-me>strong,.road-me .road-rank{color:var(--gold2)}.road-gap{text-align:center;font-size:11px;color:var(--tx2);padding:4px}.road-note{color:var(--tx2);font-size:11px;line-height:1.5;margin:12px 0 0}.road-personal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.road-personal>div{min-width:0;padding:12px 8px;background:var(--card2);border:1px solid var(--line);border-radius:9px}.road-personal strong{display:block;font-size:23px;color:var(--gold2);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.road-personal span{font-size:11px;color:var(--tx2)}.road-goal{padding:10px 0;border-bottom:1px solid var(--line)}.road-goal b{font-size:13px;overflow-wrap:anywhere}.road-goal .row{gap:8px}.road-goal .row:last-child{margin-top:5px}.road-goal .row>span:last-child{text-align:right}.road-panel .kv{min-width:0;gap:8px}.road-panel .kv>*{overflow-wrap:anywhere}@media(max-width:370px){.road-row{grid-template-columns:25px minmax(0,1fr) auto;gap:5px;padding:8px}.road-target{padding:10px}.road-target strong{font-size:26px}.road-place{font-size:11px}}

.road-source{margin:8px 0;font-weight:700}
.road-panel{scroll-margin-top:76px}

/* V8.4: compact peer comparison inside existing road panel */
.road-rival{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--card2);min-width:0}.road-rival-head{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.road-rival-head>div{min-width:0;display:grid;align-content:start;gap:4px;overflow-wrap:anywhere}.road-rival-head>div:last-child{text-align:right}.road-rival-head span,.road-rival-head small{font-size:11px;color:var(--tx2)}.road-rival-head b{font-size:13px}.road-rival-head strong{font-size:17px;color:var(--gold2)}.road-rival-grid{display:grid;grid-template-columns:minmax(32px,1fr) minmax(0,2.5fr) minmax(32px,1fr);text-align:center;gap:8px 4px;border-top:1px solid var(--line);padding-top:10px;margin-top:10px;align-items:center;font-variant-numeric:tabular-nums}.road-rival-grid span{font-size:11px;color:var(--tx2);overflow-wrap:anywhere}.road-rival-grid b{font-size:13px}

/* V9.1: fixed nav must not cover final transfer controls. */
@media(max-width:899px){#app[data-ux-view="transfer"] .main{padding-bottom:calc(var(--nav-h) + var(--safe-b) + 48px);scroll-padding-bottom:calc(var(--nav-h) + var(--safe-b) + 16px)}}

/* V10.0 — compact Football Life identity and diary in existing screens. */
:root {--bg:#101916;--bg2:#14211b;--card:#192722;--card2:#22352b;--line:#30443b;--tx:#edf1e8;--tx2:#aebfb3;--gold:#c3ec78;--gold2:#d5f3a1;--ui-edge:#415747;--ui-control:#24372d;--ui-control-top:#24372d;--ui-selected:#314b32;--ui-radius:9px;--r:12px}
#app {background:var(--bg)}
.top,.nav {background:#13201a;box-shadow:none}
.nav button.on {background:transparent;color:var(--gold)}
.card,.b5-section,.b5-match,.b5-identity,.rl-section,.lw-section {border-radius:12px;box-shadow:none}
.btn:not(:disabled),.b5-link,.b5-time-grid button {box-shadow:none}
.btn.gold,.btn.gold:not(.sm),.b5-main-cta {background:var(--gold);border-color:var(--gold);color:#182316;box-shadow:none}
.fl10-hub {gap:12px}
.fl10-hub .b5-identity {display:grid;grid-template-columns:minmax(78px,31%) minmax(0,1fr);min-height:0;background:#24382e;border:1px solid #415747;padding:10px;gap:9px}
.fl10-hub .b5-identity-art {position:relative;inset:auto;z-index:auto;display:grid;place-items:center;background:#1b2c24;border-radius:7px;min-height:128px}
.fl10-hub .b5-identity-art:after {display:none}
.fl10-hub .b5-identity-art>svg:first-child {position:static;width:auto;height:128px;max-width:100%;opacity:1;filter:none;transform:none;object-fit:contain}
.fl10-hub .b5-player {max-width:none;min-height:0;padding:4px 0;align-self:center;min-width:0}
.fl10-hub .b5-player h1 {font-size:clamp(21px,6vw,30px);letter-spacing:-.04em;text-transform:none;margin:5px 0;line-height:1.05}
.fl10-hub .b5-player p {font-size:12px;line-height:1.4;margin:6px 0}
.fl10-hub .b5-overall {font-size:29px;background:none;border:0;padding:0;color:var(--gold);letter-spacing:-.04em}
.fl10-hub .b5-kicker {font:700 10px/1.4 ui-monospace,monospace;letter-spacing:.07em;color:#e5bd72}
.fl10-identity-foot {grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;border-top:1px solid #415747;padding:8px 2px 0;font-size:11px;color:var(--tx2)}
.fl10-hub .b5-match,.fl10-hub .b5-section {background:var(--card);padding:12px}
.fl10-hub .b5-versus {padding:10px 0}
.fl10-hub .b5-team .crest {width:42px;height:48px}
.fl10-hub .b5-quick button {background:#22352b;border-radius:8px;min-height:75px}
.fl10-hub .b5-quick button:nth-child(2n) {background:#22352b}
.fl10-season-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center;padding:8px 0;gap:4px}
.fl10-season-stats>div {min-width:0;border-right:1px solid var(--line)}.fl10-season-stats>div:last-child {border:0}
.fl10-season-stats strong,.fl10-season-stats small {display:block;overflow-wrap:anywhere}.fl10-season-stats strong {font-size:clamp(19px,5.5vw,25px);line-height:1.1;font-variant-numeric:tabular-nums}.fl10-season-stats small {font-size:11px;color:var(--tx2);margin-top:5px}
.fl10-standing {display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:9px;margin-top:9px;font-size:12px;flex-wrap:wrap}.fl10-standing>span {color:var(--tx2)}
.fl10-form {display:flex;gap:4px;flex-wrap:wrap}.fl10-form span {font-size:11px;font-weight:750;padding:5px 6px;border-radius:4px;background:#2c3e34}.fl10-form .good {background:#3c5534;color:var(--gold)}.fl10-form .poor {background:#50352e;color:#f3b9ac}
.fl10-text-btn {color:var(--gold);background:transparent;border:0;font-size:12px;min-height:44px;padding:4px}
.fl10-diary article,.fl10-chapter article {border-top:1px solid var(--line);padding:10px 0;display:grid;gap:4px}.fl10-diary time,.fl10-chapter time {font:11px ui-monospace,monospace;color:#e5bd72}.fl10-diary article b,.fl10-chapter article b {font-size:13px;overflow-wrap:anywhere}
.fl10-last-season {display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:8px;width:100%;background:#23382c;padding:12px;text-align:left;margin-top:8px;color:var(--tx)}.fl10-last-season small,.fl10-last-season b {display:block;overflow-wrap:anywhere}.fl10-last-season small {font-size:11px;color:var(--tx2)}.fl10-last-season b {margin:4px 0;font-size:14px}.fl10-last-season>span:last-child {font-size:22px;color:var(--gold)}
.fl10-chapter {margin:12px;padding:12px;border-left:3px solid var(--gold);background:#22352b;border-radius:6px}.fl10-chapter h4 {margin:0 0 6px;font-size:16px}.fl10-chapter p {font-size:13px;margin:0 0 8px}.fl10-chapter summary {font-size:12px;color:var(--gold);padding:8px 0;cursor:pointer}.sr-banner {background:#24382e}.sr-review {border-color:var(--line)}
@media(max-width:350px){.fl10-hub .b5-identity {grid-template-columns:80px minmax(0,1fr);padding:8px}.fl10-hub .b5-identity-art>svg:first-child {height:116px}.fl10-hub .b5-player h1 {font-size:21px}.fl10-season-stats small{font-size:10px}}
/* V10.1 — living footballer: keep the full native scene visible, no cropped avatar. */
.fl60-scene:has(.fl101-scene),#app[data-ux-view=dev] .fl60-scene:has(.fl101-scene){height:auto;aspect-ratio:192/100;max-height:232px;background:#263b3b}
.fl101-scene{display:block;width:100%;height:100%;image-rendering:pixelated}
.fl101-location-art{margin:8px 0 12px;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#263b3b;aspect-ratio:192/100;max-height:260px}
.fl60-scene:has(.fl101-scene)>span{bottom:7px;left:7px;max-width:65%;font-size:9px;letter-spacing:.08em}
.fl60-place:has(.fl101-scene){box-shadow:none;border-color:var(--line)}
/* V10.2 — restrained portrait-led presentation; existing screens and actions. */
.fl10-hub .b5-identity {grid-template-columns:minmax(94px,34%) minmax(0,1fr);background:#21352c;border-color:#3e5247;gap:12px;padding:12px}
.fl10-hub .b5-identity-art {min-height:116px;border:1px solid #40584a;background:#283e38;overflow:hidden;align-self:stretch}
.fl10-hub .b5-identity-art>svg:first-child {position:static;display:block;width:100%;height:auto;max-height:138px;max-width:100%;transform:none;object-fit:contain;opacity:1;filter:none}
.fl10-hub .b5-identity-art>.avatar>.pixel-backdrop {display:block;opacity:1}
.fl10-hub .b5-identity-art>.avatar>.portrait-kit {display:block;opacity:1}
.fl10-hub .b5-player h1 {font-weight:800;letter-spacing:-.035em}
.fl60-scene:has(.fl102-scene),#app[data-ux-view=dev] .fl60-scene:has(.fl102-scene),.fl101-location-art:has(.fl102-scene){aspect-ratio:240/110;max-height:240px;background:#1e302b}
.fl60-place:has(.fl102-scene) .fl60-place-body {padding-top:14px}
.fl60-scene:has(.fl102-scene)>span {left:12px;bottom:6px;background:#182a23;border:0;color:#d8e4d5;font-size:9px;letter-spacing:.1em;padding:4px 6px}
.fl60-place-actions .btn {font-weight:650;min-height:44px;box-shadow:none;text-align:left;padding:10px 12px;gap:6px}
.fl60-place-actions .btn span {color:var(--gold);font-size:17px}
.fl10-hub .b5-match {border-top:1px solid var(--line)}
.fl10-hub .b5-main-cta,.fl60-place .btn.gold {border-radius:8px;box-shadow:none}
@media(max-width:350px){.fl10-hub .b5-identity{grid-template-columns:86px minmax(0,1fr);gap:8px;padding:8px}.fl10-hub .b5-identity-art{min-height:96px}.fl10-hub .b5-identity-art>svg:first-child{height:auto}.fl60-place-actions .btn{padding:8px;font-size:12px}}
.fl10-hub .b5-identity .b5-identity-art .avatar {mask-image:none;border:0;border-radius:5px;align-self:end}

/* V10.3 — Match Experience. Existing match components, one compact hierarchy. */
.pg-official .sheet {background:#14231f;}
.pg-official .pg-wrap {max-width:460px;padding-inline:12px;}
.pg-official .pg-head {gap:8px;margin-bottom:7px;}
.pg-official .pg-head h2 {font-size:18px;line-height:1.15;overflow-wrap:anywhere;}
.pg-official .pg-head .pg-kicker {font-size:10px;letter-spacing:.055em;color:#9db7ab;line-height:1.35;}
.pg-official .pg-close {width:44px;height:44px;border-radius:10px;background:#21372e;border:1px solid #3b5549;color:#e4eddf;}
.pg-official .pg-live-score {position:static;z-index:auto;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:5px 8px;min-height:64px;padding:9px 10px;background:#1c312a;border:1px solid #3d554a;border-radius:10px;box-shadow:none;margin-bottom:6px;}
.pg-official .pg-live-score strong {font-size:30px;line-height:1.1;color:#eaf3db;font-variant-numeric:tabular-nums;letter-spacing:.025em;}
.pg-official .pg-live-score span:not(.pg-minute) {font-size:13px;line-height:1.2;color:#e4eee5;overflow-wrap:anywhere;}
.pg-official .pg-live-score .pg-minute {color:#b6caaf;font-size:10px;letter-spacing:.06em;}
.pg-official .pg-situation {margin:4px 0 5px;padding:6px 0;background:none;border:0;gap:2px;}
.pg-official .pg-situation small {font-size:10px;color:#a8c1ad;}
.pg-official .pg-situation b {font-size:16px;line-height:1.2;color:#f2f1df;}
.pg-official .pg-situation span {font-size:11px;line-height:1.35;color:#b8c9bf;}
.pg-field-bar {display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:27px;margin:0 auto 4px;max-width:420px;padding:3px 2px;}
.pg-field-bar .pg-pitch-status {position:static;display:block!important;flex:1;min-width:0;background:none!important;box-shadow:none;border:0!important;padding:0;color:#d7efb4;font-size:10px;line-height:1.3;letter-spacing:.045em;overflow-wrap:anywhere;}
.pg-field-info {color:#a9c0b3;font-size:10px;text-align:right;flex-shrink:0;}
.pg-official .pg-field,.pg-official.pg-build .pg-field {width:100%;max-width:min(100%,420px,max(218px,calc((100dvh - 294px)*.818)));border:1px solid #7a9272;border-radius:8px;box-shadow:0 2px 0 #0a1914;outline:none;}
.pg-official .pg-tools {margin-top:8px;gap:5px;}
.pg-official .pg-kind button,.pg-official .pg-styles button {min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.2;background:#22372e;border:1px solid #435a4c;color:#d8e6da;box-shadow:none;border-radius:8px;font-size:12px;min-height:42px;padding:6px 4px;}
.pg-official .pg-kind button.active {background:#c5ec79;border-color:#c5ec79;color:#17271b;box-shadow:none;}
.pg-official .pg-styles button.active {background:#344b34;border-color:#a5d47a;color:#e0f6ba;box-shadow:none;}
.pg-official .pg-chain {background:#1a2e26;border:1px solid #384e42;border-radius:8px;margin-top:6px;padding:7px;line-height:1.3;}
.pg-official #pgMateActions .btn {min-height:44px;white-space:normal;overflow-wrap:anywhere;line-height:1.2;padding:7px 5px;}
.pg-official .pg-feedback {min-height:25px;font-size:11px;line-height:1.35;}
.pg-official .pg-settings summary {min-height:38px;font-size:12px;}
.pg-official .pg-control {flex-wrap:wrap;}
.pg-official .pg-control button {min-width:84px;min-height:42px;white-space:normal;}
.pg-official .pg-banner {border-radius:8px;background:#152b23f5;box-shadow:none;bottom:3%;left:3%;right:3%;padding:9px 11px;}
.pg-official .pg-banner.success {border-color:#c5ec79;}
.pg-official .pg-banner[data-moment=major] {background:#283b2b;box-shadow:none;border-color:#dfce91;}
.pg-official .pg-banner.b5-celebrate:before {content:'TRENUTAK UTAKMICE';letter-spacing:.08em;}
.pg-official .pg-actions .btn {min-height:44px;border-radius:8px;box-shadow:none!important;}
@media(max-width:360px){.pg-official .pg-wrap{padding-inline:8px}.pg-official .pg-live-score strong{font-size:26px}.pg-official .pg-live-score span:not(.pg-minute){font-size:12px}.pg-official .pg-styles button{font-size:11px}.pg-field-info{font-size:9px}}

.pg-field-bar .pg-quick-camera {flex:none;min-height:38px;min-width:63px;padding:6px 9px;background:#253b31;border:1px solid #466052;border-radius:7px;color:#dfeadf;font:700 11px system-ui;white-space:nowrap;}
.pg-field-bar .pg-quick-camera[aria-pressed=true]{border-color:#a6cb79;color:#def3b6;}

/* V10.4 Career Story — existing evergreen palette and common controls. */
.cs-page{min-width:0;display:grid;gap:12px}.cs-page h2,.cs-page h3,.cs-page p{margin:0}.cs-overline{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--muted,#9baaa1);text-transform:uppercase}.cs-note{font-size:12px;line-height:1.5;color:var(--muted,#9baaa1)}.cs-primary{display:flex;justify-content:space-between;align-items:center;min-height:44px}.cs-heading{display:flex;gap:6px;justify-content:space-between;align-items:baseline;font-size:16px;padding-top:5px}.cs-heading small{font-size:11px;font-weight:400;color:var(--muted,#9baaa1)}.cs-summary{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:14px;display:grid;gap:9px}.cs-summary h3{font-size:28px;letter-spacing:-.045em}.cs-summary p{overflow-wrap:anywhere}.cs-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-block:1px solid var(--line);padding:11px 0}.cs-metrics div{display:grid;gap:3px}.cs-metrics strong{font-size:20px;font-variant-numeric:tabular-nums}.cs-metrics small,.cs-progress small{font-size:11px;color:var(--muted,#9baaa1)}.cs-progress{display:grid;gap:8px}.cs-progress div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px}.cs-progress strong{font-variant-numeric:tabular-nums}.cs-up{color:#c8e49b;font-style:normal}.cs-down{color:#ef9a9a;font-style:normal}.cs-chapters{border:1px solid var(--line);border-radius:10px;overflow:hidden}.cs-chapters>div{display:flex;align-items:center;gap:12px;padding:12px;background:var(--card)}.cs-chapters>div+div{border-top:1px solid var(--line)}.cs-chapters>div>span{font-size:13px;color:var(--muted,#9baaa1);font-variant-numeric:tabular-nums}.cs-chapters b,.cs-chapters small{display:block;overflow-wrap:anywhere}.cs-chapters small,.cs-season-row small{font-size:11px;color:var(--muted,#9baaa1)}.cs-season-row{min-height:56px;gap:8px}.cs-season-row>span{min-width:0;overflow-wrap:anywhere}.cs-timeline{border-left:1px solid var(--line);margin-left:6px;padding-left:13px;display:grid;gap:8px}.cs-event,.cs-batch{position:relative;display:grid;gap:5px;padding:12px;background:var(--card);border:1px solid var(--line);border-radius:8px;min-width:0;overflow-wrap:anywhere}.cs-timeline .cs-event:before,.cs-timeline .cs-batch:before{content:'';position:absolute;left:-18px;top:17px;width:8px;height:8px;border-radius:50%;background:#b8d795;border:1px solid var(--card)}.cs-timeline .cs-batch:before{background:#708178}.cs-event-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;font-size:10px;color:#b7c8ba;font-weight:700;letter-spacing:.04em}.cs-event-meta time,.cs-batch time{font-size:10px;color:var(--muted,#9baaa1);font-weight:400}.cs-event>b,.cs-batch>b{font-size:14px;line-height:1.4}.cs-event p,.cs-event small,.cs-batch span{font-size:12px;color:var(--muted,#9baaa1);line-height:1.4}.cs-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;padding:8px 0}.cs-score span{font-size:12px;line-height:1.3}.cs-score span:last-child{text-align:right}.cs-score strong{font-size:24px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.cs-foot{display:flex;justify-content:space-between;align-items:center;font-size:12px}.cs-loss{border-left:2px solid #a56767}.cs-feature{display:grid;gap:8px}.cs-feature h3,.cs-world h3{font-size:15px}.cs-world{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:12px;display:grid;gap:8px}.cs-world>div{display:grid;gap:3px;border-top:1px solid var(--line);padding-top:8px}.cs-world small{font-size:11px;color:var(--muted,#9baaa1)}.cs-world b{font-size:13px;overflow-wrap:anywhere}.cs-review-link{padding:0 12px 8px}.fl10-diary article small{font-size:11px;color:var(--muted,#9baaa1)}.cs-entry p{margin:6px 0 10px}.cs-entry .btn,.cs-page .btn{min-height:42px}.cs-page .sr-archive-row .sr-archive-output{flex-shrink:0}.cs-page .sr-archive-row small{white-space:normal}
@media(max-width:350px){.cs-summary{padding:10px}.cs-metrics strong{font-size:18px}.cs-metrics small{font-size:10px}.cs-page .sr-archive-row{padding:8px}.cs-score strong{font-size:21px}}
.cs-player{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;padding:9px 11px;background:var(--card);border:1px solid var(--line);border-radius:8px}.cs-portrait{height:62px;display:grid;place-items:center;overflow:hidden;background:#283e38;border-radius:4px}.cs-portrait svg{height:62px;max-width:56px;width:auto;display:block}.cs-player b,.cs-player small{display:block;overflow-wrap:anywhere}.cs-player b{font-size:15px}.cs-player small{font-size:11px;color:var(--muted,#9baaa1);line-height:1.5}

/* V10.5 — final UI polish of the existing shell, controls and reading hierarchy. */
#app {background:var(--bg)}
.top {gap:8px; border-bottom-color:var(--line);}
.top .t1 {font-size:17px;line-height:1.15;letter-spacing:-.025em}
.top .t2 {font-size:11px;line-height:1.3;margin-top:3px;white-space:normal;overflow-wrap:anywhere}
.top .cash {overflow-wrap:anywhere;white-space:normal;line-height:1.2}
.nav button {font-size:11px;font-weight:650;gap:5px;}
.nav button.on {background:#263a2e;border-radius:8px 8px 0 0;}
.nav button.on:before {height:2px;left:24%;right:24%;}
.main {padding-top:12px;}
.fl10-hub .b5-identity {gap:10px;padding:10px;grid-template-columns:minmax(82px,30%) minmax(0,1fr)}
.fl10-hub .b5-identity-art {min-height:102px;max-height:144px;}
.fl10-hub .b5-player h1 {font-size:clamp(22px,6vw,30px);line-height:1.08;}
.fl10-hub .b5-player p {margin:4px 0;}
.fl10-hub .b5-overall {font-size:27px;line-height:1.1}
.fl10-hub .b5-match {border-color:#526d52;background:#1c3026;padding:13px;}
.fl105-match-label {color:#d7edb1!important;}
.fl10-hub .b5-versus {padding:9px 0;}
.fl10-hub .b5-main-cta {min-height:48px;font-size:15px;}
.fl10-hub .b5-time {min-height:44px;background:transparent;}
.fl10-hub .fl10-diary .btn.gold {background:var(--ui-control);color:var(--gold);border-color:var(--ui-edge);font-weight:700;}
.fl10-hub .b5-quick button small {color:var(--tx2);font-size:10px;}
.fl10-hub .b5-quick button {text-align:left;min-height:80px;}
.fl105-menu {display:grid;gap:7px;}
.fl105-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.fl105-menu .fl105-dialog-head h2 {margin:0;}
.fl105-dismiss {flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:9px;background:var(--ui-control);font-size:26px;line-height:1;color:var(--tx);}
.fl105-menu h3 {font-size:12px;color:var(--tx2);font-weight:700;margin:10px 0 1px;}
.fl105-menu-item {display:grid;grid-template-columns:26px minmax(0,1fr) 16px;gap:12px;align-items:center;text-align:left;width:100%;min-height:62px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);}
.fl105-menu-item svg {width:23px;height:23px;color:var(--gold);}
.fl105-menu-item b,.fl105-menu-item small {display:block;overflow-wrap:anywhere;}
.fl105-menu-item b {font-size:15px;line-height:1.3;}
.fl105-menu-item small {font-size:12px;color:var(--tx2);margin-top:3px;}
.fl105-menu-item>span:last-child {font-size:21px;color:var(--gold);}
.fl105-menu-item:active {background:var(--card2);}
label.btn[tabindex]:focus-visible {outline:2px solid var(--gold2);outline-offset:2px;}
.main .tabs.ux-tabgrid button {min-height:44px;}
.cs-page .cs-overline,.cs-event-meta {font-size:11px;}
.cs-event p,.cs-batch span,.cs-note {font-size:13px;}
.cs-event-meta time,.cs-batch time {font-size:11px;}
@media(max-width:350px){.top {gap:6px}.top .t1{font-size:15px}.top .t2{font-size:10px}.fl10-hub .b5-identity{grid-template-columns:82px minmax(0,1fr);padding:8px}.fl10-hub .b5-player h1{font-size:21px}.fl10-hub .b5-identity-art{min-height:94px}.fl10-hub .b5-main-cta{font-size:14px}}
@media(prefers-reduced-motion:reduce){.nav button,.btn,.fl105-menu-item {transition:none;}}

.fl105-pace-label {margin:15px 0 7px;display:grid;gap:3px;}
.fl105-pace-label b {font-size:13px;}
.fl105-pace-label small {font-size:12px;color:var(--tx2);line-height:1.35;}

/* V11.0 Game Identity. Matchday composition, not a new global card theme. */
#app[data-ux-view=hub] .main:has(.fl11-hub){padding-top:0;}
.fl11-hub {gap:14px!important;}
.fl11-hub .b5-identity {position:relative;isolation:isolate;overflow:hidden;grid-template-columns:minmax(0,1fr) minmax(96px,37%);grid-template-rows:auto auto;gap:0;background:#182b36;border:0;border-radius:0 0 14px 14px;padding:12px 14px 0;min-height:0;}
.fl11-hero-stripe{position:absolute;z-index:-1;inset:0;overflow:hidden;opacity:.75;background:repeating-linear-gradient(124deg,transparent 0 36px,#203a45 36px 58px,transparent 58px 92px);clip-path:polygon(45% 0,100% 0,100% 100%,13% 100%);}
.fl11-hub .b5-identity-art{z-index:0;grid-column:2;grid-row:1;position:relative;min-height:0;max-height:none;align-self:stretch;border:0;background:transparent;border-radius:0;display:flex;align-items:end;justify-content:center;overflow:hidden;}
.fl11-hub .b5-identity .b5-identity-art .avatar{position:static;inset:auto;width:100%;height:auto;max-height:140px;align-self:end;z-index:1;border-radius:0!important;background:transparent!important;transform:none;filter:none;opacity:1;}
.fl11-hub .b5-identity-art>.avatar>.pixel-backdrop{display:none;opacity:0;}
.fl11-shirt-no{position:absolute;right:0;top:-5px;color:#b4d0d2;opacity:.19;font:900 clamp(65px,21vw,104px)/1 system-ui,sans-serif;letter-spacing:-.12em;}
.fl11-hub .b5-player{grid-column:1;grid-row:1;padding:0 5px 8px 0;max-width:none;align-self:center;z-index:2;}
.fl11-hub .b5-player h1{font-size:clamp(23px,7.1vw,35px);font-weight:900;line-height:.99;letter-spacing:-.05em;margin:5px 0 6px;color:#f5f4e9;overflow-wrap:anywhere;}
.fl11-hub .b5-player .b5-kicker{font:750 10px/1.2 system-ui,sans-serif;letter-spacing:.16em;color:#a8cad0;}
.fl11-hub .b5-player p{font-size:12px;color:#c5d5d6;line-height:1.25;margin:4px 0;}
.fl11-hub .b5-overall{font-size:26px;color:#cbf28b;display:inline-block;font-weight:900;}
.fl11-player-season{font-size:10px;color:#bed0d0;margin-left:8px;white-space:nowrap;}
.fl11-hub .fl10-identity-foot{grid-column:1/-1;grid-row:2;margin:0 -14px;padding:8px 14px;background:#14252f;border:0;font-size:11px;color:#d7e1df;}
.fl11-hub .b5-match{background:#1b302c;border:0;border-radius:12px;overflow:hidden;padding:0;margin:0;}
.fl11-match-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px;background:#253b36;padding:9px 12px;}
.fl11-hub .b5-match .b5-kicker{color:#d2ed9d!important;font:800 10px/1.25 system-ui,sans-serif;letter-spacing:.12em;}
.fl11-hub .b5-match-meta{font-size:10px;margin:0;color:#c9d8d1;text-align:right;}
.fl11-match-stage{position:relative;isolation:isolate;min-height:100px;display:grid;align-items:center;overflow:hidden;background:#162b31;}
.fl11-stadium{position:absolute;inset:0;width:100%;height:100%;z-index:-2;opacity:.7;}
.fl11-match-stage::after{content:'';position:absolute;inset:0;z-index:-1;background:#101d23aa;}
.fl11-hub .b5-versus{padding:9px 12px;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);}
.fl11-hub .b5-team .crest{width:46px;height:51px;filter:drop-shadow(0 3px 2px #0a1519);}
.fl11-hub .b5-team b{color:#fff;font-size:12px;line-height:1.15;}
.fl11-hub .b5-match h2,.fl11-hub .b5-match>p{margin:12px 12px 6px;}
.fl11-hub .b5-match .b5-importance{margin:6px 12px;color:#d7e6cf;}
.fl11-hub .b5-match .fl11-play{margin:9px 10px 0;width:calc(100% - 20px);min-height:47px;border-radius:7px;background:#caef82;color:#14251c;font-size:15px;font-weight:850;box-shadow:0 3px 0 #6b914f;display:flex;align-items:center;justify-content:center;gap:8px;}
.fl11-hub .b5-match .fl11-play svg{width:19px;height:19px;flex:none;}
.fl11-hub .b5-match .fl11-secondary{margin:5px 10px 4px;width:calc(100% - 20px);border:0;min-height:42px;background:transparent;color:#cadbd2;}
.fl11-hub .b5-match:has(.fl11-play):not(:has(.fl11-secondary)){padding-bottom:12px;}
.fl11-hub .fl11-season-ticket{background:#e4e7d6;color:#172b28;border:0;border-radius:6px;padding:12px 14px;}
.fl11-season-ticket .b5-heading h2{font-size:17px;color:#18302a;}
.fl11-season-ticket .b5-heading>span,.fl11-season-ticket .fl10-season-stats small,.fl11-season-ticket .fl10-standing>span{color:#435b51;}
.fl11-season-ticket .fl10-season-stats strong,.fl11-season-ticket .fl10-standing b{color:#182e28;}
.fl11-season-ticket .fl10-season-stats>div,.fl11-season-ticket .fl10-standing{border-color:#aebcab;}
.fl11-season-ticket .fl10-form span{background:#cad3c2;color:#253a31;}
.fl11-season-ticket .fl10-form span.good{background:#aac18d;color:#243e24;}
.fl11-season-ticket .fl10-form span.poor{background:#e4bfb0;color:#653a34;}
.fl11-hub .b5-section:not(.fl11-season-ticket){background:transparent;border:0;border-radius:0;padding:4px 2px;}
.fl11-hub .b5-section:not(.fl11-season-ticket) .b5-heading{border-bottom:1px solid #354b44;padding-bottom:9px;margin-bottom:8px;}
.fl11-hub .b5-quick{gap:0;grid-template-columns:1fr 1fr;}
.fl11-hub .b5-quick button,.fl11-hub .b5-quick button:nth-child(2n){background:transparent;border:0;border-bottom:1px solid #30443b;border-radius:0;padding:8px 8px 8px 0;min-height:64px;display:grid;grid-template-columns:28px minmax(0,1fr);gap:3px 8px;align-content:center;}
.fl11-hub .b5-quick button:after{display:none;}
.fl11-quick-icon{grid-column:1;grid-row:1/3;align-self:center;display:grid;place-items:center;width:28px;height:28px;background:#293e35;border-radius:7px;color:#c3ec78!important;}
.fl11-quick-icon svg{width:19px;height:19px;}
.fl11-hub .b5-quick button b,.fl11-hub .b5-quick button>span:not(.fl11-quick-icon){grid-column:2;line-height:1.25;}
.fl11-hub .b5-quick button b{font-size:13px;}
.fl11-hub .b5-quick button>span:not(.fl11-quick-icon){font-size:11px;}
.nav{background:#101f26;}
.nav button.on{background:transparent;color:#d3f39d;}
.nav button.on:before{background:#c8ed86;left:30%;right:30%;height:3px;}
.top{background:#14252e;border-bottom:1px solid #2b414a;}
@media(max-width:350px){.fl11-hub .b5-identity{padding:9px 10px 0;grid-template-columns:minmax(0,1fr) 94px}.fl11-hub .b5-player h1{font-size:23px}.fl11-hub .b5-identity .b5-identity-art .avatar{max-height:110px}.fl11-hub .fl10-identity-foot{margin:0 -10px;padding:6px 10px}.fl11-match-stage{min-height:88px}.fl11-hub .b5-team .crest{height:41px;width:37px}.fl11-hub .b5-match .fl11-play{font-size:14px;min-height:44px}.fl11-player-season{font-size:9px;margin-left:5px}.fl11-hub .b5-match .fl11-secondary{min-height:40px}}

.fl11-cover{border:0;border-radius:10px;background:#172d36;isolation:isolate;}
.fl11-cover>.fl11-stadium{position:absolute;inset:0;width:100%;height:100%;opacity:1;z-index:-2;}
.fl11-cover:after{background:#13242d66;z-index:-1;}
.fl11-cover>div{position:relative;z-index:1;}

/* V11.1 character presentation — scoped, native art, reduced motion respected. */
.fl111-character-link{position:absolute;right:2px;bottom:3px;z-index:3;display:flex;gap:4px;align-items:center;justify-content:center;min-width:46px;min-height:40px;padding:6px 8px;border:1px solid #6a8a87;border-radius:7px;background:#142b30;color:#e7f0de;font-size:11px;font-weight:800;cursor:pointer;}
.fl111-character-link svg{width:15px;height:15px;}
.fl111-character-link:focus-visible{outline:2px solid #c8f169;outline-offset:-2px;}
.fl111-stage,.fl111-equipment .identity-equipment-preview{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-end;min-height:248px;overflow:hidden;border:0;border-radius:10px;background:linear-gradient(0deg,#294b42 0 16%,#19353b 16% 100%);padding:8px 14px;}
.fl111-stage:before,.fl111-equipment .identity-equipment-preview:before{content:'';position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(90deg,transparent 0 31px,#6c92931a 31px 32px);}
.fl111-stage .studio-player,.fl111-equipment .identity-equipment-preview .studio-player{width:auto;height:232px;max-width:56%;min-width:100px;position:relative;display:block;flex:none;filter:none;}
.fl111-stage-caption,.fl111-kit-label{display:grid;gap:6px;min-width:0;flex:1;align-content:center;justify-items:start;color:#e8ecdc;overflow-wrap:anywhere;}
.fl111-stage-caption small,.fl111-kit-label small{font-size:10px;letter-spacing:.13em;color:#a8c5c3;font-weight:800;}
.fl111-stage-caption strong,.fl111-kit-label b{font-size:21px;line-height:1.1;}
.fl111-stage-caption span,.fl111-kit-label span{font-size:12px;color:#c5d8d3;}
.fl111-kit-label span{font-size:36px;font-weight:900;color:#cef18b;}
.fl111-studio-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px;}
.fl111-studio-actions button{min-height:46px;font-size:13px;white-space:normal;}
.fl111-scene-title{display:grid;gap:3px;margin:14px 0 8px;}
.fl111-scene-title small{color:var(--tx2);font-size:12px;}
.fl111-appearance .ink-wardrobe{background:#1b3439;border:0;padding:12px;align-items:center;}
.fl111-appearance .ink-wardrobe .avatar{width:92px;height:auto;flex:none;}
.fl111-appearance .studio-hair-grid button{min-height:78px;}
@media(max-width:350px){.fl111-stage,.fl111-equipment .identity-equipment-preview{padding:8px;min-height:220px}.fl111-stage .studio-player,.fl111-equipment .identity-equipment-preview .studio-player{height:204px}.fl111-stage-caption strong,.fl111-kit-label b{font-size:18px}.fl111-character-link{min-height:36px;min-width:43px;padding:5px;font-size:10px}}
@media(prefers-reduced-motion:no-preference){.fl11-hub .fl111-eyes,.fl111-stage .fl111-eyes{transform-box:fill-box;transform-origin:center;animation:fl111-blink 6.8s infinite step-end;}@keyframes fl111-blink{0%,91%,95%,100%{transform:scaleY(1)}92%,94%{transform:scaleY(.18)}}}
/* Opaque dressing-room surfaces keep other screens from bleeding into the artwork. */
.sheet:has(.fl111-studio),.sheet.fl111-equipment,.sheet.fl111-appearance{background:#172b29!important;backdrop-filter:none;}
.fl111-character-link{top:2px;bottom:auto;right:1px;background:#172d35e8;}

/* V11.2: one additional direct pacing route; preserve the original fixture CTA. */
.fl112-major{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;margin-top:7px;min-height:44px;border-color:rgba(122,181,151,.35);background:#192f29;color:#e3f2e8;white-space:normal}
.fl112-major small{font-size:10px;color:#a7c6b3;text-align:right;font-weight:500}
.fl112-explain{margin:6px 0 12px;line-height:1.45}
.fl112-arrival,.fl112-next{border-top:1px solid var(--line);margin-top:14px;padding-top:12px;display:grid;gap:8px}
.fl112-arrival>small,.fl112-next>small{font-size:10px;font-weight:700;letter-spacing:1.1px;color:var(--tx2)}
.fl112-arrival>b{font-size:12px;font-weight:600}
.fl112-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;font-size:10px;text-align:center;color:var(--tx2)}
.fl112-totals strong{display:block;font-size:19px;color:var(--tx);font-variant-numeric:tabular-nums}
.fl112-next .fl112-major{margin-top:0}
@media(max-width:350px){.fl112-major small{font-size:9px}.fl112-major{font-size:12px}}

.sheet.fl112-pacing{background:#172925!important;backdrop-filter:none;}

/* V11.3 — actual choice consequences. No new currency, no new UI framework. */
.sheet:has(.fl113-choices),.sheet:has(.fl113-outcome),.sheet:has(.fl113-receipt){background:#172925!important;backdrop-filter:none;}
.fl113-context{padding:11px 0;border-top:1px solid #426054;border-bottom:1px solid #426054;display:grid;gap:7px;}
.fl113-context>small,.fl113-receipt>small,.fl113-training>small{color:#b0c8b9;font-size:10px;letter-spacing:.10em;font-weight:800;}
.fl113-context>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;color:#bfd0c6;font-size:11px;}
.fl113-context b{display:block;color:#e6f3d9;font-size:23px;line-height:1.15;font-variant-numeric:tabular-nums;}
.fl113-note{font-size:11px;line-height:1.5;color:#bdcfc4;margin:6px 0;}
.fl113-choices{display:grid;gap:9px;}
.sheet .fl113-option{display:grid;grid-template-columns:minmax(0,1fr) 15px;gap:6px 9px;text-align:left;align-items:center;min-height:70px;padding:11px 12px;background:#203a30;border:1px solid #527160;border-radius:8px;box-shadow:none;white-space:normal;}
.fl113-choice-title{grid-column:1;font-weight:750;color:#f0f3e7;}
.fl113-choice-arrow{grid-column:2;grid-row:1/3;color:#d1e6af;font-weight:800;font-size:20px;}
.fl113-effects{display:flex;flex-wrap:wrap;align-items:center;gap:5px;grid-column:1;min-width:0;}
.fl113-effect{display:inline-flex;gap:4px;align-items:baseline;padding:3px 6px;border-radius:4px;background:#132a24;font-size:11px!important;line-height:1.4;color:#d6e3d9;white-space:normal;}
.fl113-effect.sport{border-left:2px solid #c9eb8d;}
.fl113-effect.good b{color:#b8ea86;}.fl113-effect.bad b{color:#ffb4a9;}.fl113-effect.neutral b{color:#e0d2ae;}
.fl113-nochange{font-size:11px!important;color:#c2d2c8;}
.fl113-receipt{padding:14px 0;border-top:1px solid #496357;border-bottom:1px solid #496357;display:grid;gap:9px;margin:12px 0;}
.fl113-training{margin-top:12px;border-top:1px solid #426054;padding-top:10px;}
.fl113-train-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0;}
.fl113-train-grid>div{background:#1b312b;border:1px solid #3f574c;border-radius:6px;padding:7px 5px;display:grid;gap:4px;font-size:11px;min-width:0;}
.fl113-train-grid>div.selected{border-color:#c9eb8d;}.fl113-train-grid b{color:#e4ead9;font-size:12px;overflow-wrap:anywhere;}.fl113-train-grid span{color:#c5d7cb;}

/* V11.4 sporting context */
.fl114-world-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;padding:12px 0;border-block:1px solid var(--line)}
.fl114-world-entry>div{display:grid;gap:4px;min-width:0}.fl114-world-entry small,.fl114-kicker,.fl114-divider{font-size:10px;font-weight:750;letter-spacing:1.1px;color:var(--tx2)}.fl114-world-entry span{font-size:11px;color:var(--tx2);overflow-wrap:anywhere}.fl114-race-btn{white-space:normal;flex-shrink:0;max-width:46%;min-height:40px}
.fl114-race-head{display:flex;align-items:center;gap:12px;margin:12px 0}.fl114-race-head svg{width:60px;height:70px;flex:none}.fl114-race-head h2{margin:0;font-size:26px}.fl114-race-head p{font-size:11px;color:var(--tx2);margin:4px 0}.fl114-your-rank{display:flex;justify-content:space-between;gap:12px;padding:16px 12px;background:#21372d;border-left:3px solid #c4ec79;margin:10px 0 16px}.fl114-your-rank>div{display:grid;gap:4px}.fl114-your-rank small{font-size:10px;color:#b3c6bc}.fl114-your-rank strong{font-size:23px;color:#e4f1df;font-variant-numeric:tabular-nums}.fl114-race-row{display:grid;grid-template-columns:24px minmax(0,1fr) 53px;align-items:center;gap:9px;padding:11px 5px;border-bottom:1px solid var(--line)}.fl114-race-row.mine{background:#233b2e;border-left:2px solid #c4ec79}.fl114-name,.fl114-points{display:grid;gap:3px;min-width:0}.fl114-name b{overflow-wrap:anywhere}.fl114-name small,.fl114-points small{font-size:10px;color:var(--tx2)}.fl114-points{text-align:right;font-variant-numeric:tabular-nums}.fl114-rank{font-size:19px;color:var(--tx2)}.fl114-up{color:#b9e896}.fl114-down{color:#f3aba0}.fl114-divider{margin-top:13px}.fl114-race>p{line-height:1.5;margin:14px 0}
.fl114-stakes,.fl114-impact{padding:12px 0;border-top:1px solid var(--line);margin:10px 0;display:grid;gap:7px}.fl114-stakes p{margin:0;font-size:13px;line-height:1.35}.fl114-peer{display:grid;gap:4px;padding:10px 12px;border-left:2px solid var(--gold2);background:#20352c}.fl114-peer small{font-size:10px;color:var(--tx2)}.fl114-peer span{font-size:12px}.fl114-stake-race{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.fl114-impact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.fl114-impact-grid>div{display:grid;gap:4px;padding:9px;background:#20352c}.fl114-impact-grid small{font-size:10px;color:var(--tx2)}.fl114-impact-grid b{font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fl114-honor{color:var(--gold2);margin:0;font-size:13px}.fl114-impact>small{font-size:10px;line-height:1.4}
.fl114-generations{margin:12px 0;border-block:1px solid var(--line);padding:10px 0}.fl114-generations summary{font-weight:650;font-size:13px;cursor:pointer}.fl114-generations .fl114-peer{margin-top:7px}

/* V11.5 — connected season ticket / results / career. */
.fl115-season{min-width:0;background:#1a3029;border-radius:9px;overflow:hidden;border:1px solid #324b40;display:grid;gap:0}
.fl115-season .fl11-season-ticket{margin:0!important;border-radius:0!important}
.fl115-last{display:grid;gap:8px;padding:12px 13px;border-bottom:1px solid #3a5045;color:#e4ebdf;min-width:0}
.fl115-last-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;align-items:baseline;color:#b6c8bc;font-size:11px;overflow-wrap:anywhere}
.fl115-last-meta small{font-size:10px;letter-spacing:.03em}
.fl115-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px;text-align:center;font-size:12px;line-height:1.2}
.fl115-score span{overflow-wrap:anywhere}.fl115-score strong{font-size:25px;font-variant-numeric:tabular-nums;color:#e4ebdf;letter-spacing:-.04em}
.fl115-season .fl114-world-entry{margin:0;padding:12px 13px;border:0;border-bottom:1px solid #3a5045}
.fl115-season-footer{padding:8px 13px;display:flex;align-items:center;justify-content:space-between;gap:9px;color:#b6c8bc;font-size:11px;min-width:0}
.fl115-season-footer>span{min-width:0;overflow-wrap:anywhere}.fl115-diary-link{min-height:44px;max-width:55%;white-space:normal}
.fl115-report-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:7px}.fl115-report-links .btn{white-space:normal;min-height:44px}

/* V11.6 — darker season ticket, actual progress and secondary ordinary fixture. */
.fl11-hub .fl11-season-ticket{background:#203830;color:#e5eee6;}
.fl11-season-ticket .b5-heading h2,.fl11-season-ticket .fl10-season-stats strong,.fl11-season-ticket .fl10-standing b{color:#edf3e8;}
.fl11-season-ticket .b5-heading>span,.fl11-season-ticket .fl10-season-stats small,.fl11-season-ticket .fl10-standing>span{color:#b8cbbd;}
.fl11-season-ticket .fl10-season-stats>div,.fl11-season-ticket .fl10-standing{border-color:#425b4d;}
.fl11-season-ticket .fl10-form span{background:#30483e;color:#e3ece5;}.fl11-season-ticket .fl10-form span.good{background:#42643e;color:#e0f2c5;}.fl11-season-ticket .fl10-form span.poor{background:#66433d;color:#ffe1d8;}
.fl116-ordinary{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;margin:9px 10px 0;width:calc(100% - 20px);min-height:44px;white-space:normal;background:#203930;color:#d7e5db;}.fl116-ordinary span:first-child{display:grid;gap:3px;min-width:0}.fl116-ordinary small{font-size:9px;color:#acc3b5}.fl116-ordinary b{font-size:12px;overflow-wrap:anywhere}.fl116-ordinary span:last-child{font-size:11px;text-align:right;flex:none}.fl11-hub .b5-match>p.fl116-fixture-note{font-size:10px;color:#afc5b8;line-height:1.35;margin:7px 12px 0}.fl116-unconfirmed{grid-column:1/-1;text-align:center;color:#eef3e9;font-weight:700}.fl116-unconfirmed small{color:#bccfc4;font-size:11px;font-weight:400}.fl116-progress{display:grid;gap:6px;padding:10px;background:#20352c}.fl116-progress>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:13px}.fl116-progress small{color:#b8cbbd;font-size:10px}.fl116-track{height:7px;background:#40574a;overflow:hidden;border-radius:5px}.fl116-track i{display:block;height:100%;background:#c8ed89;border-radius:5px}.fl116-context{font-size:12px;color:#dbe9d8;margin:0;padding:4px 0;line-height:1.4}
