:root{--ink:#0c1c33;--ink2:#21344c;--sub:#77859b;--bg:#f4f6fa;--line:#e5e9f1;--white:#fff;--brand:#df4b30;--brand2:#fa7557;--green:#19805c;--blue:#1b62cb;--shadow:0 10px 32px rgba(15,32,58,.065);--radius:17px}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(36,100,202,.25);outline-offset:2px}a{color:inherit}h1,h2,h3,p{margin:0}h3{font-size:15px}::selection{background:#ffd4bf}.app-container{max-width:1030px;margin:0 auto;padding:0 19px}.hero{background:#07192d;position:relative;color:white;overflow:hidden;padding:17px 0 28px}.hero:after{content:"";position:absolute;pointer-events:none;inset:0 0 0 auto;width:48%;background:repeating-linear-gradient(-32deg,transparent 0px,transparent 30px,rgba(255,255,255,.024) 31px,rgba(255,255,255,.024) 33px)}.hero:before{content:"";position:absolute;right:-110px;top:40px;width:390px;height:390px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 52px rgba(255,255,255,.016),0 0 0 104px rgba(255,255,255,.012)}.hero .app-container{position:relative;z-index:1}.hero-bar,.brand-line,.head-actions,.signal,.flex-between,.row-inline,.control-row,.section-head,.tab-row,.filter-row{display:flex;align-items:center}.hero-bar{justify-content:space-between;gap:12px}.brand-line{gap:9px;min-width:0}.brand-mark{width:35px;height:35px;border-radius:10px;background:#fff;padding:3px}.brand-name{font-size:15px;font-weight:800;letter-spacing:.04em}.brand-line .eyebrow{font-size:10px;opacity:.68;letter-spacing:.17em;font-weight:700}.head-actions{gap:8px}.icon-btn,.ghost-light{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(255,255,255,.17);border-radius:10px;background:rgba(255,255,255,.075);color:white;min-height:35px;padding:0 10px;font-size:12px;font-weight:650}.icon-btn{width:36px;padding:0}.icon-btn svg,.ghost-light svg{width:16px;height:16px}.hero-main{margin-top:34px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.overline{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.22em;color:#ffb99c;font-weight:800}.overline:before{content:"";width:22px;height:3px;background:var(--brand2);border-radius:2px}.hero-title{margin-top:9px;line-height:1.1;font-weight:900;font-size:clamp(29px,5vw,45px);letter-spacing:.045em}.hero-title span{color:#ffbda4}.hero-desc{color:#b5c2d3;font-size:12px;margin-top:13px}.hero-crest{border:1px solid rgba(255,255,255,.13);border-radius:22px;padding:17px 20px;background:linear-gradient(150deg,rgba(255,255,255,.11),rgba(255,255,255,.018));font-size:49px;filter:drop-shadow(0 8px 18px #07192d);transform:rotate(-8deg);flex:none}.hero-bottom{margin-top:25px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.signal{gap:7px;min-height:29px;font-size:11px;color:#dce7f2;background:rgba(255,255,255,.085);padding:5px 10px;border-radius:8px}.signal-dot{width:7px;height:7px;border-radius:50%;background:#e9c05f;box-shadow:0 0 0 3px rgba(230,191,84,.14)}.signal.ok .signal-dot{background:#52df9e;box-shadow:0 0 0 3px rgba(82,223,158,.12)}.signal.bad .signal-dot{background:#ff756c}.hero-bottom .date-label{font-size:11px;color:#aebdd0}.demo-banner,.error-banner{margin-top:16px;background:#fff7df;border:1px solid #f5e4af;border-radius:13px;color:#8b640c;font-size:12px;padding:11px 13px;display:flex;align-items:flex-start;gap:9px}.demo-banner strong{font-weight:800}.demo-banner .small-link{margin-left:auto;color:#9b540d;white-space:nowrap;text-decoration:underline}.error-banner{background:#fff0ee;border-color:#f4cdca;color:#a72f20}.page{padding-top:21px;padding-bottom:110px}.section-head{justify-content:space-between;margin:22px 0 13px;gap:10px}.section-title{font-size:18px;font-weight:850;letter-spacing:-.02em}.section-kicker{font-size:11px;font-weight:650;color:var(--sub)}.muted{color:var(--sub)}.muted-sm{color:var(--sub);font-size:12px}.tiny{font-size:11px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.metric{background:#fff;border:1px solid var(--line);padding:15px;border-radius:14px;box-shadow:var(--shadow)}.metric .value{font-size:27px;line-height:1.15;font-weight:850;letter-spacing:-.04em}.metric .label{color:var(--sub);font-size:11px;margin-top:4px}.metric .value.accent{color:var(--brand)}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:17px}.segmented{display:flex;gap:2px;padding:4px;background:#e9edf4;border:1px solid #e5e9f1;border-radius:11px;width:max-content;max-width:100%}.segmented button{border:0;background:transparent;color:#6e7b8d;border-radius:8px;padding:8px 12px;white-space:nowrap;font-size:12px;font-weight:750}.segmented button.active{color:#132a47;background:#fff;box-shadow:0 2px 7px #10243a19}.filters{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0}.filter-pills{display:flex;gap:6px;flex-wrap:wrap}.filter-pills button{border:1px solid var(--line);padding:7px 12px;border-radius:8px;background:#fff;color:#58697e;font-size:12px;font-weight:700}.filter-pills button.active{background:var(--ink);color:white;border-color:var(--ink)}.filter-select{border:1px solid var(--line);border-radius:9px;background:white;padding:7px 12px;color:#364a61;font-size:12px;font-weight:650}.day-heading{font-size:11px;font-weight:850;color:#8995a6;letter-spacing:.13em;margin:15px 0 11px}.fixture-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.fixture{border:1px solid var(--line);border-radius:14px;background:white;box-shadow:var(--shadow);padding:14px 15px;position:relative}.fixture.live{border-color:#ffbd99}.fixture.final{background:#fbfcfe}.fixture-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.fixture-no{color:#586d87;font-weight:900;font-size:11px}.fixture-no strong{color:var(--ink);font-size:12px}.fixture-stage{font-weight:600;color:#8793a3;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.fixture-status{border-radius:6px;font-size:10px;font-weight:800;padding:3px 6px;white-space:nowrap;background:#f0f2f6;color:#67758a}.fixture-status.final{background:#e6f6ee;color:#157647}.fixture-status.live{background:#fff0e5;color:#cf4d1e}.fixture-game{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:7px;margin:16px 0 13px}.fixture-game .team{font-size:14px;font-weight:800;line-height:1.35;overflow-wrap:anywhere;text-align:center}.fixture-game .team .team-code{font-size:9px;font-weight:600;color:#99a3b1;display:block;margin-top:4px}.score{font-size:24px;line-height:1;font-weight:900;letter-spacing:-.06em;white-space:nowrap;min-width:68px;text-align:center;font-variant-numeric:tabular-nums}.score.vs{font-size:14px;color:#a9b4c1;letter-spacing:.1em;font-weight:900}.score.penalty{font-size:20px}.fixture-extra{text-align:center;font-size:10px;color:#a65c17;margin-top:-7px;margin-bottom:8px}.fixture-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf0f5;padding-top:11px;color:#8391a3;font-size:11px}.fixture-bottom b{color:#465b72;font-weight:750}.edit-small{font-size:11px;font-weight:800;background:#fff0e9;border:1px solid #ffdcc9;color:#bf4a27;padding:5px 9px;border-radius:7px}.schedule-event{grid-column:1/-1;display:flex;align-items:center;gap:12px;background:#e9f0f9;border:1px solid #dce7f4;border-radius:12px;padding:13px 14px}.schedule-event .event-icon{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;color:#214d80;background:#d8e6f6;font-size:16px}.schedule-event .event-name{font-size:13px;font-weight:800;color:#2e4c6f}.schedule-event .event-details{font-size:11px;color:#6d88a4;margin-top:2px}.schedule-event .event-time{margin-left:auto;font-size:11px;color:#5d7694;white-space:nowrap;font-weight:750}.empty{border:1px dashed #cbd5e2;color:#7d8ba0;background:white;padding:35px 15px;text-align:center;border-radius:14px;font-size:13px}.note{margin:10px 0;color:#8995a6;font-size:11px;line-height:1.7}.group-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.group-chip{display:inline-flex;align-items:center;justify-content:center;background:#e9eff8;border-radius:7px;color:#31567d;font-size:11px;font-weight:900;padding:5px 9px}.group-chip.b{background:#fff1e7;color:#aa5924}.standings-card{padding:0;overflow:hidden}.standings-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px}.standings-head h3{font-size:16px}.table-scroll{overflow-x:auto}.standings-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}.standings-table thead{background:#f6f8fb;color:#7d8b9d}.standings-table th{font-size:10px;padding:11px 7px;font-weight:800;text-align:center}.standings-table td{border-top:1px solid #edf1f5;padding:11px 7px;text-align:center;color:#53647a;font-variant-numeric:tabular-nums}.standings-table th:nth-child(2),.standings-table td:nth-child(2){text-align:left;white-space:normal;min-width:100px}.standings-table th:first-child,.standings-table td:first-child{padding-left:17px}.standings-table th:last-child,.standings-table td:last-child{padding-right:17px}.standings-table .team-cell{color:#18314e;font-weight:750}.standings-table .points{color:#162f4e;font-size:15px;font-weight:900}.standing-rank{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;border-radius:7px;background:#e8edf4;color:#516680;font-weight:900}.standing-rank.top{background:#fff0e6;color:#d36628}.legend{font-size:11px;color:#8d99a8;line-height:1.75;margin-top:12px}.rank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rank-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.rank-title-row .rank-no{font-size:11px;color:#8995a6;font-weight:850}.rank-compact{padding:15px;border:1px solid var(--line);border-radius:14px;background:white}.rank-compact.highlight{background:linear-gradient(125deg,#192d47,#0b1b31);color:white;border-color:transparent}.rank-compact.highlight .rank-no,.rank-compact.highlight .rank-info{color:#b1bece}.rank-compact .rank-label{font-weight:900;font-size:13px}.rank-compact .rank-vs{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5px;text-align:center;margin:13px 0}.rank-compact .rank-vs b{font-size:13px;overflow-wrap:anywhere}.rank-compact .rank-vs .rank-score{font-size:20px;font-weight:900;min-width:47px}.rank-compact .rank-info{font-size:11px;color:#8190a4;display:flex;justify-content:space-between;gap:8px}.rank-compact .rank-info span:last-child{white-space:nowrap}.rank-alert{padding:13px 14px;border-radius:12px;background:#fff5e6;border:1px solid #f9dfb8;color:#8b581c;font-size:12px;margin-bottom:14px;line-height:1.65}.status-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.status-step{background:white;border:1px solid var(--line);border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:5px}.status-step .step-num{font-size:11px;font-weight:850;color:var(--brand)}.status-step strong{font-size:12px}.status-step span:last-child{font-size:10px;color:#8d9bad}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-grid .full{grid-column:1/-1}.admin-panel .panel{margin-bottom:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:11px;color:#718094;font-weight:750}.field input,.field select{width:100%;border:1px solid #dbe1ea;border-radius:9px;background:#fff;padding:10px 11px;color:#142942;min-width:0}.field input:focus,.field select:focus{border-color:#a5bad7}.field input:disabled,.field select:disabled{background:#f4f5f8}.btn{border:0;border-radius:10px;background:var(--ink);color:#fff;padding:12px 15px;font-size:13px;font-weight:800;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.brand{background:var(--brand)}.btn.secondary{background:#ecf0f6;color:#263a52}.btn.outline{background:white;border:1px solid #dce2eb;color:#334b66}.btn.danger{color:#b8382c;background:#fff0ed}.btn.wide{width:100%}.btn.sm{min-height:34px;padding:7px 11px;font-size:11px;border-radius:8px}.btnrow{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:15px}.btnrow .grow{flex:1}.split-line{height:1px;background:var(--line);margin:16px 0}.team-edit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.rank-select-list{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:12px}.rank-select{display:flex;align-items:center;gap:8px}.rank-select .rank-index{background:#f3f5f8;border:1px solid #e6ebf1;border-radius:7px;width:27px;height:37px;display:grid;place-items:center;flex:none;font-size:12px;font-weight:800;color:#728398}.rank-select select{min-width:0;width:100%;height:37px;border:1px solid #dfe4ec;background:white;border-radius:8px;font-size:12px;font-weight:700;color:#273c53;padding:0 6px}.admin-rule{background:#f3f6fa;padding:11px 12px;color:#6e7f92;border-radius:10px;font-size:11px;line-height:1.8}.admin-empty{padding:22px;background:white;border:1px dashed #d8e0e9;border-radius:13px;text-align:center;color:#8290a2}.bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top:1px solid #e5e9f0;padding:8px max(10px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));box-shadow:0 -3px 14px rgba(18,40,63,.035)}.bottom-nav .nav-items{max-width:650px;margin:auto;display:flex;justify-content:space-between;gap:8px}.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:transparent;border:0;border-radius:10px;color:#9aa5b5;padding:7px 4px;font-size:10px;font-weight:750;min-height:50px}.bottom-nav button svg{width:21px;height:21px}.bottom-nav button.active{background:#f0f4f9;color:#1c395b}.bottom-nav button.active svg{stroke:var(--brand)}.modal-backdrop{position:fixed;inset:0;z-index:50;background:rgba(6,18,34,.61);display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px)}.modal{background:white;border-radius:19px;padding:21px;max-width:430px;width:100%;max-height:min(86vh,770px);overflow-y:auto;box-shadow:0 18px 65px #09182860}.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.modal-header h3{font-size:17px}.close-modal{width:30px;height:30px;display:grid;place-items:center;border:0;background:#f0f2f6;color:#687b91;border-radius:8px;font-size:21px}.modal-summary{font-size:12px;color:#718296;margin-bottom:13px}.score-edit-grid{display:grid;grid-template-columns:1fr 28px 1fr;gap:6px;align-items:center}.score-edit-team{text-align:center;font-size:12px;font-weight:800;min-height:36px;overflow-wrap:anywhere}.score-input-group{display:grid;grid-template-columns:32px 1fr 32px;gap:4px;margin-top:7px}.score-input-group input{border:1px solid #dfe6ef;background:#f7f9fc;border-radius:9px;text-align:center;width:100%;height:53px;font-size:23px;font-weight:900;color:#172c45;min-width:0}.score-input-group button{border:1px solid #dfe5ed;background:white;border-radius:9px;font-size:20px;font-weight:800;color:#566b82}.modal-note{font-size:11px;color:#8a97a9;line-height:1.7;margin-top:14px}.modal .btnrow{margin-top:20px}.modal .btnrow .btn{flex:1}.modal .btnrow .btn.wide{flex:auto}.toast-container{position:fixed;z-index:99;top:18px;left:0;right:0;pointer-events:none;display:flex;justify-content:center;padding:0 20px}.toast{pointer-events:auto;padding:11px 16px;color:white;background:#233b55;box-shadow:0 8px 32px #001a3070;border-radius:10px;font-size:12px;max-width:min(90vw,470px);line-height:1.5}.toast.error{background:#a93a2e}.toast.success{background:#19714f}.loading-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#18324d}.loading-screen .loading-ball{font-size:47px}.loading-screen span{color:#9aa7b5;font-size:12px}.view-intro{font-size:12px;color:#7b899d;line-height:1.8;margin:6px 0 18px}.footnote{text-align:center;color:#a3adba;font-size:10px;margin:35px 0 0}.account-pill{display:inline-flex;align-items:center;gap:5px;background:#eef3f8;border:1px solid #e1e9f1;color:#44617d;border-radius:8px;padding:7px 11px;font-size:11px;font-weight:750}.two-line{line-height:1.5}.login-help{padding:12px;background:#f6f8fb;color:#738397;border-radius:10px;font-size:11px;line-height:1.75}.logo-text{font-weight:900;letter-spacing:.05em}.audit-row{padding:11px 0;border-bottom:1px solid #edf0f4}.audit-row:last-child{border:0}.audit-row strong{font-size:12px}.audit-row span{display:block;color:#8997a8;font-size:10px;margin-top:3px}.badge-warn{display:inline-block;margin-left:5px;background:#fff2dc;color:#ae641e;border-radius:5px;padding:1px 5px;font-size:9px;font-weight:800}.list-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.list-numbers div{background:#f6f8fb;padding:10px;border-radius:9px;font-size:11px}.list-numbers strong{display:block;font-size:17px;font-weight:900;color:var(--ink)}
@media(max-width:740px){.app-container{padding:0 14px}.hero{padding:14px 0 24px}.hero-main{margin-top:25px}.hero-title{font-size:32px}.hero-crest{font-size:36px;padding:12px}.fixture-list{grid-template-columns:1fr}.fixture{padding:13px 14px}.metrics{gap:7px}.metric{padding:12px 10px}.metric .value{font-size:23px}.metric .label{font-size:10px}.hero-desc{font-size:11px}.hero-bottom{margin-top:22px}.page{padding-top:15px}.section-head{margin-top:19px}.admin-grid{grid-template-columns:1fr}.admin-grid .full{grid-column:auto}.rank-grid{grid-template-columns:1fr}.status-steps{gap:7px}.status-step{padding:10px}.rank-compact.highlight{order:-1}.fixture-game{margin:15px 0 12px}.head-actions .ghost-light span{display:none}.head-actions .ghost-light{padding:0;width:35px}.fixture-game .team{font-size:14px}}
@media(max-width:360px){.hero-title{font-size:28px}.hero-crest{display:none}.metric .value{font-size:21px}.section-title{font-size:17px}.standings-table th,.standings-table td{padding:8px 5px}.standings-table th:first-child,.standings-table td:first-child{padding-left:10px}.team-edit-grid{grid-template-columns:1fr}.rank-select-list{grid-template-columns:1fr}.btnrow .btn{font-size:11px;padding:10px}}
@media(min-width:750px){.bottom-nav{bottom:20px;left:50%;right:auto;transform:translateX(-50%);border:1px solid #e6ebf2;border-radius:16px;min-width:560px;padding:7px 11px;box-shadow:0 7px 30px #1a30401c}.page{padding-bottom:100px}}

/* ===== MUFUN premium tournament UI ===== */
:root{
 --ink:#171613;--ink2:#302b20;--sub:#817b70;--bg:#f6f4ef;--line:#e9e3d7;--white:#fff;
 --brand:#c99a2e;--brand2:#edc24f;--green:#238052;--blue:#a77b25;
 --shadow:0 9px 26px rgba(36,29,15,.075);--radius:19px;
}
html{background:var(--bg)}
body{background:linear-gradient(180deg,#f8f6f1 0%,#f3f1ec 100%);color:var(--ink)}
button,input,select{font-family:inherit}
.app-container{max-width:1160px;padding-left:18px;padding-right:18px}
.hero{padding:13px 0 0;background:transparent;color:var(--ink);overflow:visible}
.hero:before,.hero:after{display:none}
.hero-brandbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 13px;background:rgba(255,255,255,.96);border:1px solid #eee8dc;border-radius:17px;box-shadow:0 5px 20px rgba(37,31,18,.045)}
.brand-block{display:flex;align-items:center;gap:13px;min-width:0}
.mufun-logo{display:block;width:164px;height:60px;object-fit:contain;object-position:left center;background:#fff;flex:none}
.brand-divider{height:42px;width:1px;background:#dcd5c7;flex:none}
.brand-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.brand-copy strong{font-size:15px;line-height:1.25;font-weight:900;letter-spacing:.015em;color:#1c1a16;white-space:nowrap}
.brand-copy span{font-size:11px;line-height:1.3;color:#827b6e;white-space:nowrap}
.hero .head-actions{gap:7px;flex:none}
.hero .icon-btn,.hero .ghost-light{min-height:37px;border-radius:11px;border:1px solid #e8dfcc;background:#fffaf0;color:#8b681e}
.hero .icon-btn{width:37px}
.hero .ghost-light{font-size:11px;padding:0 10px;font-weight:800}
.hero .icon-btn svg,.hero .ghost-light svg{width:16px;height:16px}
.hero-main{position:relative;isolation:isolate;overflow:hidden;min-height:208px;margin-top:12px;padding:27px 30px;border-radius:24px;align-items:center;justify-content:space-between;background:radial-gradient(ellipse at 78% 15%,rgba(236,192,80,.32),transparent 31%),radial-gradient(ellipse at 95% 110%,rgba(201,154,46,.3),transparent 35%),linear-gradient(112deg,#151512 0%,#242118 54%,#3c3018 100%);box-shadow:0 14px 30px rgba(25,22,15,.17)}
.hero-main:before{content:"";position:absolute;z-index:-1;inset:-55% -12% -70% 34%;border:1px solid rgba(237,194,79,.3);border-radius:50%;transform:rotate(-18deg);box-shadow:0 0 0 28px rgba(237,194,79,.035),0 0 0 58px rgba(237,194,79,.025),0 0 0 88px rgba(237,194,79,.02)}
.hero-main:after{content:"";position:absolute;z-index:-1;right:0;bottom:0;width:60%;height:48%;opacity:.18;background:repeating-linear-gradient(164deg,transparent 0 17px,rgba(255,255,255,.28) 18px 19px);clip-path:polygon(15% 0,100% 0,100% 100%,0 100%)}
.hero-copy{position:relative;z-index:2}
.hero .overline{color:#e6c46d;font-size:10px;letter-spacing:.2em}
.hero .overline:before{background:var(--brand2);width:25px;height:3px}
.hero-title{font-size:clamp(42px,6vw,62px);letter-spacing:.08em;color:#fff;margin-top:10px;text-shadow:0 3px 15px rgba(0,0,0,.18)}
.hero-title span{color:#f0c750}
.hero-subtitle{margin-top:8px;color:#e6dfd0;font-size:17px;font-weight:700;letter-spacing:.12em}
.hero-tag{display:inline-flex;align-items:center;gap:8px;margin-top:17px;padding:8px 15px;border-radius:999px;background:linear-gradient(110deg,#f4d57d,#d3a63d);color:#302411;font-size:12px;font-weight:900;box-shadow:0 5px 18px rgba(201,154,46,.2)}
.hero-tag svg{width:17px;height:17px}
.hero-art{position:absolute;right:28px;top:10px;bottom:0;width:43%;z-index:1;pointer-events:none;display:block}
.hero-ribbon{position:absolute;right:-45px;top:15px;width:82%;height:62px;border-top:9px solid rgba(232,190,83,.85);border-radius:50%;transform:rotate(-18deg);filter:drop-shadow(0 4px 8px rgba(0,0,0,.3))}
.hero-trophy{position:absolute;right:24%;top:20px;color:#f2cb62;filter:drop-shadow(0 8px 13px rgba(0,0,0,.48));transform:rotate(-5deg)}
.hero-trophy svg{width:112px;height:112px;stroke-width:1.15}
.hero-ball{position:absolute;right:4%;bottom:18px;width:67px;height:67px;border-radius:50%;background:radial-gradient(circle at 30% 24%,#fff 0 10%,#d8d5ca 40%,#77766e 74%,#25241f 100%);border:4px solid rgba(255,255,255,.65);box-shadow:0 10px 20px rgba(0,0,0,.45)}
.hero-ball:before,.hero-ball:after{content:"";position:absolute;border:2px solid rgba(34,33,28,.72);border-radius:50%}
.hero-ball:before{inset:14px 7px 14px 7px;transform:rotate(35deg)}
.hero-ball:after{width:17px;height:17px;left:21px;top:20px;background:#292821;border-color:#292821;clip-path:polygon(50% 0,95% 35%,77% 90%,23% 90%,5% 35%)}
.hero-pitch-line{position:absolute;right:-4%;bottom:0;width:74%;height:42px;border-top:2px solid rgba(238,225,184,.28);transform:skewX(-32deg)}
.hero-bottom{position:relative;z-index:3;margin-top:10px;padding:0 3px;min-height:29px;justify-content:space-between}
.signal{background:#fff;border:1px solid #ebe4d7;border-radius:999px;color:#655b47;font-size:11px;padding:5px 11px}
.signal-dot{background:#c99a2e;box-shadow:0 0 0 3px rgba(201,154,46,.13)}
.signal.ok .signal-dot{background:#2e9a62;box-shadow:0 0 0 3px rgba(46,154,98,.12)}
.date-label{color:#817a6d;font-size:11px}
.page{padding-top:16px;padding-bottom:112px}
.demo-banner,.error-banner{border-radius:13px;box-shadow:0 4px 14px rgba(36,29,15,.035)}
.section-head,.home-section-head{justify-content:space-between;align-items:flex-end;margin:25px 0 13px;gap:12px}
.section-title{font-size:19px;font-weight:900;letter-spacing:-.025em;color:#211e18}
.section-kicker{font-size:9px;letter-spacing:.18em;font-weight:900;color:#b28a32}
.muted,.muted-sm,.section-kicker{line-height:1.5}
.muted-sm{font-size:11px;color:#928b7e}

/* Home dashboard */
.home-summary{display:grid;grid-template-columns:minmax(170px,.9fr) 1px minmax(0,2.6fr);align-items:center;gap:17px;margin:16px 0 23px;padding:19px 21px;border-radius:20px;color:#fff;background:radial-gradient(circle at 100% 0,rgba(211,166,61,.22),transparent 35%),linear-gradient(110deg,#171714,#25231c 70%,#332915);box-shadow:0 12px 26px rgba(25,22,15,.15);position:relative;overflow:hidden}
.home-summary:after{content:"";position:absolute;right:-20px;bottom:-35px;width:220px;height:110px;border-top:1px solid rgba(232,190,83,.3);transform:rotate(-22deg);pointer-events:none}
.summary-intro{display:flex;flex-direction:column;gap:6px;position:relative;z-index:1}
.summary-live{display:inline-flex;align-items:center;gap:7px;width:max-content;padding:5px 9px;border-radius:999px;background:rgba(42,139,83,.22);color:#b7e5c8;font-size:10px;font-weight:800}
.summary-live i{width:7px;height:7px;border-radius:50%;background:#52c47d;box-shadow:0 0 0 3px rgba(82,196,125,.13)}
.summary-intro strong{font-size:17px;font-weight:900;letter-spacing:.02em}
.summary-intro small{font-size:10px;color:#b8b2a5}
.summary-divider{height:62px;background:rgba(255,255,255,.16)}
.summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;position:relative;z-index:1}
.summary-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;text-align:center}
.summary-metric>span{color:#e8bd50;height:23px;display:flex;align-items:center}
.summary-metric>span svg{width:21px;height:21px}
.summary-metric strong{font-size:26px;line-height:1.12;color:#fff;font-weight:900;white-space:nowrap;font-variant-numeric:tabular-nums}
.summary-metric .sync-label{font-size:13px;line-height:1.9;color:#f1d17c}
.summary-metric small{font-size:10px;color:#c0b9aa}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.shortcut-tile{min-height:126px;border:1px solid #eee9df;border-radius:18px;background:linear-gradient(150deg,#fff,#fbfaf7);box-shadow:0 7px 20px rgba(40,32,16,.065);padding:17px 10px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#24211a;transition:transform .16s,box-shadow .16s}
.shortcut-tile:active,.venue-card:active{transform:translateY(1px) scale(.99)}
.shortcut-icon{display:grid;place-items:center;width:43px;height:43px;color:#bd902e;background:linear-gradient(145deg,#fff8e6,#f5e8c7);border-radius:13px}
.shortcut-icon svg{width:25px;height:25px;stroke-width:1.8}
.shortcut-tile strong{font-size:14px;font-weight:900}
.shortcut-tile small{font-size:10px;color:#928b7e}
.venue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.venue-card{position:relative;overflow:hidden;min-height:112px;padding:17px 19px;border:1px solid #d5b45d;border-radius:18px;text-align:left;color:#fff;background:radial-gradient(ellipse at 85% 100%,rgba(127,143,77,.42),transparent 34%),linear-gradient(115deg,#342b19,#171815 75%);box-shadow:0 8px 18px rgba(35,29,17,.12);display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.venue-card:before{content:"";position:absolute;right:-22px;bottom:-39px;width:190px;height:100px;border:1px solid rgba(255,255,255,.28);transform:rotate(-18deg);box-shadow:0 -14px 0 -13px rgba(255,255,255,.23),0 -30px 0 -29px rgba(255,255,255,.2)}
.venue-card:after{content:"";position:absolute;right:15px;bottom:14px;width:90px;height:45px;border-top:2px solid rgba(232,221,181,.4);border-left:2px solid rgba(232,221,181,.3);transform:skewX(-35deg)}
.venue-card.field-two{background:radial-gradient(ellipse at 85% 100%,rgba(133,118,62,.42),transparent 34%),linear-gradient(115deg,#44361d,#191915 75%)}
.venue-card-label{font-size:9px;letter-spacing:.2em;color:#e3c56f;font-weight:900}
.venue-card strong{font-size:18px;font-weight:900;position:relative;z-index:1}
.venue-card small{font-size:10px;color:#d0c7b5;position:relative;z-index:1}
.venue-arrow{position:absolute;right:19px;top:23px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2b84f;color:#312613;font-size:23px;line-height:1}
.venue-number{position:absolute;right:27px;bottom:-15px;font-size:68px;color:rgba(255,255,255,.12);font-weight:950;line-height:1}
.home-lower-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-top:18px;align-items:stretch}
.home-card{min-width:0;border:1px solid #ebe6dc;border-radius:18px;background:#fff;box-shadow:var(--shadow);overflow:hidden;padding:16px}
.home-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid #f0ede7}
.home-card-head h3{font-size:16px;font-weight:900;margin-top:3px}
.home-card-head small{display:block;font-size:10px;color:#999184;margin-top:3px}
.text-link,.subtle-link{border:0;background:transparent;color:#a17a25;font-size:10px;font-weight:850;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.text-link svg{width:13px;height:13px;transform:rotate(90deg)}
.home-match-list{display:flex;flex-direction:column}
.home-match-item{padding:12px 0;border-bottom:1px solid #f0ede7}
.home-match-item:last-child{border-bottom:0}
.home-match-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#928b7f;font-size:9px}
.home-match-meta span:first-child{color:#9a7222;background:#fbf2dc;padding:3px 7px;border-radius:6px;font-weight:900}
.home-match-status{margin-left:auto;font-weight:800;color:#8b8376}
.home-match-status.live{color:#b87917}.home-match-status.final{color:#288153}
.home-match-main{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px;margin-top:10px;text-align:center}
.home-match-main>span{font-size:12px;font-weight:850;overflow-wrap:anywhere;line-height:1.35}
.home-match-main>span:last-child{text-align:right}.home-match-main>span:first-child{text-align:left}
.home-match-main small{display:block;font-size:9px;font-weight:650;color:#aaa294;margin-top:3px}
.home-match-main strong{font-size:17px;min-width:53px;color:#a47b27;font-weight:950;white-space:nowrap}
.home-card-foot{border-top:1px solid #f0ede7;padding-top:10px;text-align:center}
.home-group-tabs{margin:12px 0 5px}
.home-group-tabs .segmented{padding:3px;background:#f3f0e8;border-color:#ece6da}
.home-group-tabs .segmented button{padding:6px 17px;font-size:11px}
.home-group-tabs .segmented button.active{background:#fff;color:#8e681b;box-shadow:0 2px 7px rgba(61,45,12,.1)}
.home-standings-list{display:flex;flex-direction:column}
.home-standing-row{display:grid;grid-template-columns:25px minmax(0,1fr) 35px 40px;align-items:center;gap:8px;padding:12px 1px;border-bottom:1px solid #f0ede7}
.home-standing-row:last-child{border-bottom:0}
.home-rank{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:#f0eee9;color:#766f62;font-size:11px;font-weight:900}
.home-rank.first{background:#f7e8bf;color:#9a701e}
.home-team-name{font-size:12px;font-weight:850;min-width:0;overflow-wrap:anywhere}
.home-team-name small{display:block;font-size:9px;color:#aaa294;font-weight:650;margin-top:2px}
.home-played{font-size:10px;color:#9a9387;text-align:center}
.home-standing-row>strong{text-align:right;color:#a47b27;font-size:16px;font-weight:950}
.home-standing-row>strong small{font-size:9px;margin-left:2px;color:#9c9383}
.home-notice{display:flex;align-items:flex-start;gap:11px;margin-top:15px;padding:13px 15px;border:1px solid #eee4c9;border-radius:14px;background:#fffaf0;color:#77613a}
.notice-icon{display:grid;place-items:center;width:22px;height:22px;flex:none;border-radius:50%;background:#f1dfb1;color:#7e5d18;font-size:13px;font-weight:900}
.home-notice strong{font-size:11px;color:#5d491f}
.home-notice p{font-size:10px;line-height:1.7;color:#8b7954;margin-top:3px}

/* Match cards and controls */
.metrics{gap:10px;margin-bottom:17px}
.metric{border-color:#eee8dc;border-radius:15px;box-shadow:0 5px 16px rgba(40,32,16,.045);padding:13px 15px}
.metric .value{color:#29251d;font-size:25px}
.metric .value.accent{color:#b88a27}
.metric .label{color:#958d80}
.panel,.fixture,.standings-card,.rank-compact{border-color:#ebe6dc;border-radius:17px;box-shadow:var(--shadow)}
.fixture{padding:15px 16px;background:linear-gradient(145deg,#fff,#fdfcf9)}
.fixture.live{border-color:#d7b45d;background:#fffdf7}
.fixture.final{background:#fbfaf7}
.fixture-no{color:#9a8e77;font-size:10px;white-space:nowrap}
.fixture-no strong{color:#8d671d;font-size:12px}
.fixture-time{color:#9a9387;font-size:10px;font-weight:650;margin-left:3px}
.fixture-stage{color:#877e6d;font-size:10px}
.fixture-status{border-radius:999px;padding:4px 8px;font-size:9px;background:#f1eee7;color:#766d5d}
.fixture-status.final{background:#e8f4eb;color:#247348}
.fixture-status.live{background:#fff2d6;color:#9b6a12}
.fixture-game{gap:9px;margin:16px 0 13px}
.fixture-game .team{font-size:14px;color:#29251d;display:flex;flex-direction:column;gap:4px}
.fixture-game .team-code{display:inline-block;margin:0;color:#aaa294;font-size:9px;font-weight:650;letter-spacing:.04em}
.score{color:#a47a25;font-size:25px;min-width:72px}
.score.vs{color:#b8b1a4;font-size:13px}
.fixture-bottom{border-top-color:#f0ede7;color:#968e81;font-size:10px}
.fixture-bottom b{color:#8d8372}
.edit-small{display:inline-flex;align-items:center;gap:5px;background:#fff5dc;border:1px solid #ecd69d;color:#8d671b;border-radius:8px;padding:7px 11px;font-size:10px;font-weight:900}
.edit-small svg{width:13px;height:13px}
.schedule-event{background:#fffaf0;border-color:#efe1bc;border-radius:14px}
.schedule-event .event-icon{background:#f4e6bf;color:#9a741f}
.schedule-event .event-name{color:#4e3e1e}
.schedule-event .event-details,.schedule-event .event-time{color:#917c50}
.schedule-time-note{padding:12px 14px;border-radius:12px;background:#fffaf0;border:1px solid #eee4c9;color:#816d43}

/* Standings, playoffs, admin */
.segmented{background:#f0ede6;border-color:#e8e2d7;border-radius:12px}
.segmented button{color:#81796d}
.segmented button.active{background:#fff;color:#8b661e;box-shadow:0 2px 7px rgba(57,43,12,.1)}
.filter-pills button{border-color:#e8e2d7;color:#81796d;background:#fff;border-radius:999px}
.filter-pills button.active{background:#29261f;color:#f6d87e;border-color:#29261f}
.filter-select{border-color:#e8e2d7;border-radius:10px;color:#5e574a}
.standings-head h3{color:#28241c;font-size:15px}
.standings-table thead{background:#f7f4ec;color:#887f70}
.standings-table th{font-size:10px}
.standings-table td{border-top-color:#f0ede7;color:#625b50}
.standings-table .team-cell{color:#29251d;font-weight:850}
.standings-table .points{color:#9a7220;font-size:16px}
.standing-rank{background:#f0eee8;color:#776e5d;border-radius:7px}
.standing-rank.top{background:#f8ebc9;color:#9b711e}
.group-chip{background:#f5eddb;color:#8e6c25;border-radius:999px}
.group-chip.b{background:#eee8db;color:#75684e}
.rank-compact{background:#fff;border-radius:16px;padding:16px}
.rank-compact.highlight{background:linear-gradient(125deg,#25231c,#121210);border-color:#cba13f;color:#fff}
.rank-compact.highlight .rank-no,.rank-compact.highlight .rank-info{color:#c7bda5}
.rank-compact .rank-score{color:#a77b24}
.rank-compact.highlight .rank-score{color:#f0c95e}
.rank-alert{background:#fff8e8;border-color:#eddfbb;color:#82642c}
.status-step{border-color:#ebe6dc;border-radius:13px;box-shadow:0 4px 12px rgba(40,32,16,.035)}
.status-step .step-num{color:#ad8129}
.account-pill{background:#f7f1e4;border-color:#eaddbf;color:#806323}
.btn{background:#25231d;border-radius:11px}
.btn.brand{background:linear-gradient(110deg,#d9b04d,#b98724);color:#241d0d;box-shadow:0 5px 12px rgba(179,135,36,.18)}
.btn.secondary{background:#f0ede6;color:#4e473b}
.btn.outline{background:#fff;border-color:#e6dece;color:#5c5344}
.btn.danger{background:#fff0ec;color:#b03b2d}
.field input,.field select,.rank-select select{border-color:#e7e0d2;border-radius:10px}
.admin-rule,.login-help{background:#f8f5ed;color:#817967;border-radius:12px}
.bottom-nav{background:rgba(255,255,255,.96);border-top-color:#eae4d8;box-shadow:0 -6px 22px rgba(39,31,15,.06)}
.bottom-nav button{color:#a19a8d;border-radius:13px;font-size:10px}
.bottom-nav button.active{background:#fbf3df;color:#8f681b}
.bottom-nav button.active svg{stroke:#b88928}
.modal{border:1px solid #eee6d7;border-radius:21px;box-shadow:0 22px 75px rgba(20,17,11,.3)}
.modal-backdrop{background:rgba(22,20,15,.62)}
.modal-summary{color:#8a806d}
.early-entry-hint{padding:10px 12px;border-radius:10px;background:#fff8e8;border:1px solid #f0e2bd;color:#86682a;font-size:11px;line-height:1.6;margin:-3px 0 15px}
.score-input-group input{border-color:#eadfca;background:#fbf8f0;color:#2b2518}
.score-input-group button{border-color:#e8dfce;color:#806326;background:#fffaf0}
.close-modal{background:#f5f1e8;color:#756a56}
.toast{background:#29251b}.toast.success{background:#26784d}
.footnote{color:#aaa18f}

@media(max-width:740px){
 .app-container{padding-left:13px;padding-right:13px}
 .hero{padding-top:9px}
 .hero-brandbar{padding:8px 9px;gap:6px;border-radius:14px}
 .brand-block{gap:8px}
 .mufun-logo{width:116px;height:47px}
 .brand-divider{height:34px}
 .brand-copy strong{font-size:12px}
 .brand-copy span{font-size:9px}
 .hero .head-actions{gap:5px}
 .hero .icon-btn{width:32px;min-height:32px}
 .hero .ghost-light{width:32px;min-height:32px;padding:0;justify-content:center}
 .hero .brand-login span{display:none}
 .hero-main{min-height:183px;margin-top:9px;padding:23px 19px;border-radius:20px}
 .hero-title{font-size:43px}
 .hero-subtitle{font-size:13px;margin-top:6px}
 .hero-tag{margin-top:13px;padding:7px 12px;font-size:10px}
 .hero-art{right:6px;width:45%;top:0}
 .hero-trophy{right:22%;top:28px}
 .hero-trophy svg{width:84px;height:84px}
 .hero-ball{width:52px;height:52px;right:1%;bottom:17px}
 .hero-ball:after{left:16px;top:15px}
 .hero-bottom{margin-top:8px;padding:0 2px}
 .signal{font-size:9px;padding:4px 8px}
 .date-label{font-size:9px;text-align:right}
 .page{padding-top:11px;padding-bottom:104px}
 .home-summary{grid-template-columns:1fr;gap:11px;padding:14px 14px;margin:12px 0 20px;border-radius:17px}
 .summary-intro{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px}
 .summary-live{grid-column:1/-1;font-size:9px}
 .summary-intro strong{font-size:14px}
 .summary-intro small{font-size:9px;text-align:right}
 .summary-divider{height:1px;width:100%}
 .summary-metrics{gap:3px}
 .summary-metric>span svg{width:18px;height:18px}
 .summary-metric strong{font-size:22px}
 .summary-metric .sync-label{font-size:11px}
 .summary-metric small{font-size:9px}
 .home-section-head{margin:19px 0 11px}
 .section-title{font-size:17px}
 .home-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .shortcut-tile{min-height:104px;padding:11px 4px 9px;border-radius:14px;gap:5px}
 .shortcut-icon{width:34px;height:34px;border-radius:10px}
 .shortcut-icon svg{width:21px;height:21px}
 .shortcut-tile strong{font-size:11px;white-space:nowrap}
 .shortcut-tile small{font-size:8px;white-space:nowrap}
 .venue-grid{gap:8px}
 .venue-card{min-height:98px;padding:13px 12px;border-radius:14px}
 .venue-card strong{font-size:14px}
 .venue-card small{font-size:9px}
 .venue-card-label{font-size:8px}
 .venue-arrow{right:10px;top:15px;width:24px;height:24px}
 .venue-number{right:14px;font-size:55px}
 .home-lower-grid{grid-template-columns:1fr;gap:11px;margin-top:14px}
 .home-card{padding:13px;border-radius:15px}
 .home-card-head h3{font-size:14px}
 .home-card-head small{font-size:9px}
 .home-match-item{padding:10px 0}
 .home-match-main>span{font-size:11px}
 .home-match-main strong{font-size:16px}
 .home-standing-row{padding:10px 1px}
 .home-notice{padding:11px 12px;margin-top:12px}
 .home-notice p{font-size:9px}
 .metrics{gap:6px}
 .metric{padding:10px 7px}
 .metric .value{font-size:21px}
 .metric .label{font-size:9px}
 .fixture-list{grid-template-columns:1fr}
 .fixture{padding:13px}
 .fixture-row-top{flex-wrap:wrap}
 .fixture-no{font-size:9px}
 .fixture-stage{margin-left:auto}
 .fixture-game .team{font-size:13px}
 .score{font-size:23px}
 .rank-grid{grid-template-columns:1fr}
 .admin-grid{grid-template-columns:1fr}
 .status-steps{gap:6px}
 .status-step{padding:9px}
 .status-step strong{font-size:10px}
 .status-step span:last-child{font-size:9px}
 .bottom-nav{padding:6px 10px max(6px,env(safe-area-inset-bottom))}
 .bottom-nav button{min-height:48px}
}
@media(max-width:380px){
 .mufun-logo{width:100px;height:43px}
 .brand-copy strong{font-size:11px}
 .brand-copy span{font-size:8px}
 .hero-title{font-size:39px}
 .hero-trophy{right:20%;top:38px}
 .hero-trophy svg{width:73px;height:73px}
 .shortcut-tile strong{font-size:10px}
 .shortcut-tile small{font-size:7px}
 .home-summary{padding:12px}
 .home-match-meta{gap:5px}
}
@media(min-width:900px){
 .home-lower-grid{grid-template-columns:1.15fr .85fr}
 .fixture-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero-main{min-height:230px}
}
.loading-screen{background:var(--bg);color:#262219}
.loading-logo{width:min(190px,60vw);height:auto;object-fit:contain;border-radius:10px;background:#fff;padding:4px}

/* Keep the navigation dock outside the scrollable content so it never covers cards. */
html,body{height:100%;height:100dvh;overflow:hidden}
#app{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.hero{flex:none}
.page{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:22px}
.bottom-nav{position:relative;inset:auto;transform:none;flex:none;margin:0;border-radius:0;border-left:0;border-right:0;border-bottom:0;width:100%;box-shadow:0 -5px 18px rgba(39,31,15,.06)}
@media(min-width:750px){
 .bottom-nav{position:relative;inset:auto;transform:none;margin:0 auto 12px;width:min(640px,calc(100% - 32px));min-width:0;border:1px solid #eae4d8;border-radius:16px;padding:7px 11px;box-shadow:0 7px 30px rgba(26,30,25,.08)}
 .page{padding-bottom:22px}
}
.ad-card,.ad-admin,.final-board{margin:14px 0;overflow:hidden}
.ad-card{position:relative;border-radius:14px;background:#191815}
.ad-card img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain}
.ad-dots{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);display:flex;border-radius:20px;background:#171613bb}
.ad-dots button{background:transparent;border:0;padding:8px;cursor:pointer}
.ad-dots button:before{content:'';display:block;border-radius:50%;width:8px;height:8px;background:white}
.ad-dots button[aria-pressed=true]:before{background:#e6b454}
.ad-row,.place-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #eee}
.ad-row span,.place-row small{color:#686253;font-size:12px;margin-left:auto}
.place-row b{min-width:54px}.place-row strong{overflow-wrap:anywhere}
.place-row:nth-child(-n+4) b{color:#876318}
.ad-dialog{border:0;border-radius:16px;padding:20px;width:min(92vw,430px);max-height:90vh;overflow:auto}
.ad-dialog::backdrop{background:#0009}.ad-dialog .field{margin:14px 0}
.ad-dialog .field input{display:block;width:100%;margin-top:6px}.ad-preview{width:100%;max-height:170px;object-fit:contain}
.ad-dialog [role=alert]{color:#993b25}
