@font-face{font-family:"LegionGothic";src:url("assets/legion-gothic-book.otf") format("opentype");font-weight:300 500;font-style:normal;font-display:swap}
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Orbitron:wght@400;500&display=swap');
:root{--bg:#000;--panel:#111;--panel2:#191919;--line:#303030;--text:#f2f2f2;--muted:#969696;--lime:#c7e75b;--orange:#ff982e;--green:#7bd6a3;--red:#ee7777}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif}.shell{max-width:760px;margin:auto;min-height:100vh;padding:0 14px 95px;background:linear-gradient(180deg,#080808 0%,#000 60%)}.topbar{min-height:76px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #292929}.brand-logo{width:110px;height:58px;object-fit:contain;object-position:left center;display:block;background:#000}.brand-caption{font:700 10px Manrope,sans-serif;letter-spacing:1.2px;color:#ddd}.brand-caption span{color:var(--orange)}.access-pill{margin-left:auto;border:1px solid #4e5b25;background:#14180a;color:var(--lime);font-size:9px;letter-spacing:1px;padding:7px 9px;border-radius:6px;white-space:nowrap}.back{background:none;border:0;color:var(--lime);padding:16px 0 10px;font:600 12px 'DM Sans',sans-serif}.back span{color:#b7b7b7}.page-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--orange);font-weight:700;margin:0 0 6px}.page-title h1{font:800 25px Manrope,sans-serif;margin:0 0 5px;letter-spacing:-.6px}.muted{font-size:11px;color:var(--muted);line-height:1.4;margin:0}.game-badge{border:1px solid #59672c;border-radius:9px;padding:8px 11px;background:#11150a;text-align:center;min-width:75px}.game-badge small{display:block;font-size:8px;color:#9cae5b;letter-spacing:1px}.game-badge strong{display:block;font:800 19px Manrope,sans-serif;color:var(--lime);margin-top:3px}.panel{background:#0d0d0d;border:1px solid #292929;border-radius:12px;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.field{min-width:0}.field label{display:block;color:#a5a5a5;font-size:9px;font-weight:700;letter-spacing:.7px;margin-bottom:5px}.field input,.field select{width:100%;min-width:0;background:#151515;border:1px solid #333;color:var(--text);border-radius:7px;padding:9px 7px;font:11px 'DM Sans',sans-serif;accent-color:var(--lime)}.field select:focus,.field input:focus{outline:1px solid var(--lime);border-color:var(--lime)}.winner-field select{border-color:#4b542c;color:var(--lime)}.host-value{min-height:34px;display:flex;align-items:center;gap:7px;background:#151515;border:1px solid #292929;border-radius:7px;padding:5px 7px;font-size:11px}.host-avatar{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;background:#242b12;color:var(--lime);border:1px solid #4e5b25;border-radius:50%;font-weight:700}.host-value #hostName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lock{font-size:8px;color:#858585;margin-left:auto;white-space:nowrap}.table-wrap{border:1px solid #2c2c2c;border-radius:10px;overflow:hidden;background:#090909}.table-head,.player-row{display:grid;grid-template-columns:30px minmax(0,1.35fr) minmax(0,1.3fr) 68px;align-items:center;gap:5px}.table-head{background:#161616;color:#9e9e9e;font-size:9px;font-weight:700;letter-spacing:.6px;padding:10px 7px;border-bottom:1px solid #3a3a3a}.player-row{padding:5px 7px;border-top:1px solid #242424;min-height:46px}.player-row:nth-child(even){background:#0f0f0f}.place{font:600 11px Manrope,sans-serif;color:#898989;text-align:center}.player-input,.role-select,.extra-input{width:100%;min-width:0;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--text);font:11px 'DM Sans',sans-serif;padding:8px 4px;outline:none}.player-input:focus,.role-select:focus,.extra-input:focus{background:#171a0e;border-color:#788a35}.role-cell{position:relative;display:flex;align-items:center;gap:4px;min-width:0}.role-select{appearance:auto;padding-left:1px;padding-right:0;font-size:10px}.role-icon{width:22px;height:22px;min-width:22px;object-fit:contain;display:block;filter:none}.extra-input{appearance:none;-moz-appearance:textfield;text-align:right;border:1px solid #303030;background:#121212;padding:8px 5px;font-variant-numeric:tabular-nums;font-size:12px}.extra-input::-webkit-inner-spin-button,.extra-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.extra-input:focus{border-color:var(--orange)}.slot-controls{display:flex;justify-content:space-between;align-items:center;margin:13px 1px}.slot-controls strong{font:700 12px Manrope,sans-serif;color:var(--lime)}.slot-controls small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.stepper{display:flex;gap:6px}.stepper button{width:32px;height:30px;border:1px solid #536027;background:#15190a;color:var(--lime);border-radius:7px;font-size:19px}.stepper button:last-child{background:var(--lime);color:#111;border-color:var(--lime)}.summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.summary>div{padding:11px;background:#0d0d0d;border:1px solid #2e2e2e;border-radius:9px}.summary span{display:block;color:#929292;font-size:9px;letter-spacing:.6px}.summary strong{display:block;font:800 17px Manrope,sans-serif;margin-top:4px;color:var(--lime)}.primary{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 15px;background:var(--orange);color:#111;border:0;border-radius:8px;font:800 12px Manrope,sans-serif}.primary span{font-size:18px}.primary:active{transform:scale(.99)}.footnote{font-size:9px;line-height:1.5;color:#626262;text-align:center;margin:10px 8px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(760px,100%);display:flex;justify-content:space-around;background:#080808f5;backdrop-filter:blur(18px);border-top:1px solid #292929;padding:9px 8px calc(8px + env(safe-area-inset-bottom));color:#777}.bottom-nav span{display:flex;align-items:center;flex-direction:column;gap:3px;font-size:18px;flex:1}.bottom-nav small{font:500 9px 'DM Sans',sans-serif}.bottom-nav .active{color:var(--lime)}.toast{position:fixed;left:14px;right:14px;bottom:83px;max-width:730px;margin:auto;background:#14170d;border:1px solid #667b2b;border-radius:9px;padding:12px 14px;color:var(--lime);font-size:11px;line-height:1.5;display:none;white-space:pre-line;box-shadow:0 8px 30px #0009}.toast.show{display:block}@media(max-width:440px){.shell{padding-left:7px;padding-right:7px}.brand-logo{width:90px;height:52px}.brand-caption{font-size:8px;letter-spacing:.6px}.table-head,.player-row{grid-template-columns:23px minmax(0,1.25fr) minmax(0,1.2fr) 59px;gap:3px;padding-left:4px;padding-right:4px}.player-input,.role-select{font-size:10px;padding-left:2px;padding-right:2px}.extra-input{font-size:12px;padding:8px 3px}.role-icon{width:15px;height:15px;min-width:15px}.panel{gap:7px;padding:8px}.field input,.field select{font-size:10px;padding:8px 4px}.page-title h1{font-size:22px}.lock{font-size:7px}}
.host-line{font-size:11px;color:#999;margin:6px 0 0}.host-line strong{color:var(--lime);font-weight:600}

[hidden]{display:none!important}.games-list{display:grid;gap:9px;margin-top:14px}.game-card{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:13px;background:#0d0d0d;border:1px solid #303030;border-radius:10px;color:var(--text)}.game-card:active{border-color:var(--lime)}.game-card .number{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #4b5925;border-radius:8px;color:var(--lime);font:800 14px Manrope,sans-serif;background:#12160a}.game-card .game-info{min-width:0;flex:1}.game-card strong{display:block;font:700 12px Manrope,sans-serif}.game-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.game-card .chevron{color:var(--orange);font-size:20px}.empty-games{padding:24px 12px;text-align:center;color:var(--muted);border:1px dashed #333;border-radius:10px;font-size:12px;line-height:1.6}.new-game-button{margin-bottom:12px}.danger-zone{margin-top:22px;padding:13px;border:1px solid #5b2929;border-radius:9px;background:#160b0b}.danger-zone p{font-size:10px;color:#b7a0a0;margin:0 0 10px}.danger-button{width:100%;border:1px solid #9c4141;background:#2a1010;color:#ff8b8b;border-radius:7px;padding:11px;font:700 11px Manrope,sans-serif}.summary{grid-template-columns:1fr}.
/* Rating table */
.bottom-nav button{appearance:none;border:0;background:transparent;color:inherit;display:flex;align-items:center;flex-direction:column;gap:3px;font-size:18px;flex:1;padding:0}.bottom-nav button small{font:500 9px 'DM Sans',sans-serif}.bottom-nav button.active{color:var(--lime)}.rating-period{display:flex;align-items:center;gap:8px;margin:4px 0 8px;padding:9px;background:#0d0d0d;border:1px solid #292929;border-radius:9px}.rating-period label{font-size:10px;color:#aaa;margin-left:auto}.rating-period select{max-width:150px;background:#151515;color:var(--text);border:1px solid #414141;border-radius:6px;padding:8px 7px;font:11px 'DM Sans',sans-serif}.period-all{background:#141414;color:#aaa;border:1px solid #393939;border-radius:6px;padding:8px 10px;font:600 10px 'DM Sans',sans-serif;white-space:nowrap}.period-all.selected{background:#20260f;border-color:#657a2d;color:var(--lime)}.rating-note{font-size:10px;color:var(--orange);margin:7px 2px 10px}.rating-table-wrap{width:100%;overflow-x:auto;border:1px solid #2c2c2c;border-radius:10px;background:#090909}.rating-table{border-collapse:collapse;width:100%;min-width:610px;font-size:10px;font-variant-numeric:tabular-nums}.rating-table th{background:#161616;color:#9e9e9e;font-size:9px;letter-spacing:.25px;text-align:right;padding:11px 8px;white-space:nowrap;border-bottom:1px solid #3a3a3a}.rating-table th:first-child{text-align:left}.rating-table td{padding:10px 8px;border-top:1px solid #242424;text-align:right;white-space:nowrap}.rating-table tbody tr:nth-child(even){background:#0f0f0f}.rating-table td:first-child{text-align:left;min-width:120px}.rating-table td:first-child strong{display:inline-block;max-width:95px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.rating-table td:first-child small{display:block;color:#777;font-size:9px;margin:3px 0 0 22px}.rank{display:inline-grid;place-items:center;width:17px;height:17px;margin-right:5px;border-radius:4px;background:#1b210d;border:1px solid #465421;color:var(--lime);font-size:9px}.rating-score{color:var(--lime);font-weight:800}.rating-table tbody tr:first-child .rank{background:var(--lime);color:#111;border-color:var(--lime)}@media(max-width:440px){.rating-period{gap:5px;padding:7px}.rating-period select{max-width:125px}.period-all{padding:8px 7px;font-size:9px}}

/* Test build refinements: preserve the supplied logo file exactly. */
.brand-logo{width:150px;height:70px;object-fit:contain;object-position:left center;image-rendering:auto;flex:0 0 auto}
.home-empty{min-height:45vh}
.player-avatar{display:inline-block;vertical-align:middle;width:29px;height:29px;margin-right:6px;border-radius:50%;object-fit:cover;border:1px solid #565656;background:#292929}
.rating-table td:first-child strong{max-width:78px}
.game-card .game-info small{display:flex;align-items:center;gap:6px}
.winner-icon{width:19px;height:19px;object-fit:contain;flex:0 0 19px}
.winner-icon.win-peace{filter:brightness(0) saturate(100%) invert(84%) sepia(67%) saturate(554%) hue-rotate(20deg) brightness(105%)}
.winner-icon.win-mafia{filter:brightness(0) saturate(100%) invert(37%) sepia(83%) saturate(2010%) hue-rotate(322deg) brightness(95%)}
.winner-icon.win-maniac{filter:brightness(0) saturate(100%) invert(68%) sepia(43%) saturate(879%) hue-rotate(165deg) brightness(102%)}
@media(max-width:440px){.brand-logo{width:112px;height:58px}}

/* Polished visual pass matching the approved Legion City reference screens */
.shell{max-width:520px;padding:0 14px 94px;background:#000;}
.topbar{display:none}
.section-logo{height:72px;display:flex;justify-content:center;align-items:center;margin:2px 0 0}
.section-logo img{display:block;width:148px;height:70px;object-fit:contain;image-rendering:auto}
.section-heading{font-family:"Orbitron",sans-serif;font-size:22px;line-height:1.15;text-align:center;color:var(--lime);font-weight:400;letter-spacing:.25px;margin:0 0 14px}
.home-view{min-height:calc(100vh - 95px);display:flex;flex-direction:column;padding-bottom:8px}
.home-hero-logo{height:215px;display:flex;align-items:flex-start;justify-content:center;padding-top:16px;background:#000}
.home-hero-logo img{width:310px;max-width:90%;height:155px;object-fit:contain;image-rendering:auto}
.home-empty{min-height:52vh;flex:1;border:1.5px solid #c7ef21;border-radius:18px;margin:0 5px 14px;background:radial-gradient(ellipse at center,#111209 0%,#070806 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}
.home-empty .crown{color:var(--lime);font-size:40px;line-height:1;margin-bottom:22px}
.home-empty h2{font-size:17px;line-height:1.5;margin:0 0 18px;font-weight:800}
.home-empty p{font-size:15px;line-height:1.55;color:#bcbcbc;margin:0}
#gamesView,#ratingView{padding-bottom:12px}
.new-game-button{background:linear-gradient(100deg,#c7ed49,#c9ef50);color:#080900;justify-content:center;gap:10px;border-radius:11px;padding:17px 14px;font-size:16px;margin:0 0 16px}
.new-game-button .plus-sign{font-size:23px;line-height:1}
.games-tabs{display:grid;grid-template-columns:1fr 1fr;border:1px solid #343434;background:#101010;border-radius:14px;padding:2px;margin-bottom:14px}
.games-tabs button{border:0;background:transparent;color:#eee;border-radius:11px;padding:12px 8px;font:500 14px 'DM Sans',sans-serif}
.games-tabs button.selected{background:var(--lime);color:#080900;font-weight:700}
.games-list{gap:8px;margin-top:0}
.game-card{display:grid;grid-template-columns:94px 42px 1fr 18px;gap:8px;min-height:76px;align-items:center;padding:12px 13px;border-radius:16px;background:linear-gradient(110deg,#111 0%,#090909 100%);border-color:#303030}
.game-card .number{display:none}
.game-card .game-info{display:contents}
.game-card .game-info strong{grid-column:1;grid-row:1;justify-self:center;width:max-content;font:500 14px 'DM Sans',sans-serif;color:#f4f4f4}
.game-card .game-info small{grid-column:1;grid-row:2;justify-self:center;width:max-content;font-size:13px;color:#eee;margin-top:3px;display:block}
.game-card .game-info .winner-icon{grid-column:2;grid-row:1 / span 2;width:34px;height:34px;justify-self:center}
.game-card .game-info .winner-label{grid-column:3;grid-row:1 / span 2;font-size:18px;line-height:1.15;align-self:center}
.game-card .chevron{grid-column:4;grid-row:1 / span 2;color:#aaa;font-size:25px}
.rating-period.rating-tabs{display:grid;grid-template-columns:1fr 1fr;padding:2px;border-radius:14px;margin-bottom:12px}
.rating-period.rating-tabs button{padding:14px 5px;border-radius:12px;font-size:13px}
.rating-period.rating-tabs button.selected{background:var(--lime);color:#080900;border-color:var(--lime)}
.rating-period.month-period{justify-content:space-between}
.rating-table-wrap{border-radius:14px}
.rating-table{min-width:550px;font-size:11px}
.rating-table th{font-size:10px;padding:12px 7px}
.rating-table td{padding:10px 7px}
.rating-table td:first-child{min-width:128px}
.player-avatar{width:29px;height:29px;margin-right:5px;object-fit:cover;border-color:#565656}
.rating-table td:first-child strong{max-width:65px}
.bottom-nav{width:min(520px,100%);padding:10px 8px calc(10px + env(safe-area-inset-bottom));border:1px solid #252525;border-bottom:0;border-radius:24px 24px 0 0;background:#080808f7}
.bottom-nav button{font-size:24px;gap:4px}
.bottom-nav button small{font-size:12px}
#editorView .page-title h1{font-size:30px}
#editorView .page-title .eyebrow{font-size:11px}
#editorView .muted,#editorView .host-line{font-size:14px}
#editorView .panel{padding:15px;gap:12px;border-radius:16px}
#editorView .field label{font-size:11px}
#editorView .field input,#editorView .field select{font-size:14px;padding:13px 10px;border-radius:10px}
#editorView .table-head,#editorView .player-row{grid-template-columns:28px minmax(0,1.3fr) minmax(0,1.2fr) 65px;gap:6px;padding-left:9px;padding-right:9px}
#editorView .table-head{font-size:11px;padding-top:13px;padding-bottom:13px}
#editorView .player-row{min-height:60px}
#editorView .player-input,#editorView .role-select{font-size:13px}
#editorView .role-icon{width:23px;height:23px;min-width:23px}
#editorView .extra-input{font-size:15px;padding:10px 7px;border-radius:9px}
#editorView .slot-controls strong{font-size:15px}
#editorView .slot-controls small{font-size:12px}
#editorView .stepper button{width:42px;height:40px;padding:0;position:relative;font-size:0}
#editorView .stepper button::before,#editorView .stepper button::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2.5px;background:currentColor;border-radius:2px;transform:translate(-50%,-50%)}
#editorView .stepper button::after{transform:translate(-50%,-50%) rotate(90deg)}
#editorView .stepper #removeSlot::after{display:none}
#editorView .primary{justify-content:center;text-align:center}
#editorView .summary{grid-template-columns:1fr;gap:10px}
#editorView .summary>div{padding:15px;border-radius:12px}
#editorView .summary span{font-size:11px}
#editorView .summary strong{font-size:23px}
#editorView .primary{background:linear-gradient(100deg,#c7ed49,#c9ef50);padding:18px 17px;font-size:17px;border-radius:12px}
@media(max-width:440px){.shell{padding-left:10px;padding-right:10px}.section-logo{height:70px}.section-logo img{width:140px;height:66px}.section-heading{font-size:21px}.game-card{grid-template-columns:82px 36px 1fr 15px;padding:10px 9px;gap:6px}.game-card .game-info strong{font-size:12px}.game-card .game-info small{font-size:12px}.game-card .game-info .winner-label{font-size:16px;line-height:1.2}.game-card .game-info .winner-icon{width:30px;height:30px}.rating-table{min-width:530px}.home-hero-logo{height:190px}.home-hero-logo img{height:145px}}

/* Final repair: real logo artwork, portrait thumbnails, and clean icon navigation. */
.brand-logo,.section-logo img,.home-hero-logo img{object-fit:contain;image-rendering:auto;background:#000}
.section-logo img{width:164px;height:72px}
.home-hero-logo img{width:330px;height:160px;max-width:94%}
.player-avatar{display:inline-block;object-fit:cover;vertical-align:middle;width:29px;height:29px;margin-right:6px;border-radius:50%;border:1px solid #565656;background:#222;flex:0 0 29px}
.rating-table td:first-child strong{max-width:75px}
.bottom-nav button{appearance:none;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:#888;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex:1;padding:3px 0;min-width:0}
.bottom-nav button svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.bottom-nav button[data-tab="home"] svg path{fill:currentColor;stroke:currentColor}
.bottom-nav button[data-tab="rating"] svg rect{fill:currentColor;stroke:currentColor}
.bottom-nav button[data-tab="games"] svg rect{fill:currentColor;stroke:currentColor}
.bottom-nav button[data-tab="games"] svg path{stroke:#080808;stroke-width:1.6}
.bottom-nav button.active{color:var(--lime)}
.bottom-nav button small{font-size:12px;color:inherit}
@media(max-width:440px){.section-logo img{width:150px;height:68px}.home-hero-logo img{width:300px;height:150px}.player-avatar{width:27px;height:27px;flex-basis:27px}}

/* Rating screen aligned to the approved reference: compact player table, real portraits and month arrows. */
#ratingView .section-logo{height:82px;margin:0 0 2px}
#ratingView .section-logo img{width:168px;height:76px;object-fit:contain}
#ratingView .section-heading{font-family:"Orbitron",sans-serif;font-size:23px;letter-spacing:.2px;margin:0 0 14px;font-weight:400}
#ratingView .rating-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;margin:0 0 12px;background:#0d0d0d;border:1px solid #303030;border-radius:15px}
#ratingView .rating-tabs button{min-height:46px;border-radius:12px;font-size:13px;font-weight:600}
#ratingView .rating-tabs button.selected{background:var(--lime);border-color:var(--lime);color:#090a00}
#ratingView .month-period{display:flex;justify-content:center;gap:12px;min-height:52px;padding:8px 10px;margin:0 0 12px;border-radius:12px;background:#0c0c0c}
#ratingView .month-period select{appearance:none;max-width:none;flex:1;width:1%;border:0;background:transparent;text-align:center;text-align-last:center;font-size:14px;color:#f5f5f5;padding:7px 4px;outline:none}
#ratingView .month-arrow{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid #252525;border-radius:9px;background:#111;color:#ddd;font-size:25px;line-height:1}
#ratingView .month-arrow:active{border-color:var(--lime);color:var(--lime)}
#ratingView .rating-note{font-size:12px;margin:0 0 12px;color:var(--orange)}
#ratingView .rating-table-wrap{border-radius:14px;overflow-x:auto;border:1px solid #303030}
#ratingView .rating-table{width:100%;min-width:0;table-layout:auto;font-size:11px}
#ratingView .rating-table th{padding:12px 5px;text-align:center;font-size:10px;white-space:normal;line-height:1.15}
#ratingView .rating-table th:nth-child(1){width:28px}
#ratingView .rating-table th:nth-child(2){text-align:center;min-width:112px}
#ratingView .rating-table th:nth-child(3){min-width:44px}
#ratingView .rating-table th:nth-child(4){min-width:54px;color:var(--lime)}
#ratingView .rating-table th:nth-child(5){min-width:48px}
#ratingView .rating-table th:nth-child(6){min-width:58px}
#ratingView .rating-table th:nth-child(7){min-width:48px}
#ratingView .rating-table td{padding:10px 5px;text-align:center;white-space:nowrap;vertical-align:middle}
#ratingView .rating-table td:nth-child(n+3){font-size:13px}
#ratingView .rating-table td:first-child{min-width:28px;text-align:center}
#ratingView .rating-table td:nth-child(2){min-width:112px;text-align:left;white-space:normal}
#ratingView .player-cell{display:flex;align-items:center;gap:6px;min-width:0}
#ratingView .player-avatar{width:34px;height:34px;flex:0 0 34px;margin:0;border-radius:50%;object-fit:cover;border:1px solid #555;background:#202020}
#ratingView .player-name-wrap{display:flex;flex:1;flex-direction:column;justify-content:center;gap:3px;min-width:0}
#ratingView .player-name-wrap strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
#ratingView .player-name-wrap small{display:block;margin:0;color:#818181;font-size:9px;white-space:nowrap}
#ratingView .rank{width:20px;height:20px;margin:0;font-size:10px}
#ratingView .rating-score{font-weight:800;color:var(--lime)}
#ratingView .extra-score{color:var(--lime)}
#ratingView .extra-score.negative{color:var(--orange)}
#ratingView .rating-table tbody tr{height:58px}
#ratingView .rating-table tbody tr:first-child .rank{background:var(--lime);color:#090a00}
#ratingView .footnote{font-size:10px;margin-top:12px}
@media(min-width:441px){
 #ratingView .rating-table{table-layout:fixed}
 #ratingView .rating-table th:nth-child(1){width:6%;min-width:0}
 #ratingView .rating-table th:nth-child(2){width:33%;min-width:0}
 #ratingView .rating-table th:nth-child(3){width:11%;min-width:0}
 #ratingView .rating-table th:nth-child(4){width:12%;min-width:0}
 #ratingView .rating-table th:nth-child(5){width:10%;min-width:0}
 #ratingView .rating-table th:nth-child(6){width:15%;min-width:0}
 #ratingView .rating-table th:nth-child(7){width:13%;min-width:0}
 #ratingView .rating-table td:nth-child(2){min-width:0}
 #ratingView .rating-table-wrap{overflow-x:hidden}
}
@media(max-width:440px){
 #ratingView .section-logo{height:76px}
 #ratingView .section-logo img{width:155px;height:70px}
 #ratingView .section-heading{font-size:21px;letter-spacing:0}
 #ratingView .rating-tabs button{min-height:43px;font-size:12px}
 #ratingView .rating-table{min-width:0;font-size:10px}
 #ratingView .rating-table tbody tr{height:48px}
 #ratingView .rating-table th{font-size:9px;padding:10px 3px}
 #ratingView .rating-table td{padding:9px 3px}
 #ratingView .rating-table td:nth-child(n+3){font-size:11px}
 #ratingView .rating-table th:nth-child(2),#ratingView .rating-table td:nth-child(2){min-width:118px}
 #ratingView .player-avatar{width:29px;height:29px;flex-basis:29px}
 #ratingView .player-name-wrap strong{font-size:10px}
 #ratingView .player-name-wrap small{font-size:8px}
}

/* Approved wordmark-inspired typography for the two main section headings. */
#ratingView .section-heading,#gamesView .section-heading{font-family:"LegionGothic","Avenir Next","Century Gothic",sans-serif!important;font-weight:300!important;letter-spacing:.8px!important;text-transform:uppercase}

/* Game detail view */
.detail-winner{padding:16px;margin-bottom:16px}.detail-win-row{display:flex;align-items:center;gap:12px}.detail-win-row img{width:28px;height:28px;object-fit:contain}.detail-list-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}.detail-list-head h2{font-size:19px;margin:0}.detail-list-head span{font-size:13px;color:var(--muted)}.detail-players{display:flex;flex-direction:column;gap:5px}.detail-player{display:grid;grid-template-columns:22px minmax(80px,1fr) minmax(120px,auto) 48px;align-items:center;gap:8px;padding:13px 10px;border-radius:10px;background:#11120e}.detail-player:nth-child(even){background:#0c0d0b}.detail-index{font-size:12px;color:var(--muted)}.detail-name{font-size:14px;overflow-wrap:anywhere}.detail-role{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px}.detail-role img{width:23px;height:23px;object-fit:contain;flex-shrink:0}.detail-role span{overflow-wrap:anywhere}.detail-points{text-align:right;font-size:13px}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.detail-actions[hidden]{display:none!important}.detail-actions .danger-button{margin:0}.access-pill{cursor:pointer;font-family:inherit}@media(max-width:420px){.detail-player{grid-template-columns:18px minmax(65px,1fr) minmax(100px,auto) 40px;gap:5px;padding:11px 7px}.detail-name{font-size:12px}.detail-role{font-size:10px}.detail-role img{width:20px;height:20px}.detail-points{font-size:12px}}

/* Detail actions: visually balanced, centered labels; icons inherit team color via per-role filters. */
.detail-actions{align-items:stretch}
.detail-actions button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:54px;padding:14px 16px;font:700 14px Manrope,sans-serif;line-height:1.2;border-radius:10px;margin:0}
.detail-actions .primary{background:var(--orange);border:1px solid var(--orange);color:#111}
.detail-actions .danger-button{background:#2a1010;border:1px solid #a83f3f;color:#ff8b8b}

/* Compact single-line mobile header shared by game detail and create/edit screens */
.compact-game-header{display:grid;grid-template-columns:58px minmax(0,1fr) auto 72px;align-items:center;gap:7px;margin:12px 0 18px;min-width:0}
.compact-back{width:58px;height:62px;display:grid;place-items:center;padding:0;margin:0;border:1px solid #59672c;border-radius:11px;background:#11150a;color:var(--lime);font-size:29px;line-height:1}
.compact-date{min-width:0}
.compact-date strong{display:block;font:800 13px Manrope,sans-serif;color:#f3f4ed;white-space:nowrap;letter-spacing:-.2px}
.compact-host{height:62px;min-width:0;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 8px;border:1px solid #52672a;border-radius:11px;background:#151a0f;white-space:nowrap}
.compact-host strong{font:700 11px Manrope,sans-serif;color:var(--lime);overflow:hidden;text-overflow:ellipsis}
.compact-host span{font-size:9px;color:#9ca69b}
.compact-badge{height:62px;min-width:72px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:390px){.compact-game-header{grid-template-columns:48px minmax(0,1fr) auto 62px;gap:5px}.compact-back{width:48px;height:58px}.compact-host{height:58px;padding:0 5px;gap:2px}.compact-host strong{font-size:10px}.compact-host span{font-size:8px}.compact-date strong{font-size:11px}.compact-badge{height:58px;min-width:62px}.compact-badge strong{font-size:17px}}

/* Approved profile screen: uses the existing brand logo and original role PNG assets. */
.shell.profile-open .topbar{display:none}
.profile-view{padding:0 0 10px}
.profile-hero{position:relative;min-height:178px;margin:0 -14px 0;padding:8px 24px 13px;overflow:hidden;background:#050605 url('assets/profile-header-art.jpg') right center/auto 100% no-repeat;border-bottom:1px solid #252a17}
.profile-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#050605 0%,rgba(5,6,5,.94) 25%,rgba(5,6,5,.48) 61%,rgba(5,6,5,.16) 100%);pointer-events:none}
.profile-brand-row,.profile-person-row{position:relative;z-index:1;display:flex;align-items:center}
.profile-brand-row{height:57px;justify-content:space-between}
.profile-brand-logo{display:block;width:165px;height:64px;object-fit:contain;object-position:left center}
.profile-settings{display:grid;place-items:center;width:35px;height:35px;padding:0;border:0;background:transparent;color:#aaa}
.profile-settings svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.profile-person-row{gap:14px;margin-top:11px;min-height:94px}
.profile-avatar{width:96px;height:96px;flex:0 0 96px;border:3px solid var(--lime);border-radius:50%;object-fit:cover;box-shadow:0 0 12px #c7e75b25;background:#111}
.profile-person-data{min-width:0}
.profile-person-data h1{margin:0 0 4px;font:800 28px/1.12 Manrope,sans-serif;letter-spacing:-.5px;color:#f7f7f7}
.profile-person-data p{margin:0;color:#aaa;font-size:14px}
.profile-period{display:flex;width:100%;gap:0;margin:8px 0 10px;border:1px solid #626343;border-radius:24px;padding:2px;background:#090a08}
.profile-period button{flex:1;min-width:0;min-height:34px;padding:7px 8px;border:1px solid transparent;border-radius:22px;background:transparent;color:#929292;font:600 11px 'DM Sans',sans-serif;white-space:nowrap}
.profile-period button.selected{border-color:#d2f642;background:#111607;color:#d2f642;box-shadow:0 0 8px #c7e75b24}
.profile-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 10px}
.profile-stat-card{min-width:0;min-height:109px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid #4c5522;border-radius:13px;background:radial-gradient(ellipse at 50% 15%,#242b0e55 0%,#090a07 76%)}
.profile-stat-card svg{width:25px;height:25px;margin:0 0 2px;fill:var(--lime);stroke:var(--lime);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.profile-stat-card svg rect,.profile-stat-card svg ellipse,.profile-stat-card svg path{vector-effect:non-scaling-stroke}
.profile-stat-card .dop-icon{width:27px;height:27px;fill:none;stroke:var(--lime);stroke-width:2.2}
.profile-stat-card .dop-icon path{fill:none}
.profile-stat-card span{min-height:14px;text-align:center;color:#a5a5a5;font-size:10px;line-height:1.2}
.profile-stat-card strong{display:block;font:800 15px/1.15 Manrope,sans-serif;text-align:center;color:#f7f7f7;white-space:nowrap;font-variant-numeric:tabular-nums}
.profile-stat-card b{font:800 14px/1.1 Manrope,sans-serif;color:var(--lime);margin-top:0}
.profile-analytics-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:8px;margin-bottom:10px}
.profile-card{min-width:0;border:1px solid #4b5420;border-radius:13px;background:radial-gradient(ellipse at 55% 15%,#1b210c37 0%,#090a08 78%);padding:11px;margin:0 0 10px}
.profile-analytics-grid .profile-card{margin:0;min-height:190px}
.profile-outcomes{display:flex;flex-direction:column}
.profile-card h2{margin:0 0 10px;font:800 14px/1.25 Manrope,sans-serif;color:#f4f4f4;letter-spacing:-.2px}
.profile-outcome-content{display:flex;flex:1;align-items:center;justify-content:center;min-height:0}
.profile-donut{width:min(112px,30vw);aspect-ratio:1;height:auto;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--lime) 0 46.14%,#55585a 46.14% 100%);position:relative}
.profile-donut:before{content:"";position:absolute;inset:14px;background:#080908;border-radius:50%}
.profile-donut>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:1px}
.profile-donut strong{font:800 20px/1.1 Manrope,sans-serif;color:#f6f6f6;letter-spacing:-.5px}
.profile-analytics-grid .profile-rank-card{position:relative;display:flex;min-height:190px;align-items:center;justify-content:flex-start;overflow:hidden;padding:10px}
.profile-rank-illustration{position:absolute;top:0;right:0;width:74%;height:100%;max-width:none;object-fit:contain;object-position:right center;pointer-events:none}
.profile-rank-details{position:relative;z-index:1;display:flex;width:59%;min-height:100%;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.profile-crown{width:36px;height:29px;margin:0 0 3px;fill:var(--lime);stroke:#e2fa8d;stroke-width:1.1;stroke-linejoin:round;filter:drop-shadow(0 0 7px #c7e75b65)}
.profile-rank-label{font-size:11px;color:#c4c4c4;line-height:1.2}
.profile-rating-number{font:800 clamp(22px,6.3vw,30px)/1.1 Manrope,sans-serif;color:#f4f4f4;margin:5px 0 8px;white-space:nowrap}
.profile-rank-card .profile-rank-details>b{font:800 clamp(14px,4vw,18px)/1.2 Manrope,sans-serif;color:var(--lime);white-space:nowrap;margin-top:5px}
.profile-rank-chart{display:block;width:calc(100% + 16px);height:45px;margin-top:auto;flex-shrink:0}
.profile-role-card{padding:11px 8px 8px}
.profile-role-card h2{margin:0 0 9px 2px}
.profile-role-list{border:1px solid #252621;border-radius:10px;overflow:hidden;background:#070807}
.profile-role-row{display:grid;grid-template-columns:24px minmax(62px,1fr) 56px 50px minmax(38px,1fr);align-items:center;gap:5px;min-height:35px;padding:4px 8px;border-bottom:1px solid #242424;background:#070807;font-variant-numeric:tabular-nums}
.profile-role-row:last-child{border-bottom:0}
.profile-role-row img{display:block;width:23px;height:23px;object-fit:contain;filter:none}
.profile-role-row strong{min-width:0;font-size:11px;font-weight:700;white-space:nowrap;color:var(--lime)}
.profile-role-row .role-record{font-size:10px;text-align:right;color:#d0d0d0;white-space:nowrap}
.profile-role-row b{font-size:10px;text-align:right;color:var(--lime);white-space:nowrap}
.profile-role-row .role-progress{display:block;height:7px;border-radius:10px;background:#282929;overflow:hidden}
.profile-role-row .role-progress i{display:block;height:100%;border-radius:10px;background:var(--lime)}
.profile-role-row.role-sheriff img,.profile-role-row.role-civilian img,.profile-role-row.role-doctor img{filter:brightness(0) saturate(100%) invert(85%) sepia(38%) saturate(583%) hue-rotate(19deg) brightness(105%) contrast(101%)}
.profile-role-row.role-sheriff strong,.profile-role-row.role-civilian strong,.profile-role-row.role-doctor strong{color:var(--lime)}
.profile-role-row.role-mafia img,.profile-role-row.role-don img,.profile-role-row.role-lover img{filter:brightness(0) saturate(100%) invert(45%) sepia(73%) saturate(2750%) hue-rotate(321deg) brightness(101%) contrast(102%)}
.profile-role-row.role-mafia strong,.profile-role-row.role-don strong,.profile-role-row.role-lover strong{color:#ff465b}
.profile-role-row.role-maniac img{filter:brightness(0) saturate(100%) invert(72%) sepia(46%) saturate(1021%) hue-rotate(163deg) brightness(105%) contrast(103%)}
.profile-role-row.role-maniac strong{color:#75d9ff}
.profile-demo-note{margin:4px 8px 8px;text-align:center;color:#555;font-size:9px;line-height:1.45}
@media(max-width:440px){
 .profile-hero{margin-left:-10px;margin-right:-10px;padding:5px 16px 11px;min-height:164px;background-size:auto 100%}
 .profile-hero:before{background:linear-gradient(90deg,#050605 0%,rgba(5,6,5,.93) 30%,rgba(5,6,5,.48) 70%,rgba(5,6,5,.2) 100%)}
 .profile-brand-row{height:49px}.profile-brand-logo{width:148px;height:56px}.profile-settings{width:30px;height:30px}.profile-settings svg{width:24px;height:24px}
 .profile-person-row{gap:12px;margin-top:8px;min-height:89px}.profile-avatar{width:88px;height:88px;flex-basis:88px;border-width:2px}.profile-person-data h1{font-size:26px}.profile-person-data p{font-size:13px}
 .profile-period{margin:7px 0 8px}.profile-period button{min-height:32px;font-size:10px}
 .profile-stat-grid{gap:5px;margin-bottom:8px}.profile-stat-card{min-height:99px;padding:8px 2px;border-radius:11px;gap:4px}.profile-stat-card svg{width:22px;height:22px}.profile-stat-card .dop-icon{width:24px;height:24px}.profile-stat-card span{font-size:9px}.profile-stat-card strong{font-size:12px}.profile-stat-card b{font-size:12px}
 .profile-analytics-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:6px;margin-bottom:8px}.profile-analytics-grid .profile-card{min-height:174px}.profile-card{padding:9px;border-radius:11px}.profile-card h2{font-size:12px;margin-bottom:9px}
 .profile-donut:before{inset:11px}.profile-donut strong{font-size:16px}
 .profile-outcomes{min-height:174px!important}.profile-donut{width:min(96px,25vw)}.profile-analytics-grid .profile-rank-card{min-height:174px;padding:8px}.profile-rank-illustration{width:77%}.profile-rank-details{width:52%}.profile-crown{width:28px;height:23px}.profile-rank-label{font-size:9px}.profile-rating-number{font-size:clamp(20px,6vw,25px);margin:4px 0 7px}.profile-rank-card .profile-rank-details>b{font-size:clamp(13px,3.8vw,16px);margin-top:4px}.profile-rank-chart{height:38px}
 .profile-role-card{padding:9px 6px 6px}.profile-role-row{grid-template-columns:21px minmax(58px,1fr) 49px 44px minmax(32px,.9fr);gap:4px;min-height:33px;padding:4px 6px}.profile-role-row img{width:20px;height:20px}.profile-role-row strong{font-size:10px}.profile-role-row .role-record,.profile-role-row b{font-size:9px}.profile-role-row .role-progress{height:6px}
}
@media(max-width:350px){.profile-role-row{grid-template-columns:19px minmax(51px,1fr) 43px 40px minmax(24px,.8fr);gap:3px;padding-left:4px;padding-right:4px}.profile-role-row strong{font-size:9px}.profile-role-row .role-record,.profile-role-row b{font-size:8px}.profile-donut{width:min(80px,25vw)}.profile-donut strong{font-size:14px}.profile-analytics-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}.profile-analytics-grid .profile-rank-card{min-height:174px;padding:6px}.profile-rank-illustration{top:auto;bottom:0;width:77%;height:88%}.profile-rank-details{width:50%}.profile-crown{width:24px;height:20px}.profile-rating-number{font-size:19px}.profile-rank-card .profile-rank-details>b{font-size:12px}}

/* Checkpoint v6: remove duplicated section headings under the logo on Games and Rating. */
#gamesView .section-logo{margin-bottom:12px}
#ratingView .section-logo{margin-bottom:12px}

/* Home screen v7 — approved seasonal podium and previous-month MVP */
.home-view{position:relative;margin:0 -14px;padding:0 14px 14px;min-height:calc(100vh - 78px);overflow:hidden;background:#030403}
.home-hero{height:228px;position:relative;margin:0 -14px;padding:12px 15px 0;overflow:hidden;background:#030403 url('assets/profile-header-art.jpg') 61% center/auto 100% no-repeat}
.home-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.16) 45%,rgba(0,0,0,.28)),linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.18) 58%,#030403 100%);pointer-events:none}
.home-logo-row{position:relative;z-index:1;height:103px;display:flex;align-items:flex-start;justify-content:flex-start}
.home-logo-row img{display:block;width:190px;height:104px;max-width:68%;object-fit:contain;object-position:left top;background:transparent}
.home-period-switch{position:relative;z-index:2;width:min(100%,360px);min-height:58px;margin:18px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:3px;border:1px solid #65654b;border-radius:999px;background:rgba(6,7,5,.94);box-shadow:0 3px 20px #0008}
.home-period-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:7px 5px;border:1px solid transparent;border-radius:999px;color:#c3c3c3;background:transparent;font:600 13px/1.1 'DM Sans',sans-serif;white-space:nowrap}
.home-period-switch button span{display:block}
.home-period-switch button small{display:block;font-size:10px;font-weight:500;line-height:1.1;color:inherit}
.home-period-switch button.selected{border-color:#d8fa4d;color:var(--lime);background:linear-gradient(110deg,#141a08,#0a0c07);box-shadow:0 0 0 2px #c7e75b42,0 0 13px #c7e75b30}
.home-podium{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.08fr) minmax(0,.94fr);align-items:end;gap:5px;margin:-1px 0 18px;padding-top:26px}
.home-podium-card{--podium-color:#8e969c;--podium-glow:#8191a0;position:relative;isolation:isolate;display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;height:222px;padding:13px 4px 8px;border:1px solid color-mix(in srgb,var(--podium-color) 72%,#171717);border-radius:15px 15px 12px 12px;background:linear-gradient(180deg,color-mix(in srgb,var(--podium-glow) 9%,#080909) 0%,#080908 72%,#10100c 100%);box-shadow:0 0 18px color-mix(in srgb,var(--podium-glow) 12%,transparent);text-align:center}
.home-podium-card:after{content:"";position:absolute;inset:auto 8px 0;height:2px;background:var(--podium-color);box-shadow:0 0 11px var(--podium-glow);border-radius:50%;z-index:-1}
.home-podium-card.podium-second{--podium-color:#bdc8d7;--podium-glow:#9fbce1}
.home-podium-card.podium-first{--podium-color:#f1ca44;--podium-glow:#f4c633;height:265px;padding-top:31px;background:radial-gradient(ellipse at 50% 28%,#5d441c55 0%,transparent 55%),linear-gradient(180deg,#201908 0%,#0b0a06 65%,#141005 100%);box-shadow:0 0 25px #e6b63220,inset 0 0 19px #c89d2420}
.home-podium-card.podium-third{--podium-color:#d58b59;--podium-glow:#ee9456}
.home-avatar-ring{position:relative;display:grid;place-items:center;width:78px;height:78px;flex:0 0 78px;border-radius:50%;padding:3px;border:2px solid var(--podium-color);background:#060706;box-shadow:0 0 0 3px color-mix(in srgb,var(--podium-color) 20%,transparent),0 0 16px color-mix(in srgb,var(--podium-glow) 45%,transparent)}
.home-avatar-ring img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;background:#161616}
.podium-first .home-avatar-ring{width:98px;height:98px;flex-basis:98px;border-width:3px;box-shadow:0 0 0 4px #e8be3e32,0 0 24px #e8be3e60}
.home-player-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5f5f5;font:800 14px/1.15 Manrope,sans-serif;text-shadow:0 1px 8px #000}
.podium-first .home-player-name{font-size:17px}
.home-crown{position:absolute;top:-19px;left:50%;width:48px;height:39px;transform:translateX(-50%);fill:#f5ca3b;stroke:#ffdf67;stroke-width:1;filter:drop-shadow(0 0 9px #f0c34290)}
.home-trophy{position:relative;display:grid;place-items:center;width:83px;height:72px;flex:0 0 72px;color:#bac6d3;filter:drop-shadow(0 3px 5px #0009)}
.home-trophy svg{display:block;width:100%;height:100%;overflow:visible}
.home-trophy .cup{fill:currentColor;fill-opacity:.28;stroke:currentColor;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.home-trophy .laurel{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.home-trophy span{position:absolute;left:50%;top:39%;transform:translate(-50%,-50%);font:900 27px/1 Manrope,sans-serif;color:#101113;text-shadow:0 1px #fff8}
.home-trophy.gold{width:100px;height:82px;flex-basis:82px;color:#f7c737;filter:drop-shadow(0 0 8px #f4c73e70)}
.home-trophy.gold span{font-size:32px;color:#251900;text-shadow:0 1px #fff8}
.home-trophy.bronze{color:#e69a64}
.home-mvp-card{position:relative;isolation:isolate;overflow:hidden;margin:0 0 5px;border:1.5px solid #b5d936;border-radius:17px;padding:13px 11px 12px;background:radial-gradient(ellipse at 0% 28%,#27350e50 0%,transparent 41%),linear-gradient(135deg,#11160a 0%,#070807 68%,#101308 100%);box-shadow:0 0 16px #c7e75b12,inset 0 0 22px #b4d43b08}
.home-mvp-card:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.13;background:url('assets/profile-header-art.jpg') 100% 45%/auto 100% no-repeat;mask-image:linear-gradient(90deg,transparent 0%,#000 90%)}
.home-mvp-heading{position:relative;display:flex;align-items:center;gap:9px;min-height:29px;margin:0 0 12px 2px}
.home-mvp-heading svg{width:29px;height:26px;flex:0 0 29px;fill:var(--lime);stroke:var(--lime);stroke-width:1.2;stroke-linejoin:round}
.home-mvp-heading h2{margin:0;font:800 15px/1.25 Manrope,sans-serif;color:#f4f4f4;letter-spacing:-.25px}
.home-mvp-heading h2 span{color:var(--lime)}
.home-mvp-content{display:grid;grid-template-columns: minmax(88px,.76fr) minmax(0,2fr);align-items:center;gap:9px}
.home-mvp-person{display:flex;min-width:0;flex-direction:column;align-items:center;gap:7px}
.home-mvp-person img{display:block;width:94px;height:94px;max-width:100%;aspect-ratio:1;border-radius:50%;border:3px solid var(--lime);padding:2px;object-fit:cover;background:#050605;box-shadow:0 0 0 3px #c7e75b28,0 0 17px #c7e75b36}
.home-mvp-person strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 16px/1.2 Manrope,sans-serif;color:#f6f6f6}
.home-mvp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-width:0}
.home-mvp-stats article{display:flex;min-width:0;min-height:81px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 2px;border:1px solid #414a21;border-radius:10px;background:linear-gradient(180deg,#15190b80,#070806c9);text-align:center}
.home-mvp-stats svg{display:block;width:22px;height:22px;fill:var(--lime);stroke:var(--lime);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats article strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 12px/1.1 Manrope,sans-serif;color:#f7f7f7;font-variant-numeric:tabular-nums}
.home-mvp-stats article small{display:block;max-width:100%;font:500 9px/1.1 'DM Sans',sans-serif;color:#b9b9b9;white-space:normal}
.home-mvp-empty{margin:16px 4px 6px;padding:18px 8px;border:1px dashed #3a4222;border-radius:10px;text-align:center;color:#a5a5a5;font-size:12px}
.home-no-player .home-avatar-ring{opacity:.25}
.home-no-player .home-player-name{color:#777}
.home-no-player .home-trophy{opacity:.45}
.home-view .home-period-switch button:focus-visible,.home-view .home-mvp-card:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
/* The Games tab uses the same outlined gamepad symbol as the approved home mockup. */
.bottom-nav button[data-tab="games"] svg rect{fill:none;stroke:currentColor}
.bottom-nav button[data-tab="games"] svg path{stroke:currentColor;stroke-width:1.8;fill:none}
@media(max-width:390px){
 .home-hero{height:214px;padding-top:8px}
 .home-logo-row{height:94px}
 .home-logo-row img{width:174px;height:95px;max-width:70%}
 .home-period-switch{margin-top:17px;min-height:54px;width:calc(100% - 4px)}
 .home-period-switch button{font-size:12px}
 .home-period-switch button small{font-size:9px}
 .home-podium{gap:4px;padding-top:24px;margin-bottom:15px}
 .home-podium-card{height:205px;padding:11px 3px 7px;gap:7px;border-radius:13px 13px 10px 10px}
 .home-podium-card.podium-first{height:246px;padding-top:28px}
 .home-avatar-ring{width:69px;height:69px;flex-basis:69px}
 .podium-first .home-avatar-ring{width:88px;height:88px;flex-basis:88px}
 .home-player-name{font-size:12px}
 .podium-first .home-player-name{font-size:15px}
 .home-crown{width:44px;height:35px;top:-18px}
 .home-trophy{width:70px;height:61px;flex-basis:61px}
 .home-trophy.gold{width:88px;height:71px;flex-basis:71px}
 .home-trophy span{font-size:23px}
 .home-trophy.gold span{font-size:29px}
 .home-mvp-card{padding:11px 8px 10px;border-radius:15px}
 .home-mvp-heading{gap:7px;margin-bottom:10px}
 .home-mvp-heading svg{width:26px;flex-basis:26px}
 .home-mvp-heading h2{font-size:13px}
 .home-mvp-content{grid-template-columns:minmax(78px,.72fr) minmax(0,2fr);gap:7px}
 .home-mvp-person img{width:82px;height:82px}
 .home-mvp-person strong{font-size:14px}
 .home-mvp-stats{gap:3px}
 .home-mvp-stats article{min-height:74px;padding:5px 1px;gap:4px;border-radius:8px}
 .home-mvp-stats svg{width:18px;height:18px}
 .home-mvp-stats article strong{font-size:10px}
 .home-mvp-stats article small{font-size:8px;letter-spacing:-.1px}
}
@media(max-width:350px){
 .home-podium-card{height:190px}
 .home-podium-card.podium-first{height:230px}
 .home-avatar-ring{width:61px;height:61px;flex-basis:61px}
 .podium-first .home-avatar-ring{width:77px;height:77px;flex-basis:77px}
 .home-player-name{font-size:11px}
 .podium-first .home-player-name{font-size:13px}
 .home-trophy{width:63px;height:55px;flex-basis:55px}
 .home-trophy.gold{width:78px;height:66px;flex-basis:66px}
 .home-mvp-content{grid-template-columns:70px minmax(0,1fr);gap:5px}
 .home-mvp-person img{width:68px;height:68px}
 .home-mvp-stats article strong{font-size:9px}
 .home-mvp-stats article small{font-size:7px}
}
.home-podium-empty{margin:14px 0 18px;padding:20px 12px;border:1px dashed #3d4524;border-radius:12px;text-align:center;color:#b2b2b2;background:#090a08;font-size:12px;line-height:1.5}
@media(max-width:440px){
 .home-view{margin-left:-10px;margin-right:-10px;padding-left:10px;padding-right:10px}
 .home-hero{margin-left:-10px;margin-right:-10px;padding-left:14px;padding-right:14px}
}

/* v8 visual refinement: crisp profile metrics and metallic podium trophies. */
.profile-stat-card .profile-stat-icon{width:29px;height:29px;flex:0 0 29px;margin:0 0 2px;fill:none;stroke:var(--lime);stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.profile-stat-card .profile-stat-icon.star-icon{fill:var(--lime);stroke:var(--lime);stroke-width:1.2}
.profile-stat-card .profile-stat-icon.bars-icon{fill:var(--lime);stroke:var(--lime);stroke-width:1.2}
.profile-stat-card .profile-stat-icon.coins-icon ellipse{fill:none;stroke:var(--lime);stroke-width:2.3}
.profile-stat-card .profile-stat-icon.coins-icon path{fill:none;stroke:var(--lime);stroke-width:2.3}
.home-trophy{width:94px;height:88px;flex:0 0 88px;overflow:visible;color:#bac6d3;filter:drop-shadow(0 4px 7px #000b)}
.home-trophy svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 5px color-mix(in srgb,currentColor 24%,transparent))}
.home-trophy .trophy-laurel{opacity:.96}
.home-trophy .trophy-cup-shape{filter:drop-shadow(0 2px 2px #0009)}
.home-trophy span{top:39%;font-size:29px;color:#17191b;text-shadow:0 1px 1px #fff8,0 -1px 1px #0004}
.home-trophy.gold{width:112px;height:99px;flex-basis:99px;color:#f7c737;filter:drop-shadow(0 0 9px #f4c73e65)}
.home-trophy.gold span{font-size:34px;color:#241800;text-shadow:0 1px 1px #fff8,0 -1px 1px #0004}
.home-trophy.bronze{color:#e69a64}
.home-podium-card.podium-second{background:radial-gradient(ellipse at 50% 42%,#586b7a25 0%,transparent 48%),linear-gradient(180deg,#121518 0%,#080909 72%,#111418 100%)}
.home-podium-card.podium-third{background:radial-gradient(ellipse at 50% 42%,#8d4a2229 0%,transparent 48%),linear-gradient(180deg,#18120e 0%,#080807 72%,#17100c 100%)}
.home-podium-card.podium-first{background:radial-gradient(ellipse at 50% 30%,#a8792138 0%,transparent 48%),linear-gradient(180deg,#211908 0%,#0b0a06 65%,#171204 100%)}
.home-podium-card{box-shadow:inset 0 0 28px color-mix(in srgb,var(--podium-glow) 9%,transparent),0 0 18px color-mix(in srgb,var(--podium-glow) 14%,transparent)}
.home-podium-card .home-avatar-ring{position:relative}
.home-podium-card .home-avatar-ring:after{content:"";position:absolute;inset:-7px;border:1px solid color-mix(in srgb,var(--podium-color) 34%,transparent);border-radius:50%;pointer-events:none}
.home-mvp-card{box-shadow:0 0 22px #c7e75b12,inset 0 0 28px #b4d43b0d;background:radial-gradient(ellipse at 0% 24%,#27350e62 0%,transparent 45%),linear-gradient(135deg,#10150a 0%,#060706 64%,#0e1208 100%)}
.home-mvp-stats article{background:linear-gradient(160deg,#161a0dce 0%,#070806f0 80%);box-shadow:inset 0 1px #ffffff08}
.home-mvp-stats .mvp-metric-icon{width:24px;height:24px;flex:0 0 24px;fill:var(--lime);stroke:var(--lime);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .gamepad-metric-icon path:nth-of-type(2){fill:none;stroke:#10130a;stroke-width:2.5}
.home-mvp-stats .gamepad-metric-icon circle{fill:#10130a;stroke:none}
.home-mvp-stats .coins-metric-icon ellipse{fill:none;stroke:var(--lime);stroke-width:2.5}
.home-mvp-stats .coins-metric-icon path{fill:none;stroke:var(--lime);stroke-width:2.5}
@media(max-width:390px){
 .home-trophy{width:73px;height:68px;flex-basis:68px}
 .home-trophy.gold{width:91px;height:81px;flex-basis:81px}
 .home-trophy span{font-size:23px}
 .home-trophy.gold span{font-size:28px}
 .home-mvp-stats .mvp-metric-icon{width:20px;height:20px;flex-basis:20px}
}
.home-trophy{width:92px;height:82px;flex:0 0 82px}
.home-trophy.gold{width:104px;height:90px;flex-basis:90px}
.home-mvp-stats article:first-child .mvp-metric-icon{fill:none;stroke:var(--lime);stroke-width:2.35}
@media(max-width:390px){.home-trophy{width:73px;height:68px;flex-basis:68px}.home-trophy.gold{width:91px;height:81px;flex-basis:81px}}

/* v9: match the approved home-screen reference at the 520px design width,
   scaling its main geometry proportionally on narrow phones. */
.shell{padding-bottom:min(150px,28.846vw)}
.home-view{position:relative;isolation:isolate;overflow:hidden;margin-left:max(-14px,-2.692vw);margin-right:max(-14px,-2.692vw);padding:0 min(22.5px,4.327vw) min(22px,4.231vw);min-height:calc(100vh - min(140px,26.923vw));background:#030403}
.home-view::before{content:"";position:absolute;z-index:0;top:0;left:0;right:0;height:min(510px,98.077vw);pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.11) 0%,rgba(0,0,0,.19) 35%,rgba(0,0,0,.44) 75%,#030403 100%),url('assets/profile-header-art.jpg') 59% top/auto min(510px,98.077vw) no-repeat;opacity:.88}
.home-hero{height:min(192px,36.923vw);position:relative;z-index:1;margin:0 max(-22.5px,-4.327vw);padding:min(12px,2.308vw) min(15px,2.885vw) 0;overflow:visible;background:transparent}
.home-hero:before{display:none}
.home-logo-row{height:min(103px,19.808vw);align-items:flex-start}
.home-logo-row img{width:min(176px,33.846vw);height:min(72px,13.846vw);max-width:100%;object-fit:contain;object-position:left top;background:transparent}
.home-period-switch{width:min(75%,360px);min-height:min(58px,11.154vw);margin:min(18px,3.462vw) auto 0;padding:3px;gap:0;border-radius:999px;background:rgba(5,6,4,.91);box-shadow:0 3px 20px #0008}
.home-period-switch button{min-height:0;padding:min(7px,1.346vw) min(5px,.962vw);gap:2px;font-size:min(13px,2.5vw);line-height:1.12}
.home-period-switch button small{font-size:min(10px,1.923vw);line-height:1.12}
.home-podium{position:relative;z-index:1;grid-template-columns:minmax(0,.94fr) minmax(0,1.08fr) minmax(0,.94fr);align-items:end;gap:min(5px,.962vw);margin:0 0 min(22px,4.231vw);padding-top:min(14px,2.692vw)}
.home-podium-card{height:min(254px,48.846vw);padding:min(19px,3.654vw) min(4px,.769vw) min(8px,1.538vw);gap:min(7px,1.346vw);border-radius:min(15px,2.885vw) min(15px,2.885vw) min(12px,2.308vw) min(12px,2.308vw)}
.home-podium-card.podium-first{height:min(292px,56.154vw);padding-top:min(20px,3.846vw);padding-bottom:min(8px,1.538vw);gap:min(6px,1.154vw);transform:translateY(min(12px,2.308vw))}
.home-avatar-ring{width:min(120px,23.077vw);height:min(120px,23.077vw);flex-basis:min(120px,23.077vw);padding:3px;border-width:2px;box-shadow:0 0 0 3px color-mix(in srgb,var(--podium-color) 20%,transparent),0 0 16px color-mix(in srgb,var(--podium-glow) 45%,transparent)}
.podium-first .home-avatar-ring{width:min(138px,26.538vw);height:min(138px,26.538vw);flex-basis:min(138px,26.538vw);padding:3px;border-width:3px}
.home-player-name{font-size:min(16px,3.077vw);line-height:1.15}
.podium-first .home-player-name{font-size:min(18px,3.462vw)}
.home-crown{top:min(-19px,-3.654vw);width:min(52px,10vw);height:min(42px,8.077vw)}
.home-trophy{width:min(99px,19.038vw);height:min(82px,15.769vw);flex-basis:min(82px,15.769vw)}
.home-trophy.gold{width:min(114px,21.923vw);height:min(98px,18.846vw);flex-basis:min(98px,18.846vw)}
.home-trophy span{font-size:min(30px,5.769vw);top:39%}
.home-trophy.gold span{font-size:min(35px,6.731vw)}
.home-mvp-card{min-height:min(242px,46.538vw);padding:min(13px,2.5vw) min(11px,2.115vw) min(12px,2.308vw);margin:0 0 5px;border-radius:min(17px,3.269vw)}
.home-mvp-heading{width:100%;justify-content:center;gap:min(9px,1.731vw);min-height:min(29px,5.577vw);margin:0 0 min(12px,2.308vw)}
.home-mvp-heading svg{width:min(29px,5.577vw);height:min(26px,5vw);flex-basis:min(29px,5.577vw)}
.home-mvp-heading h2{font-size:min(15px,2.885vw);line-height:1.2;letter-spacing:-.02em}
.home-mvp-content{grid-template-columns:minmax(0,.55fr) minmax(0,1fr);align-items:center;gap:min(9px,1.731vw)}
.home-mvp-person{gap:min(7px,1.346vw)}
.home-mvp-person img{width:min(138px,26.538vw);height:min(138px,26.538vw);max-width:100%;border-width:min(3px,.577vw);padding:2px;box-shadow:0 0 0 3px #c7e75b28,0 0 17px #c7e75b36}
.home-mvp-person strong{font-size:min(16px,3.077vw);line-height:1.2}
.home-mvp-stats{gap:min(4px,.769vw)}
.home-mvp-stats article{min-height:min(81px,15.577vw);gap:min(4px,.769vw);padding:min(7px,1.346vw) min(2px,.385vw);border-radius:min(10px,1.923vw)}
.home-mvp-stats .mvp-metric-icon{width:min(24px,4.615vw);height:min(24px,4.615vw);flex-basis:min(24px,4.615vw);fill:var(--lime);stroke:var(--lime);stroke-width:1.5}
.home-mvp-stats article:first-child .mvp-metric-icon{fill:var(--lime);stroke:var(--lime);stroke-width:1.5}
.home-mvp-stats .gamepad-metric-icon path:nth-of-type(2){fill:none;stroke:#10130a;stroke-width:2.5}
.home-mvp-stats .gamepad-metric-icon circle{fill:#10130a;stroke:none}
.home-mvp-stats .coins-metric-icon{fill:none;stroke:var(--lime);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .coins-metric-icon ellipse,.home-mvp-stats .coins-metric-icon path{fill:none;stroke:var(--lime);stroke-width:2.2}
.home-mvp-stats article strong{font-size:min(16px,3.077vw);line-height:1.1}
.home-mvp-stats article small{font-size:min(10px,1.923vw);line-height:1.15;letter-spacing:0}
.home-podium-empty{position:relative;z-index:1}

/* Crisp, coherent bonus-point icon in both Profile and the previous-season MVP card. */
.profile-stat-card .profile-stat-icon.coins-icon{width:min(31px,5.962vw);height:min(31px,5.962vw);flex-basis:min(31px,5.962vw);fill:none;stroke:var(--lime);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.profile-stat-card .profile-stat-icon.coins-icon ellipse,.profile-stat-card .profile-stat-icon.coins-icon path{fill:none;stroke:var(--lime);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}

/* Bottom navigation uses consistent outline icons. The Rating icon is a trophy and Games is a clean gamepad. */
.bottom-nav{height:min(140px,26.923vw);width:min(520px,100%);padding:min(7px,1.346vw) 8px calc(min(36px,6.923vw) + env(safe-area-inset-bottom));border:1px solid #252525;border-bottom:0;border-radius:min(24px,4.615vw) min(24px,4.615vw) 0 0;background:#080808f7;align-items:stretch}
.bottom-nav button{position:relative;min-width:0;justify-content:center;gap:min(8px,1.538vw);padding:0;overflow:visible;color:#888}
.bottom-nav button svg{display:block;width:min(28px,5.385vw);height:min(28px,5.385vw);flex:0 0 auto;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;overflow:visible}
.bottom-nav button[data-tab="home"] svg path{fill:currentColor;stroke:currentColor}
.bottom-nav button[data-tab="rating"] svg path{fill:none;stroke:currentColor;stroke-width:1.8}
.bottom-nav button[data-tab="games"] svg path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button[data-tab="games"] svg circle{fill:currentColor;stroke:currentColor;stroke-width:1}
.bottom-nav button[data-tab="profile"] svg circle,.bottom-nav button[data-tab="profile"] svg path{fill:none;stroke:currentColor}
.bottom-nav button small{font-size:min(15px,2.885vw);line-height:1.15;color:inherit;white-space:nowrap}
.bottom-nav button.active{color:var(--lime)}
.bottom-nav button.active:before{content:"";position:absolute;top:max(-7px,-1.346vw);left:50%;width:min(82px,15.769vw);height:3px;transform:translateX(-50%);border-radius:0 0 3px 3px;background:var(--lime);box-shadow:0 0 9px #c7e75b70}
.toast{bottom:calc(min(150px,28.846vw) + 8px)}
@media(max-width:440px){
 .home-view{margin-left:-10px;margin-right:-10px;padding-left:min(16.9px,4.327vw);padding-right:min(16.9px,4.327vw);padding-bottom:min(16.5px,4.231vw)}
 .home-hero{margin-left:max(-10px,-2.692vw);margin-right:max(-10px,-2.692vw)}
 .home-view::before{height:min(382px,98.077vw)}
 .home-podium-card{gap:min(5.25px,1.346vw)}
 .home-podium-card.podium-first{gap:min(4.5px,1.154vw)}
 .home-avatar-ring{padding:2px}
 .podium-first .home-avatar-ring{padding:2px}
 .home-trophy{height:min(61.5px,15.769vw);flex-basis:min(61.5px,15.769vw)}
 .home-trophy.gold{height:min(73.5px,18.846vw);flex-basis:min(73.5px,18.846vw)}
 .home-mvp-card{margin-bottom:4px}
}

/* v9 final icon pass: one centered coin stack and a clean, light-weight gamepad outline. */
.profile-stat-card .profile-stat-icon.coins-icon{fill:none;stroke:none;overflow:visible}
.profile-stat-card .profile-stat-icon.coins-icon path.coin-stack-body{fill:var(--lime);stroke:var(--lime);stroke-width:.45;stroke-linejoin:round}
.profile-stat-card .profile-stat-icon.coins-icon path.coin-stack-separator{fill:none;stroke:#090b06;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .coins-metric-icon{fill:none;stroke:none;overflow:visible}
.home-mvp-stats .coins-metric-icon path.coin-stack-body{fill:var(--lime);stroke:var(--lime);stroke-width:.45;stroke-linejoin:round}
.home-mvp-stats .coins-metric-icon path.coin-stack-separator{fill:none;stroke:#090b06;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button[data-tab="games"] svg{width:min(29px,5.577vw);height:min(29px,5.577vw);stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}
.bottom-nav button[data-tab="games"] svg .gamepad-outline{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button[data-tab="games"] svg .gamepad-controls{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button[data-tab="games"] svg circle{fill:currentColor;stroke:none}
@media(max-width:390px){
 .profile-stat-card .profile-stat-icon.coins-icon{width:24px;height:24px;flex-basis:24px}
 .home-mvp-stats .coins-metric-icon{width:min(20px,5.2vw);height:min(20px,5.2vw);flex-basis:min(20px,5.2vw)}
 .bottom-nav button[data-tab="games"] svg{width:25px;height:25px}
}


/* v10: match the approved portrait reference without clipping names or flattening the awards. */
.home-view{overflow:hidden;background:#030403;isolation:isolate}
.home-view::before{content:"";position:absolute;z-index:0;inset:0 auto auto 0;width:100%;height:100%;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.06) 0%,rgba(0,0,0,.10) 20%,rgba(0,0,0,.25) 52%,rgba(0,0,0,.48) 78%,#030403 100%),url('assets/home-background.png') center top/100% auto no-repeat;opacity:1}
.home-hero,.home-podium,.home-mvp-card,.home-podium-empty{position:relative;z-index:1}
.home-logo-row img,.profile-brand-logo,.section-logo img{background:transparent!important;object-fit:contain;mix-blend-mode:normal}
.home-logo-row img{width:min(190px,36.54vw);height:min(82px,15.77vw);max-width:72%;object-position:left top;display:block}
.home-hero{height:min(192px,36.923vw);padding-top:min(12px,2.308vw);overflow:visible;background:transparent}
.home-hero:before{display:none}
.home-period-switch{width:min(360px,75%);margin:min(18px,3.462vw) auto 0}
.home-podium{align-items:end;grid-template-columns:minmax(0,.94fr) minmax(0,1.08fr) minmax(0,.94fr);gap:min(5px,.962vw);padding-top:min(14px,2.692vw);margin:0 0 min(22px,4.231vw)}
.home-podium-card{height:min(254px,48.846vw);min-height:min(254px,48.846vw);flex-shrink:0;overflow:visible;gap:min(6px,1.154vw);padding:min(14px,2.692vw) min(4px,.769vw) min(6px,1.154vw);justify-content:flex-end}
.home-podium-card.podium-first{height:min(292px,56.154vw);min-height:min(292px,56.154vw);padding-top:min(20px,3.846vw);padding-bottom:min(8px,1.538vw);gap:min(5px,.962vw);transform:translateY(min(12px,2.308vw))}
.home-avatar-ring{width:min(112px,21.538vw);height:min(112px,21.538vw);flex:0 0 min(112px,21.538vw);padding:3px;border-width:2px}
.podium-first .home-avatar-ring{width:min(132px,25.385vw);height:min(132px,25.385vw);flex-basis:min(132px,25.385vw);padding:3px;border-width:3px}
.home-player-name{display:block;flex:0 0 auto;min-height:1.15em;max-width:100%;font-size:min(16px,3.077vw);line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.podium-first .home-player-name{font-size:min(18px,3.462vw);min-height:1.15em}
.home-crown{position:absolute;display:block;z-index:2;top:max(-24px,-4.615vw);left:50%;width:min(74px,14.231vw);height:auto;max-width:none;transform:translateX(-50%);object-fit:contain;filter:drop-shadow(0 0 8px #f0c34272);pointer-events:none}
.home-trophy{position:relative;display:flex;flex:0 0 auto;align-items:center;justify-content:center;width:min(112px,21.538vw);height:auto;overflow:visible;color:inherit;filter:drop-shadow(0 4px 5px #0008)}
.home-trophy svg{display:none}
.home-trophy-image{display:block;width:100%;height:auto;max-height:none;object-fit:contain;overflow:visible;filter:drop-shadow(0 0 5px color-mix(in srgb,currentColor 18%,transparent))}
.home-trophy.gold{width:min(126px,24.231vw);height:auto;flex-basis:auto;color:#f7c737;filter:drop-shadow(0 0 8px #f4c73e68)}
.home-trophy.silver{color:#bac6d3}
.home-trophy.bronze{color:#e69a64}
.home-mvp-card{margin-top:0;isolation:isolate}
.home-mvp-card:before{background:url('assets/home-background.png') right 38%/auto 235% no-repeat;opacity:.12;mask-image:linear-gradient(90deg,transparent 0%,#000 100%)}
/* Coin-stack icon: two aligned stacks, solid lime bodies and crisp dark separators. */
.profile-stat-card .profile-stat-icon.coins-icon,.home-mvp-stats .coins-metric-icon{width:min(31px,5.962vw);height:min(31px,5.962vw);flex:0 0 min(31px,5.962vw);fill:var(--lime);stroke:var(--lime);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.profile-stat-card .coins-icon .coin-body,.home-mvp-stats .coins-metric-icon .coin-body{fill:var(--lime);stroke:var(--lime);stroke-width:.6}
.profile-stat-card .coins-icon .coin-lines,.home-mvp-stats .coins-metric-icon .coin-lines{fill:none;stroke:#10130a;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .coins-metric-icon{width:min(24px,4.615vw);height:min(24px,4.615vw);flex-basis:min(24px,4.615vw)}
/* A clean outline gamepad in the bottom bar. */
.bottom-nav button[data-tab="games"] svg{display:block;width:min(29px,5.577vw);height:min(29px,5.577vw);flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.bottom-nav button[data-tab="games"] svg .gamepad-outline{fill:none;stroke:currentColor;stroke-width:1.75}
.bottom-nav button[data-tab="games"] svg .gamepad-controls{fill:none;stroke:currentColor;stroke-width:1.75}
.bottom-nav button[data-tab="games"] svg circle{fill:currentColor;stroke:currentColor;stroke-width:.5}
/* On compact screens preserve the exact proportions and reserve room for visible names. */
@media(max-width:440px){
 .home-hero{height:min(192px,36.923vw);padding-top:max(10px,2.308vw)}
 .home-logo-row{height:min(103px,19.808vw)}
 .home-logo-row img{width:min(176px,36.54vw);height:min(74px,15.77vw);max-width:72%}
 .home-period-switch{width:calc(100% - 4px);margin-top:min(18px,3.462vw)}
 .home-podium{padding-top:min(14px,2.692vw);gap:min(5px,1.282vw);margin-bottom:min(22px,5.641vw)}
 .home-podium-card{height:min(254px,48.846vw);min-height:min(254px,48.846vw);padding:min(14px,3.59vw) 3px min(6px,1.54vw);gap:min(6px,1.54vw)}
 .home-podium-card.podium-first{height:min(292px,56.154vw);min-height:min(292px,56.154vw);padding-top:min(20px,5.13vw);padding-bottom:min(8px,2.05vw);gap:min(5px,1.282vw);transform:translateY(min(12px,3.077vw))}
 .home-avatar-ring{width:min(112px,21.538vw);height:min(112px,21.538vw);flex-basis:min(112px,21.538vw)}
 .podium-first .home-avatar-ring{width:min(132px,25.385vw);height:min(132px,25.385vw);flex-basis:min(132px,25.385vw)}
 .home-player-name{font-size:min(16px,3.077vw);line-height:1.15;min-height:1.15em}
 .podium-first .home-player-name{font-size:min(18px,3.462vw)}
 .home-crown{top:max(-24px,-4.615vw);width:min(74px,14.231vw)}
 .home-trophy{width:min(112px,21.538vw)}
 .home-trophy.gold{width:min(126px,24.231vw)}
 .home-mvp-card{padding:min(13px,3.333vw) min(11px,2.821vw) min(12px,3.077vw)}
 .home-mvp-heading{margin-bottom:min(12px,3.077vw)}
 .home-mvp-content{grid-template-columns:minmax(0,.55fr) minmax(0,1fr);gap:min(9px,2.308vw)}
 .home-mvp-person img{width:min(138px,26.538vw);height:min(138px,26.538vw)}
 .home-mvp-stats{gap:min(4px,1.026vw)}
 .home-mvp-stats article{min-height:min(81px,20.77vw);padding:min(7px,1.795vw) 1px;gap:min(4px,1.026vw)}
 .home-mvp-stats .mvp-metric-icon{width:min(24px,5.5vw);height:min(24px,5.5vw);flex-basis:min(24px,5.5vw)}
 .home-mvp-stats article strong{font-size:min(16px,3.077vw)}
 .home-mvp-stats article small{font-size:min(10px,1.923vw)}
 .profile-stat-card .profile-stat-icon.coins-icon{width:27px;height:27px;flex-basis:27px}
 .bottom-nav button[data-tab="games"] svg{width:25px;height:25px}
}

/* v10.1 alignment pass: preserve the approved screen's logo and switch coordinates. */
.home-view::before{background-image:linear-gradient(180deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,.28) 18%,rgba(0,0,0,.42) 40%,rgba(0,0,0,.64) 66%,rgba(0,0,0,.82) 84%,#030403 100%),url('assets/home-background.png')}
.home-hero{padding-top:min(35px,7vw)}
.home-logo-row{height:min(84px,16.154vw)}
.home-logo-row img{width:min(170px,32.692vw);height:min(70px,13.462vw);max-width:72%}
.home-period-switch{width:min(367px,76%);min-height:min(54px,10.385vw);margin:min(18px,3.462vw) auto 0}
.home-period-switch button{font-size:min(13px,2.5vw);padding:min(7px,1.346vw) min(5px,.962vw)}
.home-period-switch button small{font-size:min(10px,1.923vw)}
.home-mvp-heading h2{font-size:min(16px,3.1vw)}
@media(max-width:440px){
 .home-hero{padding-top:min(35px,7vw)}
 .home-logo-row{height:min(60px,15.385vw)}
 .home-logo-row img{width:min(170px,32.692vw);height:min(70px,13.462vw);max-width:72%}
 .home-period-switch{width:min(367px,76%);min-height:min(54px,10.385vw);margin:min(18px,3.462vw) auto 0}
 .home-period-switch button{font-size:min(13px,2.5vw)}
 .home-period-switch button small{font-size:min(10px,1.923vw)}
 .home-mvp-heading h2{font-size:min(16px,3.1vw)}
}

/* v10.2: force filled coin bodies above legacy outline-only icon rules. */
.profile-stat-card .profile-stat-icon.coins-icon .coin-main ellipse,
.profile-stat-card .profile-stat-icon.coins-icon .coin-side ellipse{fill:var(--lime);stroke:var(--lime);stroke-width:.7}
.profile-stat-card .profile-stat-icon.coins-icon .coin-body{fill:var(--lime);stroke:var(--lime);stroke-width:.5}
.profile-stat-card .profile-stat-icon.coins-icon .coin-lines{fill:none;stroke:#10130a;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .coins-metric-icon .coin-main ellipse,
.home-mvp-stats .coins-metric-icon .coin-side ellipse{fill:var(--lime);stroke:var(--lime);stroke-width:.7}
.home-mvp-stats .coins-metric-icon .coin-body{fill:var(--lime);stroke:var(--lime);stroke-width:.5}
.home-mvp-stats .coins-metric-icon .coin-lines{fill:none;stroke:#10130a;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:440px){
 .home-podium{margin-bottom:min(17px,4.36vw)}
 .home-podium-card.podium-first{transform:translateY(min(9px,2.308vw))}
}

/* v10.3: final spacing pass against the approved 941×1672 preview. */
.home-period-switch{width:min(367px,79%);min-height:min(54px,10.2vw)}
@media(max-width:440px){
 .home-hero{height:min(192px,37.436vw)}
 .home-logo-row{height:min(62px,15.9vw)}
 .home-period-switch{width:min(367px,79%);min-height:min(54px,10.2vw)}
 .home-podium{margin-bottom:min(20px,5.128vw)}
}

/* v11 precise home-only alignment: keep the source-approved profile layout untouched. */
.home-crown{top:calc(max(-24px,-4.615vw) - 5px);left:50%;transform:translateX(-50%);object-position:center;object-fit:contain}
.home-trophy.bronze .home-trophy-image{transform:scale(.94);transform-origin:50% 100%}
.home-mvp-stats .gamepad-metric-icon{fill:none;stroke:none;overflow:visible}
.home-mvp-stats .gamepad-metric-icon .gamepad-body{fill:var(--lime);stroke:var(--lime);stroke-width:.55;stroke-linejoin:round}
.home-mvp-stats .gamepad-metric-icon .gamepad-dpad{fill:none;stroke:#10130a;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .gamepad-metric-icon .gamepad-button{fill:#10130a;stroke:none}
.home-mvp-stats .winrate-metric-icon{fill:var(--lime);stroke:none}
.home-mvp-stats .winrate-metric-icon path{fill:var(--lime);stroke:none}
.bottom-nav button[data-tab="games"] svg.nav-gamepad{display:block;width:min(29px,5.577vw);height:min(29px,5.577vw);flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.bottom-nav button[data-tab="games"] svg.nav-gamepad .gamepad-outline{fill:none;stroke:currentColor;stroke-width:1.7}
.bottom-nav button[data-tab="games"] svg.nav-gamepad .gamepad-controls{fill:none;stroke:currentColor;stroke-width:1.7}
.bottom-nav button[data-tab="games"] svg.nav-gamepad circle{fill:currentColor;stroke:currentColor;stroke-width:.5}
@media(max-width:440px){.bottom-nav button[data-tab="games"] svg.nav-gamepad{width:25px;height:25px}}

/* v12 precise icon and podium alignment pass — keep the approved profile layout untouched. */
/* The extracted crown artwork includes the card edge/ring underneath it, so align it to the card rather than lifting it further. */
.home-crown{top:max(-24px,-4.615vw);left:50%;transform:translateX(-50%);width:min(74px,14.231vw);height:auto;object-fit:contain;object-position:center;filter:drop-shadow(0 0 8px #f0c34272)}
/* Normalize bronze trophy to the silver trophy's visual height while retaining its slightly narrower source proportions. */
.home-trophy.bronze{width:min(105px,20vw);height:auto;flex:0 0 auto}
.home-trophy.bronze .home-trophy-image{width:100%;height:auto;transform:none;object-fit:contain;transform-origin:50% 100%}
/* MVP metric: clean filled controller with a centered dark D-pad and two distinct action buttons. */
.home-mvp-stats .gamepad-metric-icon{display:block;overflow:visible;fill:none;stroke:none}
.home-mvp-stats .gamepad-metric-icon .gamepad-body{fill:var(--lime);stroke:var(--lime);stroke-width:.45;stroke-linejoin:round}
.home-mvp-stats .gamepad-metric-icon .gamepad-dpad{fill:none;stroke:#0c1007;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.home-mvp-stats .gamepad-metric-icon .gamepad-button{fill:#0c1007;stroke:none}
/* Pie icon: crisp 3/4 circle with a clearly separated quarter slice. */
.home-mvp-stats .winrate-metric-icon{fill:var(--lime);stroke:none;overflow:visible}
.home-mvp-stats .winrate-metric-icon .pie-main{fill:var(--lime);stroke:none}
.home-mvp-stats .winrate-metric-icon .pie-slice{fill:var(--lime);stroke:#0a0c07;stroke-width:1.7;stroke-linejoin:round}
/* Bottom navigation uses a true outlined controller, with readable controls and no filled body. */
.bottom-nav button[data-tab="games"] svg.nav-gamepad{width:min(29px,5.577vw);height:min(29px,5.577vw);fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.bottom-nav button[data-tab="games"] svg.nav-gamepad .gamepad-outline{fill:none;stroke:currentColor;stroke-width:1.65}
.bottom-nav button[data-tab="games"] svg.nav-gamepad .gamepad-controls{fill:none;stroke:currentColor;stroke-width:1.65}
.bottom-nav button[data-tab="games"] svg.nav-gamepad .gamepad-action{fill:none;stroke:currentColor;stroke-width:1.35}
@media(max-width:440px){
 .home-crown{top:max(-24px,-4.615vw);width:min(74px,14.231vw)}
 .home-trophy.bronze{width:min(105px,20vw)}
 .home-mvp-stats .gamepad-metric-icon,.home-mvp-stats .winrate-metric-icon{width:min(24px,5.5vw);height:min(24px,5.5vw);flex-basis:min(24px,5.5vw)}
 .bottom-nav button[data-tab="games"] svg.nav-gamepad{width:25px;height:25px}
}


/* v13 — use literal pixel crops from the approved home preview, no redrawn SVG glyphs. */
.home-mvp-stats .mvp-crop-icon{display:block;width:24px;height:24px;flex:0 0 24px;object-fit:contain;overflow:visible;fill:none;stroke:none;filter:none}
.profile-stat-card .profile-stat-crop-icon{display:block;width:29px;height:29px;flex:0 0 29px;object-fit:contain;fill:none;stroke:none;filter:none}
.bottom-nav button[data-tab="games"] .nav-gamepad-image{display:block;width:min(29px,5.577vw);height:min(29px,5.577vw);flex:0 0 auto;object-fit:contain;filter:none}
.home-crown{top:max(-24px,-4.615vw);left:50%;width:min(74px,14.231vw);height:auto;transform:translateX(-50%);object-fit:contain;object-position:center;filter:drop-shadow(0 0 8px #f0c34272)}
@media(max-width:440px){
 .home-mvp-stats .mvp-crop-icon{width:24px;height:24px;flex-basis:24px}
 .profile-stat-card .profile-stat-crop-icon{width:27px;height:27px;flex-basis:27px}
 .bottom-nav button[data-tab="games"] .nav-gamepad-image{width:25px;height:25px}
 .home-crown{top:max(-24px,-4.615vw);width:min(74px,14.231vw)}
}


/* v13: pixel-exact crops from the approved preview replace icon SVG redraws. */
.home-mvp-stats .mvp-crop-icon{display:block;width:24px;height:24px;flex:0 0 24px;object-fit:contain;overflow:visible;filter:none}
.home-mvp-heading .home-mvp-heading-icon{display:block;width:29px;height:26px;flex:0 0 29px;object-fit:contain;filter:none}
.profile-stat-card .profile-stat-crop-icon{display:block;width:29px;height:29px;flex:0 0 29px;object-fit:contain;filter:none}
.bottom-nav button[data-tab="games"] .nav-gamepad-image{display:block;width:min(29px,5.577vw);height:min(29px,5.577vw);flex:0 0 auto;object-fit:contain;filter:none}
.home-crown{top:max(-24px,-4.615vw);left:50%;transform:translateX(-50%);width:min(74px,14.231vw);height:auto;object-fit:contain;object-position:center;filter:drop-shadow(0 0 8px #f0c34272)}
@media(max-width:440px){
 .home-mvp-stats .mvp-crop-icon{width:24px;height:24px;flex-basis:24px}
 .home-mvp-heading .home-mvp-heading-icon{width:29px;height:26px;flex-basis:29px}
 .profile-stat-card .profile-stat-crop-icon{width:27px;height:27px;flex-basis:27px}
 .bottom-nav button[data-tab="games"] .nav-gamepad-image{width:25px;height:25px}
 .home-crown{top:max(-24px,-4.615vw);width:min(74px,14.231vw)}
}


/* v14: crown crop safety, uncropped outlined gamepad, and explicit third-place centering. */
.home-podium-card.podium-first{overflow:visible}
.home-podium-card.podium-first .home-crown{
  position:absolute;display:block;z-index:3;left:50%;top:calc(max(-24px,-4.615vw) - 4px);
  width:min(98px,18.87vw);height:auto;max-width:none;transform:translateX(-50%);
  object-fit:contain;object-position:center;overflow:visible;filter:drop-shadow(0 0 8px #f0c34272);pointer-events:none
}
.home-podium-card.podium-third{align-items:center;text-align:center}
.home-podium-card.podium-third .home-avatar-ring,
.home-podium-card.podium-third .home-player-name,
.home-podium-card.podium-third .home-trophy{align-self:center;margin-left:auto;margin-right:auto}
.home-podium-card.podium-third .home-player-name{width:100%;max-width:100%;text-align:center;flex:0 0 auto;display:block;white-space:nowrap}
.home-podium-card.podium-third .home-trophy{width:min(105px,20vw);height:auto;flex:0 0 auto;display:flex;align-items:center;justify-content:center;transform:none;position:relative;left:0;right:0}
.home-podium-card.podium-third .home-trophy-image{display:block;width:100%;height:auto;margin:0 auto;object-fit:contain;object-position:center;transform:none;position:static}
.bottom-nav button[data-tab="games"] .nav-gamepad-image{display:block;width:min(37px,9.5vw);height:auto;aspect-ratio:auto;flex:0 0 auto;object-fit:contain;object-position:center;overflow:visible;transform:none;margin-inline:auto}
@media(max-width:440px){
 .home-podium-card.podium-first .home-crown{top:calc(max(-24px,-4.615vw) - 4px);width:min(98px,18.87vw)}
 .bottom-nav button[data-tab="games"] .nav-gamepad-image{width:min(37px,9.5vw);height:auto}
}

/* v15: match the crown proportions and placement to the approved reference crop. */
.home-podium-card.podium-first .home-crown{
  top:calc(max(-24px,-4.615vw) - 8px);
  left:50%;
  width:min(74px,14.231vw);
  height:auto;
  transform:translateX(-50%);
  object-fit:contain;
  object-position:center;
}
@media(max-width:440px){
  .home-podium-card.podium-first .home-crown{
    top:calc(max(-24px,-4.615vw) - 8px);
    width:min(74px,14.231vw);
  }
}

.profile-settings{
  display:grid;place-items:center;line-height:0;
  width:40px;height:40px;padding:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;
  transition:transform .16s ease
}
.profile-settings:active{transform:scale(.94)}
.profile-settings img{display:block;width:40px;height:40px;object-fit:contain}
.settings-overlay{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;overflow-y:auto;padding:20px 12px calc(20px + env(safe-area-inset-bottom));background:#000c;backdrop-filter:blur(8px)}
.toast{z-index:1201}
.settings-overlay[hidden],.settings-section[hidden]{display:none}
.settings-dialog{width:min(100%,480px);max-height:min(90vh,820px);overflow:auto;border:1px solid #627728;border-radius:20px;padding:18px;background:radial-gradient(ellipse at 100% 0%,#28330f50,transparent 42%),linear-gradient(160deg,#141711,#080908 60%);box-shadow:0 18px 70px #000d,0 0 22px #c7e75b19;color:#f4f4f4}
.settings-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #ffffff14}
.settings-eyebrow{margin:0 0 3px;color:var(--lime);font-size:9px;font-weight:800;letter-spacing:1.6px}
.settings-header h2{margin:0;font:800 22px/1.2 Manrope,sans-serif}
.settings-close{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #3b4329;border-radius:10px;background:#11140d;color:#d4e98c}
.settings-close svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.settings-section{padding:15px 0;border-bottom:1px solid #ffffff12}
.settings-section:last-child{padding-bottom:0;border-bottom:0}
.settings-label{display:block;margin:0 0 8px;color:#e8efce;font-size:12px;font-weight:800}
.settings-section h3.settings-label{font-size:13px}
.settings-nickname-row,.admin-search-row{display:flex;gap:8px}
.settings-nickname-row input,.admin-search-row input{width:100%;min-width:0;height:42px;border:1px solid #3a4227;border-radius:10px;padding:0 12px;background:#090a08;color:#fff;font:600 13px 'DM Sans',sans-serif;outline:none}
.settings-nickname-row input:focus,.admin-search-row input:focus{border-color:var(--lime);box-shadow:0 0 0 2px #c7e75b20}
.settings-save{flex:0 0 auto;min-width:92px;border:1px solid #d5f565;border-radius:10px;padding:0 13px;background:linear-gradient(135deg,#dcf779,#a9d437);color:#11160a;font:800 11px Manrope,sans-serif;box-shadow:0 3px 12px #9abd2c26}
.settings-save:disabled{opacity:.55}
.settings-hint{margin:7px 0 0;color:#96998b;font-size:10px;line-height:1.5}
.avatar-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.avatar-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;border:1px solid #373b2e;border-radius:14px;padding:10px;background:linear-gradient(155deg,#171a12,#0b0c0a);color:#d7d9d0;font:700 11px 'DM Sans',sans-serif;transition:border-color .15s,background .15s,transform .15s}
.avatar-choice:active{transform:scale(.98)}
.avatar-choice img{display:block;width:min(100%,138px);aspect-ratio:1;border:2px solid #5b6146;border-radius:50%;object-fit:cover;box-shadow:0 4px 16px #0009}
.avatar-choice i{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:23px;height:23px;border:2px solid #080a05;border-radius:50%;background:var(--lime);color:#111;font:900 13px/1 sans-serif;opacity:0;transform:scale(.7);transition:opacity .15s,transform .15s}
.avatar-choice[aria-pressed="true"]{border-color:var(--lime);background:linear-gradient(155deg,#242d12,#0c0f08);box-shadow:0 0 0 1px #c7e75b32,0 0 15px #c7e75b19}
.avatar-choice[aria-pressed="true"] img{border-color:var(--lime)}
.avatar-choice[aria-pressed="true"] i{opacity:1;transform:scale(1)}
.admin-settings{margin-top:0}
.admin-block+.admin-block{margin-top:20px;padding-top:18px;border-top:1px solid #ffffff12}
.admin-block>.settings-label{margin-bottom:7px}
.admin-block>.settings-hint{margin:0 0 13px}
.admin-player-results{display:grid;gap:7px;margin-top:9px}
.admin-link-actions{display:flex;flex:0 0 auto;gap:5px}
.admin-link-action{border:1px solid #657c2b;border-radius:8px;padding:7px 8px;background:#1a210c;color:var(--lime);font:700 9px 'DM Sans',sans-serif}
.admin-link-action.reject{border-color:#74483b;background:#24130f;color:#f1a37c}
.admin-player-item{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border:1px solid #303426;border-radius:11px;padding:9px 10px;background:#0b0d09}
.admin-player-info{min-width:0}
.admin-player-info strong{display:block;overflow:hidden;color:#f1f1e9;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.admin-player-info span{display:block;margin-top:3px;color:#a6a99b;font-size:9px}
.admin-role-action{flex:0 0 auto;border:1px solid #657c2b;border-radius:8px;padding:7px 9px;background:#1a210c;color:var(--lime);font:700 9px 'DM Sans',sans-serif}
.admin-role-action.remove{border-color:#74483b;background:#24130f;color:#f1a37c}
.admin-results-message{margin:6px 0;color:#9da18f;font-size:10px;line-height:1.5}
@media(max-width:380px){
  .settings-dialog{padding:15px;border-radius:17px}
  .avatar-choice{padding:8px}
  .avatar-choice img{width:min(100%,120px)}
  .settings-save{min-width:78px;padding-inline:9px}
}

/* Keep long MVP metrics fully visible on narrow screens. */
@media(max-width:440px){
  .home-mvp-stats article strong{font-size:clamp(10px,2.8vw,11px);letter-spacing:-.3px}
}

/* Keep every podium element centered within its own card at all breakpoints. */
.home-podium-card>.home-avatar-ring,
.home-podium-card>.home-player-name,
.home-podium-card>.home-trophy{align-self:center;margin-inline:auto}
.home-podium-card>.home-player-name{position:relative;top:7px;text-align:center}
.home-podium-card .home-trophy-image{display:block;margin-inline:auto;object-position:center}
.home-podium-card.podium-first .home-trophy-image{transform:translateX(-4px)}
.home-podium-card.podium-second>.home-player-name,
.home-podium-card.podium-second>.home-trophy,
.home-podium-card.podium-third>.home-trophy{transform:translateX(3px)}
.home-podium-card.podium-second .home-trophy-image{transform:translateX(-3.5px)}
.home-podium-card.podium-third .home-trophy-image{transform:translateX(-9px)}

/* v18: nickname onboarding, styled to match the approved Legion City preview. */
.registration-view{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto;overflow-x:hidden;padding:calc(28px + env(safe-area-inset-top)) 22px calc(32px + env(safe-area-inset-bottom));background:#020302 url('assets/home-background.png') center center/cover no-repeat;color:#f5f5f5}
.registration-view[hidden]{display:none}
.registration-view::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.24),rgba(0,0,0,.52) 48%,rgba(0,0,0,.83));pointer-events:none}
.registration-brand,.registration-avatar-ring,.registration-form{position:relative;z-index:1}
.registration-brand{width:min(74%,330px);margin:0 auto clamp(22px,5vh,42px);display:flex;justify-content:center;align-items:center}
.registration-brand img{display:block;width:100%;height:auto;max-height:145px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(199,231,91,.12))}
.registration-avatar-ring{width:clamp(136px,42vw,190px);aspect-ratio:1;border:5px solid var(--lime);border-radius:50%;padding:5px;overflow:hidden;box-shadow:0 0 0 5px rgba(199,231,91,.1),0 0 28px rgba(199,231,91,.24);margin:0 auto clamp(32px,6vh,54px);background:#050505}
.registration-avatar-ring img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.registration-form{width:100%;max-width:510px;display:flex;flex-direction:column;align-items:stretch;gap:0}
.registration-input-wrap{width:100%;height:clamp(66px,15vw,84px);display:flex;align-items:center;gap:16px;padding:0 20px;border:2px solid var(--lime);border-radius:22px;background:rgba(6,9,3,.84);box-shadow:0 0 18px rgba(199,231,91,.15),inset 0 0 20px rgba(199,231,91,.035);transition:border-color .18s,box-shadow .18s}
.registration-input-wrap>svg{width:28px;height:28px;flex:0 0 28px;fill:none;stroke:#9a9a9a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.registration-input-wrap input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#f5f5f5;font:500 clamp(17px,4.6vw,23px)/1.2 'LegionGothic','Manrope',sans-serif;letter-spacing:.1px}
.registration-input-wrap input::placeholder{color:#929292;opacity:1}
.registration-input-wrap:focus-within{box-shadow:0 0 0 2px rgba(199,231,91,.12),0 0 25px rgba(199,231,91,.22),inset 0 0 18px rgba(199,231,91,.05)}
.registration-input-wrap.has-error{border-color:#ff3e39;background:rgba(28,4,4,.86);box-shadow:0 0 18px rgba(255,62,57,.18),inset 0 0 16px rgba(255,62,57,.06)}
.registration-clear{width:32px;height:32px;flex:0 0 32px;border:1px solid #ff3e39;border-radius:50%;background:transparent;color:#ff3e39;font:400 25px/25px 'DM Sans',sans-serif;display:flex;align-items:center;justify-content:center;padding:0}
.registration-clear[hidden]{display:none}
.registration-error{display:flex;align-items:center;justify-content:center;gap:10px;color:#ff4641;font:500 14px/1.35 'LegionGothic','Manrope',sans-serif;text-align:center;margin:12px 4px 0;min-height:20px}
.registration-error.is-info{color:var(--lime)}
.registration-error[hidden]{display:none}
.registration-error>span:first-child{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border:2px solid currentColor;border-radius:50%;font:700 13px/1 'Manrope',sans-serif;flex:0 0 20px}
.registration-submit{position:relative;min-height:clamp(74px,16vw,94px);width:100%;margin-top:clamp(36px,6vh,52px);padding:0 18px 0 30px;border:4px solid #d6ff52;border-radius:999px;background:linear-gradient(110deg,rgba(199,231,91,.17),rgba(0,0,0,.88) 28%,rgba(0,0,0,.88) 72%,rgba(199,231,91,.12)),url('assets/home-background.png') center 80%/cover;color:var(--lime);box-shadow:0 0 0 1px rgba(199,231,91,.35),0 0 25px rgba(199,231,91,.34),inset 0 0 16px rgba(199,231,91,.18);display:flex;align-items:center;justify-content:center;gap:12px;font:800 clamp(20px,5.1vw,29px)/1 'LegionGothic','Manrope',sans-serif;letter-spacing:.6px;cursor:pointer}
.registration-submit>span:first-child{flex:1;text-align:center;padding-left:34px}
.registration-arrow{width:clamp(46px,12vw,60px);height:clamp(46px,12vw,60px);display:flex;align-items:center;justify-content:center;flex:0 0 auto;border:2px solid var(--lime);border-radius:50%;background:rgba(0,0,0,.78);font:400 44px/1 'DM Sans',sans-serif;padding-bottom:5px;box-shadow:0 0 12px rgba(199,231,91,.18)}
.registration-submit:active{transform:scale(.99);box-shadow:0 0 14px rgba(199,231,91,.28)}
@media(max-height:720px){.registration-brand{width:min(58%,260px);margin-bottom:18px}.registration-avatar-ring{width:clamp(108px,30vh,150px);margin-bottom:24px}.registration-submit{margin-top:24px}.registration-view{justify-content:flex-start}}

.home-roles{position:relative;z-index:1;margin:0 0 14px}
.home-roles h2{margin:0 0 10px;text-align:center;color:#f3f3ea;font:800 17px/1.2 Manrope,sans-serif}
.home-roles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.home-role-card{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;border:1px solid #3b4524;border-radius:14px;padding:10px 5px 9px;background:linear-gradient(160deg,#11160a 0%,#070807 70%);text-align:center}
.home-role-decor{padding:0;overflow:hidden;border:0;background:none;box-shadow:none}
.home-role-decor img{display:block;width:100%;height:100%;border-radius:14px;object-fit:cover;object-position:50% 30%}
.home-role-ring{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border:2px solid #f1ca44;border-radius:50%;padding:2px;background:#060706;box-shadow:0 0 12px #e8be3e40}
.home-role-ring img,.home-role-avatar-empty{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;background:#161616}
.home-role-info{display:grid;gap:2px;width:100%;min-width:0}
.home-role-info small{color:var(--lime);font:800 10px/1.2 Manrope,sans-serif;letter-spacing:.06em;text-transform:uppercase}
.home-role-info strong{overflow:hidden;color:#f5f5f5;font:800 12px/1.2 Manrope,sans-serif;text-overflow:ellipsis;white-space:nowrap}
.home-role-info span{overflow:hidden;color:#a6a99b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.home-role-card.home-no-player .home-role-ring{border-color:#3a3d33;box-shadow:none}

.home-mvp-card:before{opacity:1;mask-image:none;-webkit-mask-image:none;background:linear-gradient(180deg,#0007 0%,#0004 45%,#000a 100%),url('assets/role-art/mvp-bg.jpg') center/cover no-repeat}
.home-mvp-person strong,.home-mvp-heading h2{text-shadow:0 1px 3px #000,0 0 10px #000}
.home-mvp-metrics article,.home-mvp-card article{background-color:#070a05cc}
.home-mvp-card>*{position:relative;z-index:1}

.home-mvp-card:before{background:linear-gradient(180deg,#000b 0%,#0005 38%,#0006 62%,#000d 100%),url('assets/role-art/mvp-bg.jpg') center/cover no-repeat}
.home-mvp-heading{width:max-content;max-width:100%;margin-inline:auto;padding:5px 14px;border-radius:999px;background:#000a;box-shadow:0 0 14px 6px #000a}
.home-mvp-heading h2,.home-mvp-person strong{text-shadow:0 0 3px #000,0 0 3px #000,0 1px 6px #000,0 0 14px #000}
.home-mvp-heading-icon{filter:drop-shadow(0 0 3px #000) drop-shadow(0 0 8px #000)}
.home-mvp-person strong{padding:3px 12px;border-radius:999px;background:#000a;box-shadow:0 0 10px 4px #000a}

.home-mvp-card{display:grid;grid-template-columns:minmax(104px,.85fr) minmax(0,2fr);grid-template-rows:auto 1fr;column-gap:10px;align-items:center}
.home-mvp-content{display:contents}
.home-mvp-content[hidden]{display:none}
.home-mvp-card .home-mvp-heading{grid-column:2;grid-row:1;margin:0 auto 10px;gap:7px}
.home-mvp-card .home-mvp-heading h2{font-size:16px}
.home-mvp-card .home-mvp-heading-icon{width:32px;height:auto}
.home-mvp-card .home-mvp-person{grid-column:1;grid-row:1/3;align-self:center;gap:9px}
.home-mvp-card .home-mvp-person img{width:min(104px,100%);height:auto}
.home-mvp-card .home-mvp-person strong{font-size:16px}
.home-mvp-card .home-mvp-stats{grid-column:2;grid-row:2;min-width:0}
.home-mvp-card .home-mvp-empty{grid-column:1/-1}

.home-mvp-card .home-mvp-heading{justify-content:center;align-items:center;gap:9px}
.home-mvp-card .home-mvp-heading>div{flex:0 0 auto}
.home-mvp-card .home-mvp-heading h2{white-space:nowrap}
.home-mvp-card .home-mvp-heading h2 span{display:block}
.home-mvp-card .home-mvp-heading-icon{width:auto;height:40px;flex:0 0 auto}

.home-mvp-card .home-mvp-heading svg.home-mvp-heading-icon{width:46px;height:35px;flex:0 0 46px;fill:none;stroke:none;stroke-width:0;transform:translateY(-3px);filter:drop-shadow(0 0 5px #000a)}
.home-mvp-card .home-mvp-heading svg.home-mvp-heading-icon{width:42px;height:30px;flex:0 0 42px;transform:none;align-self:center}
.home-mvp-card .home-mvp-heading svg.home-mvp-heading-icon{height:30.3px;transform:translateY(-.55px)}

.profile-donut small{font:700 11px/1 Manrope,sans-serif;color:var(--lime);margin-top:2px}
.profile-team-card,.profile-highlights{padding:12px 10px}
.profile-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profile-team{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.profile-team b{font:800 13px/1.2 Manrope,sans-serif;color:#f4f4f4;margin-top:4px}
.profile-team small{font:600 11px/1.2 Manrope,sans-serif;color:var(--muted)}
.profile-donut-sm{width:min(84px,22vw)}
.profile-donut-sm:before{inset:10px}
.profile-donut-sm strong{font-size:15px}
.profile-highlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-highlight{display:flex;flex-direction:column;gap:5px;min-width:0;padding:10px;border:1px solid #2f3418;border-radius:11px;background:#0d0f0a}
.profile-highlight span{font:700 11px/1.2 Manrope,sans-serif;color:var(--muted);text-transform:uppercase;letter-spacing:.3px}
.profile-highlight strong{font:800 18px/1.15 Manrope,sans-serif;color:#f6f6f6}
.profile-highlight strong.streak{font-size:28px;color:var(--lime)}
.profile-highlight small{font:600 12px/1.2 Manrope,sans-serif;color:#b9b9b9}
.profile-highlight-role{display:flex;align-items:center;gap:8px;min-width:0}
.profile-highlight-role img{width:26px;height:26px;object-fit:contain;flex:0 0 auto}
.profile-highlight-role strong{font-size:16px;min-width:0}
.profile-donut:not(.profile-donut-sm) small{font-size:9px;letter-spacing:0}
.profile-donut:not(.profile-donut-sm) strong{font-size:17px}
.profile-highlight span{font-size:10px;letter-spacing:.2px}
.profile-highlight-role{flex-wrap:wrap;gap:4px 8px}
.profile-highlight-role strong{font-size:15px;overflow-wrap:anywhere}
.profile-highlight strong.streak{font-size:26px}
.profile-donut-sm small{font-size:9px}
.profile-donut-sm strong{font-size:14px}
.profile-highlight{align-items:center;text-align:center}
.profile-highlight-role{justify-content:center;flex-direction:column;gap:4px}
.profile-highlight-role strong{text-align:center}
.profile-role-card{padding:4px 8px}.profile-role-list{border:0;border-radius:0;background:transparent}
.profile-highlights{border:0;background:transparent;padding:0}
.profile-highlight{border-color:#4b5420;border-radius:13px;background:radial-gradient(ellipse at 55% 15%,#1b210c37 0%,#090a08 78%);padding:12px 10px}
.profile-team .profile-donut small{color:var(--lime);font-weight:700}
select.player-input{appearance:none;-webkit-appearance:none;text-overflow:ellipsis;cursor:pointer}select.player-input:has(option[value='']:checked){color:var(--muted)}
.bottom-nav button[data-tab="games"] .nav-gamepad-image{display:block;width:min(37px,9.5vw);aspect-ratio:69/54;height:auto;background:currentColor;-webkit-mask:url(assets/preview-icons/nav-gamepad.png) center/contain no-repeat;mask:url(assets/preview-icons/nav-gamepad.png) center/contain no-repeat}
.bottom-nav button .nav-icon{display:block;width:40px;height:40px;object-fit:contain;filter:grayscale(1) brightness(.75);opacity:.7;transition:filter .15s,opacity .15s}
.bottom-nav button.active .nav-icon{filter:none;opacity:1}
.profile-stat-card .stat-icon{display:block;width:42px;height:42px;flex:0 0 42px;object-fit:contain;margin:0 auto}
.home-mvp-stats .mvp-icon{display:block;width:32px;height:32px;flex:0 0 32px;object-fit:contain}
.home-mvp-card .home-mvp-heading img.home-mvp-heading-icon{display:block;width:46px;height:46px;flex:0 0 46px;object-fit:contain;transform:none;filter:none;align-self:center}
.profile-crown-icon{display:block;width:44px;height:44px;object-fit:contain;margin:0 auto 3px}
.bottom-nav button .nav-icon{transform:translateY(5px)}
#editorView .extra-cell{position:relative}
#editorView .extra-cell .extra-input{padding-left:24px;padding-right:5px;text-align:right}
#editorView .extra-sign{position:absolute;left:3px;top:50%;transform:translateY(-50%);width:22px;height:30px;padding:0;border:0;background:transparent;color:var(--lime);font-size:16px;font-weight:700;line-height:1}
img[src*="assets/roles/"]{filter:none!important;-webkit-mask:none!important;mask:none!important;background:none!important;opacity:1!important}
.winner-icon,.game-card .game-info .winner-icon{object-fit:contain}
.game-card .game-info .winner-icon{width:40px;height:40px}
.detail-win-row img{width:36px;height:36px}
.detail-role img{width:28px;height:28px;min-width:28px;flex:0 0 28px}
#editorView .role-icon{width:30px;height:30px;min-width:30px}
.profile-role-row{grid-template-columns:34px minmax(0,1fr) auto auto 110px!important;gap:8px!important}
.profile-role-row img{width:32px!important;height:32px!important}
.profile-role-row strong{white-space:nowrap}
.profile-highlight-role img{width:40px;height:40px}
@media(max-width:350px){.profile-role-row{grid-template-columns:30px minmax(0,1fr) auto auto 60px!important;gap:5px!important}.profile-role-row img{width:28px!important;height:28px!important}}
.detail-win-row strong{white-space:nowrap}
.profile-analytics-grid .profile-rank-illustration{right:10px}

/* Logo: centered everywhere */
.brand-logo{object-position:center center}
.section-logo{justify-content:center}
.section-logo img{width:auto!important;height:70px!important;max-width:min(200px,60vw);object-position:center center}
.home-logo-row{justify-content:center!important;align-items:center!important}
.home-logo-row img{width:auto!important;height:min(96px,18.4vw)!important;max-width:80%!important;object-position:center center!important}
.profile-brand-row{justify-content:center!important}
.profile-brand-logo{width:auto!important;height:52px!important;max-width:60%!important;object-position:center center!important;margin:0 auto}
.profile-brand-row .profile-settings{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.registration-brand{justify-content:center}
.registration-brand img{margin:0 auto}

/* Global dimmed app background */
html{background:#030403}
body{background:transparent!important}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(3,4,3,.72),rgba(3,4,3,.78)),url('assets/app-background.jpg?v=1') center top/cover no-repeat}
.shell{background:transparent!important}
.home-view,.home-hero,.profile-hero{background:transparent!important}
.home-view::before{display:none!important}

/* New neon trophies (crown is part of the image) */
.home-podium-card .home-crown{display:none!important}
.home-podium-card .home-trophy,.home-podium-card.podium-third .home-trophy{width:min(112px,21.5vw)!important;height:auto!important;transform:none!important;left:0;right:0;margin-inline:auto}
.home-podium-card .home-trophy-image,.home-podium-card.podium-first .home-trophy-image,.home-podium-card.podium-second .home-trophy-image,.home-podium-card.podium-third .home-trophy-image{width:100%!important;height:auto!important;transform:none!important;margin:0 auto}
.home-podium-card.podium-first .home-trophy{width:min(124px,23.8vw)!important}
.profile-back{position:absolute;left:0;top:50%;transform:translateY(-50%);width:44px;height:46px;display:grid;place-items:center;padding:0;border:1px solid #59672c;border-radius:11px;background:#11150a;color:var(--lime);font-size:23px;line-height:1;cursor:pointer}
.profile-back[hidden],.profile-settings[hidden]{display:none!important}
.home-podium-card[data-profile-player-id],.home-role-card[data-profile-player-id],#homeMvpContent[data-profile-player-id],#ratingView tr[data-profile-player-id]{cursor:pointer}
#homeMvpContent[data-profile-player-id]:focus-visible,.home-podium-card[data-profile-player-id]:focus-visible,.home-role-card[data-profile-player-id]:focus-visible,#ratingView tr[data-profile-player-id]:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
#ratingView tr[data-profile-player-id]:hover{background:#1b210d}
.profile-player-link{min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.profile-player-link:hover{color:var(--lime);text-decoration:underline}
.profile-player-link:focus-visible{outline:2px solid var(--lime);outline-offset:2px;border-radius:3px}
@media(max-width:420px){.profile-player-link{font-size:12px}}
.profile-player-link:disabled{color:inherit;cursor:default}
.detail-host-link{display:flex;align-items:center;gap:5px;max-width:100%;font-size:11px}
.detail-host-avatar{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
.detail-avatar-link,.player-profile-shortcut{display:grid;place-items:center;padding:0;border:0;background:transparent;cursor:pointer}
.detail-player-avatar{display:block;width:25px;height:25px;border:1px solid #536a2c;border-radius:50%;object-fit:cover}
.detail-player{grid-template-columns:22px 26px minmax(65px,1fr) minmax(105px,auto) 48px}
.detail-name{justify-self:start}
.player-select-wrap{display:flex;align-items:center;gap:4px;min-width:0}
.player-select-wrap .player-input{flex:1;min-width:0;width:100%}
.player-profile-shortcut{width:28px;height:28px;flex:none}
.player-profile-shortcut[hidden]{display:none!important}
.player-profile-avatar{display:block;width:26px;height:26px;border:1px solid #536a2c;border-radius:50%;object-fit:cover}
.player-profile-shortcut:focus-visible,.detail-avatar-link:focus-visible{outline:2px solid var(--lime);outline-offset:2px;border-radius:50%}
.admin-player-info .profile-player-link{font-size:inherit}
@media(max-width:420px){.detail-player{grid-template-columns:18px 22px minmax(55px,1fr) minmax(82px,auto) 40px}.detail-player-avatar{width:21px;height:21px}.detail-host-link{gap:3px;font-size:10px}.detail-host-avatar{width:20px;height:20px}}
.tournaments-entry{width:100%;display:flex;align-items:center;gap:14px;padding:16px 15px;margin:0 0 14px;border:1px solid #59672c;border-radius:14px;background:linear-gradient(110deg,#1a2108 0%,#0d1005 100%);color:var(--text);text-align:left;cursor:pointer}
.tournaments-entry-icon{font-size:30px;line-height:1}
.tournaments-entry-text{flex:1;display:grid;gap:3px}
.tournaments-entry-text strong{font:800 18px Manrope,sans-serif;color:var(--lime)}
.tournaments-entry-text small{color:var(--muted);font-size:11px}
.tournaments-entry-chevron{color:var(--lime);font-size:26px}
.tournament-topbar{display:flex;align-items:center;gap:12px;margin:14px 0 16px}
.tournament-topbar h1{margin:0;font:800 22px Manrope,sans-serif;color:var(--text)}
.tournament-head-text{min-width:0;display:grid;gap:3px}
.tournament-head-text h1{font-size:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tournament-head-text small{color:var(--muted);font-size:11px}
.tournament-back{flex:0 0 auto;width:44px;height:46px;display:grid;place-items:center;padding:0;border:1px solid #59672c;border-radius:11px;background:#11150a;color:var(--lime);font-size:23px;line-height:1;cursor:pointer}
.tournament-card{grid-template-columns:1fr 18px!important}
.tournament-card-body{display:grid;gap:4px;min-width:0}
.tournament-card-body strong{font:800 15px Manrope,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tournament-card-body small{color:var(--muted);font-size:11px}
.tournament-round{display:grid;gap:8px;margin-bottom:6px}
.tournament-round h3{margin:8px 2px 0;font:800 13px Manrope,sans-serif;color:var(--lime);letter-spacing:.4px}
.tournament-game-card{grid-template-columns:1fr auto 18px!important;min-height:64px!important}
.tournament-game-card.mine{border-color:#657a2d;background:linear-gradient(110deg,#1b2208 0%,#0b0e05 100%)}
.tournament-game-status{font-size:11px;color:var(--muted);text-align:right}
.tournament-game-status.done{font-weight:700}
.tournament-manage{margin:0 0 14px}
.tournament-manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tournament-manage button{padding:11px 8px;border:1px solid #59672c;border-radius:9px;background:#15190a;color:var(--lime);font:700 11px Manrope,sans-serif;cursor:pointer}
.tournament-manage button.danger{border-color:#9c4141;background:#2a1010;color:#ff8b8b}
.tournament-hidden-note{margin:0 0 8px;padding:9px 11px;border:1px solid #6b5a1f;border-radius:9px;background:#201b08;color:#e3c56a;font-size:11px;line-height:1.45}
.tournament-meta,.tournament-game-meta{grid-template-columns:1fr 1fr;padding:15px;gap:12px;border-radius:16px}
.tournament-wide{grid-column:1 / -1}
#tournamentFormView .field label,#tournamentGameView .field label{font-size:11px}
#tournamentFormView .field input,#tournamentFormView .field select,#tournamentGameView .field select{font-size:14px;padding:13px 10px;border-radius:10px}
.tournament-section-title{margin:18px 2px 10px;font:800 14px Manrope,sans-serif;color:var(--text)}
.tournament-rows{display:grid;border:1px solid #292929;border-radius:12px;background:#0d0d0d;overflow:hidden}
.tournament-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;padding:6px 9px;border-top:1px solid #242424}
.tournament-row:first-child{border-top:0}
.tournament-row .player-input{width:100%;min-width:0;background:#151515;border:1px solid #333;color:var(--text);border-radius:8px;padding:11px 8px;font:13px 'DM Sans',sans-serif}
.tournament-pair-row{grid-template-columns:28px minmax(0,1fr) auto minmax(0,1fr)}
.tournament-pair-row b{color:var(--lime);font-size:13px}
.tournament-stepper{display:flex;gap:6px}
.tournament-stepper button{width:42px;height:40px;border:1px solid #536027;background:#15190a;color:var(--lime);border-radius:7px;font-size:22px;line-height:1;cursor:pointer}
#tournamentFormView .slot-controls strong,#tournamentGameView .slot-controls strong{font-size:15px}
#tournamentFormView .slot-controls small{font-size:12px}
.tournament-warning{color:#ff8b8b!important}
.tournament-save{justify-content:center;text-align:center;background:linear-gradient(100deg,#c7ed49,#c9ef50);padding:18px 17px;font-size:17px;border-radius:12px;margin-top:6px}
#tournamentGameView .table-head,#tournamentGameView .player-row{grid-template-columns:28px minmax(0,1.3fr) minmax(0,1.2fr) 65px;gap:6px;padding-left:9px;padding-right:9px}
#tournamentGameView .table-head{font-size:11px;padding-top:13px;padding-bottom:13px}
#tournamentGameView .player-row{min-height:60px}
#tournamentGameView .role-select{font-size:13px}
#tournamentGameView .role-icon{width:30px;height:30px;min-width:30px}
#tournamentGameView .extra-input{font-size:15px;padding:10px 7px;border-radius:9px}
#tournamentGameView .extra-cell{position:relative}
#tournamentGameView .extra-cell .extra-input{padding-left:24px;padding-right:5px;text-align:right}
#tournamentGameView .extra-sign{position:absolute;left:3px;top:50%;transform:translateY(-50%);width:22px;height:30px;padding:0;border:0;background:transparent;color:var(--lime);font-size:16px;font-weight:700;line-height:1}
.tournament-fixed-player{display:flex;align-items:center;gap:6px;min-width:0;cursor:pointer}
.tournament-fixed-player strong{font:600 12px 'DM Sans',sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tournament-readonly-row .role-cell{display:flex;align-items:center;gap:5px;font-size:11px}
.tournament-readonly-row .extra-cell{text-align:right;font-size:12px}
.tournament-dash{color:var(--muted)}
.tournament-results-table{min-width:0}
@media(max-width:420px){.tournament-pair-row{grid-template-columns:22px minmax(0,1fr) auto minmax(0,1fr);gap:5px;padding:6px 6px}.tournament-fixed-player strong{font-size:11px}}
.tournaments-entry-icon{width:44px;height:44px;object-fit:contain;flex:0 0 44px}
.tournament-game-card{grid-template-columns:minmax(0,1fr) 40px minmax(78px,auto) 16px!important;gap:8px!important}
.tournament-game-card:not(.has-winner){grid-template-columns:minmax(0,1fr) auto 16px!important}
.tournament-game-card .winner-icon{width:40px;height:40px;object-fit:contain;justify-self:center}
.tournament-game-card .winner-label{font-size:16px;line-height:1.15;align-self:center}
.tournament-game-card .chevron{color:#aaa;font-size:25px}
.tournament-results-table{table-layout:fixed;width:100%;min-width:0;font-size:11px}
.tournament-results-table th{padding:12px 3px;text-align:center;font-size:10px;line-height:1.15;white-space:normal}
.tournament-results-table th:nth-child(1){width:9%}
.tournament-results-table th:nth-child(2){width:37%}
.tournament-results-table th:nth-child(3){width:15%;color:var(--lime)}
.tournament-results-table th:nth-child(4){width:12%}
.tournament-results-table th:nth-child(5){width:15%}
.tournament-results-table th:nth-child(6){width:12%}
.tournament-results-table td{padding:9px 3px;text-align:center;white-space:nowrap;vertical-align:middle}
.tournament-results-table td:nth-child(n+3){font-size:13px}
.tournament-results-table td:first-child{min-width:0;text-align:center}
.tournament-results-table td:nth-child(2){min-width:0;text-align:left;white-space:normal}
.tournament-results-table tbody tr{height:52px}
.tournament-results-table .player-cell{display:flex;align-items:center;gap:6px;min-width:0}
.tournament-results-table .player-avatar{width:32px;height:32px;flex:0 0 32px;margin:0;border-radius:50%;object-fit:cover;border:1px solid #555;background:#202020}
.tournament-results-table .player-name-wrap{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0}
.tournament-results-table .player-name-wrap strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.tournament-results-table .rank{width:20px;height:20px;margin:0;font-size:10px}
.tournament-results-table .rating-score{font-weight:800;color:var(--lime)}
.tournament-results-table .extra-score{color:var(--lime)}
.tournament-results-table .extra-score.negative{color:var(--orange)}
.tournament-results-table tbody tr:first-child .rank{background:var(--lime);color:#090a00}
#tdResults .rating-table-wrap{overflow-x:hidden;border-radius:14px;border:1px solid #303030}
#tdResults tr[data-profile-player-id],.tournament-highlight-card{cursor:pointer}
.tournament-highlights{margin:18px 0 0}
.tournament-stepper button{position:relative;font-size:0;padding:0}
.tournament-stepper button::before,.tournament-stepper button::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2.5px;background:currentColor;border-radius:2px;transform:translate(-50%,-50%)}
.tournament-stepper button::after{transform:translate(-50%,-50%) rotate(90deg)}
.tournament-stepper #tRemovePlayer::after,.tournament-stepper #tRemovePair::after{display:none}
.tournament-results-table th:first-child{text-align:center}
.tournament-results-table th:nth-child(2){text-align:left;padding-left:41px}
.tournament-manage button.tournament-finish{width:100%;margin-top:8px;padding:16px 12px;border:0;border-radius:12px;background:var(--lime);color:#090a00;font:800 16px Manrope,sans-serif}
.tournament-finished-note{border-color:#59672c;background:#141b08;color:var(--lime)}
.tournament-manage-grid:has(> button:only-child){grid-template-columns:1fr}

/* Достижения профиля */
.profile-period button{padding-left:4px;padding-right:4px}
.profile-view.achievements-mode .profile-stat-grid,.profile-view.achievements-mode .profile-analytics-grid,.profile-view.achievements-mode .profile-team-card,.profile-view.achievements-mode .profile-highlights,.profile-view.achievements-mode .profile-role-card{display:none}
.award-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.award-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:8px 4px;border:1px solid #2f3516;border-radius:11px;background:#0b0d08;text-align:center}
.award-card img{width:72px;height:88px;object-fit:contain}
.award-card img.award-role-icon{width:56px;height:56px;margin:16px 0}
.award-card p{margin:0;font:600 10px/1.3 'DM Sans',sans-serif;color:#d8d8d8;overflow-wrap:anywhere}
.achievement-list{display:flex;flex-direction:column;gap:6px;max-height:534px;overflow-y:auto;overscroll-behavior:contain}
.achievement-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #2f3516;border-radius:10px;background:#0b0d08;min-height:48px}
.achievement-row div{min-width:0;display:flex;flex-direction:column;gap:2px}
.achievement-row strong{font:700 12px/1.25 Manrope,sans-serif;color:#f4f4f4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.achievement-row small{font:500 10px 'DM Sans',sans-serif;color:#929292}
.achievement-row span{flex:none;font:700 11px 'DM Sans',sans-serif;color:#d2f642}
.award-card p b{color:#d2f642;font-weight:700}
.achievement-row strong{color:#d2f642}
.achievement-row span{color:#f4f4f4}

/* Уровень и ачивки */
.level-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.level-badge{width:64px;height:64px;object-fit:contain;flex:none}
.level-next{width:40px;height:40px;object-fit:contain;flex:none;margin-left:auto;opacity:.55}
.level-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.level-info strong{font:800 18px 'DM Sans',sans-serif;color:#d2f642}
.level-info small{font:500 12px 'DM Sans',sans-serif;color:#929292}
.xp-bar{position:relative;width:100%;aspect-ratio:1000/215}
.xp-fill{position:absolute;left:7.2%;top:33.49%;bottom:22.79%;max-width:85.3%;background:linear-gradient(90deg,#8fae1c,#d2f642);border-radius:4px}
.xp-frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.xp-text{position:absolute;left:7.2%;right:7.5%;top:33.49%;bottom:22.79%;display:flex;align-items:center;justify-content:center;font:800 12px 'DM Sans',sans-serif;color:#fff;text-shadow:0 1px 3px #000}
.ach-count{font:600 12px 'DM Sans',sans-serif;color:#929292;margin-left:6px}
.ach-sub{margin:14px 0 8px;font:700 12px 'DM Sans',sans-serif;color:#929292;text-transform:uppercase;letter-spacing:.06em}
.ach-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ach-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:8px 4px;background:#141414;border:1px solid #262626;border-radius:12px}
.ach-card img{width:72px;height:72px;object-fit:contain}
.ach-card b{font:700 11px 'DM Sans',sans-serif;color:#d2f642;line-height:1.2}
.ach-card small{font:600 11px 'DM Sans',sans-serif;color:#f4f4f4}
.ach-card.next img{opacity:.7}
.ach-card.locked{opacity:.45}
.ach-card.locked img{filter:grayscale(1)}
.ach-card.locked b{color:#929292}
.ach-locked{margin-top:14px}
.ach-locked summary{cursor:pointer;font:700 12px 'DM Sans',sans-serif;color:#929292;margin-bottom:8px}
.ach-title{font:800 26px 'DM Sans',sans-serif;letter-spacing:.04em;text-transform:uppercase}
.ach-grid{grid-template-columns:repeat(5,1fr);gap:6px}
.ach-card{font:inherit;cursor:pointer;padding:6px 2px;gap:3px;border-radius:10px;min-width:0}
.ach-card img{width:44px;height:44px}
.ach-card b{font-size:9px;overflow-wrap:anywhere}
.ach-card small{font-size:9px}
.ach-more{justify-content:center;font:800 16px 'DM Sans',sans-serif;color:#d2f642;border-style:dashed}
.ach-info{position:relative;width:min(86%,320px);text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 18px 18px}
.ach-info-close{position:absolute;top:10px;right:10px}
.ach-info img{width:96px;height:96px;object-fit:contain}
.ach-info h3{margin:0;font:800 17px 'DM Sans',sans-serif;color:#d2f642}
.ach-info p{margin:0;font:500 13px 'DM Sans',sans-serif;color:#d8d8d8}
.ach-info-meta{display:flex;gap:10px;align-items:center;font:600 12px 'DM Sans',sans-serif;color:#929292}
.ach-info-meta b{color:#f4f4f4}
.level-head{justify-content:center;gap:14px}
.level-arrow{width:56px;height:auto;flex:none}
.level-next{margin-left:0;opacity:1;width:64px;height:64px}
.ach-less{font-size:10px;grid-column:span 1}

/* ELO и Achievements Top */
#ratingView .rating-main-tabs{grid-template-columns:repeat(3,1fr);margin-bottom:12px}
#ratingView .rating-main-tabs button{padding:0 2px;font-size:11px;letter-spacing:.02em;white-space:nowrap}
.elo-info-button{display:block;width:100%;margin:0 0 10px;padding:0;border:0;background:none;cursor:pointer}
.elo-info-button img{display:block;width:100%;height:auto}
.elo-table,.ach-top-table{min-width:0;table-layout:fixed}
.elo-table th,.elo-table td,.ach-top-table th,.ach-top-table td{padding-left:4px;padding-right:4px;text-align:center}
.elo-table th:nth-child(1),.elo-table td:nth-child(1),.ach-top-table th:nth-child(1),.ach-top-table td:nth-child(1){width:34px;min-width:0;text-align:center}
.elo-table th:nth-child(2),.elo-table td:nth-child(2),.ach-top-table th:nth-child(2),.ach-top-table td:nth-child(2){text-align:left}
.elo-table th:nth-child(3){width:42px}.elo-table th:nth-child(4){width:46px}.elo-table th:nth-child(5){width:50px}.elo-table th:nth-child(6){width:62px}
.ach-top-table th:nth-child(3){width:64px}.ach-top-table th:nth-child(4){width:112px}
.elo-table td:first-child strong,.ach-top-table td:first-child strong{max-width:none}
.elo-table .player-cell,.ach-top-table .player-cell{display:flex;align-items:center;gap:6px;min-width:0;padding-left:2px}
.elo-table td:nth-child(2) .player-name-wrap,.ach-top-table td:nth-child(2) .player-name-wrap{min-width:0}
.rank-icon-cell{line-height:0}
.elo-rank-icon{width:30px;height:34px;object-fit:contain;vertical-align:middle}
.ach-level-icon{width:32px;height:32px;object-fit:contain;vertical-align:middle}
.trend-cell{display:inline-flex;align-items:center;justify-content:center;gap:3px;font-weight:800}
.trend-cell img{width:14px;height:14px;object-fit:contain}
.trend-cell.up{color:#8fe03a}.trend-cell.down{color:#ff5a4d}.trend-cell.flat{color:#666}
.elo-delta{font-weight:700;color:#929292}.elo-delta.plus{color:#8fe03a}.elo-delta.minus{color:#ff5a4d}
.exp-unit{font-size:8px;color:#929292;font-weight:600}
.elo-info{position:relative;width:min(94%,460px);padding:20px 16px 16px;text-align:left}
.elo-info h3{margin:0 40px 10px 0;font:800 18px 'DM Sans',sans-serif;color:#d2f642}
.elo-ranks-img{display:block;width:100%;height:auto;border-radius:12px;margin-bottom:12px}
.elo-info ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:7px;font:500 12.5px/1.4 'DM Sans',sans-serif;color:#d8d8d8}
.elo-info li b{color:#f4f4f4}
#ratingView .rating-table.elo-table th:nth-child(2),#ratingView .rating-table.ach-top-table th:nth-child(2){text-align:left!important;padding-left:8px}

.compact-back,.profile-back,.tournament-back{width:46px;height:50px;display:flex;align-items:center;justify-content:center;padding:0;font-size:0;line-height:0}
.compact-back svg,.profile-back svg,.tournament-back svg{display:block;width:22px;height:22px}
.compact-back{align-self:center}
@media(max-width:390px){.compact-back{width:46px;height:50px}}
.elo-mine{margin:0 0 12px;padding:12px;border:1px solid #59672c;border-radius:12px;background:linear-gradient(135deg,#171d0b,#0d0d0d)}
.elo-mine-head{display:flex;align-items:center;gap:10px}
.elo-mine-head .player-avatar{width:44px;height:44px;flex:0 0 auto}
.elo-mine-name{min-width:0;flex:1}
.elo-mine-name strong{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.elo-mine-name small{color:#9a9a9a;font-size:11px}
.elo-mine-place{font:800 20px 'DM Sans',sans-serif;color:var(--lime)}
.elo-mine-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.elo-mine-stats div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:62px;padding:6px 2px;border:1px solid #2c2c2c;border-radius:9px;background:#0b0b0b}
.elo-mine-stats span{font-size:9px;color:#9e9e9e;text-transform:uppercase;letter-spacing:.3px}
.elo-mine-stats b{font-size:16px;display:flex;align-items:center;gap:3px}
.elo-mine-stats img{height:30px;width:auto}

.elo-mine-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.elo-mine-id{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;min-width:0}
.elo-mine-id .player-avatar{width:96px!important;height:96px!important;flex:0 0 96px!important;margin:0!important;border:2px solid var(--lime)!important}
.elo-mine-id strong{font-size:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.elo-mine-badge{height:150px;width:auto;flex:0 0 auto;margin-right:6px}
.elo-mine-stats{margin-top:12px}
.elo-mine-stats .trend-cell img{height:22px;width:22px}
.elo-mine-stats .trend-cell{font-size:16px;min-height:20px}

.elo-mine{display:grid;grid-template-columns:76px minmax(0,1fr) 78px;align-items:stretch;gap:8px;padding:10px 8px}
.elo-mine-id{justify-content:center;gap:8px;min-width:0}
.elo-mine-id .player-avatar{width:68px!important;height:68px!important;flex:0 0 68px!important}
.elo-mine-id strong{font-size:12px;text-align:center;white-space:normal;word-break:break-word;line-height:1.2}
.elo-mine-stats{margin-top:0;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:6px}
.elo-mine-stats div{min-height:0;padding:6px 2px}
.elo-mine-stats b{font-size:15px}
.elo-mine-stats .trend-cell{font-size:15px}
.elo-mine-stats .trend-cell img{width:18px;height:18px}
.elo-mine-badge{height:auto;width:78px;align-self:center;margin:0;object-fit:contain}

/* Единый стиль переключателей (home, rating, games, profile) */
.home-view .home-period-switch,#ratingView .rating-tabs,.games-tabs,.profile-period{display:grid!important;gap:3px!important;padding:3px!important;background:linear-gradient(180deg,#131313,#0a0a0a)!important;border:1px solid #343434!important;border-radius:16px!important;box-shadow:inset 0 1px 0 #ffffff0d!important}
.home-view .home-period-switch,.profile-period{grid-template-columns:1fr 1fr}
.profile-period{grid-template-columns:repeat(3,1fr)}
.home-view .home-period-switch button,#ratingView .rating-tabs button,.games-tabs button,.profile-period button{min-height:44px!important;padding:0 6px!important;border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;color:#a3a3a3!important;font:700 13px 'DM Sans',sans-serif!important;letter-spacing:.01em;box-shadow:none!important;transition:background .15s,color .15s}
.home-view .home-period-switch button{flex-direction:column;gap:1px}
.home-view .home-period-switch button small{font-size:10px!important;font-weight:600!important;opacity:.8}
#ratingView .rating-main-tabs button{font-size:11px!important;white-space:nowrap}
.profile-period button{font-size:12px!important;white-space:nowrap}
.home-view .home-period-switch button.selected,#ratingView .rating-tabs button.selected,.games-tabs button.selected,.profile-period button.selected{background:linear-gradient(180deg,#d8f85c,#b6dd36)!important;border-color:#e6fc84!important;color:#0a0c00!important;box-shadow:0 0 14px #c7e75b40,inset 0 1px 0 #ffffff55!important}

.detail-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:3px;padding:3px;margin-bottom:12px;background:linear-gradient(180deg,#131313,#0a0a0a);border:1px solid #343434;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff0d}.detail-pager[hidden]{display:none!important}.detail-pager-btn{min-height:44px;padding:0 8px;border:1px solid transparent;border-radius:13px;background:transparent;color:#eee;font:700 13px 'DM Sans',sans-serif;letter-spacing:.01em;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}.detail-pager-btn{display:flex;align-items:center;gap:6px;justify-content:center}.detail-pager-btn svg{flex:0 0 18px;color:var(--lime)}.detail-pager-btn:active:not(:disabled) svg{color:#0a0c00}.detail-pager-btn:active:not(:disabled){background:linear-gradient(180deg,#d8f85c,#b6dd36);border-color:#e6fc84;color:#0a0c00}.detail-pager-btn:disabled{color:#a3a3a3;opacity:.35;cursor:default}.detail-pager-pos{padding:0 8px;font:700 12px 'DM Sans',sans-serif;color:var(--muted);text-align:center;white-space:nowrap}@media(max-width:400px){.detail-pager-btn{font-size:12px;padding:0 4px;gap:4px}.detail-pager-pos{padding:0 4px;font-size:11px}}

/* Game entry (admin only) */
.game-entry{position:absolute;top:10px;right:12px;z-index:3;width:68px;height:68px;padding:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 3px 6px rgba(0,0,0,.65))}
.game-entry[hidden]{display:none}
.game-entry img{display:block;width:100%;height:100%;object-fit:contain}
.game-entry:active{transform:scale(.94)}
.game-overlay{position:fixed;inset:0;z-index:10000;background:#000}
.game-overlay[hidden]{display:none}
.game-overlay iframe{display:block;width:100%;height:100%;border:0;background:#000}
