/* Scoped to the additional pages. Existing frag tables retain their styles. */
.automix{--line:#313448;--muted:#b7bacd;--blue:#59d7e6;--gold:#f2c777}
.automix *{box-sizing:border-box}.automix a{color:#a8d3ef;font-style:normal}.automix a:hover{color:#e1f7ff}.automix button,.automix select,.automix input,.automix textarea,.automix .am-button{font:inherit;color:#edf6ff;background:#182938;border:1px solid #34556c;border-radius:8px;padding:10px 14px;min-height:44px}
.automix button,.automix summary,.automix .am-button{cursor:pointer}.automix button:hover,.automix .am-button:hover{background:#244454;border-color:var(--blue)}.automix button.active{background:#255364;border-color:#70c5d4}.automix button:disabled{opacity:.6;cursor:wait}
.automix input,.automix textarea{background:#0d121d;width:100%}.automix textarea{min-height:100px}.automix :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #72d5e5;outline-offset:3px}
.am-top{background:#101217;border-bottom:1px solid var(--line);padding:14px max(20px,calc((100vw - 1600px)/2));display:flex;align-items:center;gap:28px;flex-wrap:wrap}.am-top nav{display:flex;gap:22px;flex-wrap:wrap}.am-brand{display:flex;gap:12px;align-items:center;color:var(--gold)!important;font-weight:700}.am-brand small{display:block;color:var(--muted);font-weight:400;font-size:14px}
.am-layout{max-width:1600px;width:calc(100% - 48px);margin:32px auto;display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start}.am-panel{background:#14161bed;border:1px solid var(--line);border-radius:12px;box-shadow:0 0 18px #7bbbd52b;overflow:hidden}.am-panel>h2,.am-head{padding:20px 24px;margin:0;border-bottom:1px solid var(--line);background:radial-gradient(ellipse at 25% 30%,#afdefc35,transparent 85%)}.am-head h1{font-size:28px;line-height:1.25;margin:0 0 8px}.am-head p{margin:0;color:var(--muted)}.am-body{padding:24px}.am-side{padding:10px 20px}.am-side a{display:block;padding:13px 0;border-bottom:1px solid var(--line);color:#b7bacd;font-weight:500}.am-types a{border-radius:7px;padding:10px;margin:8px 0;background:#182938;border:1px solid #34556c;font-size:15px}.am-owner-link{display:block;margin:20px;padding:12px;border:1px solid #34556c;border-radius:8px}
.am-new{color:#ffe28b;background:#f4c45d18;border:1px solid #b69a54;border-radius:5px;padding:2px 7px;font-size:13px;float:right}.am-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 22px}.am-toolbar label{color:var(--muted)}.am-toolbar input{width:auto;flex:1;min-width:140px}.am-total{margin:0 0 10px;font-size:20px}.am-warm{background:linear-gradient(105deg,#e7b681,#ffe4be,#fff7ec,#e7b681);background-size:220% auto;background-clip:text;-webkit-background-clip:text;color:transparent!important;animation:am-shimmer 8s linear infinite}.am-note{color:var(--muted);margin:12px 0 20px}.am-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:20px 0 28px;border:1px solid var(--line);border-radius:8px;overflow:hidden}.am-board article{padding:18px;min-height:128px;border-right:1px solid var(--line);background:linear-gradient(115deg,#21425266,#15263766)}.am-board article:nth-child(4n+2){background:linear-gradient(115deg,#40302e66,#19243566)}.am-board article:nth-child(4n+3){background:linear-gradient(115deg,#2f385666,#17243266)}.am-board article:nth-child(4n){background:linear-gradient(115deg,#313f3666,#192d3866)}.am-board small{display:block;font-size:14px;color:var(--muted);margin-bottom:16px}.am-board b{display:block;font-size:21px}.am-scroll{overflow:auto}.am-table{width:100%;border-collapse:collapse;white-space:nowrap}.am-table th,.am-table td{padding:12px 10px;border:1px solid var(--line);text-align:left}.am-table th{background:#20232e;color:var(--muted)}.am-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;vertical-align:middle;margin-right:8px}.am-pages{display:flex;justify-content:center;gap:5px;margin-top:24px;flex-wrap:wrap}.am-pages button{background:#171f2a;min-width:42px}.am-pages .active{background:#314354;border-color:#667e95}
.am-match{border:1px solid #344354;border-radius:9px;background:#17233188;margin:12px 0;overflow:hidden}.am-match.tournament{border-color:#b09c6666;background:#82714215}.am-match summary{display:flex;gap:16px;align-items:center;padding:16px;list-style:none}.am-map{width:92px;height:54px;object-fit:cover;border-radius:6px}.am-match .am-map-name{color:#85d9f0;font-weight:700;font-size:18px}.am-match-meta{color:var(--muted);font-size:14px}.am-score{font-size:24px;font-weight:700;margin-left:auto;white-space:nowrap}.am-live{color:#f0a4a8}.am-live:before{content:'';display:inline-block;width:8px;height:8px;background:#f35b62;border-radius:50%;box-shadow:0 0 7px #ff6767;margin-right:7px;animation:am-pulse 1.8s infinite}.am-detail{padding:18px;border-top:1px solid var(--line)}.am-teams{display:grid;grid-template-columns:1fr 1fr;gap:18px}.am-timeline{display:flex;flex-wrap:wrap;gap:5px;margin-top:24px}.am-round{padding:6px 8px;min-width:34px;border:1px solid #436071;border-radius:5px;text-align:center;color:#8cd1e6}.am-round.team-b{color:#dec2aa;border-color:#82715e}.am-round small{display:block}.am-round img{width:18px;height:18px;object-fit:contain}.am-half{border-left:2px solid #677a85;padding:5px;font-size:12px}
.am-tour-nav button.active,.am-tour-status{color:#efdaae;background:#d1b47518;border-color:#b898625e}.am-tour-status{border:1px solid #b898625e;border-radius:7px;padding:8px 14px}.am-tour-cover{width:100%;max-height:270px;object-fit:cover;border-radius:8px;margin:0 0 18px}.am-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.am-team{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #34556c;border-radius:9px;background:#15233288;cursor:pointer}.am-team img{width:56px;height:56px;object-fit:contain}.am-team b{font-size:18px;display:block}.am-team small{display:block;color:var(--muted);font-size:14px}.am-team.rank-1{border-color:#a58c45;background:#b894271a}.am-team.rank-2{border-color:#a8b8ca;background:#a4bfd119}.am-team.rank-3{border-color:#a87852;background:#bb81511a}.am-team-list{display:grid;gap:12px;margin-top:16px}.am-apply{margin-left:auto}.am-apply span{font-weight:700}.am-facts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.am-facts article{padding:16px;background:#1b293688;border-radius:7px}.am-facts b{display:block;color:#91d3e7;font-size:22px}.am-facts small{display:block;font-size:14px}.am-pre{white-space:pre-wrap;overflow-wrap:anywhere}
.am-award{display:flex;gap:18px;align-items:center;padding:14px 16px;border:1px solid #334454;border-radius:8px;background:#1a2332a0;margin:9px 0;min-height:92px}.am-award img{width:60px;height:60px;object-fit:contain}.am-award h3{margin:0 0 4px;font-size:19px}.am-award p{margin:0;color:var(--muted)}.am-award .am-award-main{flex:1;min-width:0}.am-award progress{width:min(100%,400px);height:9px;accent-color:#64bdd1}.am-earned{color:#e9ce93}.am-lock{font-size:32px;width:60px;text-align:center;color:#849bac}.am-card{padding:18px;border:1px solid #344454;border-radius:8px;margin:14px 0}.am-form{display:grid;gap:14px}.am-form label{display:block;color:var(--muted)}.am-form input,.am-form select,.am-form textarea{display:block;width:100%;margin-top:5px}.am-form input[type=checkbox]{display:inline;width:20px;min-height:20px;vertical-align:middle}.am-form .am-check{display:flex;align-items:center;gap:10px}.am-form .am-check input{margin:0}.am-form .am-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.automix dialog{width:min(800px,calc(100vw - 24px));max-height:90vh;background:#111b28;color:#edf6ff;border:1px solid #546d85;border-radius:12px;padding:24px}.automix dialog::backdrop{background:#050913cc}.am-close{float:right}#am-message{position:fixed;bottom:20px;right:20px;max-width:min(600px,90vw);background:#163146;border:1px solid #7da0b8;padding:14px;border-radius:8px;z-index:100}.am-error{color:#ffb3b7;padding:20px}.automix h2{font-size:22px}.automix [hidden]{display:none!important}
@keyframes am-pulse{50%{opacity:.35}}@keyframes am-shimmer{to{background-position:220% center}}
@media(max-width:1000px){.am-layout{grid-template-columns:210px minmax(0,1fr);gap:16px;width:calc(100% - 24px)}.am-board{grid-template-columns:repeat(2,minmax(0,1fr))}.am-body{padding:18px}.am-grid,.am-teams{grid-template-columns:1fr}}
@media(max-width:700px){body.automix-page{background-image:url('/IMG_3718.jpg')}.am-layout{display:block;margin:16px auto}.am-layout>aside{margin-bottom:16px}.am-side{display:flex;flex-wrap:wrap;gap:10px}.am-side a{padding:9px}.am-types a{flex:1;min-width:150px}.am-head,.am-body{padding:16px}.am-head h1{font-size:24px}.am-match summary{flex-wrap:wrap;gap:10px}.am-map{width:70px;height:44px}.am-score{font-size:21px}.am-form .am-row{grid-template-columns:1fr}.am-award{gap:12px;flex-wrap:wrap}.am-award img{width:52px;height:52px}.am-top{padding:12px}.am-top nav{gap:14px}.am-team{padding:14px}.am-apply{margin-left:0}.am-board article{padding:14px}}
@media(prefers-reduced-motion:reduce){.automix *,.automix *:before{animation:none!important;transition:none!important}}

.am-match-awards{display:flex;gap:6px;margin-top:7px}.am-match-awards img{width:24px;height:24px;object-fit:contain}.am-result{font-size:14px;font-weight:700}.am-result.win{color:#75c791}.am-result.loss{color:#e58a87}.am-result.cancel{color:#b7bacd}.am-score small{display:block;font-size:12px;color:#b7bacd;text-align:center}.am-timeline{position:relative;flex-wrap:nowrap;overflow-x:auto;gap:5px;min-height:85px}.am-round{position:relative;flex:0 0 30px;height:75px;border:0;padding:0;color:#ffaaa1}.am-round.team-b{color:#9dcbff}.am-round i{position:absolute;top:0;left:2px;width:26px;height:26px;font-style:normal}.am-round.team-b i{top:45px}.am-round small{position:absolute;top:28px;left:0;width:30px;color:#b7bacd;font-size:12px}.am-round img{width:24px;height:24px}.am-round.unknown{color:#8f9bac}.am-half{flex:0 0 35px;height:65px;padding-top:26px;color:#a7b8c6}

/* Adapted directly from the user-selected tournament-archive-refined.html variant. */
#tournament-archive-card {
    --ta-bg: #071421;
    --ta-panel: #0d2031;
    --ta-panel-2: #132b3e;
    --ta-line: rgba(126, 203, 229, .22);
    --ta-text: #f4f8fb;
    --ta-muted: #9db6c7;
    --ta-cyan: #62d8ee;
    --ta-gold: #f2c66d;
    --ta-silver: #c8d5df;
    --ta-bronze: #cf8a59;
    --ta-shadow: 0 24px 70px rgba(0, 7, 15, .44);
    color: var(--ta-text);
    font-family: inherit;
    padding: 0;
  }
  #tournament-archive-card * { box-sizing: border-box; }
  #tournament-archive-card .ta-stage {
    min-height: 520px;
    display: grid;
    place-items: center;
  }
  #tournament-archive-card.ta-card {
    position: relative;
    isolation: isolate;
    width: min(100%, 900px);
    overflow: hidden;
    border: 1px solid var(--ta-line);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.035), transparent 36%),
      var(--ta-bg);
    box-shadow: var(--ta-shadow);
  }
  #tournament-archive-card.ta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(98,216,238,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(98,216,238,.025) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
  }
  #tournament-archive-card .ta-glow { position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; filter: blur(70px); opacity: .12; }
  #tournament-archive-card .ta-glow-gold { right: -80px; top: -100px; background: var(--ta-gold); }
  #tournament-archive-card .ta-glow-cyan { left: -100px; bottom: -120px; background: var(--ta-cyan); }
  #tournament-archive-card .ta-header,
  #tournament-archive-card .ta-poster-main > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  #tournament-archive-card .ta-header {
    padding: 28px 30px 22px;
    border-bottom: 1px solid var(--ta-line);
  }
  #tournament-archive-card .ta-kicker {
    color: var(--ta-cyan);
    letter-spacing: .15em;
    font-size: 14px;
    font-weight: 500;
  }
  #tournament-archive-card h2 {
    margin: 5px 0 4px;
    color: var(--ta-text);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -.03em;
  }
  #tournament-archive-card h2 span { color: var(--ta-gold); }
  #tournament-archive-card p { margin: 0; }
  #tournament-archive-card .ta-header p { color: var(--ta-muted); font-size: 15px; }
  #tournament-archive-card .ta-emblem {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--ta-gold);
    border: 1px solid rgba(242,198,109,.45);
    border-radius: 18px;
    background: radial-gradient(circle at 50% 25%, rgba(242,198,109,.22), rgba(242,198,109,.04));
    box-shadow: inset 0 0 20px rgba(242,198,109,.08), 0 0 32px rgba(242,198,109,.09);
  }
  #tournament-archive-card .ta-emblem svg { width: 29px; height: 29px; }
  #tournament-archive-card .ta-passport-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: 18px;
    padding: 22px 30px 24px;
  }
  #tournament-archive-card .ta-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
  #tournament-archive-card .ta-fact,
  #tournament-archive-card .ta-format {
    min-width: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: rgba(19,43,62,.72);
    border-left: 2px solid var(--ta-cyan);
  }
  #tournament-archive-card .ta-fact > svg,
  #tournament-archive-card .ta-format > svg { flex: 0 0 auto; width: 19px; height: 19px; color: var(--ta-cyan); }
  #tournament-archive-card small { display: block; color: var(--ta-muted); font-size: 14px; line-height: 1.3; }
  #tournament-archive-card strong { display: block; color: var(--ta-text); font-weight: 500; line-height: 1.25; }
  #tournament-archive-card .ta-fact strong { margin-top: 3px; font-size: 17px; }
  #tournament-archive-card .ta-format { grid-column: 1 / -1; align-items: flex-start; }
  #tournament-archive-card .ta-format strong { margin-top: 3px; font-size: 15px; }
  #tournament-archive-card .ta-format span { display: block; margin-top: 5px; color: var(--ta-muted); font-size: 14px; line-height: 1.35; }
  #tournament-archive-card .ta-podium {
    padding: 18px;
    background: linear-gradient(145deg, rgba(28,46,61,.96), rgba(17,34,48,.96));
    border-top: 2px solid var(--ta-gold);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  }
  #tournament-archive-card .ta-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: var(--ta-gold); font-size: 16px; font-weight: 500; }
  #tournament-archive-card .ta-section-title svg { width: 18px; height: 18px; }
  #tournament-archive-card .ta-winner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(90deg, rgba(242,198,109,.13), rgba(242,198,109,.025));
    border: 1px solid rgba(242,198,109,.28);
  }
  #tournament-archive-card .ta-winner > svg { width: 22px; height: 22px; color: var(--ta-gold); }
  #tournament-archive-card .ta-winner strong { margin-top: 2px; color: var(--ta-gold); font-size: 18px; }
  #tournament-archive-card .ta-place { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 500; }
  #tournament-archive-card .ta-place-gold { color: #171005; background: linear-gradient(145deg, #fff0a8, #c88a25); box-shadow: 0 0 18px rgba(242,198,109,.22); }
  #tournament-archive-card .ta-place-silver { color: #15202a; background: linear-gradient(145deg, #f0f5f8, #8da2b1); }
  #tournament-archive-card .ta-place-bronze { color: #21120b; background: linear-gradient(145deg, #eda978, #95522f); }
  #tournament-archive-card .ta-runner-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
  #tournament-archive-card .ta-runner { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px; background: rgba(7,20,33,.58); }
  #tournament-archive-card .ta-runner strong { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  #tournament-archive-card .ta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 30px;
    border-top: 1px solid var(--ta-line);
  }
  #tournament-archive-card .ta-actions a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; color: var(--ta-gold); font-size: 14px; font-weight: 500; text-decoration: none; }
  #tournament-archive-card .ta-actions a:first-child { color: var(--ta-text); }
  #tournament-archive-card .ta-actions svg { width: 16px; height: 16px; }


  /* The selected "Турнирная карточка", not the discarded podium layout. */
  .archive-picker{display:flex;justify-content:flex-end}
  .archive-picker label{display:flex;align-items:center;gap:10px;font-size:14px}
  #tournament-archive-card{margin:0 auto;--ta-bg:#0b1420;--ta-panel:#152334;--ta-panel-2:#1c2e40;--ta-text:#edf6ff;--ta-muted:#b7c6d8}
  #tournament-archive-card .ta-header h2{margin:5px 0 4px}
  #tournament-archive-card .ta-cup{object-fit:contain;width:60px;height:60px;flex:none}
  #tournament-archive-card .ta-runner .ta-cup{width:46px;height:46px}
  #tournament-archive-card .ta-winner strong{font-size:20px;overflow-wrap:anywhere}
  #tournament-archive-card .ta-runner>div{min-width:0}
  #tournament-archive-card .ta-runner strong{white-space:normal;overflow:visible;overflow-wrap:anywhere}
  #tournament-archive-card .ta-fact strong{font-size:19px}
  #tournament-archive-card .ta-format strong{font-size:17px}
  #tournament-archive-card .ta-section-title{font-size:18px}
  #tournament-archive-card .ta-actions{text-align:left}
  #tournament-archive-card .ta-actions button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:5px 7px;margin:0 -7px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ta-gold);font-size:14px;font-weight:500;box-shadow:none}
  #tournament-archive-card .ta-actions button:first-child{color:var(--ta-text)}
  #tournament-archive-card .ta-actions button:hover{background:#59d7e612;border-color:#62d8ee66}
  .archive-rounds{width:min(100%,900px);margin:auto;border:1px solid #313f52;border-radius:7px;padding:12px 18px;background:#141e2bcc}
  .archive-rounds summary{cursor:pointer;color:#b7d4e8;font-size:15px}
  .archive-rounds .bracket{margin-top:16px}
  @media(max-width:680px){
    #tournament-archive-card .ta-header{padding:23px 20px 18px}
    #tournament-archive-card .ta-passport-grid{grid-template-columns:1fr;padding:18px 20px}
    #tournament-archive-card .ta-actions{padding:15px 20px;align-items:flex-start;flex-direction:column;gap:8px}
    .archive-picker label{flex-wrap:wrap}
  }
  @media(max-width:460px){
    #tournament-archive-card .ta-emblem{width:50px;height:50px;border-radius:15px}
    #tournament-archive-card .ta-facts,#tournament-archive-card .ta-runner-row{grid-template-columns:1fr}
    #tournament-archive-card .ta-format{grid-column:auto}
  }

.automix #tournament-archive-card{--ta-bg:#14161b;--ta-panel:#191f2b;--ta-panel-2:#1c2e40;box-shadow:none;border-radius:10px}.automix #tournament-archive-card .ta-winner{grid-template-columns:auto 1fr}.automix #tournament-archive-card .ta-actions{flex-wrap:wrap}.automix #tournament-archive-card .ta-passport-grid{gap:16px;padding:20px}

@media(max-width:991.99px){body.automix-page{background-image:url('/IMG_3718.jpg')}}

/* Native GameCMS page: its header, background and grid are inherited. */
.automix .am-native-title{padding:inherit}.automix .am-native-title h1{font:inherit;margin:0}.automix .am-body{padding:20px}.automix .am-body .gma-match{font-family:inherit}.automix .gma-match-kd{font-weight:700}@keyframes automix-live-pulse{50%{opacity:.3}}
.automix-native-nav{list-style:none;margin:0;padding:0}.automix-native-nav li{border-bottom:1px solid #313448}.automix-native-nav a{display:flex;align-items:baseline;gap:8px;padding:13px 0;color:inherit;font-style:normal;text-decoration:none}.automix-new-badge{margin-left:auto;flex:0 0 auto;color:#ffe28b;border:1px solid #a88c43;border-radius:5px;padding:0 6px;font-size:12px;line-height:1.45;white-space:nowrap}.automix-nav-check{color:#72d8e2;animation:automix-check-glow 4s ease-in-out infinite}@keyframes automix-check-glow{50%{filter:drop-shadow(0 0 4px #72d8e2)}}@media(prefers-reduced-motion:reduce){.automix-nav-check{animation:none}}

.automix .automix-match-list{background:none!important;border:0;margin:0;overflow:visible}.automix .am-native-title{padding:20px!important}.automix-stat-type>a{display:flex!important;align-items:baseline;gap:8px;color:#b7bacd!important;font-weight:400!important;font-style:normal!important}.automix-stat-type>a>span:not(.automix-new-badge){background:none!important;-webkit-text-fill-color:currentColor!important}.automix-stat-type .automix-new-badge{color:#ffe28b!important}

@media(prefers-reduced-motion:reduce){.automix .gma-live-dot{animation:none}}

/* Corrections to the native template contract, 031026 v4. */
html body .wapper .content #am-content{padding:0!important;min-width:0}
html body .wapper .content #am-content>.am-native-title{display:flex;align-items:center;min-height:60px;height:auto;margin:0!important;padding:17px 30px!important;font-size:20px!important;font-weight:700;line-height:1.3;text-align:left}
html body #am-content>.am-body{padding:24px 30px;margin:0;min-width:0;font-size:14px;color:#b7bacd}
html body #am-dialog:not([open]){display:none!important}
html body #am-dialog[open]{position:fixed;margin:auto;inset:0;z-index:1001;overflow:auto}
html body .automix .am-subtitle{margin:0 0 22px;font-size:14px;font-weight:400;line-height:1.5;color:#b7bacd}
html body .automix .am-board{grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0 24px}
html body .automix .am-board article{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:112px;padding:16px;background:linear-gradient(90deg,rgba(17,23,34,.5),rgba(25,52,68,.7),rgba(17,23,34,.5));border-right:1px solid #313448}
html body .automix .am-board small{margin:0;font-size:13px;line-height:1.4;min-height:36px}
html body .automix .am-board b{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
html body .automix .am-board article>span{font-size:23px;font-weight:700;line-height:1.2;color:#edf6ff}
html body .automix .am-board .am-avatar{width:24px;height:24px;margin-right:6px}
html body .automix .am-board .am-player{display:flex;align-items:center;min-width:0}
html body .automix .am-board .am-player span{overflow-wrap:anywhere;min-width:0}
html body .automix h2{font-size:18px;font-weight:700;line-height:1.35;margin:0 0 14px}
html body .automix .am-award-section{margin:32px 0 14px;padding:14px 0 10px;border-bottom:1px solid #34556c;color:#efd28a;font-size:20px}
html body .automix .am-award-section:first-child{margin-top:0}
html body .automix .am-award h3{font-size:17px;line-height:1.35;overflow-wrap:anywhere}
html body .automix .am-award p{font-size:14px;line-height:1.5}
html body .automix .am-award .am-note{margin:0}
html body .automix .am-table th{background:transparent!important;font-size:14px;font-weight:700;color:#b7bacd}
html body .automix .am-table td{font-size:14px;color:#fff}
html body .automix .am-table td,html body .automix .am-table th{padding:12px 10px;border-color:#313448}
html body .automix .am-table .am-player>span{color:inherit}
html body .automix button,html body .automix .am-button{padding:9px 13px;min-height:44px;font-size:14px;font-weight:600;background:#182938;border:1px solid #34556c;border-radius:7px;line-height:1.45}
html body .automix button.active,html body .automix button[aria-pressed=true]{background:#255364;border-color:#70c5d4;color:#edf6ff}
html body .automix .am-search-sort{margin:0 0 20px!important}
html body .automix .am-select-control{flex:0 1 220px;min-width:180px}
html body .automix .am-empty-state{padding:28px 20px;border:1px solid #313448;border-radius:8px;text-align:center;background:rgba(17,23,34,.55)}
html body .automix .am-empty-state>i{font-size:26px;color:#e2bd73;margin-bottom:16px}
html body .automix .am-empty-state p{max-width:480px;margin:0 auto;line-height:1.6}
@media(max-width:1100px){html body .automix .am-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){html body #am-content>.am-body{padding:18px 16px}html body .wapper .content #am-content>.am-native-title{padding:17px 16px!important}html body .automix .am-search-sort{flex-direction:column!important}html body .automix .stats-sort-control{flex:1 1 auto;width:100%}html body .automix .am-award{display:grid;grid-template-columns:52px minmax(0,1fr)}html body .automix .am-award>.am-earned,html body .automix .am-award>.am-note,html body .automix .am-award>button{grid-column:2}html body .automix .am-board article{padding:12px}.automix .am-toolbar{gap:8px}}

/* Native compact navigation; reuse the theme's animated-icons gradients. */
.automix-native-nav{list-style:none;margin:0!important;padding:0!important}
.automix-native-nav>li>a,.automix-stat-type>a{display:flex!important;align-items:baseline;gap:8px;padding:11px 0!important;font-size:14px;line-height:1.5;color:#b7bacd!important;font-weight:400!important;font-style:normal!important}
.automix-native-nav>li.active>a,.automix-native-nav>li>a[aria-current=page]{color:#efd28a!important;background:rgba(226,189,115,.05)}
.automix-native-nav>li>a:hover{color:#efd28a!important}
.automix-new-badge{display:inline-block;flex:0 0 auto;float:none!important;margin-left:auto;font-size:11px;font-weight:400;line-height:1.2;padding:2px 5px;border:1px solid #b69a54;border-radius:4px;color:#ffe28b!important;white-space:nowrap}
.automix-nav-check.animated-icons{animation:logoFireFlow 3.8s ease-in-out infinite,logoFireFlicker 1.3s ease-in-out infinite alternate;margin-right:0}
.automix-menu-icon{width:16px;flex:0 0 16px;text-align:center;margin:0!important}
.automix-return{margin-top:12px}
.automix-stat-type>a>span:not(.automix-new-badge){font-weight:400!important;background:none!important;-webkit-text-fill-color:currentColor!important}
@media(prefers-reduced-motion:reduce){.automix-nav-check.animated-icons,.automix-menu-icon{animation:none!important}}

.automix .am-select-control:has(select[hidden]){display:none!important}

html body .automix .am-board article>.am-empty-value{font-size:14px;font-weight:400;color:#b7bacd}

/* Shared native navigation v8: also appended to GameCMS mystyles.css. */
html body .wapper .content .vertical-navigation ul>li{box-sizing:border-box;padding:0!important;margin:0!important;border-left:1px solid transparent!important;border-bottom:1px solid rgba(111,139,165,.4)!important;background:transparent!important;transition:background .2s,box-shadow .2s}
html body .wapper .content .vertical-navigation ul>li:first-child{border-top:1px solid rgba(111,139,165,.4)!important}
html body .wapper .content .vertical-navigation ul>li>a{box-sizing:border-box;display:flex!important;align-items:center!important;gap:9px;width:100%;min-height:51px;height:auto!important;padding:10px 30px!important;margin:0!important;border:0!important;border-radius:0!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;line-height:1.4!important;text-decoration:none!important;transition:color .2s}
html body .wapper .content .vertical-navigation ul>li:hover,html body .wapper .content .vertical-navigation ul>li.active,html body .wapper .content .vertical-navigation ul>li:focus-within{background:linear-gradient(90deg,rgba(5,12,22,.96),rgba(16,29,41,.84))!important;box-shadow:inset 0 0 0 1px rgba(130,169,193,.68)!important}
html body .wapper .content .vertical-navigation ul>li>a:hover,html body .wapper .content .vertical-navigation ul>li.active>a,html body .wapper .content .vertical-navigation ul>li>a.active,html body .wapper .content .vertical-navigation ul>li>a[aria-current=page]{background:transparent!important;box-shadow:none!important;color:#f4d182!important}
html body .wapper .content .vertical-navigation ul>li>a:focus-visible{outline:2px solid #91d4db;outline-offset:-3px}
html body .wapper .content .vertical-navigation .automix-new-badge{flex:0 0 auto;align-self:center;margin-left:auto!important;max-width:none;white-space:nowrap}
html body .wapper .content .vertical-navigation .automix-stat-type>a>span:not(.automix-new-badge){min-width:0;white-space:normal}
html body .wapper .content .vertical-navigation ul>li>a>i,html body .wapper .content .vertical-navigation ul>li>a>span:not(.automix-new-badge)>i{flex:0 0 17px;width:17px;margin:0!important;text-align:center}
html body .wapper .content .vertical-navigation ul>li>a>span:not(.automix-new-badge){display:inline-flex;align-items:center;gap:9px}
html body .wapper .content .vertical-navigation .automix-nav-check,html body .wapper .content .vertical-navigation .automix-nav-match,html body .wapper .content .vertical-navigation .automix-menu-icon{flex:0 0 17px;width:17px;text-align:center}
html body .wapper .content .automix-stat-nav>.block_head,html body .wapper .content .extra-stats>.block_head .extra-head{color:#f0d381!important;-webkit-text-fill-color:#f0d381!important;font-size:20px!important;font-weight:700!important}
html body .wapper .content .automix-stat-type>a{font-size:14px!important;line-height:1.4!important}
html body .wapper .content .automix-stat-type>a>span:not(.automix-new-badge){white-space:nowrap}
html body .wapper .content .automix-stat-type.active>a>span:not(.automix-new-badge){color:#f4d182!important;-webkit-text-fill-color:#f4d182!important}
html body .wapper .content .automix-nav-match{color:#61d7e4!important;text-shadow:0 0 10px rgba(97,215,228,.45)}
html body .wapper .content .vertical-navigation ul>li:not(.active)>a:not([aria-current=page]){color:#e5edf6!important}
html body .wapper .content .vertical-navigation .automix-menu-icon{background:linear-gradient(105deg,#f4a65d,#ffe59a,#62d4e4,#f4a65d)!important;background-size:300% 100%!important;background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;animation:automix-nav-gold 5s ease-in-out infinite!important}
html body .wapper .content .block.automix-stat-nav{box-shadow:0 0 16px 0 rgba(251,212,190,.9)!important}
html body .wapper .content .block{border-radius:8px!important}
html body .wapper .content .block>.block_head{border-radius:8px 8px 0 0!important}
html body .wapper .content .vertical-navigation{border-radius:0 0 8px 8px!important}
html body .wapper .content .vertical-navigation ul>li:last-child,html body .wapper .content .vertical-navigation ul>li:last-child>a{border-radius:0 0 8px 8px!important}
/* End shared native navigation v8. */

/* Match pages, scoreboards and achievements. */
html body .automix .am-native-title{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
html body .automix .am-native-title:has(.am-heading-icon){grid-template-columns:auto auto minmax(0,1fr) auto;gap:10px;font-size:20px!important}
html body .wapper .content #am-content>.am-native-title:has(.am-heading-icon){min-height:60px;padding:0 30px!important;border-bottom:1px solid rgba(85,151,204,.14);background:radial-gradient(ellipse 38% 115% at 30% 45%,rgba(175,222,252,.30),rgba(72,139,194,.15) 50%,transparent 100%),linear-gradient(90deg,rgba(25,43,63,.44),rgba(12,20,31,.12))!important;color:#edf6ff!important}
html body .automix .am-heading-icon{color:#59d7e6;font-size:17px;text-shadow:0 0 12px rgba(89,215,230,.48)}
html body .automix .am-heading-label{white-space:nowrap}
html body .automix .am-native-title:has(.am-heading-icon) .am-heading-label{font-size:22px}
html body .automix .am-native-title .am-heading-label{color:#f4f7fc!important;-webkit-text-fill-color:#f4f7fc!important;font-weight:700}
html body .automix .am-heading-total{justify-self:center;position:relative;left:32px;color:#d8e2ec;font-size:15px;font-weight:400;white-space:nowrap}
html body .automix .am-heading-total strong{font-weight:700;color:#edf6ff}
html body .automix .am-heading-total b{font-size:17px}
html body .automix .am-heading-action{min-height:33px;padding:5px 10px;font-size:12px;font-weight:500;white-space:nowrap}
html body .automix .am-total{font-size:16px;line-height:1.5;margin:1px 0 22px;color:#bdc8d7}
html body .automix .am-total b{font-size:17px}
html body .automix .am-section-title{font-size:20px;color:#efd28a;border-bottom:1px solid #34556c;padding:0 0 10px;margin:0 0 12px}
html body .automix .am-board{margin:0 0 20px}
html body .automix .am-board article{display:grid;grid-template-rows:minmax(36px,auto) minmax(22px,1fr) auto;align-content:stretch;gap:3px;min-height:116px;padding:12px 14px;text-align:center}
html body .automix .am-board small{min-height:0;margin:0;font-size:15px;font-weight:700;line-height:1.25;color:#b9dfeb}
html body .automix .am-board .am-board-player{display:flex;align-items:center;justify-content:center;min-height:22px;font-size:15px;font-weight:600;line-height:1.3}
html body .automix .am-board .am-board-player .am-player{display:inline-flex;align-items:center;justify-content:center}
html body .automix .am-board .am-board-value{align-self:end;font-size:25px;line-height:1.15;color:#f5f7fb}
html body .automix .am-board .am-board-total .am-board-value{font-size:34px}
html body .automix .am-board article{grid-template-rows:38px minmax(20px,1fr) auto;gap:3px;min-height:108px;padding:8px 12px 10px}
html body .automix .am-board small{display:flex;align-items:flex-start;justify-content:center;min-height:0;padding-bottom:7px;border-bottom:1px solid rgba(126,155,177,.42);font-size:14px;line-height:1.25}
html body .automix .am-board .am-board-player{font-size:15px;line-height:1.25;color:#dce6f1}
html body .automix .am-board .am-board-profile,html body .automix .am-board .am-board-unlinked{color:#dce6f1!important;font:inherit;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .automix .am-board .am-board-profile{text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#7abbd0;text-underline-offset:4px}
html body .automix .am-board .am-board-profile:hover{color:#9de1ea!important;text-decoration-style:solid}
html body .automix .am-board .am-board-value{font-size:27px}
html body .automix .am-board .am-board-total .am-board-value{font-size:42px;background:linear-gradient(105deg,#edaa61,#ffe19e,#85d7df,#edaa61);background-size:260% auto;background-clip:text;-webkit-background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;animation:am-shimmer 8s linear infinite}
html body .automix .am-board article:not(.am-board-total) .am-board-value{color:#e3aaa3}
html body .automix .am-stat-explain{font-size:14px;line-height:1.55;color:#b7bacd;border-top:1px solid #34556c;padding-top:17px;margin:0 0 22px}
html body .automix .am-stat-explain+.am-toolbar{margin-top:0;margin-bottom:24px}
html body .automix .automix-native-nav>li>a,html body .automix-stat-type>a{align-items:center!important}
html body .automix-native-nav>li>a{padding-left:10px!important;padding-right:10px!important}
html body .automix .automix-menu-icon{display:inline-block;background:linear-gradient(110deg,#f7f9f4,#d3c584,#fff9df,#f7f9f4);background-size:250% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:automix-nav-gold 7s ease-in-out infinite!important}
@keyframes automix-nav-gold{0%,100%{background-position:0 50%;filter:drop-shadow(0 0 1px rgba(238,210,135,.16))}50%{background-position:100% 50%;filter:drop-shadow(0 0 3px rgba(238,210,135,.36))}}
html body .automix .am-award-clickable{cursor:pointer}
html body .automix .am-award-clickable:hover,html body .automix .am-award-clickable:focus-visible{border-color:#c6a267;box-shadow:0 0 0 1px rgba(231,195,114,.42);background:#1d2a36bb;outline:none}
html body .automix .am-achievement-state{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;min-width:145px;font-size:14px;white-space:nowrap}
html body .automix .am-achievement-state i{font-size:15px}
html body .automix .am-achievement-state.is-earned{color:#e8c574}
html body .automix .am-achievement-state.is-locked{color:#b8c5d5}
html body .automix .am-achievement-state.is-locked i{color:#eda34f}
html body .automix .am-achievement-progress{display:flex;align-items:center;gap:7px;max-width:660px;margin:9px 0 0}
html body .automix .am-achievement-progress progress{appearance:none;-webkit-appearance:none;flex:1;width:auto;max-width:530px;height:10px;border:1px solid #7893a8;border-radius:20px;background:#405365;overflow:hidden}
html body .automix .am-achievement-progress progress::-webkit-progress-bar{background:#405365;border-radius:20px}
html body .automix .am-achievement-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#de5e52,#efc770);border-right:2px solid #ffe8b9;border-radius:20px}
html body .automix .am-achievement-progress progress::-moz-progress-bar{background:linear-gradient(90deg,#de5e52,#efc770);border-right:2px solid #ffe8b9;border-radius:20px}
html body .automix .am-achievement-progress span{font-size:14px;white-space:nowrap;color:#d9e5ef}
html body .automix .am-player>span{font-size:inherit!important}
html body .automix .am-player-name{display:inline-block;font-size:inherit!important;font-style:normal;line-height:1.35;min-height:20px}
html body .automix select,html body .stats-sort-control select{color-scheme:dark!important}
html body .automix select option,html body .automix select optgroup,html body .stats-sort-control select option{background:#101722!important;color:#edf6ff!important}
html body .automix .am-table thead th{color:#e1eff7!important;font-weight:700}
html body .automix .am-table .am-empty-row td{text-align:center!important;color:#e4edf6;padding:12px 10px}
html body .automix .am-empty-achievements{padding:18px;border:1px solid #38536b;border-radius:8px;color:#cbd7e4;text-align:center;background:#162230a6}
html body .automix .am-win-ring{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
html body .automix .am-win-ring b{font-size:14px;color:#e9f3fa}
html body .automix .am-win-ring-circle{display:inline-block;width:19px;height:19px;flex:0 0 19px;border-radius:50%;background:conic-gradient(from -90deg,#de5e52 0%,#efc770 var(--am-percent),#293b4d var(--am-percent),#293b4d 100%);position:relative;box-shadow:0 0 0 1px rgba(239,199,112,.22)}
html body .automix .am-win-ring-circle:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#111722}
@media(max-width:900px){html body .automix .am-native-title{grid-template-columns:1fr auto}html body .automix .am-native-title:has(.am-heading-icon){grid-template-columns:auto 1fr auto}html body .automix .am-heading-total{grid-column:1/-1;grid-row:2;justify-self:start;left:0;font-size:14px}}
@media(max-width:650px){html body .automix .am-board article{min-height:105px;padding:8px}html body .automix .am-board small{font-size:13px}html body .automix .am-board .am-board-value{font-size:23px}html body .automix .am-board .am-board-total .am-board-value{font-size:36px}html body .automix .am-award{grid-template-columns:52px minmax(0,1fr)}html body .automix .am-award .am-achievement-state{grid-column:2;justify-content:flex-start;margin-top:4px}}
@media(prefers-reduced-motion:reduce){html body .automix .automix-menu-icon{animation:none!important}}
@media(prefers-reduced-motion:reduce){html body .automix .am-board .am-board-total .am-board-value{animation:none!important}}
