.af{--af-line:rgba(245,215,110,.22);--af-card:#15100f;--af-card-2:#1c1513;--af-green:#86d443;max-width:1040px;margin:0 auto;padding-bottom:var(--space-2xl,48px)}
.af-hero{position:relative;overflow:hidden;padding:clamp(24px,5vw,52px);border:1px solid var(--af-line);border-radius:20px;background:radial-gradient(90% 130% at 88% -20%,rgba(245,215,110,.17),transparent 62%),radial-gradient(70% 110% at 0 110%,rgba(150,54,32,.3),transparent 64%),linear-gradient(180deg,#1b1412,#0f0b0a);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 22px 54px rgba(0,0,0,.42)}
.af-kicker{display:inline-block;margin-bottom:12px;color:var(--gold-bright);font:800 .78rem/1 var(--font-display);letter-spacing:.08em;text-transform:uppercase}
.af-hero h1{margin:0;max-width:760px;color:var(--text-bright);font-family:var(--font-display);font-size:clamp(2rem,5.4vw,3.5rem);line-height:1.04}
.af-hero>p{margin:14px 0 0;max-width:620px;color:var(--text-muted);font-size:clamp(.98rem,1.5vw,1.1rem);line-height:1.55}
.af-form{margin-top:clamp(20px,3vw,32px);max-width:680px}
.af-label{display:block;margin-bottom:8px;color:var(--text-bright);font-size:.86rem;font-weight:700}
.af-field{display:flex;align-items:center;gap:8px;padding:7px 8px 7px 16px;border:2px solid rgba(245,215,110,.42);border-radius:16px;background:#080605;transition:border-color .15s,box-shadow .15s}
.af-field:focus-within{border-color:var(--gold-bright);box-shadow:0 0 0 4px rgba(245,215,110,.16)}
.af-hash{color:var(--gold-bright);font-size:1.3rem;font-weight:800;line-height:1}
.af-field input{flex:1 1 auto;min-width:0;height:46px;border:0;outline:0;background:none;color:var(--text-bright);font-size:1.15rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.af-field input::placeholder{color:rgba(255,255,255,.26);font-weight:600}
.af-submit{flex:0 0 auto;min-height:46px;white-space:nowrap}
.af-hint{margin:9px 0 0;color:var(--text-muted);font-size:.82rem}
.af-status{margin-top:18px;padding:14px 16px;border:1px solid var(--af-line);border-radius:14px;background:var(--af-card);color:var(--text-bright)}
.af-status.is-error{border-color:rgba(239,68,68,.45);background:rgba(127,29,29,.2)}
.af-status.is-busy::before{content:"";display:inline-block;width:14px;height:14px;margin-right:10px;vertical-align:-2px;border:2px solid rgba(245,215,110,.28);border-top-color:var(--gold-bright);border-radius:50%;animation:af-spin .8s linear infinite}
@keyframes af-spin{to{transform:rotate(360deg)}}
.af-results{margin-top:22px;scroll-margin-top:84px;display:grid;gap:16px}
.af-player{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 18px;border:1px solid var(--af-line);border-radius:16px;background:var(--af-card)}
.af-player-main{display:flex;align-items:center;gap:13px;min-width:0}
.af-player-main img{width:48px;height:48px;object-fit:contain}
.af-player h2{margin:0;color:var(--text-bright);font-family:var(--font-display);font-size:1.45rem;line-height:1.1;overflow-wrap:anywhere}
.af-player-meta{margin-top:4px;color:var(--text-muted);font-size:.86rem}
.af-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--af-line);border-radius:14px;background:#0b0807;justify-self:start}
.af-tab{min-width:104px;min-height:42px;padding:0 16px;border:0;border-radius:10px;background:none;color:#d9cdb4;font-size:.92rem;font-weight:800;text-shadow:none;cursor:pointer}
.af-tab[aria-selected=true]{background:var(--g-mat-gold,linear-gradient(180deg,#f5d76e,#b8861c));color:#231503}
.af-tab:focus-visible,.af-copy:focus-visible,.af-share:focus-visible{outline:3px solid var(--gold-bright);outline-offset:2px}
.af-tab small{margin-left:5px;font:700 .76rem var(--font-body,inherit);opacity:.8}
.af-armies{display:grid;gap:14px}
.af-army{padding:clamp(14px,2.4vw,22px);border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(180deg,var(--af-card-2),var(--af-card))}
.af-army.is-top{border-color:rgba(245,215,110,.5);box-shadow:0 0 0 1px rgba(245,215,110,.12),0 16px 36px rgba(0,0,0,.36)}
.af-army-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.af-badge{display:inline-block;padding:5px 11px;border-radius:999px;background:rgba(245,215,110,.14);color:var(--gold-bright);font-size:.76rem;font-weight:800;letter-spacing:.03em}
.af-army-last{color:var(--text-muted);font-size:.82rem}
.af-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:16px}
.af-stat{padding:10px 12px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(0,0,0,.24)}
.af-stat strong{display:block;color:var(--text-bright);font-size:1.25rem;line-height:1.1}
.af-stat span{display:block;margin-top:4px;color:var(--text-muted);font-size:.74rem}
.af-group+.af-group{margin-top:14px}
.af-group h3{margin:0 0 8px;color:var(--text-muted);font-size:.74rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.af-units{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.af-unit{position:relative;display:grid;justify-items:center;gap:5px;min-width:0;padding:8px 4px 7px;border:1px solid rgba(245,215,110,.14);border-radius:12px;background:rgba(245,215,110,.045)}
.af-unit img,.af-unit-mono{display:block;width:44px;height:44px;object-fit:contain}
.af-unit-mono{display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.07);color:var(--gold-bright);font-weight:800;font-size:.8rem}
.af-unit-qty{position:absolute;top:4px;right:4px;min-width:22px;padding:2px 5px;border-radius:999px;background:#080605;color:var(--gold-bright);font-size:.72rem;font-weight:800;text-align:center}
.af-unit-name{width:100%;overflow:hidden;color:var(--text-muted);font-size:.68rem;line-height:1.2;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.af-army-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.af-copy{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:2px solid var(--g-go-edge,#173304);border-radius:14px;background:var(--g-mat-go,linear-gradient(180deg,#c6f58c,#46881a));box-shadow:inset 0 -3px 0 rgba(0,0,0,.18),0 4px 0 var(--g-go-lip,#2c5c0c);color:#fff;font:800 1rem var(--font-display);text-decoration:none;text-shadow:0 2px 0 var(--g-go-edge,#173304)}
.af-empty{padding:26px 22px;border:1px dashed var(--af-line);border-radius:16px;background:var(--af-card);text-align:center}
.af-empty h3{margin:0;color:var(--text-bright);font-size:1.1rem}
.af-empty p{margin:8px auto 0;max-width:520px;color:var(--text-muted);font-size:.9rem}
.af-about{margin-top:clamp(26px,5vw,44px)}
.af-about h2{margin:0 0 14px;color:var(--text-bright);font-family:var(--font-display);font-size:1.35rem}
.af-about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.af-about-grid>div{padding:16px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:var(--af-card)}
.af-about-grid strong{color:var(--gold-bright);font-size:.95rem}
.af-about-grid p{margin:7px 0 0;color:var(--text-muted);font-size:.86rem;line-height:1.5}
@media(max-width:760px){
  .af-hero{border-radius:16px}
  .af-field{flex-wrap:wrap;padding:8px 10px}
  .af-field input{flex:1 1 60%}
  .af-submit{flex:1 1 100%;width:100%;justify-content:center}
  .af-tabs{display:flex}.af-tab{flex:1 1 0;min-width:0}
  .af-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .af-about-grid{grid-template-columns:1fr}
  .af-copy{flex:1 1 100%}
  .af-share{flex:1 1 100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.af-status.is-busy::before{animation:none}.af-field{transition:none}}
@media(max-width:420px){.af-units{grid-template-columns:repeat(4,minmax(0,1fr))}}
