  .agenda-hidden-flag{
    display:inline-flex; align-items:center; gap:7px; margin-bottom:14px;
    background:rgba(255,194,60,0.12); border:1px solid rgba(255,194,60,0.45);
    color:var(--gold); font-size:11.5px; font-weight:800; padding:6px 13px; border-radius:999px;
  }
  .finals-agenda{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px,1fr)); gap:16px; }
  .fa-card{
    position:relative; overflow:hidden; border-radius:18px; padding:16px 16px 15px;
    background:linear-gradient(160deg, rgba(255,194,60,0.10), var(--bg-elev) 58%);
    border:1px solid rgba(255,194,60,0.32);
    box-shadow:0 10px 30px rgba(0,0,0,0.30);
    transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }
  .fa-card:hover{ transform:translateY(-3px); border-color:rgba(255,194,60,0.55); box-shadow:0 16px 38px rgba(0,0,0,0.40); }
  .fa-card.played{
    background:linear-gradient(160deg, rgba(79,216,255,0.09), var(--bg-elev) 58%);
    border-color:rgba(79,216,255,0.34);
  }
  .fa-top{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:6px; }
  .fa-tag{
    background:linear-gradient(135deg,#ffc23c,#ff9c1a); color:#241701; font-size:9.5px; font-weight:900;
    letter-spacing:1.1px; text-transform:uppercase; padding:3px 10px; border-radius:999px;
  }
  .fa-card.played .fa-tag{ background:linear-gradient(135deg,#4fd8ff,#0080ff); color:#04121a; }
  .fa-disc{ font-size:11.5px; font-weight:800; color:var(--text-dim); }
  .fa-date-strip{
    display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:800;
    color:var(--text-dim-2); text-transform:uppercase; letter-spacing:.5px; margin-bottom:12px;
  }
  .fa-teams{ display:flex; align-items:flex-start; justify-content:center; gap:10px; margin:4px 0 14px; }
  .fa-team{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; }
  .fa-dot{
    width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center;
    font-weight:900; font-size:14px; color:#04121a; box-shadow:0 6px 16px rgba(0,0,0,0.35);
  }
  .fa-nm{ font-size:13.5px; font-weight:800; color:var(--text); word-break:break-word; }
  .fa-mid{ display:flex; flex-direction:column; align-items:center; gap:3px; padding-top:10px; }
  .fa-vs{ font-size:11.5px; font-weight:900; color:var(--text-dim-2); letter-spacing:1px; }
  .fa-score{ font-family:'JetBrains Mono',monospace; font-size:23px; font-weight:700; color:var(--gold); line-height:1; }
  .fa-card.played .fa-score{ color:var(--green); }
  .fa-meta{ display:flex; flex-wrap:wrap; gap:7px; }
  .fa-meta span{
    display:inline-flex; align-items:center; gap:5px; background:var(--bg-elev-3); border:1px solid var(--line);
    border-radius:9px; padding:5px 10px; font-size:11.5px; font-weight:700; color:var(--text-dim);
  }
  .fa-winner{
    margin-top:11px; display:flex; align-items:center; gap:8px; font-size:12px; font-weight:800;
    color:var(--gold); background:rgba(255,194,60,0.10); border:1px solid rgba(255,194,60,0.35);
    border-radius:10px; padding:7px 11px;
  }
  .toty-stage{
    position:relative; border-radius:26px; padding:24px 16px 28px;
    background:
      radial-gradient(130% 80% at 50% 0%, rgba(255,194,60,0.12), transparent 62%),
      linear-gradient(180deg, #0c1119, #070a10);
    border:1px solid rgba(255,194,60,0.28);
    box-shadow:0 0 48px rgba(255,194,60,0.08), inset 0 0 70px rgba(0,0,0,0.55);
    overflow:hidden;
  }
  .toty-stage::after{
    content:''; position:absolute; inset:-40% -10% auto -10%; height:60%;
    background:radial-gradient(60% 100% at 50% 0%, rgba(79,216,255,0.10), transparent 70%);
    pointer-events:none;
  }
  .toty-head{ position:relative; z-index:3; text-align:center; margin-bottom:22px; }
  .toty-badge{
    display:inline-flex; align-items:center; gap:7px;
    background:linear-gradient(135deg,#ffc23c,#ff9c1a); color:#241701;
    font-size:10px; font-weight:900; letter-spacing:1.8px; text-transform:uppercase;
    padding:6px 16px; border-radius:999px; box-shadow:0 6px 22px rgba(255,160,20,0.32);
  }
  .toty-title{
    font-family:'Archivo Black',sans-serif; font-size:clamp(23px,4.6vw,42px); letter-spacing:.5px;
    margin:14px 0 6px; color:#fff; text-transform:uppercase; line-height:1.05;
    text-shadow:0 0 26px rgba(255,194,60,0.35), 0 0 60px rgba(79,216,255,0.18);
  }
  .toty-sub{ font-size:12.5px; color:var(--text-dim); font-weight:700; }

  .toty-pitch{
    position:relative; z-index:2; margin:0 auto; max-width:640px; aspect-ratio:3/4; min-height:400px;
    border-radius:22px; border:2px solid rgba(79,216,255,0.55);
    background:
      repeating-linear-gradient(180deg, rgba(255,255,255,0.022) 0 38px, rgba(255,255,255,0) 38px 76px),
      linear-gradient(180deg, #07161d, #050e18);
    box-shadow:0 0 38px rgba(79,216,255,0.26), inset 0 0 70px rgba(79,216,255,0.06);
    overflow:hidden;
  }
  .toty-pitch .pl{ position:absolute; border:2px solid rgba(79,216,255,0.24); pointer-events:none; z-index:1; }
  .toty-pitch .pl-mid{ left:0; right:0; top:50%; border-width:0 0 2px 0; }
  .toty-pitch .pl-circle{ left:50%; top:50%; width:26%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; }
  .toty-pitch .pl-boxtop{ left:24%; right:24%; top:-2px; height:13%; border-width:0 2px 2px 2px; border-radius:0 0 10px 10px; }
  .toty-pitch .pl-boxbot{ left:24%; right:24%; bottom:-2px; height:13%; border-width:2px 2px 0 2px; border-radius:10px 10px 0 0; }
  .toty-pitch .pl-goaltop{ left:38%; right:38%; top:-2px; height:5.5%; border-width:0 2px 2px 2px; border-radius:0 0 6px 6px; }
  .toty-pitch .pl-goalbot{ left:38%; right:38%; bottom:-2px; height:5.5%; border-width:2px 2px 0 2px; border-radius:6px 6px 0 0; }

  .toty-pos-wrap{
    position:absolute; transform:translate(-50%,-50%); z-index:5;
    display:flex; flex-direction:column; align-items:center; touch-action:none;
    transition:left .22s ease, top .22s ease;
  }
  .toty-pos-wrap.toty-draggable{ cursor:grab; }
  .toty-pos-wrap.toty-draggable.dragging{ cursor:grabbing; z-index:30; transition:none; }
  .toty-pos-wrap.toty-draggable.dragging .toty-card-mini{ box-shadow:0 0 0 2.4px rgba(255,201,60,1), 0 0 26px rgba(255,201,60,0.6); }
  .toty-pos-wrap.toty-card-hidden{
    opacity:0; transform:translate(-50%,-50%) scale(0.4) translateY(14px); transition:none;
  }
  .toty-pos-wrap.toty-card-entering{
    transition:opacity .45s ease, transform .45s cubic-bezier(.2,1.4,.3,1);
  }
  .toty-drag-hint{
    text-align:center; font-size:11.5px; font-weight:700; color:var(--gold);
    background:rgba(255,194,60,0.08); border:1px dashed rgba(255,194,60,0.4);
    border-radius:10px; padding:8px 14px; margin-top:14px;
  }
  .toty-player{
    background:none; border:none; padding:0; cursor:pointer; text-align:center;
    width:clamp(70px,16vw,116px); display:flex; flex-direction:column; align-items:center; gap:5px;
  }
  .toty-nameplate{
    background:linear-gradient(180deg, rgba(8,13,20,0.92), rgba(8,13,20,0.72));
    border:1px solid rgba(255,255,255,0.14); border-radius:9px; padding:5px 7px 6px; width:100%;
    box-shadow:0 6px 16px rgba(0,0,0,0.45);
  }
  .toty-player.pos-POR .toty-nameplate{ border-color:rgba(255,194,60,0.40); }
  .toty-name{
    font-size:clamp(9.5px,2.3vw,12.5px); font-weight:900; color:#fff; text-transform:uppercase;
    letter-spacing:.2px; line-height:1.15; word-break:break-word;
  }
  .toty-team{ font-size:9.5px; font-weight:800; color:var(--green); margin-top:2px; }
  .toty-player.pos-POR .toty-team{ color:var(--gold); }
  .toty-chips{ display:flex; gap:3px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
  .toty-chips span{
    background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); color:#dbe6f5;
    font-size:9px; font-weight:800; padding:2px 5px; border-radius:6px; white-space:nowrap;
  }
  .toty-slot-empty{
    width:clamp(70px,16vw,116px); min-height:80px; border:1.6px dashed rgba(255,255,255,0.18);
    border-radius:12px; display:flex; align-items:center; justify-content:center;
    color:rgba(255,255,255,0.28); font-size:11px; font-weight:800; text-align:center; padding:8px;
  }
  .toty-empty-pitch{
    position:relative; z-index:3; text-align:center; color:rgba(255,255,255,0.45);
    font-size:13px; font-weight:700; padding:30px 16px;
  }
  .toty-legend{
    position:relative; z-index:3; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:20px;
  }
  .toty-legend span{
    display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,0.05);
    border:1px solid var(--line); border-radius:999px; padding:6px 13px; font-size:11px; font-weight:800; color:var(--text-dim);
  }
  .toty-card{
    position:relative; border-radius:20px; padding:22px 18px 20px; text-align:center; overflow:hidden;
    background:linear-gradient(170deg, rgba(255,194,60,0.16), rgba(10,14,22,0.98) 55%);
    border:1px solid rgba(255,194,60,0.42);
  }
  .toty-card .tc-pos{
    display:inline-block; background:linear-gradient(135deg,#ffc23c,#ff9c1a); color:#241701;
    font-size:10px; font-weight:900; letter-spacing:1.4px; text-transform:uppercase; padding:4px 13px; border-radius:999px;
  }
  .toty-card .tc-jersey{ width:86px; margin:14px auto 10px; filter:drop-shadow(0 0 16px rgba(255,255,255,0.35)); }
  .toty-card .tc-jersey svg{ width:100%; height:auto; display:block; }
  .toty-card .tc-name{ font-family:'Archivo Black',sans-serif; font-size:21px; color:#fff; text-transform:uppercase; line-height:1.1; }
  .toty-card .tc-team{ font-size:12.5px; font-weight:800; color:var(--gold); margin-top:5px; }
  .toty-card .tc-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); gap:9px; margin-top:16px; }
  .toty-card .tc-stat{ background:rgba(255,255,255,0.06); border:1px solid var(--line); border-radius:12px; padding:10px 6px; }
  .toty-card .tc-stat b{ display:block; font-family:'JetBrains Mono',monospace; font-size:18px; color:var(--green); }
  .toty-card .tc-stat span{ display:block; font-size:9.5px; font-weight:800; color:var(--text-dim); text-transform:uppercase; letter-spacing:.5px; margin-top:3px; }
  .toty-card .tc-note{ margin-top:13px; font-size:12px; color:var(--text-dim); font-style:italic; }
  .toty-admin{
    margin-top:24px; background:var(--bg-elev); border:1px solid var(--line); border-radius:18px; padding:18px;
  }
  .toty-admin h4{ font-size:14.5px; font-weight:800; margin-bottom:5px; }
  .toty-admin .ta-hint{ font-size:12px; color:var(--text-dim); margin-bottom:14px; line-height:1.5; }
  .toty-admin-top{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
  .toty-admin input[type=text], .toty-admin input[type=number], .toty-admin select{
    background:var(--bg-elev-3); border:1px solid var(--line); color:var(--text); border-radius:8px;
    padding:8px 10px; font-size:12.5px; font-weight:600; font-family:inherit;
  }
  .toty-admin input[type=text]:focus, .toty-admin input[type=number]:focus, .toty-admin select:focus{
    outline:none; border-color:var(--green);
  }
  .ta-rows{ display:flex; flex-direction:column; gap:10px; }
  .ta-row{
    display:grid; grid-template-columns:92px minmax(120px,1.4fr) minmax(84px,1fr) 60px 66px 66px 52px 50px 50px 50px 132px auto;
    gap:8px; align-items:center; background:var(--bg-elev-2); border:1px solid var(--line-soft);
    border-radius:12px; padding:10px;
  }
  .ta-row .ta-lab{ display:none; }
  .ta-row-actions{ display:flex; gap:5px; }
  .ta-row-actions button{
    background:var(--bg-elev-3); border:1px solid var(--line); color:var(--text-dim);
    border-radius:7px; padding:6px 8px; font-size:12px; font-weight:800; cursor:pointer;
  }
  .ta-row-actions button:hover{ color:var(--text); border-color:var(--green); }
  .ta-row-actions button.ta-del{ color:#ff8c8c; border-color:rgba(229,72,77,0.4); }
  .ta-row-actions button.ta-del:hover{ background:#e5484d; color:#fff; }
  .toty-admin-actions{ display:flex; gap:9px; flex-wrap:wrap; margin-top:15px; }
  .toty-admin-actions button{
    border-radius:9px; padding:9px 16px; font-weight:800; font-size:12.5px; border:1px solid var(--line);
    background:var(--bg-elev-3); color:var(--text); cursor:pointer;
  }
  .toty-admin-actions .ta-add{ background:var(--green); color:#04140b; border-color:transparent; }
  .toty-admin-actions .ta-save{ background:linear-gradient(135deg,var(--green),var(--green-deep)); color:#04121a; border-color:transparent; }
  .toty-admin-actions .ta-pub{ background:linear-gradient(135deg,#ffc23c,#ff9c1a); color:#241701; border-color:transparent; }
  .toty-admin-actions .ta-unpub{ background:var(--bg-elev-3); color:var(--gold); border-color:rgba(255,194,60,0.45); }
  .toty-pubstate{
    display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:800;
    padding:6px 13px; border-radius:999px; border:1px solid var(--line); color:var(--text-dim);
  }
  .toty-pubstate.on{ color:var(--green); border-color:rgba(79,216,255,0.45); background:rgba(79,216,255,0.08); }
  .toty-pubstate.off{ color:var(--gold); border-color:rgba(255,194,60,0.45); background:rgba(255,194,60,0.08); }

  @media (max-width: 860px){
    .ta-row{ grid-template-columns:1fr 1fr; }
    .ta-row .ta-lab{ display:block; font-size:9.5px; font-weight:800; color:var(--text-dim-2); text-transform:uppercase; letter-spacing:.5px; margin-bottom:3px; }
    .ta-row > div{ min-width:0; }
    .ta-row-actions{ grid-column:1 / -1; justify-content:flex-end; }
  }
  @media (max-width: 560px){
    .toty-pitch{ max-width:100%; min-height:340px; }
  }
  .finalist-edit .fin-teamA, .finalist-edit .fin-teamB,
  .finalist-edit select{
    background:var(--bg-elev-3); border:1px solid var(--line); color:var(--text);
    border-radius:8px; padding:8px 10px; font-size:12.5px; font-weight:600; font-family:inherit;
  }
  .finalist-edit .fin-official{
    display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:800;
    color:var(--gold); background:rgba(255,194,60,0.09); border:1px solid rgba(255,194,60,0.35);
    border-radius:8px; padding:7px 11px; cursor:pointer;
  }
  .finalist-edit .fin-official input{ accent-color:var(--gold); width:15px; height:15px; cursor:pointer; }
  .toty-tab-btn{
    position:relative; overflow:hidden;
    background:rgba(10,14,24,0.75) !important;
    border:1.5px solid rgba(255,201,60,0.85) !important;
    color:#ffd970 !important; font-weight:900 !important;
    text-shadow:0 0 8px rgba(255,201,60,0.85);
    animation: totyTabGlow 1.9s ease-in-out infinite;
  }
  .toty-tab-btn.active{ color:#fff8e0 !important; }
  @keyframes totyTabGlow{
    0%,100%{ box-shadow:0 0 6px rgba(255,201,60,0.4), 0 0 14px rgba(255,201,60,0.22); transform:scale(1); }
    50%{ box-shadow:0 0 16px rgba(255,201,60,0.95), 0 0 32px rgba(255,201,60,0.6); transform:scale(1.05); }
  }
  .toty-banner{
    position:relative; z-index:3; display:flex; align-items:center; justify-content:center;
    gap:clamp(14px,4vw,34px); margin-bottom:20px; flex-wrap:wrap; text-align:center;
  }
  .toty-banner-logo{ width:clamp(72px,13vw,108px); height:clamp(72px,13vw,108px); flex-shrink:0; filter:drop-shadow(0 4px 12px rgba(0,0,0,0.55)); }
  .toty-banner-logo img{ width:100%; height:100%; object-fit:contain; }
  .toty-banner-mid{ display:flex; flex-direction:column; align-items:center; gap:3px; }
  .toty-banner-kicker{ font-size:10.5px; font-weight:900; letter-spacing:2.4px; color:var(--gold); text-transform:uppercase; }
  .toty-banner-title{
    font-family:'Archivo Black',sans-serif; font-size:clamp(20px,4.2vw,38px); letter-spacing:.5px;
    color:#fff; text-transform:uppercase; line-height:1.05;
    text-shadow:0 0 26px rgba(255,194,60,0.35), 0 0 60px rgba(39,75,255,0.30);
  }
  .toty-banner-sub{ font-size:11.5px; font-weight:800; letter-spacing:1.6px; color:var(--text-dim); text-transform:uppercase; }
  .toty-emblem{
    width:clamp(72px,13vw,108px); height:clamp(72px,13vw,108px); flex-shrink:0; border-radius:50%;
    background:radial-gradient(circle at 35% 28%, #4a63ff, #0a1140 74%);
    display:flex; align-items:center; justify-content:center; position:relative;
    box-shadow:0 0 22px rgba(39,75,255,0.6), inset 0 0 16px rgba(255,255,255,0.16), 0 0 0 3px rgba(255,217,112,0.55);
  }
  .toty-emblem svg{ width:72%; height:72%; }
  .toty-emblem-label{ position:absolute; bottom:-17px; left:50%; transform:translateX(-50%); font-size:8px; font-weight:900; letter-spacing:1.6px; color:var(--gold); white-space:nowrap; }
  .toty-player{ background:none; border:none; padding:0; cursor:pointer; }
  .toty-card-mini{
    position:relative; width:clamp(74px,15.5vw,108px); aspect-ratio:5/6.6;
    clip-path: polygon(13% 0%, 87% 0%, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0% 87%, 0% 13%);
    background:
      radial-gradient(120% 60% at 12% 8%, rgba(120,150,255,0.22), transparent 55%),
      radial-gradient(90% 50% at 88% 28%, rgba(255,225,140,0.14), transparent 60%),
      radial-gradient(100% 60% at 25% 88%, rgba(80,110,255,0.18), transparent 55%),
      repeating-linear-gradient(115deg, rgba(255,217,112,0.05) 0px, rgba(255,217,112,0.05) 1px, transparent 1px, transparent 15px),
      linear-gradient(118deg, rgba(255,225,140,0) 28%, rgba(255,225,140,0.65) 40%, rgba(255,225,140,0) 52%),
      linear-gradient(98deg, rgba(255,225,140,0) 58%, rgba(255,225,140,0.4) 66%, rgba(255,225,140,0) 74%),
      radial-gradient(120% 65% at 50% 100%, rgba(0,0,0,0.45), rgba(0,0,0,0) 60%),
      linear-gradient(150deg, #263880 0%, #0a0f30 60%, #05060f 100%);
    box-shadow:
      0 8px 20px rgba(0,0,0,0.5),
      0 0 0 1.8px rgba(255,201,60,0.85),
      0 0 0 4.5px rgba(39,75,255,0.28),
      inset 0 0 22px rgba(39,75,255,0.28);
    display:flex; flex-direction:column; align-items:center; padding:6% 5% 5%;
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .toty-card-mini::before{
    content:''; position:absolute; inset:0; pointer-events:none;
    background:linear-gradient(125deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 18%, rgba(255,255,255,0) 34%);
  }
  .toty-player:hover .toty-card-mini{
    transform:translateY(-6px) scale(1.06);
    box-shadow:
      0 14px 30px rgba(0,0,0,0.55),
      0 0 0 1.8px rgba(255,201,60,1),
      0 0 0 5.5px rgba(79,216,255,0.4),
      inset 0 0 26px rgba(39,75,255,0.4);
  }
  .toty-card-mini.pos-POR{
    background:
      radial-gradient(120% 60% at 12% 8%, rgba(255,225,140,0.24), transparent 55%),
      radial-gradient(90% 50% at 88% 28%, rgba(255,180,90,0.16), transparent 60%),
      radial-gradient(100% 60% at 25% 88%, rgba(180,120,20,0.2), transparent 55%),
      repeating-linear-gradient(115deg, rgba(255,217,112,0.06) 0px, rgba(255,217,112,0.06) 1px, transparent 1px, transparent 15px),
      linear-gradient(118deg, rgba(255,225,140,0) 28%, rgba(255,225,140,0.7) 40%, rgba(255,225,140,0) 52%),
      linear-gradient(98deg, rgba(255,225,140,0) 58%, rgba(255,225,140,0.45) 66%, rgba(255,225,140,0) 74%),
      radial-gradient(120% 65% at 50% 100%, rgba(0,0,0,0.45), rgba(0,0,0,0) 60%),
      linear-gradient(150deg, #6b4a05 0%, #201400 60%, #0d0a02 100%);
  }
  .tcm-top{ display:flex; align-items:flex-start; justify-content:center; width:100%; margin-bottom:4%; position:relative; z-index:1; }
  .tcm-ovr{
    display:flex; flex-direction:column; align-items:center; gap:0;
    background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
    border:1px solid rgba(255,225,140,0.5); border-radius:9px; padding:2px 10px 3px;
  }
  .tcm-rating{ font-family:'JetBrains Mono',monospace; font-weight:900; font-size:clamp(14px,3.6vw,20px); color:#ffe9a8; line-height:1.05; text-shadow:0 0 8px rgba(255,201,60,0.7); }
  .tcm-pos{ font-size:clamp(7.5px,1.8vw,9.5px); font-weight:900; color:#ffe9a8; letter-spacing:.6px; }
  .tcm-crest{ width:clamp(13px,3vw,18px); height:clamp(13px,3vw,18px); border-radius:4px; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-size:8px; font-weight:900; color:#fff; overflow:hidden; }
  .tcm-photo{
    position:relative; z-index:1; width:70%; aspect-ratio:1; margin:3% 0 5%; flex-shrink:0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background:linear-gradient(140deg, #ffe9a8, #caa53d 55%, #8a6a1e);
    padding:7%;
    box-shadow:0 0 14px rgba(255,217,112,0.45);
    display:flex; align-items:center; justify-content:center;
  }
  .tcm-photo-inner{
    width:100%; height:100%; overflow:hidden;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background:linear-gradient(160deg,#334299,#0a0f2e);
    display:flex; align-items:center; justify-content:center;
  }
  .tcm-photo-inner img{ width:150%; height:150%; object-fit:cover; display:block; }
  .tcm-photo-inner svg{ width:56%; height:56%; opacity:.6; }
  .tcm-name{
    position:relative; z-index:1;
    font-size:clamp(8px,2vw,10.5px); font-weight:900; color:#fff; text-transform:uppercase;
    text-align:center; line-height:1.14; word-break:break-word; margin-bottom:3%; letter-spacing:.2px;
    min-height:2.2em; display:flex; align-items:center; justify-content:center;
    text-shadow:0 1px 3px rgba(0,0,0,0.6);
  }
  .tcm-divider{ position:relative; z-index:1; width:78%; height:1px; background:linear-gradient(90deg, transparent, rgba(255,217,112,0.85), transparent); margin-bottom:4%; }
  .tcm-stats{ position:relative; z-index:1; display:flex; justify-content:center; gap:6%; width:100%; margin-bottom:auto; }
  .tcm-stat{ display:flex; flex-direction:column; align-items:center; line-height:1.1; }
  .tcm-stat b{ font-family:'JetBrains Mono',monospace; font-size:clamp(8px,2vw,10px); color:#ffe9a8; }
  .tcm-stat span{ font-size:clamp(5.5px,1.4vw,7px); font-weight:800; color:rgba(255,255,255,0.6); letter-spacing:.4px; }
  .tcm-real{
    position:relative; z-index:1;
    margin-top:4%; width:100%; text-align:center; font-size:clamp(7px,1.7vw,9px); font-weight:800;
    color:#8fffb0; background:rgba(0,0,0,0.32); border-radius:6px; padding:2px 3px;
  }
  .toty-card-mini.pos-POR .tcm-real{ color:#ffe9a8; }
  .toty-teamtag{ margin-top:6px; text-align:center; font-size:9.5px; font-weight:800; color:var(--green); }
  .toty-card-big{
    position:relative; width:min(230px,68vw); aspect-ratio:5/6.8; margin:0 auto;
    clip-path: polygon(13% 0%, 87% 0%, 100% 13%, 100% 87%, 87% 100%, 13% 100%, 0% 87%, 0% 13%);
    background:
      radial-gradient(120% 60% at 12% 8%, rgba(120,150,255,0.22), transparent 55%),
      radial-gradient(90% 50% at 88% 28%, rgba(255,225,140,0.14), transparent 60%),
      radial-gradient(100% 60% at 25% 88%, rgba(80,110,255,0.18), transparent 55%),
      repeating-linear-gradient(115deg, rgba(255,217,112,0.05) 0px, rgba(255,217,112,0.05) 1px, transparent 1px, transparent 15px),
      linear-gradient(118deg, rgba(255,225,140,0) 28%, rgba(255,225,140,0.65) 40%, rgba(255,225,140,0) 52%),
      linear-gradient(98deg, rgba(255,225,140,0) 58%, rgba(255,225,140,0.4) 66%, rgba(255,225,140,0) 74%),
      radial-gradient(120% 65% at 50% 100%, rgba(0,0,0,0.45), rgba(0,0,0,0) 60%),
      linear-gradient(150deg, #263880 0%, #0a0f30 60%, #05060f 100%);
    box-shadow:
      0 16px 40px rgba(0,0,0,0.55),
      0 0 0 2.2px rgba(255,201,60,0.9),
      0 0 0 6px rgba(39,75,255,0.3),
      inset 0 0 34px rgba(39,75,255,0.32);
    display:flex; flex-direction:column; align-items:center; padding:7% 8% 6%;
  }
  .toty-card-big::before{
    content:''; position:absolute; inset:0; pointer-events:none;
    background:linear-gradient(125deg, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0.05) 18%, rgba(255,255,255,0) 34%);
  }
  .toty-card-big.pos-POR{
    background:
      radial-gradient(120% 60% at 12% 8%, rgba(255,225,140,0.24), transparent 55%),
      radial-gradient(90% 50% at 88% 28%, rgba(255,180,90,0.16), transparent 60%),
      radial-gradient(100% 60% at 25% 88%, rgba(180,120,20,0.2), transparent 55%),
      repeating-linear-gradient(115deg, rgba(255,217,112,0.06) 0px, rgba(255,217,112,0.06) 1px, transparent 1px, transparent 15px),
      linear-gradient(118deg, rgba(255,225,140,0) 28%, rgba(255,225,140,0.7) 40%, rgba(255,225,140,0) 52%),
      linear-gradient(98deg, rgba(255,225,140,0) 58%, rgba(255,225,140,0.45) 66%, rgba(255,225,140,0) 74%),
      radial-gradient(120% 65% at 50% 100%, rgba(0,0,0,0.45), rgba(0,0,0,0) 60%),
      linear-gradient(150deg, #6b4a05 0%, #201400 60%, #0d0a02 100%);
  }
  .tcb-top{ display:flex; align-items:flex-start; justify-content:center; width:100%; position:relative; z-index:1; }
  .tcb-ovr{
    display:flex; flex-direction:column; align-items:center;
    background:linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
    border:1px solid rgba(255,225,140,0.5); border-radius:12px; padding:4px 16px 6px;
  }
  .tcb-rating{ font-family:'JetBrains Mono',monospace; font-weight:900; font-size:32px; color:#ffe9a8; line-height:1.05; text-shadow:0 0 14px rgba(255,201,60,0.7); }
  .tcb-pos{ font-size:13px; font-weight:900; color:#ffe9a8; letter-spacing:1.2px; }
  .tcb-photo{
    position:relative; z-index:1; width:60%; aspect-ratio:1; margin:6% 0; flex-shrink:0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background:linear-gradient(140deg, #ffe9a8, #caa53d 55%, #8a6a1e);
    padding:6%;
    box-shadow:0 0 20px rgba(255,217,112,0.5);
    display:flex; align-items:center; justify-content:center;
  }
  .tcb-photo-inner{
    width:100%; height:100%; overflow:hidden;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background:linear-gradient(160deg,#334299,#0a0f2e);
    display:flex; align-items:center; justify-content:center;
  }
  .tcb-photo-inner img{ width:150%; height:150%; object-fit:cover; display:block; }
  .tcb-photo-inner svg{ width:56%; height:56%; opacity:.6; }
  .tcb-name{ position:relative; z-index:1; font-family:'Archivo Black',sans-serif; font-size:19px; color:#fff; text-transform:uppercase; text-align:center; line-height:1.1; text-shadow:0 1px 4px rgba(0,0,0,0.6); }
  .tcb-team{ position:relative; z-index:1; font-size:12px; font-weight:800; color:var(--gold); margin-top:5px; }
  .tcb-divider{ position:relative; z-index:1; width:82%; height:1px; background:linear-gradient(90deg, transparent, rgba(255,217,112,0.85), transparent); margin:12px 0; }
  .tcb-stats{ position:relative; z-index:1; display:flex; justify-content:center; gap:16px; width:100%; }
  .tcb-stat{ display:flex; flex-direction:column; align-items:center; }
  .tcb-stat b{ font-family:'JetBrains Mono',monospace; font-size:17px; color:#ffe9a8; }
  .tcb-stat span{ font-size:9px; font-weight:800; color:rgba(255,255,255,0.6); letter-spacing:.5px; margin-top:2px; }
  .tcb-real{ position:relative; z-index:1; margin-top:14px; font-size:13px; font-weight:800; color:#8fffb0; background:rgba(0,0,0,0.34); border-radius:9px; padding:6px 14px; }
  .toty-card-big.pos-POR .tcb-real{ color:#ffe9a8; }
  .toty-zone{
    position:absolute; left:0; right:0; height:33.333%; z-index:0;
    display:flex; align-items:flex-start; justify-content:center; padding-top:8px; pointer-events:none;
  }
  .toty-zone-ata{ top:0; background:linear-gradient(180deg, rgba(255,91,91,0.16), rgba(255,91,91,0) 92%); }
  .toty-zone-def{ top:33.333%; background:linear-gradient(180deg, rgba(47,155,255,0.03), rgba(47,155,255,0.14) 50%, rgba(47,155,255,0.03)); }
  .toty-zone-por{ top:66.666%; background:linear-gradient(0deg, rgba(255,194,60,0.18), rgba(255,194,60,0) 92%); }
  .toty-zone-tag{
    display:flex; align-items:center; gap:5px; font-size:10px; font-weight:900;
    letter-spacing:1.6px; text-transform:uppercase; padding:4px 12px; border-radius:999px;
    color:#fff; background:rgba(4,8,16,0.6); border:1px solid rgba(255,255,255,0.2);
  }
  .toty-zone-ata .toty-zone-tag{ border-color:rgba(255,91,91,0.6); }
  .toty-zone-def .toty-zone-tag{ border-color:rgba(47,155,255,0.6); }
  .toty-zone-por .toty-zone-tag{ border-color:rgba(255,194,60,0.6); }
  .toty-empty-pitch{
    position:absolute; inset:0; z-index:2; display:flex; align-items:center; justify-content:center;
    text-align:center; color:rgba(255,255,255,0.4); font-size:13px; font-weight:700; padding:0 20px;
  }
  .ta-photo-cell{ display:flex; align-items:center; gap:8px; }
  .ta-photo-thumb{
    width:38px; height:38px; border-radius:50%; overflow:hidden; flex-shrink:0;
    background:linear-gradient(160deg,#2a3a8f,#0a0f2e); border:1.5px solid var(--line);
    display:flex; align-items:center; justify-content:center;
  }
  .ta-photo-thumb img{ width:100%; height:100%; object-fit:cover; }
  .ta-photo-thumb svg{ width:60%; height:60%; opacity:.55; }
  .ta-photo-btns{ display:flex; flex-direction:column; gap:3px; }
  .ta-photo-btns label, .ta-photo-btns button{
    font-size:10px; font-weight:800; padding:3px 7px; border-radius:6px; cursor:pointer;
    background:var(--bg-elev-3); border:1px solid var(--line); color:var(--text-dim); text-align:center;
  }
  .ta-photo-btns input[type=file]{ display:none; }
  .toty-reveal-overlay{
    position:fixed; inset:0; z-index:9999; background:radial-gradient(120% 100% at 50% 30%, #101a3d, #04060f 70%);
    display:flex; align-items:center; justify-content:center; overflow:hidden;
    opacity:1; transition:opacity .55s ease;
  }
  .toty-reveal-overlay.stage-out{ opacity:0; pointer-events:none; }
  .tr-skip{
    position:absolute; top:18px; right:18px; z-index:20; background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.25); color:#fff; font-size:11.5px; font-weight:800;
    padding:8px 16px; border-radius:999px; cursor:pointer;
  }
  .tr-scene{ position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
  .tr-pitch-bg{
    position:absolute; inset:0; opacity:.35;
    background:repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 40px, transparent 40px 80px);
  }
  .tr-player{ position:absolute; width:min(120px,22vw); left:22%; bottom:30%; opacity:0; }
  .tr-ball{ position:absolute; width:min(30px,6vw); left:26%; bottom:34%; opacity:0; }
  .stage-goal .tr-player{ opacity:1; animation: trPlayerKick 1.1s ease forwards; }
  .stage-goal .tr-ball{ opacity:1; animation: trBallFly 1.1s ease forwards; }
  @keyframes trPlayerKick{
    0%{ transform:translateX(0) scale(1); }
    35%{ transform:translateX(6%) rotate(-6deg) scale(1.03); }
    100%{ transform:translateX(10%) scale(1); }
  }
  @keyframes trBallFly{
    0%{ transform:translate(0,0) scale(1); opacity:1; }
    75%{ transform:translate(160%, -60%) scale(0.6); opacity:1; }
    100%{ transform:translate(210%, -78%) scale(0.2); opacity:0; }
  }
  .tr-goaltext{
    position:absolute; font-family:'Archivo Black',sans-serif; font-size:clamp(30px,8vw,64px);
    color:#ffe9a8; text-shadow:0 0 30px rgba(255,201,60,0.85), 0 0 60px rgba(255,120,20,0.5);
    opacity:0; letter-spacing:2px;
  }
  .stage-celebrate .tr-goaltext{ animation: trGoalPop .9s cubic-bezier(.2,1.4,.4,1) forwards; }
  @keyframes trGoalPop{
    0%{ opacity:0; transform:scale(0.3) rotate(-6deg); }
    55%{ opacity:1; transform:scale(1.15) rotate(2deg); }
    100%{ opacity:1; transform:scale(1) rotate(0); }
  }
  .tr-player.tr-celebrate{ opacity:0; }
  .stage-celebrate .tr-player{ opacity:0; }
  .stage-celebrate .tr-player.tr-celebrate{
    opacity:1; left:50%; bottom:36%; transform:translateX(-50%);
    animation: trCelebrateBounce 1.4s ease-in-out infinite;
  }
  @keyframes trCelebrateBounce{
    0%,100%{ transform:translateX(-50%) translateY(0); }
    50%{ transform:translateX(-50%) translateY(-6%); }
  }
  .tr-trophy{
    position:absolute; width:min(140px,26vw); opacity:0; filter:drop-shadow(0 0 30px rgba(255,201,60,0.7));
  }
  .stage-trophy .tr-trophy{ animation: trTrophyIn 1s cubic-bezier(.2,1.5,.3,1) forwards; }
  .stage-trophy .tr-goaltext, .stage-trophy .tr-player{ opacity:0; }
  @keyframes trTrophyIn{
    0%{ opacity:0; transform:scale(0.2) translateY(40px); }
    70%{ opacity:1; transform:scale(1.12) translateY(-6px); }
    100%{ opacity:1; transform:scale(1) translateY(0); }
  }
  .tr-confetti-piece{
    position:absolute; top:-5%; width:8px; height:14px; opacity:0; border-radius:2px;
    animation-name: trConfettiFall; animation-timing-function:linear; animation-fill-mode:forwards;
  }
  @keyframes trConfettiFall{
    0%{ opacity:1; transform:translateY(0) rotate(0deg); }
    100%{ opacity:.9; transform:translateY(115vh) rotate(560deg); }
  }
  .tr-reveal-title{
    position:absolute; text-align:center; opacity:0; z-index:5;
  }
  .tr-reveal-kicker{ font-size:12px; font-weight:900; letter-spacing:3px; color:var(--gold); text-transform:uppercase; }
  .tr-reveal-big{
    font-family:'Archivo Black',sans-serif; font-size:clamp(30px,7vw,58px); color:#fff;
    text-transform:uppercase; text-shadow:0 0 30px rgba(255,201,60,0.7), 0 0 60px rgba(39,75,255,0.6);
  }
  .stage-confetti .tr-trophy{ animation: trTrophyOut .6s ease forwards; }
  @keyframes trTrophyOut{ 0%{ opacity:1; } 100%{ opacity:0; transform:scale(0.85) translateY(-20px); } }
  .stage-confetti .tr-reveal-title{ animation: trRevealIn 1s cubic-bezier(.2,1.3,.3,1) .3s forwards; }
  @keyframes trRevealIn{
    0%{ opacity:0; transform:scale(0.7) translateY(20px); }
    100%{ opacity:1; transform:scale(1) translateY(0); }
  }
  .tr-rays{
    position:absolute; width:140vmax; height:140vmax; z-index:1; opacity:0;
    background: repeating-conic-gradient(rgba(255,201,60,0.18) 0deg 6deg, transparent 6deg 22deg);
    border-radius:50%;
    -webkit-mask-image: radial-gradient(circle, black 0%, black 28%, transparent 70%);
    mask-image: radial-gradient(circle, black 0%, black 28%, transparent 70%);
    animation: trRaysSpin 16s linear infinite;
    pointer-events:none;
    transition:opacity .5s ease;
  }
  @keyframes trRaysSpin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
  .stage-trophy .tr-rays, .stage-confetti .tr-rays{ opacity:1; }
  .tr-flash{ position:absolute; inset:0; background:#fff; opacity:0; z-index:15; pointer-events:none; }
  .stage-confetti .tr-flash{ animation: trFlash .5s ease forwards; }
  @keyframes trFlash{ 0%{ opacity:0; } 14%{ opacity:0.9; } 100%{ opacity:0; } }

  @media (max-width:560px){
    .toty-banner{ gap:10px; }
    .toty-card-mini{ width:clamp(64px,20vw,90px); }
  }
