/* Aurora FUT 16: FIFA 16's Ultimate Team look, loaded after app.css.
   Everything here comes from the game (served by the Aurora16 web host from the owner's install, /fifa16/...):
   - the fonts: EA Heavy, EA HelveticaNeue Con Bold, EA HelveticaNeue Med (data_startup.big data/ui/fonts)
   - the hub: tile places and sizes from futfluxhubcfg.xml on a 1920x1080 screen, tile pictures gamehub_*
   - the colours: tile text #e6e6e6 and its focus frame #e6e6e6 with black text (FluxTile_HighlightUsing2Img),
     the squad screen's accent #32ccf8 (FUTSquads), the FUT backgrounds (fut_backgrounds_*) */
@font-face { font-family: 'EA Heavy'; src: url('/fifa16/fonts/eaheavy.woff2') format('woff2'), url('/fifa16/fonts/eaheavy.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'EA Con'; src: url('/fifa16/fonts/eahelveticaneueconbol-mod.woff2') format('woff2'), url('/fifa16/fonts/eahelveticaneueconbol-mod.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'EA Med'; src: url('/fifa16/fonts/eahelveticaneuemed-mod.woff2') format('woff2'), url('/fifa16/fonts/eahelveticaneuemed-mod.ttf') format('truetype'); font-display: swap; }

:root {
  --f16-text: #e6e6e6;
  --f16-dim: rgba(230, 230, 230, .6);
  --f16-accent: #32ccf8;
  --f16-gold: #f2c33c;
  --f16-panel: rgba(6, 12, 16, .78);
  --f16-panel2: rgba(255, 255, 255, .07);
  --f16-line: rgba(230, 230, 230, .16);
  --bg: #0b2530; --bg2: #0e2c39; --panel: var(--f16-panel); --panel2: rgba(16, 26, 32, .9); --line: var(--f16-line);
  --text: var(--f16-text); --muted: #a9b9c0; --cyan: var(--f16-accent); --violet: var(--f16-accent); --pink: var(--f16-text);
  --gold: var(--f16-gold); --brand: linear-gradient(90deg, var(--f16-gold), var(--f16-accent)); --radius: 0px;
  --font: 'EA Med', 'Helvetica Neue', Arial, sans-serif;
  --cond: 'EA Con', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --u: calc(min(100vw, 1920px) / 1920);
}
body.wa-app {
  color: var(--f16-text);
  font-family: var(--font);
}
body.wa-app .au-intro { display: none; }

/* ---- frame: top bar + tabs ---- */
.f16 { min-height: 100vh; padding-bottom: calc(80 * var(--u)); }
.f16-top {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-items: center;
  height: calc(250 * var(--u)); min-height: 120px; padding: 0 calc(109 * var(--u));
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 70%, transparent);
}
.f16-brand img { display: block; height: calc(150 * var(--u)); min-height: 70px; margin: calc(-10 * var(--u)) 0 0 calc(-30 * var(--u)); }
.f16-meta { justify-self: end; display: flex; align-items: center; gap: calc(34 * var(--u)); font-family: var(--cond); text-transform: uppercase; }
.f16-club { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.f16-club b { font-size: max(15px, calc(32 * var(--u))); font-weight: normal; color: #fff; }
.f16-club small { font-family: var(--font); text-transform: none; font-size: max(12px, calc(20 * var(--u))); color: var(--f16-dim); }
.f16-coins, .f16-points { display: flex; align-items: center; gap: calc(10 * var(--u)); font-family: 'EA Heavy', var(--cond); font-size: max(16px, calc(34 * var(--u))); color: #fff; }
.f16-coins img, .f16-points img { width: max(28px, calc(60 * var(--u))); height: auto; margin: calc(-12 * var(--u)) 0; }
.f16-coins b, .f16-points b { font-weight: normal; }
.f16-out { font-size: max(12px, calc(20 * var(--u))); color: var(--f16-dim); border: 1px solid var(--f16-line); padding: 6px 12px; }
.f16-out:hover { color: #000; background: var(--f16-text); }
.f16-tabs { grid-column: 1 / -1; display: flex; gap: calc(54 * var(--u)); align-self: end; overflow-x: auto; scrollbar-width: none; }
.f16-tabs a {
  position: relative; flex: none; padding: 0 0 calc(18 * var(--u)); font-family: var(--cond); text-transform: uppercase;
  font-size: max(15px, calc(34 * var(--u))); color: var(--f16-dim); letter-spacing: .01em;
}
.f16-tabs a:hover { color: #fff; }
.f16-tabs a.on { color: #fff; }
.f16-tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: max(3px, calc(6 * var(--u))); background: var(--f16-text); }
.f16-dot { position: absolute; top: 2px; right: -12px; width: 8px; height: 8px; border-radius: 50%; background: var(--f16-gold); }

/* ---- hub: FIFA 16's tile grid ---- */
.f16-body { position: relative; width: calc(1702 * var(--u)); min-width: min(100% - 32px, 760px); margin: calc(28 * var(--u)) auto 0; }
.f16-hub { position: relative; width: 100%; aspect-ratio: 1702 / 632; container-type: inline-size; }
.f16-tile {
  --t: calc(100cqw / 1702);
  position: absolute; overflow: hidden; display: block; color: var(--f16-text);
  background: linear-gradient(135deg, rgba(12, 20, 26, .9), rgba(12, 20, 26, .7));
  transition: box-shadow .12s;
}
.f16-tile-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }
.f16-tile-head { position: absolute; left: 0; right: 0; top: 0; padding: calc(12 * var(--t)) calc(18 * var(--t)) calc(10 * var(--t)); background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); transition: background .12s; }
.f16-tile h2 { margin: 0; font-family: var(--cond); font-weight: normal; text-transform: uppercase; line-height: 1; font-size: calc(46 * var(--t)); color: var(--f16-text); text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.f16-tile.m h2 { font-size: calc(40 * var(--t)); }
.f16-tile.s h2 { font-size: calc(34 * var(--t)); }
.f16-tile-head p { margin: calc(6 * var(--t)) 0 0; font-family: var(--font); font-size: calc(22 * var(--t)); color: var(--f16-text); opacity: .85; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.f16-tile-in { position: absolute; inset: 0; }
.f16-tile-foot { position: absolute; right: calc(18 * var(--t)); bottom: calc(12 * var(--t)); font-family: var(--cond); font-size: calc(20 * var(--t)); text-transform: uppercase; color: var(--f16-text); }
.f16-ingame { padding: calc(4 * var(--t)) calc(10 * var(--t)); background: rgba(0, 0, 0, .6); }
.f16-big { position: absolute; left: calc(18 * var(--t)); bottom: calc(12 * var(--t)); display: flex; align-items: baseline; gap: calc(12 * var(--t)); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.f16-big b { font-family: 'EA Heavy', var(--cond); font-weight: normal; font-size: calc(110 * var(--t)); line-height: .9; color: #fff; }
.f16-tile.m .f16-big b { font-size: calc(90 * var(--t)); }
.f16-big small { font-family: var(--cond); font-size: calc(30 * var(--t)); text-transform: uppercase; }
/* focus: FIFA 16 frames the tile in #e6e6e6 and turns its header light with black text */
a.f16-tile:hover, a.f16-tile:focus-visible { box-shadow: inset 0 0 0 calc(6 * var(--t)) var(--f16-text); outline: none; }
a.f16-tile:hover .f16-tile-head, a.f16-tile:focus-visible .f16-tile-head { background: var(--f16-text); }
a.f16-tile:hover .f16-tile-head h2, a.f16-tile:hover .f16-tile-head p,
a.f16-tile:focus-visible .f16-tile-head h2, a.f16-tile:focus-visible .f16-tile-head p { color: #000; text-shadow: none; opacity: 1; }
.f16-tile.plain { background: linear-gradient(135deg, rgba(20, 30, 36, .92), rgba(10, 16, 20, .8)); }
.f16-tile.banner { background: linear-gradient(90deg, rgba(6, 12, 16, .92) 45%, rgba(6, 12, 16, .55)); }
.f16-banner-art { position: absolute; right: calc(24 * var(--t)); top: 50%; height: 90%; transform: translateY(-50%); }
.f16-tile-pack { position: absolute; right: calc(40 * var(--t)); top: 50%; height: 84%; transform: translateY(-50%) rotate(6deg); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.f16-tile.store { background: url('/fifa16/bg/default.webp') center / cover; }
.f16-store-art { position: absolute; left: 50%; top: 56%; width: 78%; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.f16-tile.squad { background: url('/fifa16/hub/squaddefault.webp') center 62% / 92% auto no-repeat, linear-gradient(135deg, rgba(12, 20, 26, .9), rgba(12, 20, 26, .7)); }
.f16-lineup { position: absolute; left: 6%; right: 6%; top: 17%; bottom: 3%; }
.f16-lineup > span { position: absolute; transform: translate(-50%, -50%); }
.f16-lineup .fcard { width: calc(84 * var(--t)); }
.f16-lineup i { display: grid; place-items: center; width: calc(70 * var(--t)); height: calc(70 * var(--t)); border: 2px dashed rgba(230, 230, 230, .4); font: normal calc(20 * var(--t)) var(--cond); color: var(--f16-dim); }

/* ---- pages under the tabs ---- */
.f16.is-page .f16-body { margin-top: 0; }
.f16-title { width: calc(1702 * var(--u)); min-width: min(100% - 32px, 760px); margin: calc(30 * var(--u)) auto calc(22 * var(--u)); }
.f16-title a { display: inline-block; font-family: var(--cond); text-transform: uppercase; font-size: max(13px, calc(22 * var(--u))); color: var(--f16-dim); }
.f16-title a::after { content: ' /'; }
.f16-title a:hover { color: #fff; }
.f16-title h1 { margin: 0; font-family: var(--cond); font-weight: normal; text-transform: uppercase; font-size: max(26px, calc(58 * var(--u))); line-height: 1; color: #fff; }
.f16 .wa-site-page { padding: 0; }

/* the app's components, FIFA 16 style: flat dark panels, light text, #e6e6e6 for what is selected */
.f16 .block, .f16 .panel, .f16 .wa-tile, .f16 .wa-sbc, .f16 .wa-pack, .f16 .wa-item, .f16 .side-block, .f16 .sbc-card, .f16 .pp-side,
.modal-box, .picker { background: var(--f16-panel) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none; }
.f16 h1, .f16 h2, .f16 h3, .modal-box h3 { font-family: var(--cond); font-weight: normal; text-transform: uppercase; letter-spacing: .01em; }
.f16 .block-head h2, .f16 .wa-tile h2 { color: var(--f16-text); font-style: normal; }
.btn, .f16 .btn { border-radius: 0 !important; font-family: var(--cond); font-weight: normal; text-transform: uppercase; letter-spacing: .02em; box-shadow: none; }
.btn.primary { background: var(--f16-text) !important; color: #000 !important; border: 0 !important; }
.btn.primary:hover:not(:disabled) { background: #fff !important; }
.btn.ghost, .btn:not(.primary) { background: rgba(0, 0, 0, .35); color: var(--f16-text); border: 2px solid rgba(230, 230, 230, .45); }
.btn.ghost:hover, .btn:not(.primary):hover { background: var(--f16-text); color: #000; }
.btn:disabled { opacity: .45; }
.f16 input, .f16 select, .modal-box input, .modal-box select { border-radius: 0 !important; background: rgba(0, 0, 0, .55) !important; border: 1px solid rgba(230, 230, 230, .25) !important; color: var(--f16-text) !important; font-family: var(--font); }
.f16 input:focus, .f16 select:focus { border-color: var(--f16-text) !important; outline: none; }
/* tab rows inside pages (SBC groups, store tabs, filters) */
.f16 .wa-subtabs, .f16 .ob-tabs, .f16 .st-tabs, .f16 .chips, .f16 .wa-tabs { background: transparent !important; border: 0; border-radius: 0; gap: calc(40 * var(--u)); padding: 0; box-shadow: none; }
.f16 .wa-subtabs a, .f16 .ob-tabs button, .f16 .st-tabs button, .f16 .chips button, .f16 .wa-tabs a {
  background: transparent !important; border: 0 !important; border-radius: 0; color: var(--f16-dim) !important; font-family: var(--cond); font-style: normal;
  text-transform: uppercase; font-size: max(15px, calc(28 * var(--u))); padding: 0 0 10px; box-shadow: none !important; position: relative;
}
.f16 .wa-subtabs a.on, .f16 .ob-tabs button.on, .f16 .st-tabs button.on, .f16 .chips button.on, .f16 .wa-tabs a.on { color: #fff !important; }
.f16 .wa-subtabs a.on::after, .f16 .ob-tabs button.on::after, .f16 .st-tabs button.on::after, .f16 .chips button.on::after, .f16 .wa-tabs a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--f16-text); }
.f16 .wa-subtabs { display: flex; justify-content: flex-start; margin: 0 0 22px; }
/* SBC list */
.f16 .wa-sbc-grid { gap: 10px; }
.f16 .wa-sbc { transition: box-shadow .12s; }
.f16 .wa-sbc:hover { box-shadow: inset 0 0 0 4px var(--f16-text); }
.f16 .wa-sbc h3 { color: #fff; font-style: normal; font-size: 30px; }
.f16 .wa-sbc-txt small, .f16 .wa-sbc-txt p { color: var(--f16-dim); }
.f16 .wa-progress { background: rgba(255, 255, 255, .12); border-radius: 0; }
.f16 .wa-progress > span { background: var(--f16-accent); border-radius: 0; }
.f16 .wa-progress em { font-family: var(--cond); font-style: normal; color: #fff; }
.f16 .wa-sbc-rew { background: rgba(255, 255, 255, .06) !important; font-family: var(--cond); text-transform: uppercase; }
.f16 .wa-fav { color: rgba(230, 230, 230, .5); }
.f16 .wa-fav.on { color: var(--f16-gold); }
/* store */
.f16 .st-list, .f16 .wa-packs { gap: 10px; }
.f16 .wa-pack { padding: 18px 14px; text-align: center; }
.f16 .wa-pack-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none !important; border: 0 !important; box-shadow: none !important; aspect-ratio: auto; height: auto; clip-path: none; }
.f16 .wa-pack-art::before, .f16 .wa-pack-art::after { display: none !important; }
.f16-pack-img { display: block; width: min(150px, 70%); height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
.f16-pack-name { position: static !important; font-family: var(--cond); font-size: 22px; text-transform: uppercase; color: #fff; text-align: center; }
.f16 .st-chip { border-radius: 0; background: rgba(255, 255, 255, .08) !important; color: var(--f16-text) !important; font-family: var(--cond); }
.f16 .st-chip.q-gold, .f16 .st-chip.rare { background: rgba(242, 195, 60, .2) !important; }
.f16 .st-odds, .f16 .link-btn { color: var(--f16-accent); }
.coin { background-image: url('/fifa16/live/4.webp') !important; background-size: contain !important; background-repeat: no-repeat; background-position: center; border: 0 !important; box-shadow: none !important; }
/* cards in lists */
.f16 .wa-grid, .f16 .wa-items { gap: 14px; }
.f16 .muted, .f16 small.muted { color: var(--f16-dim); }
.f16 .empty { background: var(--f16-panel); color: var(--f16-dim); border-radius: 0; }
.f16 .loading { color: var(--f16-dim); font-family: var(--cond); text-transform: uppercase; }
.modal { background: rgba(0, 0, 0, .72); }
.toast { border-radius: 0; background: var(--f16-text); color: #000; font-family: var(--cond); text-transform: uppercase; }

/* ---- sign in ---- */
.f16-login { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 560px) 1fr; align-items: center; gap: 40px; padding: 0 calc(109 * var(--u)); overflow: hidden; }
.f16-login-box { position: relative; z-index: 1; padding: 40px; background: var(--f16-panel); }
.f16-login-logo { display: block; width: 260px; margin: -30px 0 0 -30px; }
.f16-login-box h1 { margin: 0 0 8px; font: normal 52px var(--cond); text-transform: uppercase; color: #fff; }
.f16-login-box p { margin: 0 0 26px; color: var(--f16-text); line-height: 1.45; }
.f16-login-box small { display: block; margin-top: 16px; color: var(--f16-dim); }
.f16-login-btn { display: block; width: 100%; margin-top: 10px; padding: 14px; font-size: 20px; text-align: center; }
.f16-login-art { width: min(720px, 100%); justify-self: center; filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .5)); }

/* ---- FIFA 16 pack opening ---- */
.modal-box.f16-reveal-box { position: fixed; inset: 0; width: 100vw !important; max-width: none !important; height: 100vh; max-height: none; padding: 0 !important; background: #000 !important; overflow: hidden; }
.f16-open { position: absolute; inset: 0; overflow: hidden; cursor: pointer; user-select: none; --t: 1000ms; }
/* EA's own pack-opening stadium; its ad boards still read FIFA 15, so they are blurred out */
.f16-open-bg { position: absolute; inset: -20px; background: #000 url('/fifa16/bg/captainselect.webp') center 70% / cover; opacity: .75; filter: blur(7px); transition: opacity .6s, filter .6s; }
.f16-open[data-stage="charge"] .f16-open-bg { opacity: .45; filter: blur(7px) brightness(.6); }
.f16-open[data-stage="show"] .f16-open-bg { opacity: .9; }
.f16-open .fx { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(var(--s, 1)) rotate(var(--r, 0deg)); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.f16-open .glow { width: 90vmin; --s: .8; transition: opacity .5s, transform var(--t) ease-out; }
.f16-open .dust { width: 80vmin; --s: 1.2; transition: opacity 1s, transform 4s linear; }
.f16-open .flare { width: 70vmin; --s: .3; transition: opacity var(--t), transform var(--t) cubic-bezier(.5, 0, .9, .5); }
.f16-open .spark { width: 60vmin; --s: .4; transition: opacity var(--t), transform var(--t) ease-in; }
.f16-open .shards, .f16-open .shatter { width: 70vmin; --s: .4; }
.f16-open .ring { width: 60vmin; --s: .2; }
.f16-open .seq { width: 150vmin; max-width: none; }
.f16-open-pack { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1), opacity .15s; }
.f16-open-pack .f16-pack-img { width: auto; height: 46vmin; }
.f16-open-pack .f16-pack-name { display: none; }
.f16-open-name { position: absolute; left: 0; right: 0; bottom: 8vh; margin: 0; text-align: center; font: normal 4vmin var(--cond); text-transform: uppercase; color: #fff; letter-spacing: .04em; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.f16-open-name b { display: block; font: normal 6vmin 'EA Heavy', var(--cond); color: var(--f16-gold); }
.f16-open-skip { position: absolute; right: 24px; bottom: 20px; font-family: var(--cond); text-transform: uppercase; color: var(--f16-dim); }
.f16-open-card { position: absolute; left: 50%; top: 45%; width: 34vmin; transform: translate(-50%, -50%) scale(1.6); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.3, .4, 1), opacity .3s; }
.f16-open-card .fcard { width: 100%; }
.f16-open-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, #fff, rgba(255, 255, 255, .6) 30%, transparent 70%); opacity: 0; pointer-events: none; }
.f16-open[data-stage="wait"] .f16-open-pack, .f16-open[data-stage="in"] .f16-open-pack { animation: f16-in .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.f16-open[data-stage="wait"] .f16-open-pack { animation: f16-in .6s cubic-bezier(.2, 1.3, .4, 1) both, f16-bob 2.4s ease-in-out .6s infinite; }
.f16-open[data-stage="in"] .glow, .f16-open[data-stage="charge"] .glow { opacity: .85; --s: 1; }
.f16-open[data-stage="in"] .dust, .f16-open[data-stage="charge"] .dust { opacity: .7; --s: 1.35; }
.f16-open[data-stage="charge"] .f16-open-pack { animation: f16-shake .09s linear infinite; }
.f16-open[data-stage="charge"] .flare { opacity: 1; --s: 1.7; }
.f16-open[data-stage="charge"] .spark { opacity: .9; --s: 1.3; --r: 40deg; }
.f16-open.walkout[data-stage="charge"] .f16-open-name b { animation: f16-pulse .5s ease-in-out infinite alternate; }
.f16-open[data-stage="burst"] .f16-open-pack { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
.f16-open[data-stage="burst"] .f16-open-flash { animation: f16-flash .45s ease-out both; }
.f16-open[data-stage="burst"] .shards { animation: f16-burst .9s ease-out both; }
.f16-open[data-stage="burst"] .shatter { animation: f16-burst 1s ease-out .05s both; }
.f16-open[data-stage="burst"] .ring { animation: f16-ring .8s ease-out both; }
.f16-open[data-stage="burst"] .seq { opacity: 1; --s: 1; }
.f16-open .seq.done { opacity: 0 !important; transition: opacity .2s; }
.f16-open[data-stage="burst"] .flare { opacity: .6; --s: 2.4; transition: opacity .9s, transform .9s ease-out; }
.f16-open[data-stage="show"] .f16-open-pack { opacity: 0; }
.f16-open[data-stage="show"] .f16-open-card, .f16-open[data-stage="burst"] .f16-open-card { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .25s; }
.f16-open[data-stage="show"] .flare { opacity: .75; --s: 1.6; animation: f16-spin 14s linear infinite; }
.f16-open[data-stage="show"] .glow { opacity: .8; --s: 1.3; }
.f16-open[data-stage="show"] .dust { opacity: .5; --s: 1.6; }
@keyframes f16-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes f16-bob { 50% { transform: translate(-50%, -52%) scale(1.02); } }
@keyframes f16-shake { 0% { transform: translate(-50%, -50%) rotate(-1deg); } 50% { transform: translate(-49.4%, -50.4%) rotate(1deg) scale(1.02); } 100% { transform: translate(-50.4%, -49.6%) rotate(-1deg); } }
@keyframes f16-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes f16-burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }
@keyframes f16-ring { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.2); } }
@keyframes f16-spin { from { transform: translate(-50%, -50%) scale(1.6) rotate(0); } to { transform: translate(-50%, -50%) scale(1.6) rotate(360deg); } }
@keyframes f16-pulse { to { transform: scale(1.12); } }


/* ---- page polish ---- */
.f16 .block { padding: 18px 20px 20px; }
.f16 .block-head { margin-bottom: 14px; }
.f16 .block-head h2 { font-size: 30px; margin: 0; }
.f16 .wa-pack-art span.f16-pack-name, .f16 .f16-pack-name { background: none !important; padding: 0; font-size: 20px; line-height: 1.1; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.f16 .st-list { background: transparent !important; border: 0 !important; gap: 10px; }
.f16 .st-pack { background: var(--f16-panel) !important; border-right: 0 !important; }
.f16 .st-pack:hover, .f16 .wa-pack:hover { background: rgba(6, 12, 16, .9) !important; box-shadow: inset 0 0 0 4px var(--f16-text); }
.f16 .st-pack .wa-pack-art { width: auto; height: auto; }
.f16 .st-pack .f16-pack-img { width: 150px; }
.f16 .btn .coin { width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }
.f16 .wa-sbc-art:empty { display: none; }
.f16 .wa-sbc-main { padding: 18px 20px; }
.f16 .wa-sbc-main:hover { background: transparent; }
.f16 .wa-sbc .wa-sbc-art img { width: 72px; }

/* =================== Aurora 16 =================== */
/* fit a PC screen: the hub (top bar 250 + tiles 632 of FIFA 16's 1080) scales to the smaller of width and height */
:root { --u: min(calc(min(100vw, 1920px) / 1920), calc(100dvh / 1000)); }
html { background: #04090d; }
body.wa-app { background: transparent !important; min-height: 100dvh; }
/* the club's own stadium (setStadium in webapp.js), softened behind the UI */
body.wa-app::before { content: ''; position: fixed; inset: -30px; z-index: -2; background: #04090d var(--stadium, none) center 38% / cover no-repeat; filter: blur(3px) saturate(1.08); transform: scale(1.03); }
body.wa-app::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 10, .82) 0, rgba(2, 6, 10, .35) 30%, rgba(2, 6, 10, .45) 70%, rgba(2, 6, 10, .85)); }
.f16 { min-height: 100dvh; display: flex; flex-direction: column; }
.f16.is-hub { justify-content: flex-start; }
.f16-top { padding-top: env(safe-area-inset-top); }
.f16-brand img { height: calc(78 * var(--u)); min-height: 34px; margin: 0; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.f16-points img { width: max(26px, calc(56 * var(--u))); margin: 0; }

/* tiles that cannot be clicked: Aurora's overlay loop, the text on the right of its mark */
.f16-tile-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; pointer-events: none; }
.f16-tile.vid { background: #0a1240; }
.f16-tile.vid .f16-tile-head { background: none; text-align: right; }
.f16-tile.vid .f16-big { left: auto; right: calc(18 * var(--t)); bottom: calc(52 * var(--t)); }
.f16-tile.vid .f16-tile-foot { right: calc(18 * var(--t)); }
.f16-tile.points { background: linear-gradient(120deg, rgba(20, 8, 46, .95), rgba(60, 20, 110, .75)); }
.f16-tile.points .f16-tile-pack { transform: translateY(-50%); }
/* FUT Champions */
.f16-tile.champs .f16-tile-head { text-align: center; }
.f16-tile.champs h2 { font-size: calc(64 * var(--t)); }
.f16-champs-logo { position: absolute; left: 50%; top: 53%; height: 62%; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .65)); }
.f16-soon { position: absolute; left: 0; right: 0; bottom: calc(26 * var(--t)); text-align: center; font: normal calc(54 * var(--t)) 'EA Heavy', var(--cond); text-transform: uppercase; color: var(--f16-gold); letter-spacing: .06em; text-shadow: 0 3px 16px rgba(0, 0, 0, .7); }

/* sign in */
.f16-login { min-height: 100dvh; grid-template-columns: 1fr; justify-items: center; padding: 24px 16px; }
.f16-login-box { width: min(520px, 100%); text-align: center; background: rgba(4, 9, 13, .78); backdrop-filter: blur(6px); }
.f16-login-logo { width: min(420px, 90%); margin: 6px auto 4px; }
.f16-login-kicker { margin: 0 0 18px !important; font: normal 22px var(--cond); text-transform: uppercase; letter-spacing: .12em; color: var(--f16-gold) !important; }
.f16-discord { display: flex !important; align-items: center; justify-content: center; gap: 12px; background: #5865f2 !important; color: #fff !important; }
.f16-discord:hover:not(:disabled) { background: #6a75ff !important; }
.f16-discord svg { width: 26px; height: 26px; }
.f16-login-status { margin: 14px 0 0 !important; font-family: var(--cond); text-transform: uppercase; color: var(--f16-text); }
.f16-login-status.bad { color: #ff8a8a; }

/* the intro: black logo on white, then the stadium and the silver logo, then the app */
.a16-intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #fff; cursor: pointer;
  animation: au-intro-out .55s ease-in 2.5s forwards; }
.a16-intro-stadium { position: absolute; inset: -30px; background: #04090d var(--stadium, url('/fifa16/stadium/104_3.webp')) center 38% / cover; filter: blur(3px) brightness(.55); opacity: 0; animation: a16-fade .5s ease-out 1.15s forwards; }
.a16-intro img { position: absolute; width: min(64vw, 760px); }
.a16-intro-black { opacity: 0; animation: a16-logo-in .8s cubic-bezier(.2, 1.2, .4, 1) .15s forwards, a16-fade-out .35s ease-in 1.15s forwards; }
.a16-intro-white { opacity: 0; transform: scale(1.04); animation: a16-white-in .6s ease-out 1.2s forwards; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .6)); }
.a16-intro-shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-100%); animation: a16-shine .9s ease-in-out 1.55s forwards; mix-blend-mode: overlay; }
@keyframes a16-logo-in { from { opacity: 0; transform: scale(1.35); filter: blur(8px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes a16-white-in { to { opacity: 1; transform: scale(1); } }
@keyframes a16-fade { to { opacity: 1; } }
@keyframes a16-fade-out { to { opacity: 0; transform: scale(.96); } }
@keyframes a16-shine { to { transform: translateX(100%); } }
@keyframes au-intro-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .a16-intro { animation-delay: .2s; } }

/* =================== phones (iPhone) =================== */
@media (max-width: 820px) {
  :root { --u: .5px; }
  .f16-top {
    position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 6px 10px; height: auto;
    padding: calc(env(safe-area-inset-top) + 10px) 14px 0; background: linear-gradient(180deg, rgba(2, 6, 10, .96), rgba(2, 6, 10, .86)); backdrop-filter: blur(8px);
  }
  .f16-brand img { height: 30px; min-height: 0; }
  .f16-meta { justify-self: end; gap: 12px; flex-wrap: nowrap; }
  .f16-club { display: none; }
  .f16-coins, .f16-points { font-size: 17px; gap: 5px; }
  .f16-coins img { width: 28px; }
  .f16-points img { width: 26px; }
  .f16-out { padding: 4px 8px; font-size: 12px; }
  .f16-tabs { gap: 20px; margin: 0 -14px; padding: 4px 14px 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .f16-tabs a { font-size: 17px; padding-bottom: 9px; scroll-snap-align: start; }
  .f16-tabs a.on::after { height: 3px; }
  .f16-body, .f16-title { width: auto; min-width: 0; margin: 12px 12px 0; }
  .f16-title { margin-top: 16px; margin-bottom: 10px; }
  .f16-title h1 { font-size: 28px; }
  .f16 { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
  .f16-hub { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; container-type: normal; }
  .f16-tile { --t: .55px; position: relative; left: auto !important; top: auto !important; width: auto !important; height: 150px !important; grid-column: span 2; }
  .f16-tile.m { height: 190px !important; }
  .f16-tile.l { height: 250px !important; }
  .f16-tile.s:not(.stats):not(.banner):not(.points) { grid-column: span 1; height: 140px !important; }
  .f16-tile.squad { height: 470px !important; }
  .f16-tile.champs { height: 440px !important; }
  .f16-tile h2, .f16-tile.m h2, .f16-tile.s h2 { font-size: 21px !important; }
  .f16-tile.champs h2 { font-size: 26px !important; }
  .f16-tile-head { padding: 10px 12px 8px; }
  .f16-tile-head p { font-size: 13px; margin-top: 4px; }
  .f16-big b, .f16-tile.m .f16-big b { font-size: 54px !important; }
  .f16-big small { font-size: 15px; }
  .f16-tile-foot { font-size: 12px; right: 10px; bottom: 8px; }
  .f16-ingame { padding: 3px 7px; }
  .f16-soon { font-size: 30px; bottom: 18px; }
  .f16-champs-logo { height: 58%; }
  .f16-lineup { top: 64px; bottom: 6px; left: 2%; right: 2%; }
  .f16-lineup .fcard { width: 52px; }
  .f16-lineup i { width: 40px; height: 40px; font-size: 12px; }
  .f16-tile.squad { background-size: 100% auto; background-position: center 70px; }
  /* pages */
  .f16 .block { padding: 12px; }
  .f16 .block-head h2 { font-size: 22px; }
  .f16 .wa-subtabs, .f16 .ob-tabs, .f16 .st-tabs, .f16 .chips { gap: 18px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .f16 .wa-subtabs a, .f16 .ob-tabs button, .f16 .st-tabs button, .f16 .chips button { font-size: 16px; flex: none; }
  .f16 .wa-sbc-grid { grid-template-columns: 1fr !important; }
  .f16 .wa-sbc h3 { font-size: 22px; }
  .f16 .wa-sbc-main { padding: 12px 14px; }
  .f16 .st-list { grid-template-columns: 1fr 1fr !important; }
  .f16 .wa-packs { grid-template-columns: repeat(2, 1fr) !important; display: grid; }
  .f16 .st-pack .f16-pack-img, .f16-pack-img { width: 104px; }
  .f16-pack-name { font-size: 16px !important; }
  .f16 .wa-grid, .f16 .wa-items { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .f16 .wa-filters { grid-template-columns: 1fr 1fr !important; }
  .f16-login-box { padding: 26px 20px; }
  .f16-login-logo { width: 88%; }
  .a16-intro img { width: 86vw; }
}

/* the overlay is a whole banner (its own text, 4:1): shown entire under the tile's title strip, never covered */
.f16-tile.vid { display: flex; flex-direction: column; background: linear-gradient(100deg, #0c1680, #0a2a78 60%, #0b4c6c); }
.f16-tile.vid .f16-tile-head { position: relative; order: -1; flex: none; text-align: left; background: rgba(2, 6, 24, .6); padding-right: calc(220 * var(--t)); }
.f16-tile.vid .f16-tile-video { position: relative; inset: auto; flex: 1; min-height: 0; width: 100%; height: auto; object-fit: contain; object-position: center; }
.f16-tile.vid .f16-tile-foot { top: calc(16 * var(--t)); bottom: auto; }
.f16-tile.champs .f16-tile-head { text-align: center; padding-right: calc(18 * var(--t)); background: none; }
.f16-tile.champs .f16-tile-video { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; flex: none; }
.f16-tile.champs .f16-champs-logo { top: 49%; height: 46%; }
.f16-tile.champs .f16-soon { bottom: 25.5%; }
@media (max-width: 820px) {
  .f16-tile.vid .f16-tile-head { padding-right: 110px; }
  .f16-tile.vid .f16-tile-foot { top: 10px; }
  .f16-tile.champs .f16-champs-logo { top: 47%; height: 40%; }
  .f16-tile.champs .f16-soon { bottom: 25%; font-size: 26px; }
}
/* the banner's edges fade into the tile, so no seam shows on any tile shape */
.f16-tile.vid { background: radial-gradient(120% 140% at 30% 60%, #0d1c86 0, #0a1a66 45%, #071040 100%); }
.f16-tile.vid .f16-tile-video {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-composite: intersect;
}
.f16-tile.champs .f16-champs-logo { top: 45%; height: 40%; }
.f16-tile.champs .f16-soon { bottom: 24%; }
@media (max-width: 820px) { .f16-tile.champs .f16-champs-logo { top: 44%; height: 36%; } .f16-tile.champs .f16-soon { bottom: 23%; } }
.f16-login { grid-template-columns: minmax(0, 1fr) !important; }
.f16-login-box { box-sizing: border-box; max-width: 100%; }
.f16-login-btn { white-space: normal; }
@media (max-width: 820px) {
  .f16 .wa-items > *, .f16 .wa-grid > * { min-width: 0; }
  .f16 .wa-item { padding: 4px !important; }
  .f16 .wa-item .fcard, .f16 .wa-grid .fcard { width: 100% !important; max-width: 100%; }
}

/* ---- Stats tab ---- */
.f16-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(6 * var(--t)); }
.f16-stat { padding: calc(10 * var(--t)) calc(6 * var(--t)); background: rgba(0, 0, 0, .45); text-align: center; }
.f16-stat b { display: block; font: normal calc(46 * var(--t)) 'EA Heavy', var(--cond); line-height: 1; color: #fff; }
.f16-stat small { display: block; margin-top: calc(4 * var(--t)); font: normal calc(17 * var(--t)) var(--cond); text-transform: uppercase; color: var(--f16-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f16-tile.clubstats { background: url('/fifa16/hub/clubsdefault.webp') center top / 100% auto no-repeat, linear-gradient(160deg, rgba(14, 22, 28, .95), rgba(8, 12, 16, .85)); }
.f16-tile.clubstats .wa-fan { position: absolute; left: 0; right: 0; top: 17%; height: 46%; }
.f16-tile.clubstats .wa-fan .fcard { width: calc(200 * var(--t)); --w: auto; }
.f16-tile.clubstats .f16-stats.wide { position: absolute; left: calc(18 * var(--t)); right: calc(18 * var(--t)); bottom: calc(18 * var(--t)); grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f16-tile.vid .f16-tile-in { position: relative; inset: auto; flex: none; order: 0; }
.f16-tile.vid .f16-tile-video { order: 1; }
.f16-tile.modestats .f16-stats { margin: calc(8 * var(--t)) calc(18 * var(--t)) 0; }
.f16-tile.modestats .f16-stat { background: rgba(2, 6, 24, .55); }
/* FUT Central's SBC option */
.f16-reward { display: inline-block; margin-top: calc(6 * var(--t)); font: normal calc(22 * var(--t)) var(--cond); text-transform: uppercase; color: var(--f16-gold); }
.f16-tile.sbc-pick .f16-tile-head { right: calc(200 * var(--t)); }
.f16-tile-pack.coins { height: 70%; transform: translateY(-50%); }
@media (max-width: 820px) {
  .f16-tile.clubstats { height: 470px !important; }
  .f16-tile.clubstats .wa-fan { top: 70px; height: 210px; }
  .f16-tile.clubstats .wa-fan .fcard { width: 104px; }
  .f16-tile.modestats { height: 250px !important; }
  .f16-stat b { font-size: 24px; }
  .f16-stat small { font-size: 10px; }
  .f16-stat { padding: 6px 2px; }
  .f16-tile.clubstats .f16-stats.wide { left: 10px; right: 10px; bottom: 10px; gap: 5px; }
  .f16-tile.modestats .f16-stats { margin: 6px 10px 0; gap: 5px; }
  .f16-reward { font-size: 13px; }
  .f16-tile.sbc-pick { height: 160px !important; }
  .f16-tile.sbc-pick .f16-tile-head { right: 90px; }
}
.f16-out { white-space: nowrap; }
@media (max-width: 820px) {
  .f16-tile.clubstats { height: 400px !important; }
  .f16-tile.clubstats .wa-fan { top: 64px; height: 190px; }
}

/* FIFA 16's pack opening movie (js/packanim16.js) */
.f16-open2 { position: absolute; inset: 0; background: #000; cursor: pointer; user-select: none; }
.f16-open2-stage { position: absolute; inset: 0; }
.f16-pack-canvas { display: block; }
.f16-open2 .f16-open-name { z-index: 2; bottom: max(6vh, calc(env(safe-area-inset-bottom) + 16px)); }
.f16-open2 .f16-open-skip { z-index: 2; bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px)); }

/* ---- Stats: every mode ---- */
.f16-tile.overall { background: linear-gradient(135deg, rgba(14, 22, 28, .94), rgba(8, 12, 16, .85)); }
.f16-tile.overall .f16-stats, .f16-tile.scorers .f16-scorers { position: absolute; left: calc(18 * var(--t)); right: calc(18 * var(--t)); bottom: calc(18 * var(--t)); }
.f16-tile.scorers { background: linear-gradient(135deg, rgba(14, 22, 28, .94), rgba(8, 12, 16, .85)); }
.f16-scorers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--t)); }
.f16-scorers > div { display: flex; align-items: center; gap: calc(10 * var(--t)); }
.f16-scorers .fcard { width: calc(84 * var(--t)); flex: none; }
.f16-scorers span { font: normal calc(18 * var(--t)) var(--font); color: var(--f16-text); }
.f16-scorers b { font: normal calc(36 * var(--t)) 'EA Heavy', var(--cond); color: #fff; display: block; }
.f16-section { width: calc(1702 * var(--u)); min-width: min(100% - 32px, 760px); margin: calc(40 * var(--u)) auto calc(14 * var(--u)); font: normal max(20px, calc(40 * var(--u))) var(--cond); text-transform: uppercase; color: #fff; }
.f16-body .f16-section { width: auto; min-width: 0; }
.f16-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(10 * var(--u)); container-type: inline-size; }
.f16-tile.f16-mode { --t: calc(100cqw / 1702); position: relative; aspect-ratio: 418 / 300; }
.f16-tile.f16-mode .f16-tile-art { object-position: right top; opacity: .8; }
.f16-tile.f16-mode::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 8, 12, .25), rgba(4, 8, 12, .85) 70%); pointer-events: none; }
.f16-mode-stats { position: absolute; left: calc(14 * var(--t)); right: calc(14 * var(--t)); bottom: calc(12 * var(--t)); z-index: 1; }
.f16-mode-stats p { margin: calc(8 * var(--t)) 0 0; font: normal calc(18 * var(--t)) var(--font); color: var(--f16-text); }
.f16-tile.f16-mode .f16-tile-head { z-index: 1; }
.f16-tile.f16-mode h2 { font-size: calc(30 * var(--t)); }
.f16-tile.f16-mode .f16-stat b { font-size: calc(36 * var(--t)); }
.f16-tile.f16-mode .f16-stat small { font-size: calc(14 * var(--t)); }
.f16-mode-detail h4 { margin: 18px 0 8px; font: normal 20px var(--cond); text-transform: uppercase; }
.f16-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f16-recent li { display: grid; grid-template-columns: 34px 70px 1fr; align-items: center; gap: 10px; padding: 6px 8px; background: rgba(255, 255, 255, .05); }
.f16-recent i { display: grid; place-items: center; height: 28px; font: normal 18px 'EA Heavy', var(--cond); font-style: normal; color: #000; }
.f16-recent i.r-win { background: #49d16b; } .f16-recent i.r-draw { background: #e6e6e6; } .f16-recent i.r-loss { background: #ff5a5a; } .f16-recent i.r-nc { background: #777; }
.f16-recent span { font: normal 20px var(--cond); color: #fff; } .f16-recent small { color: var(--f16-dim); text-align: right; }
@media (max-width: 820px) {
  .f16-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .f16-tile.f16-mode { --t: .42px; aspect-ratio: auto; height: 190px !important; }
  .f16-tile.f16-mode h2 { font-size: 15px !important; }
  .f16-tile.f16-mode .f16-tile-head p { font-size: 11px; }
  .f16-tile.overall, .f16-tile.scorers { height: 200px !important; }
  .f16-scorers { grid-template-columns: 1fr; gap: 4px; }
  .f16-scorers .fcard { width: 34px; }
  .f16-scorers b { display: inline; font-size: 16px; margin-right: 4px; }
  .f16-scorers span { font-size: 12px; }
  .f16-mode-stats p { font-size: 11px; }
  .f16-section { margin: 20px 0 10px; }
}

.f16-tile.overall .f16-stats { margin: 0; }
.f16-recent em { grid-column: 2 / -1; font-style: normal; font-size: 12px; color: var(--f16-dim); text-transform: uppercase; }
.f16-recent li:has(em) { grid-template-columns: 34px 1fr 70px 1fr; }
.f16-recent li:has(em) em { grid-column: auto; }
@media (max-width: 820px) {
  .f16-tile.f16-mode { grid-column: auto !important; height: 170px !important; }
  .f16-tile.f16-mode .f16-mode-stats { left: 6px; right: 6px; bottom: 6px; }
  .f16-tile.f16-mode .f16-stat b { font-size: 18px; }
  .f16-tile.f16-mode .f16-stat small { font-size: 8px; }
  .f16-tile.f16-mode .f16-stats { gap: 3px; }
  .f16-tile.f16-mode .f16-tile-head { padding: 8px; }
  .f16-tile.overall { height: 165px !important; }
  .f16-tile.scorers { height: 230px !important; }
  .f16-tile.scorers .f16-scorers { bottom: 10px; }
  .f16-scorers > div { height: 44px; }
  .f16-scorers .fcard { width: 30px; }
}

/* =================== SBC =================== */
.s16-tabs { align-items: baseline; }
.s16-count { margin-left: auto; font: normal max(13px, calc(22 * var(--u))) var(--cond); text-transform: uppercase; color: var(--f16-dim); }
.s16-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(12 * var(--u)); }
.s16-set { --acc: #e6e6e6; position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 290px; padding: 18px 20px 16px 24px; overflow: hidden; color: var(--f16-text);
  background: linear-gradient(120deg, rgba(10, 16, 22, .95) 40%, rgba(16, 26, 34, .8)); box-shadow: inset 6px 0 0 var(--acc); transition: box-shadow .12s; }
.s16-set.q1 { --acc: #c98a52; } .s16-set.q2 { --acc: #cfd6da; } .s16-set.q3 { --acc: #f2c33c; }
.s16-set:hover { box-shadow: inset 6px 0 0 var(--acc), inset 0 0 0 4px var(--f16-text); color: var(--f16-text); }
.s16-art { position: absolute; right: 16px; top: 18px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); pointer-events: none; }
.s16-art.pk { height: 140px; transform: rotate(6deg); }
.s16-art.cd { height: 150px; }
.s16-art.coin { height: 90px; }
.s16-set-head { position: relative; padding-right: 120px; }
.s16-set-head h3 { margin: 4px 0 6px; font: normal 32px var(--cond); text-transform: uppercase; color: #fff; line-height: 1.02; }
.s16-set-head p { margin: 0; color: var(--f16-text); opacity: .85; line-height: 1.35; }
.s16-new { display: inline-block; padding: 2px 8px; background: var(--f16-gold); color: #000; font: normal 14px var(--cond); text-transform: uppercase; font-style: normal; }
.s16-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.s16-meta span { padding: 3px 8px; background: rgba(255, 255, 255, .08); font: normal 13px var(--cond); text-transform: uppercase; color: var(--f16-text); }
.s16-prog { position: relative; height: 24px; background: rgba(255, 255, 255, .1); margin-top: auto; }
.s16-prog span { position: absolute; inset: 0 auto 0 0; background: var(--f16-accent); }
.s16-prog em { position: absolute; left: 10px; top: 0; line-height: 24px; font: normal 14px var(--cond); font-style: normal; text-transform: uppercase; color: #fff; }
.s16-rewards { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.s16-rw { display: inline-flex; align-items: center; gap: 8px; }
.s16-rw img { height: 30px; }
.s16-rw img.pk { height: 38px; }
.s16-rw img.cd { height: 44px; }
.s16-rw b { font: normal 18px var(--cond); text-transform: uppercase; color: #fff; }
.s16-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(0, 0, 0, .72); }
.s16-lock b { font: normal 30px var(--cond); text-transform: uppercase; color: #fff; letter-spacing: .1em; }
.s16-lock small { color: var(--f16-dim); }
.s16-done, .s16-donebadge { position: absolute; top: 14px; right: 14px; padding: 4px 10px; background: #49d16b; color: #000; font: normal 15px var(--cond); text-transform: uppercase; font-style: normal; z-index: 1; }
.s16-set.complete .s16-prog span { background: #49d16b; }
/* a group */
.s16-group { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.s16-group p { margin: 0 0 10px; font-size: 18px; }
.s16-group .s16-prog { margin-top: 12px; }
.s16-label { display: block; margin: 0 0 8px; font: normal 14px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--f16-dim); }
.s16-chs { display: grid; gap: 8px; margin-top: 10px; }
.s16-ch { display: grid; grid-template-columns: 54px 1fr auto 130px; align-items: center; gap: 18px; padding: 14px 18px; background: var(--f16-panel); color: var(--f16-text); }
.s16-ch:hover { box-shadow: inset 0 0 0 4px var(--f16-text); color: var(--f16-text); }
.s16-ch-n { display: grid; place-items: center; height: 54px; background: rgba(255, 255, 255, .08); font: normal 30px 'EA Heavy', var(--cond); color: #fff; }
.s16-ch h3 { margin: 0 0 4px; font: normal 26px var(--cond); text-transform: uppercase; color: #fff; }
.s16-ch ul { margin: 0; padding: 0 0 0 18px; color: var(--f16-dim); }
.s16-ch-go { padding: 10px; text-align: center; background: var(--f16-text); color: #000; font: normal 18px var(--cond); text-transform: uppercase; }
.s16-ch.complete .s16-ch-go { background: #49d16b; }
/* the builder */
.s16-build { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 12px; align-items: start; }
.s16-side { position: relative; display: flex; flex-direction: column; gap: 12px; }
.s16-side-head { min-height: 20px; }
.s16-reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.s16-reqs li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .05); }
.s16-reqs i { display: grid; place-items: center; width: 24px; height: 24px; font-style: normal; font-weight: 700; color: #000; }
.s16-reqs li.ok i { background: #49d16b; }
.s16-reqs li.no i { background: #ff5a5a; }
.s16-reqs b { font: normal 20px var(--cond); color: #fff; }
.s16-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.s16-meters > div { position: relative; padding: 10px 12px 14px; background: rgba(0, 0, 0, .4); }
.s16-meters small { display: block; font: normal 13px var(--cond); text-transform: uppercase; color: var(--f16-dim); }
.s16-meters b { font: normal 38px 'EA Heavy', var(--cond); color: #fff; }
.s16-chem { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 5px; background: rgba(255, 255, 255, .12); }
.s16-chem span { position: absolute; inset: 0 auto 0 0; background: var(--f16-accent); }
.s16-form select { width: 100%; padding: 8px; }
.s16-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.s16-actions .btn { padding: 12px; font-size: 18px; }
.s16-note { margin: 0; font-size: 13px; color: var(--f16-dim); }
.s16-pitch { position: relative; aspect-ratio: 1 / 1.08; max-height: calc(100dvh - 300px); min-height: 420px; margin: 0 auto; width: 100%;
  background:
    radial-gradient(circle at 50% 50%, transparent 11.5%, rgba(255, 255, 255, .35) 11.6%, rgba(255, 255, 255, .35) 12%, transparent 12.1%),
    linear-gradient(transparent calc(50% - 1px), rgba(255, 255, 255, .35) calc(50% - 1px), rgba(255, 255, 255, .35) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(180deg, #2f7a35 0 10%, #2a7030 10% 20%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), inset 0 0 120px rgba(0, 0, 0, .45); }
.s16-pitch::before, .s16-pitch::after { content: ''; position: absolute; left: 30%; right: 30%; height: 15%; border: 3px solid rgba(255, 255, 255, .35); }
.s16-pitch::before { top: 0; border-top: 0; }
.s16-pitch::after { bottom: 0; border-bottom: 0; }
.s16-slot { position: absolute; transform: translate(-50%, -50%); width: 13%; aspect-ratio: 236 / 362; padding: 0; border: 0; background: none; cursor: pointer; z-index: 1; }
.s16-slot:not(.full) { display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .35); }
.s16-slot:not(.full) span { font: normal 22px var(--cond); color: #fff; }
.s16-slot img { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.s16-slot:hover { outline: 3px solid var(--f16-text); outline-offset: 2px; }
.s16-pchem { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); min-width: 26px; padding: 1px 6px; font: normal 14px 'EA Heavy', var(--cond); font-style: normal; color: #000; }
.s16-pchem.cg { background: #49d16b; }
.s16-pchem.ca { background: #f2c33c; }
.s16-pchem.cr { background: #ff5a5a; }
.s16-picker { width: min(640px, 94vw); }
.s16-pick-tools { display: grid; grid-template-columns: 1fr 160px; gap: 6px; margin: 4px 0 8px; }
.s16-pick-tools input, .s16-pick-tools select { padding: 10px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(230, 230, 230, .25); color: #fff; }
.s16-pick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 60vh; overflow: auto; margin-top: 8px; }
.s16-pick { display: flex; align-items: center; gap: 10px; padding: 6px; background: rgba(255, 255, 255, .05); border: 0; color: var(--f16-text); text-align: left; cursor: pointer; }
.s16-pick:hover { background: var(--f16-text); color: #000; }
.s16-pick:hover b { color: #000; }
.s16-pick img { width: 46px; }
.s16-pick b { display: block; font: normal 17px var(--cond); text-transform: uppercase; color: #fff; }
.s16-pick small { color: inherit; opacity: .8; }
@media (max-width: 1100px) { .s16-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .s16-grid { grid-template-columns: 1fr; gap: 8px; }
  .s16-set { min-height: 240px; padding: 14px 14px 12px 18px; }
  .s16-set-head h3 { font-size: 24px; }
  .s16-set-head p { font-size: 14px; }
  .s16-art.pk { height: 100px; }
  .s16-art.cd { height: 110px; }
  .s16-set-head { padding-right: 90px; }
  .s16-group { grid-template-columns: 1fr; }
  .s16-ch { grid-template-columns: 40px 1fr; gap: 10px; }
  .s16-ch .s16-rewards, .s16-ch-go { grid-column: 1 / -1; }
  .s16-ch-n { height: 40px; font-size: 22px; }
  .s16-build { grid-template-columns: 1fr; }
  .s16-pitch { order: -1; min-height: 0; max-height: none; }
  .s16-slot { width: 15%; }
  .s16-slot:not(.full) span { font-size: 13px; }
  .s16-pchem { font-size: 10px; min-width: 18px; bottom: -6px; }
  .s16-pick-list { grid-template-columns: 1fr; }
  .s16-count { display: none; }
}

.s16-pitch { width: min(100%, calc((100dvh - 330px) / 1.08)); min-width: min(100%, 440px); max-height: none; min-height: 0; }
@media (max-width: 820px) { .s16-pitch { width: 100%; min-width: 0; } }
.s16-pitch { width: min(100%, calc((100dvh - 430px) / 1.08)); }
@media (max-width: 820px) { .s16-pitch { width: 100%; } }
@media (max-width: 820px) { .s16-set .s16-meta { padding-right: 84px; } }

/* =================== smoother =================== */
/* the stadium behind the UI: no live blur (a full-screen filter on a fixed layer costs every frame on phones); the
   stadium picture is a small one stretched, soft enough on its own */
body.wa-app::before { filter: none; transform: none; inset: 0; will-change: auto; }
.f16-top, .f16-login-box { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* between pages: the old page stays, dimmed, until the new one is in; then the tiles come in one after another */
.f16-body { transition: opacity .15s ease; }
.f16-body.f16-busy { opacity: .4; pointer-events: none; }
.f16-in > * { animation: f16-page-in .25s ease-out both; }
.f16-in .f16-tile, .f16-in .s16-set, .f16-in .s16-ch, .f16-in .wa-pack, .f16-in .wa-sbc { animation: f16-tile-in .32s cubic-bezier(.2, .8, .2, 1) both; }
.f16-in .f16-hub > :nth-child(2), .f16-in .f16-modes > :nth-child(2), .f16-in .s16-grid > :nth-child(2), .f16-in .s16-chs > :nth-child(2) { animation-delay: 40ms; }
.f16-in .f16-hub > :nth-child(3), .f16-in .f16-modes > :nth-child(3), .f16-in .s16-grid > :nth-child(3), .f16-in .s16-chs > :nth-child(3) { animation-delay: 80ms; }
.f16-in .f16-hub > :nth-child(4), .f16-in .f16-modes > :nth-child(4), .f16-in .s16-grid > :nth-child(4), .f16-in .s16-chs > :nth-child(4) { animation-delay: 120ms; }
.f16-in .f16-hub > :nth-child(5), .f16-in .f16-modes > :nth-child(5), .f16-in .s16-grid > :nth-child(5) { animation-delay: 160ms; }
.f16-in .f16-hub > :nth-child(6), .f16-in .f16-modes > :nth-child(6), .f16-in .s16-grid > :nth-child(6) { animation-delay: 200ms; }
.f16-in .f16-modes > :nth-child(n+7), .f16-in .s16-grid > :nth-child(n+7) { animation-delay: 240ms; }
@keyframes f16-page-in { from { opacity: 0; } }
@keyframes f16-tile-in { from { opacity: 0; transform: translateY(14px); } }
/* the hub's tiles keep their absolute place: they only fade */
.f16-in .f16-hub > .f16-tile { animation-name: f16-page-in; }
.f16-tabs a.on::after { animation: f16-bar .2s ease-out; }
@keyframes f16-bar { from { transform: scaleX(.3); opacity: 0; } }
/* long card lists: off-screen cards are not laid out or painted */
.f16 .wa-grid > .wa-item, .f16 .wa-items > .wa-item { content-visibility: auto; contain-intrinsic-size: 170px 280px; }
.f16-tile, .s16-set { contain: layout paint; }
@media (prefers-reduced-motion: reduce) { .f16-in > *, .f16-in .f16-tile, .f16-in .s16-set { animation: none !important; } }

/* the pack opening plays in front of the club's own stadium (setStadium sets --stadium on the body) */
.f16-open2 { background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .8)), #000 var(--stadium, none) center 40% / cover no-repeat; }

/* the stadium pictures repeat their last rows at the bottom: keep that edge off screen */
body.wa-app::before, .f16-open2, .a16-intro-stadium { background-size: auto 118%, auto 118% !important; background-position: center 22%, center 22% !important; }
@media (min-aspect-ratio: 27/10) { body.wa-app::before, .f16-open2, .a16-intro-stadium { background-size: cover !important; } }

/* =================== the squad screen =================== */
.q16 { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 12px; align-items: start; }
.q16-side { display: flex; flex-direction: column; gap: 12px; }
.q16-side input, .q16-side select { width: 100%; padding: 9px 10px; }
.q16-stars { display: block; margin-top: 2px; font-size: 16px; letter-spacing: 1px; color: rgba(255, 255, 255, .2); }
.q16-stars i { font-style: normal; } .q16-stars .on { color: var(--f16-gold); }
.q16-stars .half { background: linear-gradient(90deg, var(--f16-gold) 50%, rgba(255, 255, 255, .2) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q16-main { display: grid; grid-template-columns: 1fr minmax(150px, 210px); gap: 12px; align-items: start; }
.q16-pitch { width: min(100%, calc((100dvh - 420px) / 1.08)); min-width: min(100%, 420px); }
.q16-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.q16-links line { stroke-width: .5; vector-effect: non-scaling-stroke; stroke-width: 3; opacity: .85; }
.q16-links .v0 { stroke: #ff5a5a; } .q16-links .v1 { stroke: #f2c33c; } .q16-links .v2 { stroke: #49d16b; }
.q16-slot { position: absolute; transform: translate(-50%, -50%); width: 12.5%; aspect-ratio: 236 / 362; padding: 0; border: 0; background: none; cursor: pointer; z-index: 1; transition: transform .12s; }
.q16-slot img { width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.q16-slot:not(.full) { display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .35); }
.q16-slot:not(.full) span { font: normal 18px var(--cond); color: #fff; }
.q16-slot:hover { outline: 3px solid var(--f16-text); outline-offset: 2px; }
.q16-slot.sel { outline: 4px solid var(--f16-accent); outline-offset: 3px; transform: translate(-50%, -54%) scale(1.06); }
.q16-chem { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); min-width: 24px; padding: 1px 5px; font: normal 13px 'EA Heavy', var(--cond); font-style: normal; color: #000; }
.q16-chem.cg { background: #49d16b; } .q16-chem.ca { background: #f2c33c; } .q16-chem.cr { background: #ff5a5a; }
.q16-cap { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--f16-gold); color: #000; font: normal 13px 'EA Heavy', var(--cond); }
.q16-bench { padding: 12px; background: var(--f16-panel); }
.q16-bench > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.q16-slot.b { position: relative; transform: none; width: 100%; }
.q16-slot.b.sel { transform: scale(1.05); }
@media (max-width: 1100px) { .q16-main { grid-template-columns: 1fr; } .q16-bench > div { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .q16 { grid-template-columns: 1fr; }
  .q16-main { order: -1; }
  .q16-pitch { width: 100%; min-width: 0; }
  .q16-slot { width: 15%; }
  .q16-slot:not(.full) span { font-size: 12px; }
  .q16-chem { font-size: 10px; min-width: 18px; bottom: -6px; }
  .q16-cap { width: 16px; height: 16px; font-size: 10px; }
  .q16-bench > div { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.q16-main.nobench { grid-template-columns: 1fr; }
.q16-side .s16-donebadge { position: static; align-self: flex-start; }

/* the pack opening as video (js/packanim16.js playVideo): the stage is the movie's 1920x1080, scaled to fit */
.f16-open2-stage { overflow: hidden; }
.f16v-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.f16v-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.f16v-video.screen { mix-blend-mode: screen; }
.f16v-item { position: absolute; left: 0; top: 0; transform-origin: 0 0; visibility: hidden; will-change: transform, opacity; }
.f16v-item img, .f16v-item i { position: absolute; display: block; }
.f16v-pack img, .f16v-pack i { left: -126px; top: -180px; width: 252px; height: 360px; }
.f16v-card img, .f16v-card i { left: -189px; top: -268.5px; width: 378px; height: 580px; }
.f16v-item i { opacity: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen; }
/* the game draws its flashes and shards OVER the pack and the card: the video goes on top of them, and its edges fade */
.f16v-item { z-index: 1; }
.f16v-video { z-index: 2; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }

/* =================== the FIFA 16 squad screen (Squads and SBCs) =================== */
/* FIFA 16's own tilted squad pitch, wide, the eleven on it as FIFA 16's small player items */
.q16 { grid-template-columns: minmax(260px, 330px) 1fr; }
.q16-main { grid-template-columns: 1fr !important; gap: 8px; }
.q16-pitch.s16-pitch { aspect-ratio: 1920 / 1024; width: 100%; min-width: 0; max-height: none; min-height: 0;
  background: #0b1a10 url('/fifa16/bg/squad.webp') center / cover no-repeat; box-shadow: none; }
.q16-pitch.s16-pitch::before, .q16-pitch.s16-pitch::after { display: none; }
.q16-links line { stroke-width: 2.5; opacity: .9; }
.q16-pitch .q16-slot { width: 7.6%; aspect-ratio: 137 / 167; }
.q16-slot.full { outline: none; }
.q16-slot:not(.full) { border: 0; background: url('/fifa16/items/cards_bg_s_1_0_1.webp') 5.04% 7.87% / 186.9% 153.3% no-repeat; opacity: .5; filter: grayscale(1) brightness(.6); }
.q16-slot:not(.full) span { position: relative; z-index: 1; font: normal clamp(11px, 1.1vw, 18px) var(--cond); color: #fff; filter: none; }
.q16-slot:hover { outline: none; }
.q16-slot:hover .i16, .q16-slot:not(.full):hover { filter: drop-shadow(0 0 0 #fff) brightness(1.12); }
.q16-slot.sel { outline: none; transform: translate(-50%, -56%) scale(1.08); }
.q16-slot.sel .i16 { box-shadow: 0 0 0 3px var(--f16-text), 0 0 18px rgba(255, 255, 255, .5); }
/* the item: the game's small shield (x 6-142, y 7-173 of its 256 px texture), rating and position top left, the head,
   the name on the strip at the bottom */
.i16 { position: absolute; inset: 0; display: block; container-type: inline-size; background: var(--bg) 5.04% 7.87% / 186.9% 153.3% no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .55)); color: #2b2210; }
.i16-r { position: absolute; left: 7%; top: 9%; font: normal 22cqw 'EA Heavy', var(--cond); line-height: 1; }
.i16-p { position: absolute; left: 8%; top: 31%; font: normal 12cqw 'EA Con', var(--cond); text-transform: uppercase; line-height: 1; }
.i16-p.off { color: #b4141e; }
.i16-face { position: absolute; right: 2%; top: 5%; width: 66%; height: auto; }
.i16-n { position: absolute; left: 4%; right: 4%; top: 66%; text-align: center; font: normal 12.5cqw 'EA Con', var(--cond); text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i16.q1 { color: #3a2412; } .i16.q2 { color: #26292b; } .i16.q3 { color: #3a2c08; }
.i16.sp { color: #fff; } .i16.sp .i16-r, .i16.sp .i16-n { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.q16-chem { bottom: -6px; font-size: 12px; min-width: 22px; z-index: 2; }
.q16-cap { top: -4px; right: -4px; z-index: 2; }
/* the bench: one strip under the pitch, as FIFA 16 lists subs and reserves */
.q16-bench { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; padding: 10px 14px 14px; background: rgba(4, 8, 12, .82); }
.q16-bench > div > div { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 0; }
.q16-res > div { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.q16-slot.b { position: relative; width: 100%; aspect-ratio: 137 / 167; transform: none; }
.q16-slot.b.sel { transform: translateY(-4px) scale(1.04); }
/* the side panel: FIFA 16's squad info, dark, the numbers big */
.q16-side.block { background: rgba(4, 8, 12, .86) !important; }
.q16-side .s16-meters > div { background: rgba(255, 255, 255, .05); }
@media (max-width: 1100px) { .q16 { grid-template-columns: 1fr; } .q16-main { order: -1; } }
@media (max-width: 820px) {
  .q16-pitch.s16-pitch { aspect-ratio: 4 / 3.6; background-size: 175% auto; }
  .q16-pitch .q16-slot { width: 14.5%; }
  .q16-bench { grid-template-columns: 1fr; padding: 8px; }
  .q16-bench > div > div { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .q16-chem { font-size: 9px; min-width: 16px; bottom: -5px; }
}
/* the squad fits the screen: the pitch as tall as the screen allows, the bench under it in view */
.q16-pitch.s16-pitch { width: min(100%, calc((100dvh - 470px) * 1920 / 1024)); margin: 0 auto; filter: saturate(.9) brightness(.92); }
.q16-main { align-content: start; }
.q16-bench { width: min(100%, calc((100dvh - 470px) * 1920 / 1024)); margin: 0 auto; box-sizing: border-box; }
.q16-bench .q16-slot.b { width: 100%; max-width: 92px; justify-self: center; }
@media (max-width: 820px) { .q16-pitch.s16-pitch, .q16-bench { width: 100%; } }
.i16-face { width: 54%; right: 5%; top: 8%; }
.i16-r { font-size: 21cqw; } .i16-p { top: 30%; }
.i16-n { top: 64%; }
.q16-bench > div { display: block; margin: 0; }
.q16-bench > div > div { display: grid; }
.q16-bench .q16-slot.b { max-width: none; }
.q16-bench .s16-label { margin-bottom: 6px; }
.q16-slot .i16-face { width: 54%; right: 5%; top: 8%; filter: none; }
.q16-pitch.s16-pitch, .q16-bench { width: min(100%, calc(max(360px, 100dvh - 600px) * 1920 / 1024)); }
@media (max-width: 820px) { .q16-pitch.s16-pitch, .q16-bench { width: 100%; } }
.q16-main.nobench .q16-pitch.s16-pitch { width: min(100%, calc(max(360px, 100dvh - 470px) * 1920 / 1024)); }
@media (max-width: 820px) { .q16-main.nobench .q16-pitch.s16-pitch { width: 100%; } }
/* the MP4 has its edge fade baked in and plays with screen blending over the pack and the card */
.f16v-video { -webkit-mask-image: none !important; mask-image: none !important; mix-blend-mode: screen; }
.f16-open2-stage > .f16v-video { position: absolute; left: 0; top: 0; inset: auto; transform-origin: 0 0; pointer-events: none; }

/* the background: FIFA 16's own squad pitch (fut_backgrounds_squad, 1920x1024), sharp and smooth, everywhere
   (the stadium-select pictures are 599x256 and look like 240p stretched over a screen) */
body.wa-app::before, .f16-open2, .a16-intro-stadium {
  background-image: url('/fifa16/bg/squad.webp') !important; background-size: cover !important; background-position: center 70% !important; }
body.wa-app::before { filter: saturate(.95); }
body.wa-app::after { background: linear-gradient(180deg, rgba(2, 8, 6, .78) 0, rgba(2, 8, 6, .35) 26%, rgba(2, 8, 6, .3) 60%, rgba(2, 8, 6, .7)) !important; }
.f16-open2 { background-image: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, .75)), url('/fifa16/bg/squad.webp') !important; background-size: cover, cover !important; }

/* =================== FIFA 16's squad screen, on one screen =================== */
/* The squad panel left, the pitch in the middle (the cards as big as the height allows), OVERALL SQUAD and the bench
   right. builder16's fit() gives the stage the window's height under the top bar, so nothing scrolls on a PC. The page's
   own pitch picture is the only picture: no frame, no second pitch, no vignette. */
.q16.v2 { --pale: rgba(226, 242, 244, .95); --ink: #12363c; --teal: #1f7f8c; --teal2: #2aa3b0; display: block; }
.q16.v2 .q16-stage { position: relative; display: grid; grid-template-columns: clamp(210px, 17%, 290px) minmax(0, 1fr) clamp(250px, 24%, 380px);
  gap: clamp(10px, 1.2vw, 22px); width: 100%; height: min(760px, calc(100dvh - 280px)); min-height: 430px; margin: 0; aspect-ratio: auto;
  background: none !important; box-shadow: none !important; overflow: visible; container-type: normal; }
.q16.v2.nobench .q16-stage { width: 100%; aspect-ratio: auto; }
.q16.v2 .q16-stage::after { content: none; display: none; }
/* panels */
.q16.v2 .q16-left, .q16.v2 .q16-overall, .q16.v2 .q16-bench2 { position: static; inset: auto; width: auto; max-height: none; margin: 0; background: var(--pale); color: var(--ink);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }
.q16.v2 .q16-left { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; overflow: auto; font-size: 14px; scrollbar-width: thin; min-height: 0; }
.q16.v2 .q16-left .s16-label { display: block; color: var(--ink); opacity: .7; font: normal 12px var(--cond); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 2px; text-align: center; }
.q16.v2 .q16-left input, .q16.v2 .q16-left select { width: 100%; background: transparent !important; border: 0 !important; border-bottom: 2px solid rgba(18, 54, 60, .22) !important;
  border-radius: 0; color: var(--ink) !important; font: normal 17px var(--cond); text-align: center; text-align-last: center; padding: 3px 0 5px; }
.q16.v2 .q16-left select option { color: #000; }
.q16.v2 .q16-left #qName { font-size: 20px; }
.q16.v2 .q16-left .s16-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 2px; }
.q16.v2 .q16-left .btn { font-size: 15px; padding: 9px 8px; border-radius: 0; }
.q16.v2 .q16-left .btn.primary { background: var(--teal) !important; color: #fff !important; border-color: var(--teal); }
.q16.v2 .q16-left .btn.primary:hover:not(:disabled) { background: var(--teal2) !important; }
.q16.v2 .q16-left .btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(18, 54, 60, .35); }
.q16.v2 .q16-left .btn.ghost:hover:not(:disabled) { background: var(--ink); color: #fff; }
.q16.v2 .q16-left .btn:disabled { opacity: .38; cursor: default; }
.q16.v2 .q16-left .s16-reqs li { background: rgba(18, 54, 60, .07); padding: 6px 8px; font-size: 13px; color: var(--ink); }
.q16.v2 .q16-left .s16-reqs b, .q16.v2 .q16-left .s16-rw b { color: var(--ink); }
.q16.v2 .q16-left .s16-donebadge { position: static; align-self: center; }
.q16.v2 .q16-hint { margin: auto 0 0; padding-top: 8px; border-top: 1px solid rgba(18, 54, 60, .12); color: rgba(18, 54, 60, .7); font-size: 12px; line-height: 1.35; }
/* the selected player */
.q16.v2 .q16-player { border-top: 2px solid rgba(18, 54, 60, .14); padding-top: 10px; }
.q16.v2 .q16-player > b { display: block; font: normal 19px var(--cond); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; overflow-wrap: anywhere; }
.q16.v2 .q16-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.q16.v2 .q16-attrs span { display: flex; align-items: center; gap: 6px; }
.q16.v2 .q16-attrs i { min-width: 34px; padding: 1px 4px; border: 2px solid rgba(18, 54, 60, .5); font: normal 16px var(--cond); font-style: normal; text-align: center; color: var(--ink); }
.q16.v2 .q16-attrs small { font: normal 14px var(--cond); color: var(--ink); }
.q16.v2 .q16-pchem { margin-top: 8px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; }
.q16.v2 .q16-pchem small { font: normal 13px var(--cond); color: var(--ink); text-transform: uppercase; }
.q16.v2 .q16-pchem b { font: normal 20px 'EA Heavy', var(--cond); color: var(--ink); }
.q16.v2 .q16-pchem em, .q16.v2 .q16-overall em { position: relative; display: block; height: 9px; background: rgba(18, 54, 60, .15); }
.q16.v2 .q16-pchem em span, .q16.v2 .q16-overall em span { position: absolute; inset: 0 auto 0 0; background: #13d6ec; }
/* right: OVERALL SQUAD over the bench */
.q16.v2 .q16-right { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.q16.v2 .q16-overall h3 { margin: 0; padding: 8px 14px; font: normal 18px var(--cond); text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .5); }
.q16.v2 .q16-overall > div { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 14px; }
.q16.v2 .q16-overall > div + div { grid-template-columns: auto auto 1fr; border-top: 1px solid rgba(18, 54, 60, .1); }
.q16.v2 .q16-overall span { font: normal 15px var(--cond); color: var(--ink); }
.q16.v2 .q16-overall b { font: normal 28px 'EA Heavy', var(--cond); color: var(--ink); line-height: 1; }
.q16.v2 .q16-overall .q16-stars { margin: 0; font-size: 18px; color: rgba(18, 54, 60, .2); }
.q16.v2 .q16-overall .q16-stars .on { color: #f2c33c; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.q16.v2 .q16-bench2 { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; overflow: auto; scrollbar-width: thin; }
.q16.v2 .q16-bench2 h4 { margin: 0; font: normal 14px var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); opacity: .75; }
.q16.v2 .q16-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 6px; padding-bottom: 6px; }
/* the pitch: the cards on their spots, the chemistry links between their centres */
.q16.v2 .q16-field { position: relative; inset: auto; top: auto; bottom: auto; min-height: 0; container-type: size; }
.q16.v2 .q16-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.q16.v2 .q16-links line { stroke-width: 4px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: 1; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.q16.v2 .q16-links .v0 { stroke: #e2392c; } .q16.v2 .q16-links .v1 { stroke: #f5a623; } .q16.v2 .q16-links .v2 { stroke: #7ed321; }
.q16.v2 .q16-slot { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; outline: none; transition: none; filter: none; opacity: 1; }
.q16.v2 .q16-field .q16-slot { width: min(13cqh, 9.8cqw) !important; height: auto; aspect-ratio: 236 / 362; transform: translate(-50%, -50%); }
.q16.v2 .q16-slot.b { position: relative; width: 100% !important; height: auto; aspect-ratio: 236 / 362; transform: none; }
.q16.v2 .q16-card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); transition: transform .12s; }
.q16.v2 .q16-slot:hover .q16-card { transform: translateY(-3px) scale(1.04); }
.q16.v2 .q16-slot:focus-visible .q16-card { outline: 3px solid #fff; outline-offset: 2px; }
.q16.v2 .q16-field .q16-slot.sel { transform: translate(-50%, -50%); }
.q16.v2 .q16-slot.b.sel { transform: none; }
.q16.v2 .q16-slot.sel .q16-card { transform: translateY(-4px) scale(1.07); filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 3px #5fd8ea) drop-shadow(0 0 14px rgba(95, 216, 234, .85)); }
.q16.v2 .q16-slot.sel::before { content: none; }
.q16.v2 .q16-empty { position: absolute; inset: 6% 4%; display: grid; place-items: center; border: 2px dashed rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .28);
  clip-path: polygon(50% 0, 100% 9%, 100% 82%, 50% 100%, 0 82%, 0 9%); font: normal 28px var(--cond); color: rgba(255, 255, 255, .8); }
.q16.v2 .q16-slot.b .q16-empty { background: rgba(18, 54, 60, .12); border-color: rgba(18, 54, 60, .3); color: rgba(18, 54, 60, .5); font-size: 22px; }
.q16.v2 .q16-slot:not(.full):hover .q16-empty { background: rgba(255, 255, 255, .18); }
/* the position pill under each card, with the player's chemistry */
.q16.v2 .q16-pos { position: absolute; left: 50%; bottom: -7%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 62%; padding: 2px 8px; z-index: 3; font: normal clamp(11px, 2cqh, 16px) var(--cond); font-style: normal; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: linear-gradient(180deg, #2c8f9b, #1d6f7a); clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%); }
.q16.v2 .q16-pos.near { color: #ffd65a; } .q16.v2 .q16-pos.off { color: #ff8a7f; }
.q16.v2 .q16-pos b { min-width: 1.4em; padding: 0 3px; font: normal 1em 'EA Heavy', var(--cond); color: #08161a; text-align: center; }
.q16.v2 .q16-pos b.cg { background: #7ed321; } .q16.v2 .q16-pos b.ca { background: #f5a623; } .q16.v2 .q16-pos b.cr { background: #ff5a4c; }
.q16.v2 .q16-cap { position: absolute; top: 3%; right: -5%; z-index: 4; display: grid; place-items: center; width: 22%; aspect-ratio: 1; height: auto; min-width: 16px; min-height: 0;
  border-radius: 50%; background: var(--f16-gold); color: #000; font: normal clamp(10px, 1.7cqh, 14px) 'EA Heavy', var(--cond); }
.q16.v2 .q16-slot.b .q16-cap { font-size: 10px; }
/* the page around it: a compact title, the photo sharp and without the dark vignette (a soft band keeps the top bar
   readable over the bright stands) */
.f16-body:has(.q16.v2) { margin-top: 0; }
.f16:has(.q16.v2) .f16-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-top: calc(14 * var(--u)); margin-bottom: 10px; }
.f16:has(.q16.v2) .f16-title h1 { font-size: max(22px, calc(36 * var(--u))); }
body.wa-app:has(.q16.v2)::before { filter: none !important; background-position: center 72% !important; }
body.wa-app:has(.q16.v2)::after { background: linear-gradient(180deg, rgba(3, 10, 8, .82) 0, rgba(3, 10, 8, .6) 150px, rgba(3, 10, 8, 0) 290px) !important; }
/* smaller PCs: narrower side columns */
@media (max-width: 1180px) and (min-width: 821px) {
  .q16.v2 .q16-stage { grid-template-columns: 200px minmax(0, 1fr) 230px; gap: 10px; }
  .q16.v2 .q16-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* phones: overall, the pitch, the bench, then the panel; the page scrolls */
@media (max-width: 820px) {
  .q16.v2 .q16-stage { display: flex; flex-direction: column; height: auto !important; min-height: 0; gap: 10px; }
  .q16.v2 .q16-right { display: contents; }
  .q16.v2 .q16-overall { order: 0; }
  .q16.v2 .q16-overall > div { padding: 6px 12px; }
  .q16.v2 .q16-overall b { font-size: 22px; }
  .q16.v2 .q16-field { order: 1; width: 100%; aspect-ratio: 4 / 4.6; height: auto; }
  .q16.v2 .q16-field .q16-slot { width: min(13.5cqh, 17cqw) !important; }
  .q16.v2 .q16-pos { font-size: 10px; padding: 1px 5px; gap: 3px; }
  .q16.v2 .q16-bench2 { order: 2; overflow: visible; }
  .q16.v2 .q16-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .q16.v2 .q16-left { order: 3; overflow: visible; }
  .q16.v2 .q16-hint { margin-top: 4px; }
}

/* =================== drag to swap =================== */
.q16-slot.full { touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.q16-dragging, .q16-dragging .q16-slot { cursor: grabbing; }
.q16-slot.dragging { opacity: .35; }
.q16-slot.drop { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 10px rgba(50, 204, 248, .9)); }
.q16-slot.drop::after { content: ''; position: absolute; inset: -4px; border: 3px solid var(--f16-accent); pointer-events: none; }
.q16-ghost { position: fixed !important; z-index: 9999 !important; margin: 0; pointer-events: none; transform-origin: 50% 50%; opacity: .95;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); transition: none; }
.q16-ghost .q16-pos, .q16-ghost .q16-chem, .q16-ghost .q16-cap { display: none; }
.q16-ghost img { width: 100%; height: auto; display: block; }

/* =================== consumables on the market (contracts, fitness, healing, training) =================== */
.c16 { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.c16 { width: 100%; }
.c16 .i16 { position: relative; inset: auto; flex: none; width: 160px; max-width: 100%; aspect-ratio: 137 / 167; }
.c16-ico { position: absolute; left: 50%; top: 40%; width: 46%; transform: translate(-50%, -50%); mix-blend-mode: multiply; opacity: .85; }
.c16 .i16-n { top: 70%; font-size: 9cqw; }
.c16-q { color: var(--f16-dim); font-size: 13px; }

/* =================== leaderboards =================== */
.lb16 { display: grid; grid-template-columns: minmax(200px, 260px) 1fr minmax(240px, 300px); gap: 14px; align-items: start; }
.lb16-boards { display: flex; flex-direction: column; gap: 2px; background: var(--f16-panel); padding: 8px; }
.lb16-boards a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--f16-text); font: normal 17px var(--cond); text-transform: uppercase; }
.lb16-boards a img { width: 40px; height: 40px; flex: none; }
.lb16-boards a:hover { background: var(--f16-panel2); }
.lb16-boards a.on { background: var(--f16-text); color: #000; }
.lb16-group { margin: 10px 10px 2px; color: var(--f16-dim); font: normal 13px var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.lb16-board { background: var(--f16-panel); min-height: 300px; }
.lb16-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--f16-line); flex-wrap: wrap; }
.lb16-head > img { width: 64px; height: 64px; }
.lb16-head > div { flex: 1; min-width: 180px; }
.lb16-head h2 { margin: 0; font: normal 28px var(--cond); text-transform: uppercase; color: #fff; }
.lb16-head p { margin: 2px 0 0; color: var(--f16-dim); font-size: 14px; }
.lb16-periods { display: flex; gap: 6px; }
.lb16-periods a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; color: var(--f16-dim); font: normal 13px var(--cond); text-transform: uppercase; }
.lb16-periods a img { width: 40px; height: 40px; }
.lb16-periods a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--f16-text); }
.lb16-now { color: var(--f16-dim); font: normal 14px var(--cond); text-transform: uppercase; }
.lb16-list { list-style: none; margin: 0; padding: 0 0 8px; max-height: calc(100dvh - 360px); min-height: 240px; overflow: auto; scrollbar-width: thin; }
.lb16-list li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.lb16-list li:nth-child(even):not(.lb16-cols) { background: rgba(255, 255, 255, .03); }
.lb16-cols { position: sticky; top: 0; z-index: 1; background: rgba(6, 12, 16, .96); color: var(--f16-dim); font: normal 13px var(--cond); text-transform: uppercase; padding-top: 10px !important; }
.lb16-cols span:last-child { text-align: right; }
.lb16-rank { font: normal 22px 'EA Heavy', var(--cond); color: var(--f16-text); text-align: center; }
.lb16-list li.top1 .lb16-rank { color: var(--f16-gold); } .lb16-list li.top2 .lb16-rank { color: #d6dde2; } .lb16-list li.top3 .lb16-rank { color: #d08a4c; }
.lb16-name { min-width: 0; font: normal 19px var(--cond); color: #fff; overflow-wrap: anywhere; }
.lb16-name i { margin-left: 8px; padding: 1px 7px; font-style: normal; font-size: 12px; color: #000; background: var(--f16-accent); vertical-align: middle; }
.lb16-name small { display: block; color: var(--f16-dim); font: normal 12px var(--font); }
.lb16-val { font: normal 20px var(--cond); color: #fff; white-space: nowrap; }
.lb16-list li.me { background: rgba(50, 204, 248, .14) !important; box-shadow: inset 4px 0 0 var(--f16-accent); }
.lb16-mine { background: var(--f16-panel); padding: 14px 16px; }
.lb16-mine h3 { margin: 0; font: normal 24px var(--cond); text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.lb16-myrank { margin: 2px 0 10px; color: var(--f16-dim); }
.lb16-myrank b { color: var(--f16-accent); font-size: 20px; }
.lb16-mine ul { list-style: none; margin: 0; padding: 0; }
.lb16-mine li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.lb16-mine li img { width: 28px; height: 28px; }
.lb16-mine li b { font: normal 17px var(--cond); color: #fff; }
.lb16-mine li.on span { color: #fff; } .lb16-mine li:not(.on) span { color: var(--f16-dim); }
.lb16-rec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.lb16-rec div { background: var(--f16-panel2); padding: 6px; text-align: center; }
.lb16-rec small { display: block; color: var(--f16-dim); font: normal 12px var(--cond); text-transform: uppercase; }
.lb16-rec b { font: normal 22px var(--cond); color: #fff; }
@media (max-width: 1100px) { .lb16 { grid-template-columns: 1fr; } .lb16-boards { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .lb16-boards a { flex: none; flex-direction: column; gap: 4px; font-size: 13px; text-align: center; width: 104px; } .lb16-group { display: none; } .lb16-list { max-height: none; } }
@media (max-width: 820px) { .lb16-list li { grid-template-columns: 38px 1fr auto; padding: 8px 10px; gap: 8px; } .lb16-name { font-size: 16px; } .lb16-val { font-size: 16px; } .lb16-head h2 { font-size: 22px; } }

/* lower PC screens: the squad panel tighter, so it fits beside the pitch without its own scrollbar */
@media (min-width: 821px) and (max-height: 940px) {
  .q16.v2 .q16-left { gap: 6px; padding: 10px 12px 8px; }
  .q16.v2 .q16-left .s16-label { font-size: 11px; margin: 0; }
  .q16.v2 .q16-left input, .q16.v2 .q16-left select { font-size: 15px; padding: 1px 0 3px; }
  .q16.v2 .q16-left #qName { font-size: 17px; }
  .q16.v2 .q16-left .btn { padding: 6px; font-size: 14px; }
  .q16.v2 .q16-player { padding-top: 6px; }
  .q16.v2 .q16-player > b { font-size: 16px; margin-bottom: 4px; }
  .q16.v2 .q16-attrs { gap: 3px 8px; }
  .q16.v2 .q16-attrs i { min-width: 30px; font-size: 14px; padding: 0 3px; }
  .q16.v2 .q16-attrs small { font-size: 13px; }
  .q16.v2 .q16-pchem { margin-top: 4px; }
  .q16.v2 .q16-pchem b { font-size: 17px; }
  .q16.v2 .q16-overall h3 { padding: 6px 12px; font-size: 16px; }
  .q16.v2 .q16-overall > div { padding: 6px 12px; }
  .q16.v2 .q16-overall b { font-size: 23px; }
}
@media (min-width: 821px) and (max-height: 760px) { .q16.v2 .q16-hint { display: none; } }
@media (max-width: 1180px) and (min-width: 821px) { .q16.v2 .q16-stage { grid-template-columns: 185px minmax(0, 1fr) 215px; } }

/* the store: the pack name sits under the pack, inside its card (the art box no longer cuts it in half) */
.f16 .st-pack .wa-pack-art, .f16 .wa-pack .wa-pack-art { overflow: visible !important; height: auto !important; max-height: none !important; min-height: 0; }
.f16 .wa-pack-art .f16-pack-name { display: block !important; height: auto !important; min-height: 0; line-height: 1.15 !important; margin: 0 0 4px; }

/* filter bars: every field and the button on one row on a PC (the market has ten) */
@media (min-width: 821px) { .f16 .wa-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); align-items: stretch; }
  .f16 .wa-filters input, .f16 .wa-filters select { min-width: 0; width: 100%; } }
.q16.v2 .q16-ro { display: block; text-align: center; font: normal 18px var(--cond); color: var(--ink); padding: 2px 0 5px; border-bottom: 2px solid rgba(18, 54, 60, .22); }
/* a squad to look at (TOTW): no empty places, no empty bench rows */
.q16.v2.view .q16-slot:not(.full) { display: none; }
.q16.v2.view .q16-slot.full { cursor: pointer; }

/* =================== the player screen (one tap on a player) =================== */
.modal-box:has(> .p16) { width: min(960px, calc(100vw - 32px)) !important; max-width: none !important; padding: 0 !important; background: var(--pale, rgba(226, 242, 244, .97)) !important; }
.p16 { --ink: #12363c; --teal: #1f7f8c; position: relative; display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 22px; padding: 22px; color: var(--ink);
  background: rgba(226, 242, 244, .97); max-height: calc(100dvh - 40px); overflow: auto; }
.p16-x { position: absolute; top: 10px; right: 12px; color: var(--ink) !important; font-size: 26px; background: none; border: 0; cursor: pointer; }
.p16-card img { width: 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.p16-kicker { color: rgba(18, 54, 60, .65); font: normal 13px var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.p16 h3 { margin: 2px 0 0; font: normal 32px var(--cond); text-transform: uppercase; color: var(--ink); line-height: 1.05; padding-right: 30px; }
.p16-sub { margin: 4px 0 10px; font: normal 17px var(--cond); color: var(--ink); text-transform: uppercase; }
.p16-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 12px; font-size: 14px; }
.p16-facts dt { color: rgba(18, 54, 60, .6); font: normal 13px var(--cond); text-transform: uppercase; }
.p16-facts dd { margin: 0; }
.p16-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.p16-stats span { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border: 2px solid rgba(18, 54, 60, .35); }
.p16-stats b { font: normal 24px 'EA Heavy', var(--cond); line-height: 1; }
.p16-stats small { font: normal 12px var(--cond); }
.p16-value, .p16-state { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.p16-state { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.p16-value > div, .p16-state > div { background: rgba(18, 54, 60, .07); padding: 8px 10px; min-width: 0; }
.p16-value small, .p16-state small { display: block; color: rgba(18, 54, 60, .65); font: normal 12px var(--cond); text-transform: uppercase; }
.p16-value b, .p16-state b { display: block; font: normal 19px var(--cond); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p16-value em { display: block; font-style: normal; font-size: 12px; color: rgba(18, 54, 60, .6); }
.p16-value > div:first-child { background: var(--teal); } .p16-value > div:first-child * { color: #fff !important; }
.p16-state .bad { background: rgba(226, 57, 44, .15); }
.p16-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.p16-actions .btn { border-radius: 0; font-size: 14px; padding: 8px 14px; }
.p16-actions .btn.primary { background: var(--teal) !important; color: #fff !important; border-color: var(--teal); }
.p16-actions .btn:not(.primary) { background: transparent; color: var(--ink); border: 1px solid rgba(18, 54, 60, .4); }
.p16-actions .btn:not(.primary):hover { background: var(--ink); color: #fff; }
.p16-h { margin: 14px 0 6px; font: normal 16px var(--cond); text-transform: uppercase; color: var(--ink); letter-spacing: .04em; }
.p16-muted { margin: 0; font-size: 13px; color: rgba(18, 54, 60, .7); }
.p16-cg { margin-bottom: 8px; }
.p16-cg > small { display: block; margin-bottom: 4px; font: normal 12px var(--cond); text-transform: uppercase; color: rgba(18, 54, 60, .65); }
.p16-cg > div { display: flex; flex-wrap: wrap; gap: 6px; }
.p16-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(18, 54, 60, .35); background: #fff; color: var(--ink); font: normal 15px var(--cond);
  text-transform: uppercase; cursor: pointer; }
.p16-chip i { font-style: normal; font-size: 12px; color: rgba(18, 54, 60, .55); }
.p16-chip:hover { border-color: var(--teal); }
.p16-chip.on { background: var(--teal); color: #fff; border-color: var(--teal); } .p16-chip.on i { color: rgba(255, 255, 255, .8); }
.p16-confirm { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 10px 12px; background: rgba(31, 127, 140, .12); font-size: 14px; }
.p16-confirm .btn { background: var(--teal) !important; color: #fff !important; border-radius: 0; }
.p16-mgruse .p16-use { padding: 4px 0; }
.modal-box:has(> .p16-mgruse) { background: rgba(226, 242, 244, .97) !important; color: #12363c; }
.modal-box:has(> .p16-mgruse) h3, .modal-box:has(> .p16-mgruse) .icon-btn { color: #12363c !important; }
@media (max-width: 700px) {
  .p16 { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
  .p16-card { width: 46%; margin: 0 auto; }
  .p16 h3 { font-size: 26px; }
  .p16-value { grid-template-columns: 1fr 1fr; }
  .p16-stats b { font-size: 19px; }
}
/* the left panel's stats box: the style and contracts too */
.q16.v2 .q16-pstyle { display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline; gap: 6px; margin: 6px 0 0; }
.q16.v2 .q16-pstyle small { font: normal 12px var(--cond); text-transform: uppercase; color: rgba(18, 54, 60, .65); }
.q16.v2 .q16-pstyle b { font: normal 15px var(--cond); color: var(--ink); text-transform: uppercase; }

/* =================== the right column's tabs: Subs & reserves | Manager =================== */
.q16.v2 .q16-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: -12px; }
.q16.v2 .q16-tabs button { padding: 8px 6px; border: 0; background: rgba(226, 242, 244, .55); color: #12363c; font: normal 15px var(--cond); text-transform: uppercase; cursor: pointer; }
.q16.v2 .q16-tabs button.on { background: var(--pale); box-shadow: inset 0 -3px 0 var(--teal); }
.q16.v2 .q16-mgr { gap: 12px; }
.q16-mgr-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.q16-mgr-row b { display: block; font: normal 20px var(--cond); text-transform: uppercase; color: #12363c; }
.q16-mgr-row small { display: block; font-size: 13px; color: rgba(18, 54, 60, .75); }
.q16-mgr-bonus, .q16-mgr-none { margin: 0; font-size: 14px; color: #12363c; }
.q16-mgr-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.q16-mgr-btns .btn { border-radius: 0; }
.q16-mgr-btns .btn.primary { background: #1f7f8c !important; color: #fff !important; }
.q16-mgr-btns .btn.ghost { color: #12363c; border: 1px solid rgba(18, 54, 60, .4); background: transparent; }
/* the manager as a small FIFA 16 item */
.m16 { position: relative !important; inset: auto !important; display: block; width: 100%; aspect-ratio: 137 / 167; }
.m16-flag { position: absolute; left: 50%; top: 40%; width: 46%; transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.s16-pick .m16 { width: 56px; flex: none; }
.p16-confirm[hidden] { display: none !important; }
.m16-flag { top: 52% !important; width: 40% !important; }
.m16 .i16-p { top: 30%; }
