:root {
  --bg: #050b08;
  --bg2: #0b1712;
  --panel: rgba(18, 38, 30, .72);
  --line: rgba(140, 230, 190, .16);
  --line2: rgba(140, 230, 190, .32);
  --text: #eef7f2;
  --muted: #8fa89b;
  --lime: #d6ff3d;
  --mint: #4ff0c8;
  --red: #ff5a5a;
  --gold1: #f7e08a; --gold2: #c9962b;
  --silver1: #eef1f5; --silver2: #9aa3ad;
  --bronze1: #e3a57a; --bronze2: #9a5a35;
  --radius: 16px;
  --display: "Russo One", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  overflow-x: hidden;
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(214, 255, 61, .10), transparent 60%),
    radial-gradient(80% 50% at 10% 110%, rgba(79, 240, 200, .10), transparent 60%),
    linear-gradient(180deg, #07130e 0%, #040806 100%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { display: block; }
#app { max-width: 560px; margin: 0 auto; min-height: 100%; padding: 14px 16px calc(92px + env(safe-area-inset-bottom)); }

/* ---------- общие ---------- */
.splash { height: 80vh; display: grid; place-items: center; align-content: center; gap: 18px; }
.ball { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #cfd8d3 60%, #6b7a72);
  box-shadow: 0 0 30px rgba(214,255,61,.25); animation: bounce 1s infinite ease-in-out; }
@keyframes bounce { 50% { transform: translateY(-16px); } }
.splash-t { color: var(--muted); font-weight: 600; }
.kicker { font-family: var(--display); font-size: 11px; letter-spacing: .14em; color: var(--lime); text-transform: uppercase; }
.h1 { font-family: var(--display); font-size: 27px; line-height: 1.12; text-transform: uppercase; margin: 6px 0 6px; letter-spacing: .01em; }
.h2 { font-family: var(--display); font-size: 17px; text-transform: uppercase; margin: 0 0 10px; letter-spacing: .03em; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; backdrop-filter: blur(8px); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 18px; border-radius: 14px;
  font-family: var(--display); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: #0b1406; box-shadow: 0 10px 40px -12px rgba(214,255,61,.7); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.btn-violet { background: linear-gradient(90deg, #3d6bff, #8a4dff); color: #fff; box-shadow: 0 10px 40px -14px rgba(110,90,255,.8); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--mint), var(--lime)); transition: width .5s; }
.steps { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.steps .progress { flex: 1; }
.steps .num { font-family: var(--display); font-size: 12px; color: var(--muted); }
.back { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 18px; }
#toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(30px); opacity: 0;
  background: #142a20; border: 1px solid var(--line2); color: var(--text); padding: 12px 16px; border-radius: 14px; font-weight: 700;
  max-width: 90vw; text-align: center; transition: .3s; z-index: 50; pointer-events: none; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- шаг 1: футболка ---------- */
.jersey-wrap { position: relative; margin: 6px auto 18px; width: min(340px, 86vw); }
.jersey-wrap svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.jersey-name { font-family: var(--display); font-size: 26px; fill: rgba(240,255,245,.9); letter-spacing: .06em; text-transform: uppercase; }
.jersey-num { font-family: var(--display); font-size: 92px; fill: rgba(240,255,245,.92); }
.input { width: 100%; padding: 16px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line2); color: var(--text);
  font: 700 18px var(--body); outline: none; text-align: center; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(214,255,61,.15); }

/* ---------- шаг 2: поле ---------- */
.pitch { position: relative; margin: 4px auto 18px; width: min(330px, 88vw); aspect-ratio: 68/100; border-radius: 18px; border: 2px solid rgba(190,255,220,.5);
  background: repeating-linear-gradient(180deg, #164a33 0 10%, #13422d 10% 20%); overflow: hidden; box-shadow: inset 0 0 60px rgba(0,0,0,.4); }
.pitch .l { position: absolute; border: 2px solid rgba(190,255,220,.45); }
.pitch .mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch .circle { left: 50%; top: 50%; width: 28%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%,-50%); }
.pitch .box-t { left: 25%; right: 25%; top: -2px; height: 15%; }
.pitch .box-b { left: 25%; right: 25%; bottom: -2px; height: 15%; }
.pitch .gbox-t { left: 38%; right: 38%; top: -2px; height: 6%; }
.pitch .gbox-b { left: 38%; right: 38%; bottom: -2px; height: 6%; }
.pos-dot { position: absolute; transform: translate(-50%,-50%); min-width: 54px; height: 38px; padding: 0 10px; border-radius: 20px;
  background: #0c2219; border: 2px solid var(--mint); font-family: var(--display); font-size: 12px; display: grid; place-items: center; transition: .15s; }
.pos-dot.on { background: var(--lime); color: #0b1406; border-color: var(--lime); box-shadow: 0 0 24px rgba(214,255,61,.6); transform: translate(-50%,-50%) scale(1.08); }
.pos-name { text-align: center; font-weight: 800; min-height: 22px; margin-bottom: 12px; }

/* ---------- шаг 3: страны ---------- */
.countries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.country { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; transition: .15s; }
.country .f { font-size: 26px; }
.country b { display: block; font-size: 15px; }
.country span { color: var(--muted); font-size: 12px; }
.country.on { background: var(--lime); color: #0b1406; border-color: var(--lime); }
.country.on span { color: #33421a; }

/* ---------- шаг 4: жеребьёвка ---------- */
.draw { position: relative; height: 150px; overflow: hidden; margin: 20px -16px; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.strip { position: absolute; left: 0; top: 10px; display: flex; gap: 12px; will-change: transform; }
.slot { flex: 0 0 110px; height: 128px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.slot img { width: 72px; height: 72px; object-fit: contain; }
.draw .frame { position: absolute; left: 50%; top: 6px; width: 120px; height: 138px; transform: translateX(-50%); border: 2px solid var(--lime);
  border-radius: 18px; box-shadow: 0 0 30px rgba(214,255,61,.35); pointer-events: none; }
.crest-big { width: 170px; height: 170px; margin: 6px auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(214,255,61,.12), transparent 70%); border: 1px solid rgba(214,255,61,.25); box-shadow: 0 0 0 16px rgba(214,255,61,.04), 0 0 0 34px rgba(214,255,61,.025); }
.crest-big img { width: 110px; height: 110px; object-fit: contain; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.chip small { display: block; font-family: var(--display); font-size: 10px; letter-spacing: .1em; color: var(--mint); text-transform: uppercase; margin-bottom: 4px; }
.chip b { font-size: 15px; }

/* ---------- карточка игрока ---------- */
.card { --c1: var(--bronze1); --c2: var(--bronze2); position: relative; width: 210px; aspect-ratio: 210/300; margin: 0 auto;
  clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 86%, 86% 100%, 14% 100%, 0 86%, 0 9%);
  background: linear-gradient(160deg, var(--c1), var(--c2)); color: #2b1a0e; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.card.silver { --c1: var(--silver1); --c2: var(--silver2); color: #1d232a; }
.card.gold { --c1: var(--gold1); --c2: var(--gold2); color: #2c210a; }
.card::before { content: ""; position: absolute; inset: 7px; clip-path: inherit; border: 1px solid rgba(0,0,0,.25);
  background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 40%); pointer-events: none; z-index: 3; }
.card .ovr { position: absolute; left: 18px; top: 16px; font-family: var(--display); font-size: 40px; line-height: 1; z-index: 2; }
.card .pos { position: absolute; left: 20px; top: 58px; font-family: var(--display); font-size: 14px; z-index: 2; }
.card .flag { position: absolute; left: 20px; top: 82px; font-size: 22px; z-index: 2; }
.card .crest { position: absolute; left: 18px; top: 112px; width: 32px; height: 32px; object-fit: contain; z-index: 2; }
.card .photo { position: absolute; right: 0; bottom: 18%; width: 78%; height: 66%; object-fit: cover; object-position: center top; z-index: 1;
  mask-image: linear-gradient(180deg, #000 70%, transparent); }
.card .ph { position: absolute; right: 8%; bottom: 18%; width: 64%; height: 60%; z-index: 1; opacity: .5; }
.card .nm { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; display: grid; place-items: center; font-family: var(--display);
  font-size: 17px; text-transform: uppercase; background: rgba(0,0,0,.12); border-top: 1px solid rgba(0,0,0,.18); z-index: 2; padding: 0 12px; text-align: center; }
.card.sm { width: 150px; }
.card.sm .ovr { font-size: 30px; left: 13px; top: 12px; } .card.sm .pos { top: 44px; left: 14px; font-size: 11px; }
.card.sm .flag { top: 62px; left: 13px; font-size: 16px; } .card.sm .crest { top: 86px; left: 12px; width: 24px; height: 24px; } .card.sm .nm { font-size: 13px; }

/* ---------- главная ---------- */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.top .logo { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.top .logo img { width: 36px; height: 36px; object-fit: contain; }
.top .t1 { font-family: var(--display); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.top .t2 { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.top .lvl { margin-left: auto; text-align: right; }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.hero .card { width: 150px; }
.hero-r .club-n { font-family: var(--display); font-size: 18px; line-height: 1.15; }
.role { display: inline-block; margin-top: 6px; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; background: rgba(79,240,200,.12); color: var(--mint); border: 1px solid rgba(79,240,200,.3); }
.role.Основа { background: rgba(214,255,61,.14); color: var(--lime); border-color: rgba(214,255,61,.4); }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meter { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.meter .row { font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.meter .row span { margin-left: auto; color: var(--muted); font-weight: 600; }
.next { padding: 16px; }
.next .date { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; }
.vs .t { text-align: center; font-weight: 800; font-size: 13px; }
.vs .t img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 6px; }
.vs .sep { width: 1px; height: 54px; background: var(--line2); }
.offer { border-color: rgba(214,255,61,.5); background: linear-gradient(135deg, rgba(214,255,61,.12), rgba(18,38,30,.8)); }
.offer img { width: 54px; height: 54px; object-fit: contain; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; position: relative; }
.tile .i { font-size: 22px; } .tile b { display: block; margin-top: 6px; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.tile span { color: var(--muted); font-size: 12px; }
.badge { position: absolute; right: 10px; top: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--lime); color: #0b1406; font-weight: 800; font-size: 12px; display: grid; place-items: center; }

/* ---------- нижнее меню ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(5,11,8,.92); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav button { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); }
.nav button .i { font-size: 20px; filter: grayscale(1) opacity(.7); }
.nav button.on { color: var(--lime); } .nav button.on .i { filter: none; }
.nav .dot { position: absolute; }

/* ---------- характеристики ---------- */
.attr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.attr:last-child { border-bottom: 0; }
.attr .n { font-weight: 800; } .attr .n small { color: var(--lime); margin-left: 4px; }
.attr .v { font-family: var(--display); font-size: 20px; }
.attr .bar { grid-column: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.attr .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--lime)); border-radius: 6px; transition: width .4s; }
.plus { grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--lime); color: #0b1406; font-family: var(--display); font-size: 12px; display: grid; place-items: center; line-height: 1.1; }
.plus[disabled] { background: rgba(255,255,255,.08); color: var(--muted); }
.attr-l { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.trainbtn { padding: 10px 14px; border-radius: 12px; background: rgba(79,240,200,.12); border: 1px solid rgba(79,240,200,.35); color: var(--mint); font-weight: 800; font-size: 13px; }

/* ---------- списки ---------- */
.list .it { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list .it:last-child { border-bottom: 0; }
.list .it img.av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #10261c; }
.list .it .nm { flex: 1; min-width: 0; }
.list .it .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .it .nm span { color: var(--muted); font-size: 12px; }
.list .it .r { font-family: var(--display); font-size: 18px; }
.list .it.me { background: rgba(214,255,61,.08); border-radius: 12px; padding: 10px; margin: 2px -10px; border: 1px solid rgba(214,255,61,.35); }
.rate { min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font-family: var(--display); font-size: 14px; }
.rate.hi { background: #1f7a3e; } .rate.mid { background: #7a6a1f; } .rate.lo { background: #7a2a1f; } .rate.no { background: rgba(255,255,255,.08); color: var(--muted); }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.tabs button { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line2); font-weight: 800; font-size: 13px; white-space: nowrap; }
.tabs button.on { background: var(--lime); color: #0b1406; border-color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 20px; } .stat span { color: var(--muted); font-size: 11px; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; }
.ladder span { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: grid; align-items: end; animation: fade .2s; }
.sheet { background: #0b1712; border-top: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.levelup { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0,0,0,.7); animation: fade .3s; }
.levelup .box { text-align: center; padding: 30px; }
.levelup .big { font-family: var(--display); font-size: 64px; color: var(--lime); text-shadow: 0 0 40px rgba(214,255,61,.6); }

.fixbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5,11,8,0), rgba(5,11,8,.96) 30%); }
.fixbar .btn { max-width: 528px; margin: 0 auto; }
.btn-lime[disabled] { background: #2a3a12; color: #8a9a5a; opacity: 1; }

/* ---------- v4: события, магазин, пенальти, друзья ---------- */
.sheet { max-height: 88vh; overflow-y: auto; position: relative; -webkit-overflow-scrolling: touch; }
.sheet .x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--muted); font-size: 14px; z-index: 2; }
.mb12 { margin-bottom: 12px; }
.alert { display: block; width: 100%; text-align: left; padding: 14px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(79,240,200,.08); }
.alert b { display: block; font-size: 14px; margin-bottom: 4px; }
.alert span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.alert.lime { border-color: rgba(214,255,61,.5); background: linear-gradient(135deg, rgba(214,255,61,.13), rgba(214,255,61,.03)); }
.alert.red { border-color: rgba(255,90,90,.5); background: rgba(255,90,90,.09); }
.alert.violet { border-color: rgba(138,77,255,.55); background: linear-gradient(135deg, rgba(138,77,255,.18), rgba(61,107,255,.06)); }
.alert .btn { padding: 12px; font-size: 14px; }
.choices { display: grid; gap: 8px; margin-top: 10px; }
.hero-r .club-n { display: block; text-align: left; padding: 0; }
.meters.three { grid-template-columns: .8fr 1fr 1fr; }
.linkbtn { display: block; width: 100%; text-align: center; color: var(--mint); font-weight: 700; font-size: 13px; }
.sti { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgba(255,255,255,.05); font-weight: 800; }
.list .it.locked { opacity: .45; }
.list .it .nm .progress { margin-top: 6px; }
.av.ty { width: 42px; height: 42px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: #0b1406; font-weight: 800; }
.story { width: 34px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 15px; }
.storyimg { width: 100%; max-width: 300px; margin: 8px auto 0; border-radius: 16px; display: block; }
.rate.big { width: 92px; height: 60px; margin: 6px auto 0; font-size: 30px; border-radius: 16px; }
.input.num { width: 70px; padding: 10px; text-align: center; font-size: 15px; }
.card .cpt { position: absolute; right: 16px; top: 16px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: #111; color: var(--gold1); font-family: var(--display); font-size: 13px; display: grid; place-items: center; }
.card .no { position: absolute; right: 16px; top: 44px; z-index: 3; font-family: var(--display); font-size: 16px; opacity: .75; }
.card.sm .cpt { right: 11px; top: 11px; width: 20px; height: 20px; font-size: 11px; }
.hero .card .no { top: 38px; right: 13px; }
.card.fr-night { --c1: #3b4a7a; --c2: #0d1226; color: #e6ecff; }
.card.fr-fire { --c1: #ffb347; --c2: #c2181b; color: #2a0505; }
.card.fr-legend { --c1: #f6f1ff; --c2: #8a4dff; color: #1a0b33; box-shadow: 0 0 40px -6px rgba(138,77,255,.8), 0 30px 60px -20px rgba(0,0,0,.8); }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frm { padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); text-align: center; }
.frm.on { border-color: var(--lime); background: rgba(214,255,61,.08); }
.frm .card.sm { width: 100%; max-width: 70px; }
.frm .card.sm .ovr { font-size: 18px; left: 9px; top: 8px; }
.frm b { display: block; font-size: 12px; margin-top: 6px; } .frm span { font-size: 11px; color: var(--muted); }
.goal { position: relative; margin: 14px auto 10px; width: 100%; max-width: 360px; aspect-ratio: 2.2/1; border: 5px solid #f2f2f2; border-bottom: 0; border-radius: 6px 6px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; background: linear-gradient(#0e2a1f, #123a2a); overflow: visible; }
.goal .net { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 14px 14px; pointer-events: none; }
.zone { position: relative; z-index: 1; border: 1px dashed rgba(214,255,61,.18); }
.zone:active { background: rgba(214,255,61,.2); }
.keeper { position: absolute; left: 50%; top: 72%; transform: translate(-50%,-50%); font-size: 40px; transition: all .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 2; }
.pball { position: absolute; left: 50%; top: 122%; transform: translate(-50%,-50%); font-size: 30px; transition: all .55s cubic-bezier(.2,.8,.3,1); pointer-events: none; z-index: 3; }
.dots { display: flex; justify-content: center; gap: 10px; margin: 52px 0 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.12); }
.dots i.g { background: var(--lime); } .dots i.m { background: var(--red); }
a.btn { text-decoration: none; color: var(--text); }
.levelup .box { background: #0b1712; border: 1px solid var(--line2); border-radius: 22px; max-width: 340px; width: calc(100% - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.levelup .box .h1 { font-size: 21px; }

/* ---------- v5: таблица лиги, графики, зал славы ---------- */
.tabs.seg { margin: 4px 0 14px; }
.tabs.seg button { white-space: nowrap; }
.input.sel { padding: 12px 14px; font-size: 15px; font-weight: 700; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.tbl { padding: 6px 10px; }
.tbl .tr { display: grid; grid-template-columns: 22px 1fr 24px 22px 22px 22px 30px 30px; gap: 4px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; text-align: center; }
.tbl .tr:last-child { border-bottom: 0; }
.tbl .th { color: var(--muted); font-size: 11px; font-weight: 800; }
.tbl .tn { display: flex; align-items: center; gap: 7px; text-align: left; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .tn img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 20px; }
.tbl .tr b { font-family: var(--display); font-size: 14px; }
.tbl .tr.me { background: rgba(214,255,61,.1); border-radius: 10px; margin: 0 -6px; padding: 9px 6px; }
.chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.chart text { font-size: 10px; fill: var(--text); font-weight: 700; font-family: var(--body); }
.chart text.ax { fill: var(--muted); font-weight: 600; }
.list .it .nm span + b { display: block; }
.tut .list .it { padding: 7px 0; }
.tut .list .it .nm b { font-size: 13px; font-weight: 700; }
.tut .sti { width: 26px; height: 26px; flex-basis: 26px; font-size: 14px; }
.tbl .tr.z-up span:first-child { color: var(--lime); font-weight: 800; }
.tbl .tr.z-down span:first-child { color: var(--red); font-weight: 800; }
.tbl .tr.z-champ span:first-child { color: var(--gold1); font-weight: 800; }
.zl { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; }
.zl.up { background: var(--lime); } .zl.down { background: var(--red); } .zl.champ { background: var(--gold1); }
.rankline { display: block; margin-top: 6px; color: var(--lime); font-weight: 700; text-align: left; padding: 0; }

/* ---------- пенальти v2 ---------- */
.pen-wrap { position: relative; margin: 6px -16px 0; overflow: hidden; }
.pen-svg { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: crosshair; }
.keeper-g { transform-box: view-box; transform-origin: 180px 150px; transition: transform .42s cubic-bezier(.2,.8,.25,1); }
.ball-g, #ballShadow { transform-box: view-box; transform-origin: 180px 256px; }
#ballShadow { transform-origin: 180px 270px; }
.pen-net.shake { animation: netShake .5s ease; transform-box: view-box; transform-origin: 180px 110px; }
@keyframes netShake { 0% { transform: scale(1); } 30% { transform: scale(1.04, 1.06) translateY(-2px); } 60% { transform: scale(.99); } 100% { transform: scale(1); } }
.pen-big { font-family: var(--display); font-size: 40px; fill: #fff; opacity: 0; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 6px; }
.pen-big.on { animation: bigIn .5s cubic-bezier(.2,1.6,.4,1) forwards; transform-box: fill-box; transform-origin: center; }
.pen-big.g { fill: var(--lime); } .pen-big.m { fill: #ff7a7a; font-size: 30px; }
@keyframes bigIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: 40%; width: 7px; height: 11px; border-radius: 2px; animation: conf 1.3s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes conf { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; } }
.pen-dots { display: flex; justify-content: center; gap: 10px; margin: 12px 0 10px; }
.pen-dots i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line2); color: var(--muted); }
.pen-dots i.g { background: var(--lime); color: #0b1406; border-color: var(--lime); }
.pen-dots i.m { background: rgba(255,90,90,.2); color: #ff7a7a; border-color: rgba(255,90,90,.5); }
.pen-dots i.cur { border-color: var(--lime); color: var(--text); box-shadow: 0 0 0 3px rgba(214,255,61,.15); }
.power { position: relative; height: 22px; margin: 4px 4px 0; }
.power.off { display: none; }
.pw-track { display: flex; height: 12px; margin-top: 5px; border-radius: 8px; overflow: hidden; }
.pw-track i { display: block; height: 100%; }
.pw-weak { flex: 26; background: linear-gradient(90deg, #7a2a1f, #a3632a); }
.pw-ok { flex: 12; background: #c9a227; }
.pw-best { flex: 24; background: var(--lime); box-shadow: 0 0 14px rgba(214,255,61,.6); }
.pw-over { flex: 26; background: linear-gradient(90deg, #a3632a, #7a2a1f); }
.pw-needle { position: absolute; top: 0; left: 0; will-change: transform; width: 4px; height: 22px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); }

/* ---------- достижения с уровнями ---------- */
.ach-badge { position: relative; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; display: grid; place-items: center; font-size: 21px;
  background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.12); filter: grayscale(1); opacity: .6; }
.ach-badge b { position: absolute; right: -4px; bottom: -4px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; font-size: 11px; display: grid; place-items: center; color: #111; background: var(--c, #ccc); border: 2px solid #0b1712; }
.ach-badge.t1, .ach-badge.t2, .ach-badge.t3, .ach-badge.t4, .ach-badge.t5, .ach-badge.t6 { filter: none; opacity: 1; background: radial-gradient(circle at 35% 30%, var(--c2), var(--c)); border-color: var(--c); box-shadow: 0 0 14px -2px var(--c); }
.ach-badge.t1 { --c: #b87333; --c2: #e3a57a; } .ach-badge.t2 { --c: #9aa3ad; --c2: #eef1f5; } .ach-badge.t3 { --c: #c9962b; --c2: #f7e08a; }
.ach-badge.t4 { --c: #6fd3c7; --c2: #e6fffb; } .ach-badge.t5 { --c: #5aa8ff; --c2: #e0f0ff; } .ach-badge.t6 { --c: #a855f7; --c2: #f3e8ff; }
.ach-badge.big { width: 92px; height: 92px; margin: 0 auto; font-size: 44px; border-width: 3px; }
.ach-badge.big b { min-width: 30px; height: 30px; font-size: 15px; right: -2px; bottom: -2px; }
.ach-it .nm b { white-space: normal; }
.ach-lv { font-size: 11px; font-weight: 800; color: var(--lime); margin-left: 4px; }
.ach-prog { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ach-prog .progress { flex: 1; }
.ach-prog small { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* окна-стек и прокрутка */
body.locked { overflow: hidden; }
.modal { overscroll-behavior: contain; }
.modal.under { display: none; }
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet .backb { display: inline-flex; align-items: center; margin: -6px 0 10px; padding: 7px 12px 7px 8px; border-radius: 12px; background: rgba(255,255,255,.07); font-weight: 800; font-size: 14px; color: var(--text); }

/* ---------- расстановка на поле ---------- */
.lu { padding: 12px; }
.lpitch { position: relative; margin-top: 10px; width: 100%; aspect-ratio: 68 / 92; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1c6b3c 0 9%, #1a6338 9% 18%); border: 2px solid rgba(190,255,220,.35); }
.lpitch .l { position: absolute; border: 2px solid rgba(190,255,220,.35); }
.lpitch .mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.lpitch .circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%,-50%); }
.lpitch .box-t { left: 24%; right: 24%; top: -2px; height: 13%; }
.lpitch .box-b { left: 24%; right: 24%; bottom: -2px; height: 13%; }
.pl { position: absolute; transform: translate(-50%, -50%); width: 64px; text-align: center; z-index: 2; }
.pl .ph { position: relative; width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #0f2b1d; border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; }
.pl .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pl .ph span { font-family: var(--display); font-size: 13px; color: #fff; }
.pl .ph img + span { display: none; }
.pl b { display: block; margin-top: 3px; font-size: 10px; line-height: 1.1; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl i { display: inline-block; margin-top: 2px; padding: 0 5px; border-radius: 6px; font-style: normal; font-family: var(--display); font-size: 10px; background: rgba(0,0,0,.55); color: var(--lime); }
.pl.me .ph { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(214,255,61,.35), 0 0 18px rgba(214,255,61,.6); background: var(--lime); }
.pl.me .ph span { color: #0b1406; }
.pl.me b { color: var(--lime); }

.clubinfo { display: grid; gap: 8px; }
.clubinfo .ci { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.clubinfo .ci img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: #10261c; flex: 0 0 40px; }
.clubinfo .ci img.v { width: 64px; height: 40px; border-radius: 8px; flex-basis: 64px; }
.clubinfo small { display: block; font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.clubinfo b { display: block; font-size: 14px; }
.clubinfo span { font-size: 12px; color: var(--muted); }

/* игроки «Карьеры» в составе */
.list .it.hu { background: rgba(138,77,255,.12); border: 1px solid rgba(138,77,255,.55); border-radius: 12px; padding: 10px; margin: 2px -10px; cursor: pointer; }
.av.ty.hu { background: #8a4dff; color: #fff; }
.hubadge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 8px; font-size: 10px; font-weight: 800; vertical-align: middle; background: #8a4dff; color: #fff; }
.pl.hu .ph { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(138,77,255,.4), 0 0 16px rgba(138,77,255,.6); background: #8a4dff; }
.pl.hu b { color: #d8c8ff; }
.pl.hu { cursor: pointer; }

/* онлайн */
.onl { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,.25), 0 0 8px #4ade80; vertical-align: middle; }
.pl .onl.pon { position: absolute; top: 0; left: calc(50% + 12px); margin: 0; border: 2px solid #0b1712; width: 11px; height: 11px; }

/* ---------- v16: CentCoin, карточки, магазин, тур, история ---------- */
.cci { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin: 0 1px; border-radius: 50%; vertical-align: -0.22em;
  font-style: normal; font-family: "Arial Black", var(--display); font-size: .62em; font-weight: 900; letter-spacing: -.04em; line-height: 1;
  color: #d6ff3d; background: #0b1406; box-shadow: inset 0 0 0 .16em #d6ff3d, 0 0 6px rgba(214,255,61,.45); }
.card .ovr .arr { position: absolute; left: 100%; top: 2px; margin-left: 3px; font-style: normal; font-size: 11px; line-height: 1; }
.card.fr-club, .card.fr-nation, .card.fr-clublegend { color: #fff; }
.card.fr-club .nm, .card.fr-nation .nm, .card.fr-clublegend .nm { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.card.fr-clublegend { box-shadow: 0 0 30px -4px var(--c1), 0 30px 60px -20px rgba(0,0,0,.8); }
.card.fr-totw { --c1: #3a3a3a; --c2: #050505; color: #f7e08a; box-shadow: 0 0 28px -4px rgba(247,224,138,.55), 0 30px 60px -20px rgba(0,0,0,.8); }
.card.fr-totw::before { border-color: rgba(247,224,138,.5); }
.card .totwb { position: absolute; left: 0; right: 0; top: 4px; z-index: 3; text-align: center; font-family: var(--display); font-size: 8px; letter-spacing: .12em; color: #f7e08a; }
.card.fr-legend2 { --c1: #f6f1ff; --c2: #8a4dff; color: #1a0b33; background: linear-gradient(120deg, #f6f1ff, #c4b5fd, #8a4dff, #f472b6, #f6f1ff); background-size: 300% 300%; animation: leg2 5s ease infinite;
  box-shadow: 0 0 40px -4px rgba(168,85,247,.85), 0 30px 60px -20px rgba(0,0,0,.8); }
@keyframes leg2 { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.glow-gold { box-shadow: 0 0 0 2px #f5c542, 0 0 14px #f5c542 !important; }
.glow-neon { box-shadow: 0 0 0 2px #d6ff3d, 0 0 14px #d6ff3d !important; }
.glow-violet { box-shadow: 0 0 0 2px #a78bfa, 0 0 14px #8a4dff !important; }
.glow-fire { box-shadow: 0 0 0 2px #fb923c, 0 0 14px #ef4444 !important; }
.list .it .nm span[class^="nc-"] { font-size: inherit; display: inline; }
.nc-gold { color: #f5c542 !important; } .nc-mint { color: #4ff0c8 !important; } .nc-pink { color: #f472b6 !important; } .nc-sky { color: #7dd3fc !important; } .nc-orange { color: #fb923c !important; }
.sixrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sixrow div { text-align: center; padding: 8px 2px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.sixrow b { display: block; font-family: var(--display); font-size: 17px; } .sixrow span { font-size: 10px; color: var(--muted); font-weight: 800; }
.dtask { padding: 12px 14px; } .dtask b { font-size: 14px; } .dtask .r { font-family: var(--display); text-align: right; }
.dtask .r small { display: block; font-family: var(--body); font-size: 11px; color: var(--lime); }
.dtask .progress { margin-top: 8px; }
.tagl { padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 800; background: rgba(251,146,60,.12); color: #fdba74; border: 1px solid rgba(251,146,60,.4); }
.tagl.violet { background: rgba(138,77,255,.14); color: #c4b5fd; border-color: rgba(138,77,255,.5); }
.btn.sm { padding: 10px 8px; font-size: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { padding: 7px 12px; border-radius: 16px; border: 1px solid var(--line2); font-size: 12px; font-weight: 800; }
.opt.on { background: var(--lime); color: #0b1406; border-color: var(--lime); }
.opt.g-gold { border-color: #f5c542; } .opt.g-neon { border-color: #d6ff3d; } .opt.g-violet { border-color: #a78bfa; } .opt.g-fire { border-color: #fb923c; }
.opt.n-gold { color: #f5c542; } .opt.n-mint { color: #4ff0c8; } .opt.n-pink { color: #f472b6; } .opt.n-sky { color: #7dd3fc; } .opt.n-orange { color: #fb923c; }
.opt.on[class*="n-"] { color: #0b1406; }
.card.sm.mini { width: 42px; margin: 0; flex: 0 0 42px; }
.card.sm.mini .ovr { font-size: 13px; left: 6px; top: 5px; }
.card.sm.mini::before { inset: 3px; }
.sti.bgp { border: 1px solid var(--line2); }
.bg-stadium { background: linear-gradient(#1d4f3a, #0a1a12); } .bg-night { background: linear-gradient(#12183f, #03050f); } .bg-fire { background: linear-gradient(#962808, #140404); }
.tl { position: relative; padding-left: 4px; }
.tli { display: flex; align-items: center; gap: 12px; padding: 8px 0; position: relative; }
.tli img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 4px; object-fit: contain; }
.tli .tld { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tli b { display: block; font-size: 14px; } .tli span { font-size: 12px; color: var(--muted); }
.tli + .tli::before { content: ""; position: absolute; left: 17px; top: -8px; height: 16px; border-left: 2px dashed var(--line2); }
.it.sw { cursor: pointer; }
.it.sw input { display: none; }
.it.sw i { width: 42px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.12); position: relative; flex: 0 0 42px; transition: .2s; }
.it.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; }
.it.sw input:checked + i { background: var(--lime); } .it.sw input:checked + i::after { left: 21px; background: #0b1406; }
.radar { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
.radar .rg { fill: none; stroke: rgba(255,255,255,.1); }
.radar .rc { fill: rgba(214,255,61,.25); stroke: #d6ff3d; stroke-width: 2; }
.radar .rp { fill: none; stroke: #8fa89b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.radar text { font-size: 10px; font-weight: 800; fill: var(--text); font-family: var(--body); }
.motd { padding: 14px; border-color: rgba(251,146,60,.45); background: linear-gradient(135deg, rgba(251,146,60,.12), rgba(0,0,0,.1)); }
.tabs.seg button { padding: 8px 12px; }

.cci { width: 1.5em; height: 1.5em; font-size: .62em; vertical-align: -0.35em; color: #6b4300 !important;
  background: radial-gradient(circle at 35% 30%, #fff6c4 0%, #f7d34a 35%, #d79a12 70%, #9a6406 100%);
  box-shadow: inset 0 0 0 .14em #b37a0b, inset 0 0 0 .22em #fbe38a, 0 1px 3px rgba(0,0,0,.45); text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.btn.btn-off { background: rgba(255,255,255,.05); color: var(--muted); border: 1px dashed var(--line2); box-shadow: none; opacity: 1; pointer-events: none; }
.pen-svg { will-change: transform; }

/* v18: крупная монета */
.cci { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; font-size: 1em !important; margin: 0 .15em; vertical-align: middle; position: relative; top: -.08em;
  color: #6b4300 !important; letter-spacing: -.06em; line-height: 1; flex: none; }
.cci b { font: 900 .62em/1 "Arial Black", var(--display); color: inherit; letter-spacing: -.07em; text-transform: none; }
.cci.xl { width: 84px; height: 84px; top: 0; box-shadow: inset 0 0 0 5px #b37a0b, inset 0 0 0 8px #fbe38a, 0 6px 22px rgba(247,211,74,.35); }
.cci.xl b { font-size: 30px; }
.ccbig { display: flex; align-items: center; gap: 16px; margin: 4px 0 10px; }
.ccnum { font: 900 34px/1.05 var(--display); color: #f7d34a; }

/* ---------- v19: элита, особые карточки, спонсор, умения, партнёры, тренер, зал славы ---------- */
.card.elite { --c1: #e9ddff; --c2: #5b2bd6; color: #160736; box-shadow: 0 0 34px -6px rgba(140,90,255,.75), 0 30px 60px -20px rgba(0,0,0,.8); }
.card.fr-tots { --c1: #0f2a5c; --c2: #050d1f; color: #f7e08a; box-shadow: 0 0 30px -4px rgba(80,140,255,.65), 0 30px 60px -20px rgba(0,0,0,.8); }
.card.fr-tots::before { border-color: rgba(247,224,138,.55); }
.card.fr-heir { --c1: #fff4d6; --c2: #8c5a12; color: #2b1702; box-shadow: 0 0 30px -6px rgba(247,200,90,.7), 0 30px 60px -20px rgba(0,0,0,.8); }
.card.fr-partner { --c1: #ffe9cf; --c2: #b4441e; color: #2a0f04; }
.card.fr-tots .totwb, .card.fr-heir .totwb { color: inherit; }
.card .spn { position: absolute; left: 0; right: 0; bottom: 7px; z-index: 3; text-align: center; font-size: 8px; font-weight: 800; letter-spacing: .04em; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 18px; }
.card .stl { position: absolute; right: 14px; top: 66px; z-index: 3; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1; }
.card.sm .stl, .card.mini .stl, .card.sm .spn { display: none; }
.btn-red { background: linear-gradient(90deg, #b42318, #e5484d); color: #fff; }
.focusln { display: block; width: 100%; text-align: left; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line2, #2c3d33); background: rgba(214,255,61,.06); color: var(--text); font-size: 13px; }
.pcode { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.pcode b { display: block; } .pcode span { font-size: 12px; color: var(--muted); }
.cd { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .12em; color: var(--lime); }
.cd.big { font-size: 26px; text-align: center; margin-top: 10px; }
.qrbox { background: #fff; border-radius: 18px; padding: 16px; text-align: center; margin: 8px auto 4px; max-width: 280px; }
.qrbox img { width: 100%; display: block; } .qrbox .cd { color: #111; }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: rgba(214,255,61,.14); border-bottom-right-radius: 4px; }
.msg.co { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.msg.typing { opacity: .6; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
textarea.input { resize: none; font: inherit; }
.aig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aig img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 6px; }
.legends { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.leg { flex: none; width: 128px; text-align: center; scroll-snap-align: start; }
.leg .card { width: 120px; margin: 0 auto 6px; }
.leg b { display: block; font-size: 13px; } .leg span { font-size: 11px; color: var(--muted); }
.legend-empty b { display: block; margin-bottom: 4px; } .legend-empty span { font-size: 13px; color: var(--muted); }
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rec { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 14px; background: var(--panel, rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.08); color: var(--text); min-width: 0; }
.rec .ri { grid-row: 1 / span 2; font-size: 22px; }
.rec b { font-family: var(--display); font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec span { font-size: 11px; color: var(--muted); }
.rec em { grid-column: 1 / span 2; font-style: normal; font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.solo b { display: block; } .solo span { font-size: 12px; color: var(--muted); }
