
/* 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 {
  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 b {
  font-size: 13px;
}
.pg-situation span {
  font-size: 11px;
  line-height: 1.25;
}
.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-size: 10px;
  font-weight: 800;
  color: #d5ecad;
  letter-spacing: .06em;
  margin-top: 8px;
}
.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,7vw,34px);
  text-shadow: none;
  letter-spacing: -.045em;
}
.pg-banner.b5-celebrate:before {
  content: 'MATCH MOMENT';
  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: 'MATCH DAY / 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: linear-gradient(155deg,#b7c4a1 0%,#76937b 48%,#294a39 48.5%,#1b352b 100%);
  border: 0;
  border-radius: 8px 0 0 8px;
  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;
  background: #142820f2;
  box-shadow: 0 5px 18px #08170e80;
}
.pg-official .pg-banner[data-moment=major] {
  border-color: #f1d087;
  border-left-width: 6px;
  background: linear-gradient(105deg,#213222f7,#3c5835f7);
}
.pg-official .pg-banner[data-moment=major] strong {
  color: #fbe3a1;
}
.pg-official .pg-banner.b5-celebrate:before {
  content: 'MATCH MOMENT';
  margin-bottom: 3px;
}
.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 #f1dd97;
  border-left: 6px solid #f1dd97;
  background: linear-gradient(115deg,#172e24f7,#4c5935f7);
  box-shadow: 0 8px 30px #08170eaa;
}
.pg-banner[data-moment=major].b5-celebrate:before {
  content: 'VELIKI TRENUTAK / MATCH DAY';
  color: #f8e4a2;
}
.pg-banner[data-moment=major] strong {
  color: #fff0ac;
  font-size: clamp(25px,8vw,38px);
}
.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: .07em;
  font-variant-numeric: tabular-nums;
}
.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: #10251f;
  box-shadow: 0 4px 10px #07130e88;
  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: 4px 0;
}
.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: 12px;
}
.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: 14px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.reward-major {
  background: radial-gradient(ellipse at 50% 0,#bda05a35,transparent 68%),linear-gradient(145deg,#234333,#12251e)!important;
  border-color: #c2aa72!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;
    }
  }
}
