@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700&display=swap');

/* ============================================================== tokens === */
:root{
  --ink:#0E1116; --ink2:#161B22; --ink3:#1D2430; --line:#2A3240;
  --paper:#F7F7F4; --paper2:#ECECE6;
  --hong:#C8102E;      /* red corner  */
  --chung:#0B3C8C;     /* blue corner */
  --gold:#E4A200;
  --text:#E9EAEE; --muted:#8B94A3; --ink-text:#14181E;
  --ok:#1F8A5B; --warn:#B26B00; --bad:#B3261E;
  --r:12px; --r-lg:18px;
  --display:'Cairo',system-ui,sans-serif;
  --body:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  --belt:linear-gradient(90deg,
     #F2F2F0 0 8.33%, #F2C200 8.33% 16.66%, #B9A800 16.66% 25%,
     #1F8A5B 25% 33.33%, #16697A 33.33% 41.66%, #0B3C8C 41.66% 50%,
     #3B3E6E 50% 58.33%, #6B4423 58.33% 66.66%, #96262A 66.66% 75%,
     #C8102E 75% 83.33%, #6E0C1C 83.33% 91.66%, #111111 91.66% 100%);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--body); font-size:16px; line-height:1.6;
  background:var(--paper); color:var(--ink-text);
  -webkit-text-size-adjust:100%;
}
h1,h2,h3,h4,.display{font-family:var(--display); font-weight:900; line-height:1.15; letter-spacing:-.01em; margin:0}
a{color:inherit}
img{max-width:100%;display:block}
:focus-visible{outline:3px solid var(--gold); outline-offset:2px}

/* signature: the belt spectrum, used as every structural rule */
.belt-rule{height:6px;background:var(--belt);border:0;margin:0}
.belt-rule.thin{height:3px}

.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.stack>*+*{margin-top:14px}
.muted{color:var(--muted)}
.small{font-size:13px}
.center{text-align:center}
.nowrap{white-space:nowrap}

/* ============================================================== landing == */
.hero{background:var(--ink);color:var(--text);position:relative;overflow:hidden}
.hero-inner{max-width:1180px;margin:0 auto;padding:74px 20px 86px;position:relative;z-index:2}
.hero .kicker{
  font-family:var(--display);font-weight:800;font-size:12px;letter-spacing:.22em;
  text-transform:uppercase;color:var(--gold);margin-bottom:18px
}
.hero h1{font-size:clamp(34px,6.4vw,68px);max-width:15ch}
.hero p.lede{color:#B9C0CC;font-size:clamp(16px,2.2vw,20px);max-width:56ch;margin:22px 0 0}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}

/* taegeuk-derived corner discs, the one decorative flourish */
.disc{position:absolute;border-radius:50%;filter:blur(2px);opacity:.5;z-index:1;pointer-events:none}
.disc.a{width:420px;height:420px;background:radial-gradient(circle at 35% 35%,var(--hong),transparent 62%);
        inset-inline-end:-90px;top:-120px}
.disc.b{width:520px;height:520px;background:radial-gradient(circle at 60% 60%,var(--chung),transparent 62%);
        inset-inline-end:60px;bottom:-300px}
@media (max-width:760px){.disc{opacity:.35}.disc.a{width:260px;height:260px}.disc.b{width:300px;height:300px}}

.strip{background:var(--ink2);color:var(--text);border-block:1px solid var(--line)}
.strip .wrap{display:flex;flex-wrap:wrap;gap:26px;padding-block:18px;justify-content:space-between;align-items:center}
.strip b{font-family:var(--display);color:var(--gold);font-size:20px}

.section{padding:66px 0}
.section.alt{background:var(--paper2)}
.eyebrow{font-family:var(--display);font-weight:800;font-size:12px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--hong);margin-bottom:10px}
.grid-f{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin-top:30px}
.f-card{background:#fff;border:1px solid #DFDFD7;border-radius:var(--r-lg);padding:24px;position:relative;overflow:hidden}
.f-card::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:5px;background:var(--belt)}
.f-card h3{font-size:20px;margin-bottom:8px}
.f-card p{margin:0;color:#4A5260;font-size:15px}

.belt-strip{display:flex;gap:6px;flex-wrap:wrap;margin-top:22px}
.belt-chip{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #DFDFD7;
  border-radius:999px;padding:6px 14px 6px 6px;font-size:13px;font-weight:500}
.belt-chip .sw{width:22px;height:22px;border-radius:50%;border:1px solid rgba(0,0,0,.18);flex:0 0 auto}

.site-foot{background:var(--ink);color:var(--muted);padding:34px 0;font-size:14px}
.site-foot a{color:var(--gold);text-decoration:none}

/* =============================================================== buttons = */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--display);font-weight:800;font-size:15px;
  padding:12px 22px;border-radius:var(--r);border:1px solid transparent;
  background:var(--hong);color:#fff;text-decoration:none;cursor:pointer;
  transition:transform .12s ease,filter .12s ease,background .12s ease,box-shadow .12s ease;
}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:translateY(1px)}
.btn.ghost{
  background:#fff;border-color:#2A3240;color:var(--ink-text)
}
.btn.ghost:hover{background:#F4F5F7;filter:none}
.btn.dark,.btn.ghost.dark{
  background:var(--ink);border-color:var(--ink);color:#fff
}
.btn.dark:hover,.btn.ghost.dark:hover{filter:brightness(1.18)}
.btn.blue{background:var(--chung);color:#fff}
.btn.ok{background:var(--ok);color:#fff}
.btn.bad{background:var(--bad);color:#fff}
.btn.gold{background:var(--gold);color:#221A00}
.btn.sm{padding:7px 13px;font-size:13px;border-radius:9px}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;pointer-events:none}
.topbar .btn.ghost{background:transparent;border-color:rgba(255,255,255,.45);color:#fff}
.topbar .btn.ghost:hover{background:rgba(255,255,255,.1)}
.topbar .btn.dark,.topbar .btn.ghost.dark{
  background:#fff;border-color:#fff;color:var(--ink)
}
.topbar .btn.dark:hover,.topbar .btn.ghost.dark:hover{filter:none;background:#F3F4F7}

/* ================================================================ shell == */
.app{min-height:100vh;display:flex;flex-direction:column;background:var(--paper)}
.topbar{background:var(--ink);color:var(--text);position:sticky;top:0;z-index:50}
.topbar .bar{display:flex;align-items:center;gap:14px;padding:12px 20px;max-width:1400px;margin:0 auto}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--display);font-weight:900;
  font-size:18px;text-decoration:none;color:#fff}
.brand .mark{width:32px;height:32px;border-radius:9px;background:var(--belt);flex:0 0 auto}
.brand img.logo{width:32px;height:32px;border-radius:9px;object-fit:cover}
.spacer{flex:1}
.who{font-size:13px;color:var(--muted);text-align:end;line-height:1.3}
.who b{display:block;color:var(--text);font-size:14px}

.navwrap{background:var(--ink2);border-bottom:1px solid var(--line);overflow-x:auto;-webkit-overflow-scrolling:touch}
.nav{display:flex;gap:2px;padding:0 16px;max-width:1400px;margin:0 auto}
.nav a{
  display:block;padding:13px 15px;color:var(--muted);text-decoration:none;
  font-family:var(--display);font-weight:800;font-size:14px;white-space:nowrap;
  border-bottom:3px solid transparent
}
.nav a:hover{color:var(--text)}
.nav a.on{color:#fff;border-bottom-color:var(--hong)}

main.page{flex:1;max-width:1400px;margin:0 auto;width:100%;padding:26px 20px 60px}
.page-head{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.page-head h1{font-size:28px}
.page-head .spacer{flex:1}

/* ================================================================ cards == */
.card{background:#fff;border:1px solid #E1E1DA;border-radius:var(--r-lg);padding:22px}
.card+.card{margin-top:18px}
.card h2{font-size:19px;margin-bottom:4px}
.card .sub{color:var(--muted);font-size:14px;margin:0 0 16px}
.cards{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}

.kpis{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:20px}
.kpi{background:var(--ink);color:#fff;border-radius:var(--r-lg);padding:18px 20px;position:relative;overflow:hidden}
.kpi::after{content:"";position:absolute;inset-inline-start:0;bottom:0;height:4px;width:100%;background:var(--belt)}
.kpi .n{font-family:var(--display);font-weight:900;font-size:34px;line-height:1}
.kpi .l{color:var(--muted);font-size:13px;margin-top:4px}

/* ================================================================ forms == */
.field{margin-bottom:16px}
.field>label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.field .req{color:var(--hong);font-weight:800}
.field .hint{font-size:12.5px;color:var(--muted);font-weight:400;margin-inline-start:6px}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=tel],
input[type=url],input[type=search],input[type=email],select,textarea{
  width:100%;padding:11px 13px;font:inherit;font-size:15px;
  border:1px solid #CFCFC6;border-radius:10px;background:#fff;color:var(--ink-text)
}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#666 50%),linear-gradient(135deg,#666 50%,transparent 50%);
  background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px;background-repeat:no-repeat}
[dir=rtl] select{background-position:18px 20px,13px 20px;
  background-image:linear-gradient(135deg,transparent 50%,#666 50%),linear-gradient(45deg,#666 50%,transparent 50%)}
input:disabled,select:disabled{background:#F1F1EC;color:#6A7180}
textarea{min-height:90px;resize:vertical}
input[type=file]{width:100%;font:inherit;font-size:14px;padding:9px;border:1px dashed #C2C2B8;border-radius:10px;background:#FAFAF7}
.row{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.check{display:flex;align-items:center;gap:9px;font-size:15px;margin:8px 0}
.check input{width:18px;height:18px;flex:0 0 auto}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #EAEAE3}

/* ============================================================== tables === */
.table-wrap{overflow-x:auto;border:1px solid #E1E1DA;border-radius:var(--r-lg);background:#fff}
table{width:100%;border-collapse:collapse;font-size:14.5px}
th,td{padding:11px 13px;text-align:start;border-bottom:1px solid #EEEEE7;vertical-align:middle}
th{background:#FAFAF6;font-family:var(--display);font-weight:800;font-size:13px;
   text-transform:uppercase;letter-spacing:.05em;color:#5A6272;position:sticky;top:0}
tbody tr:hover{background:#FCFCF9}
tbody tr:last-child td{border-bottom:0}
td.actions{white-space:nowrap}
.thumb{width:40px;height:40px;border-radius:9px;object-fit:cover;background:#EEE}
.thumb.ph{display:grid;place-items:center;font-family:var(--display);font-weight:900;color:#8B94A3;font-size:15px}

.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.7}
.tag.ok{background:#E4F3EB;color:#146245}
.tag.warn{background:#FBF0DA;color:#8A5200}
.tag.bad{background:#FBE6E4;color:#8E1D17}
.tag.neutral{background:#EDEEF2;color:#4A5260}
.tag.m{background:#E7EEF9;color:var(--chung)}
.tag.f{background:#FBE7EE;color:#9B1B49}

.beltdot{display:inline-block;width:14px;height:14px;border-radius:50%;
  border:1px solid rgba(0,0,0,.2);vertical-align:-2px;margin-inline-end:6px}

/* =============================================================== flash === */
.flash{padding:12px 16px;border-radius:var(--r);margin-bottom:16px;font-weight:500;font-size:15px}
.flash.ok{background:#E4F3EB;color:#14603F;border:1px solid #B9E0CB}
.flash.err{background:#FBE6E4;color:#8E1D17;border:1px solid #F0C4C0}
.flash.info{background:#E9EEF8;color:#22406F;border:1px solid #C6D4EC}

/* ============================================================== charts === */
.chart-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.chart-box{background:#fff;border:1px solid #E1E1DA;border-radius:var(--r-lg);padding:20px}
.chart-box h3{font-size:16px;margin-bottom:14px}
.bar-row{display:grid;grid-template-columns:minmax(72px,32%) 1fr auto;gap:10px;align-items:center;margin-bottom:9px;font-size:13.5px}
.bar-row .lab{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar-track{background:#F0F0EA;border-radius:999px;height:16px;overflow:hidden}
.bar-fill{height:100%;border-radius:999px;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.bar-row .val{font-family:var(--display);font-weight:800;font-size:13px;color:#4A5260;min-width:28px;text-align:end}
.donut-wrap{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.legend{list-style:none;margin:0;padding:0;font-size:13.5px;flex:1;min-width:130px}
.legend li{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.legend .sw{width:11px;height:11px;border-radius:3px;flex:0 0 auto}
.legend .n{margin-inline-start:auto;font-weight:700;color:#4A5260}

/* ============================================================= brackets == */
.bracket-meta{position:relative;overflow:hidden;padding-top:28px}
.bracket-meta::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:var(--belt)}
.bracket-board{
  margin-top:16px;border-radius:18px;overflow:hidden;
  background:var(--ink);border:1px solid var(--ink3);
  box-shadow:0 18px 44px rgba(14,17,22,.18)
}
.bracket-board-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:12px 18px;background:var(--ink2);border-bottom:1px solid var(--line);color:var(--text)
}
.bracket-board-head .hint{margin:0;flex:1;text-align:center;color:#B9C0CC;font-size:13px;min-width:180px}
.corner-chip{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--display);font-weight:800;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:#fff;padding:7px 14px;border-radius:999px
}
.corner-chip .dot{width:8px;height:8px;border-radius:50%;background:#fff;opacity:.9}
.corner-chip.hong{background:var(--hong)}
.corner-chip.chung{background:var(--chung)}
.bracket-scroll{
  overflow-x:auto;padding:22px 18px 26px;
  background:
    linear-gradient(90deg,rgba(200,16,46,.08),transparent 18%,transparent 82%,rgba(11,60,140,.08)),
    linear-gradient(180deg,#E7EBF2,#F4F6F9);
}
.bracket{display:flex;gap:34px;min-width:min-content;direction:ltr}
.rnd{display:flex;flex-direction:column;justify-content:space-around;min-width:212px;gap:12px}
.rnd-h{font-family:var(--display);font-weight:800;font-size:12px;letter-spacing:.1em;
  text-transform:uppercase;color:#6A7280;text-align:center;margin-bottom:4px}
.bout{border:1px solid #D9D9D0;border-radius:10px;overflow:hidden;background:#fff;position:relative}
.bout .no{position:absolute;top:-9px;inset-inline-start:8px;background:var(--ink);color:#fff;
  font-family:var(--display);font-size:10px;font-weight:800;padding:1px 7px;border-radius:999px}
.slot{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:13.5px;cursor:pointer;
  border-inline-start:5px solid transparent;background:#fff;min-height:42px}
.slot+.slot{border-top:1px solid #EEEEE7}
.slot.a{border-inline-start-color:var(--hong)}
.slot.b{border-inline-start-color:var(--chung)}
.slot:hover{background:#FAFAF4}
.slot.win{background:#F3F8F4;font-weight:700}
.slot.win::after{content:"✔";margin-inline-start:auto;color:var(--ok);font-size:13px}
.slot.out{opacity:.42;text-decoration:line-through}
.slot.empty{color:#A9AEB8;cursor:default;font-style:italic}
.slot .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.slot .ctr{font-size:11px;color:#8B94A3;display:block;font-style:normal;text-decoration:none}
.podium{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:18px}
.medal{border-radius:var(--r);padding:16px 18px;color:#fff;position:relative;overflow:hidden;
  box-shadow:0 8px 20px rgba(14,17,22,.12)}
.medal .m{font-family:var(--display);font-size:12px;letter-spacing:.14em;text-transform:uppercase;opacity:.9}
.medal .n{font-weight:800;font-size:17px;margin-top:4px}
.medal .c{font-size:12.5px;opacity:.82;margin-top:2px}
.medal.g{background:linear-gradient(135deg,#E4A200,#8A6A00)}
.medal.s{background:linear-gradient(135deg,#A8B0BB,#4E5560)}
.medal.b{background:linear-gradient(135deg,#C4844E,#71462A)}

/* ---------- official mirrored drawsheet (same as PDF) ---------- */
.drawsheet{
  position:relative;margin:0 auto;background:#fff;overflow:hidden;
  font-family:"Cairo","Segoe UI",Tahoma,sans-serif;color:#1a1d24;
  direction:ltr!important;unicode-bidi:isolate;letter-spacing:normal;
  border:1px solid #d5dae3;box-sizing:content-box;
  box-shadow:0 12px 36px rgba(14,17,22,.16),0 0 0 1px #e8ebf0;
  border-radius:4px
}
.drawsheet *{box-sizing:border-box;letter-spacing:normal}
.ds-topbar{position:absolute;left:0;top:0;right:0;height:7px;
  background:linear-gradient(90deg,#C41832 0 50%,#1848C8 50% 100%)}
.ds-goldstripe{position:absolute;left:0;top:7px;right:0;height:1.5px;background:#c9a44a}
.ds-header-band{position:absolute;left:0;top:8.5px;right:0;height:114px;background:#f7f8fa}
.ds-panel{position:absolute;width:32%;border-radius:16px;opacity:.9;pointer-events:none;z-index:0}
.ds-panel.left{left:14px;background:#fcf0f2}
.ds-panel.right{right:14px;background:#f0f4fc}
.ds-final-glow{position:absolute;width:156px;height:124px;border-radius:18px;background:#fffaf0;z-index:0;pointer-events:none}
.ds-brandmark{
  position:absolute;left:22px;top:22px;width:42px;height:42px;border-radius:50%;z-index:20;
  background:linear-gradient(90deg,#C41832 0 50%,#1848C8 50% 100%);
  box-shadow:inset 0 0 0 1.4px #c9a44a
}
.ds-logo{
  position:absolute;top:14px;width:64px;height:64px;z-index:20;
  border-radius:50%;background:#fff;border:1.6px solid #c9a44a;padding:6px;
  box-sizing:border-box;overflow:hidden;pointer-events:none;
  display:flex;align-items:center;justify-content:center
}
.ds-logo img{
  width:100%;height:100%;object-fit:contain;object-position:center;
  max-width:none!important;max-height:none;display:block;border:0;padding:0;margin:0
}
.ds-logo-left{left:16px}
.ds-logo-right{right:16px}
.ds-logo-mark{
  position:absolute;left:50%;width:180px;height:180px;margin-left:-90px;
  z-index:0;pointer-events:none;opacity:.12;
  display:flex;align-items:center;justify-content:center
}
.ds-logo-mark img{
  width:100%;height:100%;object-fit:contain;object-position:center;
  max-width:none!important;display:block
}
.ds-header-main{position:absolute;top:12px;left:0;text-align:center;z-index:3;padding:0 96px}
.ds-eyebrow{font-size:11px;font-weight:600;color:#8a919c;display:flex;align-items:center;
  justify-content:center;gap:8px;margin-bottom:4px}
.ds-eyebrow span{display:inline-block;width:14px;height:1.4px;background:#c9a44a}
.ds-title{font-size:15px;font-weight:600;color:#0f6b35;line-height:1.3}
.ds-meta{font-size:12px;color:#4a5160;margin-top:4px}
.ds-category-wrap{display:inline-flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.ds-category{
  font-size:13px;font-weight:600;color:#b01224;background:#fff5f6;border:1px solid #e8b0b8;
  padding:3px 14px;border-radius:6px
}
.ds-count-pill{
  font-size:12px;font-weight:600;color:#12151c;background:#eef2f7;border:1px solid #c8ced8;
  padding:3px 16px;border-radius:10px
}
.ds-header-rule{position:absolute;left:40px;right:40px;height:1px;background:#d5dae3;z-index:3}
.ds-header-rule i{position:absolute;top:-1px;width:24px;height:2.5px}
.ds-header-rule i:first-child{right:50%;margin-right:4px;background:#C41832}
.ds-header-rule i:last-child{left:50%;margin-left:4px;background:#1848C8}
.ds-lines{position:absolute;left:0;top:0;z-index:1;pointer-events:none}
.ds-lines line{stroke:#2a3140;stroke-width:2.1;stroke-linecap:square;stroke-linejoin:miter}
.ds-final-frame{
  position:absolute;border:2px solid #c9a44a;border-radius:14px;background:#fffbf0;z-index:2
}
.ds-final-label{position:absolute;text-align:center;z-index:5}
.ds-final-label span{
  display:inline-block;background:#f4e6c0;border:1.1px solid #c9a44a;color:#6b4e10;
  font-weight:600;font-size:12px;padding:3px 12px;border-radius:999px
}
.ds-leaf,.ds-short,.ds-bye,.ds-boutnum,.ds-roundlabel{position:absolute;z-index:4}
.ds-pick{position:static;margin:0;padding:0;border:0;display:block;height:0;line-height:0;overflow:visible}
.drawsheet::after{content:"";position:absolute;inset:8px;border:.8px solid #e2e6ed;pointer-events:none;z-index:6}
.ds-leaf{
  display:flex;align-items:center;gap:5px;background:#fff;border:.8px solid #d7dce5;
  border-radius:6px;padding:0 6px;overflow:hidden;font:inherit;color:inherit;cursor:default;
  box-shadow:0 1px 2px rgba(14,17,22,.06)
}
.ds-leaf.left{flex-direction:row}
.ds-leaf.right{flex-direction:row-reverse;text-align:right}
.ds-leaf.red{box-shadow:inset 3px 0 0 #C41832}
.ds-leaf.red.right{box-shadow:inset -3px 0 0 #C41832}
.ds-leaf.blue{box-shadow:inset 3px 0 0 #1848C8}
.ds-leaf.blue.right{box-shadow:inset -3px 0 0 #1848C8}
.ds-leaf.red .ds-name,.ds-leaf.red .ds-club{color:#C41832}
.ds-leaf.blue .ds-name,.ds-leaf.blue .ds-club{color:#1848C8}
button.ds-leaf,button.ds-short{
  cursor:pointer;appearance:none;-webkit-appearance:none;font-family:inherit
}
button.ds-leaf:hover,button.ds-short:hover{
  filter:none;z-index:8;transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(14,17,22,.16);background:#fff
}
.ds-leaf.win,.ds-short.win{
  outline:2.5px solid #1F8A5B;outline-offset:0;background:#f1faf5;
  box-shadow:0 0 0 3px rgba(31,138,91,.16)
}
.ds-leaf.win .ds-name::after{content:" ✓";color:#1F8A5B;font-weight:800}
.ds-leaf.out,.ds-short.out{opacity:.42;filter:grayscale(.35)}
.ds-leaf-text{flex:1;min-width:0;overflow:hidden}
.ds-name{display:block;font-size:12px;font-weight:700;line-height:1.15;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.ds-club{display:block;font-size:9px;font-weight:500;line-height:1.2;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;margin-top:1px;opacity:.85}
.ds-badge{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  font-size:9px;font-weight:600;color:#fff;line-height:1;padding:0 5px;min-width:18px;height:18px
}
.ds-badge.red{background:#D21F3C}
.ds-badge.blue{background:#1D4FD8}
.ds-badge.compact{font-size:9.5px}
.ds-short{display:flex;align-items:center;background:transparent;border:0;padding:0;font:inherit}
.ds-bye{
  font-size:11px;font-weight:400;color:#6b7280;background:#f5f6f8;
  border:1px dashed #c5cad3;padding:2px 8px;border-radius:5px
}
.ds-boutnum{
  width:26px;height:18px;background:#fff;border:1.2px solid #3d4654;border-radius:5px;
  font-size:11px;font-weight:600;text-align:center;line-height:16px;color:#12151c;
  box-shadow:1px 1.2px 0 #e8ebf0
}
.ds-roundlabel{
  font-size:10px;font-weight:600;color:#3d4654;text-align:center;
  background:#f2f4f7;border:1px solid #c8ced8;border-radius:999px;padding:2px 0
}
.ds-roundlabel.accent{color:#6b4e10;background:#f4e6c0;border-color:#c9a44a}
.ds-footer{position:absolute;left:0;right:0;background:#f7f8fa;padding:10px 40px 8px;z-index:3}
.ds-footer-rule{height:1px;background:#d5dae3;position:relative;margin-bottom:10px}
.ds-footer-rule i{position:absolute;top:-1px;width:18px;height:2.2px}
.ds-footer-rule i:first-child{left:0;background:#C41832}
.ds-footer-rule i:last-child{left:20px;background:#1848C8}
.ds-footer-inner{display:flex;gap:24px;align-items:flex-start;justify-content:space-between}
.ds-legend-col{flex:1;min-width:0}
.ds-section-title{font-size:11px;font-weight:600;color:#12151c;margin-bottom:8px}
.ds-legend-grid{display:grid;grid-template-columns:1fr 1fr;gap:3px 14px;font-size:10px;color:#4a5160}
.ds-legend-grid i{
  font-style:normal;font-weight:600;color:#12151c;background:#eef1f5;border:.6px solid #d7dbe3;
  border-radius:3px;padding:1px 5px;margin-right:4px;font-size:9px
}
.ds-corner-key{margin-top:10px;font-size:12px;font-weight:600;color:#4a5160;display:flex;align-items:center;gap:6px}
.ds-prize{
  width:min(400px,40%);border:1.5px solid #c9a44a;border-radius:12px;min-height:112px;
  padding:1px;background:#fff;flex:none
}
.ds-prize-head{
  background:#f4e6c0;color:#6b4e10;font-size:11px;font-weight:600;
  padding:6px 14px;border-radius:10px 10px 0 0
}
.ds-prize-row{display:flex;align-items:center;gap:8px;padding:4px 12px}
.ds-medal{
  width:16px;height:16px;border-radius:50%;font-size:9px;font-weight:600;color:#3a2f00;
  display:flex;align-items:center;justify-content:center;flex:none
}
.ds-medal.gold{background:#E0C15A;box-shadow:0 0 0 1.5px #b8942e}
.ds-medal.silver{background:#c5cbd2;box-shadow:0 0 0 1.5px #8e959e}
.ds-medal.bronze{background:#d4a574;box-shadow:0 0 0 1.5px #a67e3f}
.ds-prize-line{flex:1;border-bottom:1.2px solid #d7dbe3;height:1px;margin-top:6px}
.ds-brand-row{
  display:flex;justify-content:space-between;align-items:center;margin-top:8px;
  font-size:10px;color:#8a919c;position:relative
}
.ds-brand-row span:nth-child(2){font-weight:600;position:absolute;left:50%;transform:translateX(-50%)}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:var(--ink);
  color:#fff;padding:11px 18px;border-radius:999px;font-size:14px;font-weight:600;z-index:80;
  box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:88vw;text-align:center}

/* ================================================================ misc === */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.toolbar select,.toolbar input{width:auto;min-width:150px}
.pill-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}
.pill-tabs a{padding:9px 16px;border-radius:999px;background:#EAEAE2;text-decoration:none;
  font-family:var(--display);font-weight:800;font-size:13.5px;color:#4A5260}
.pill-tabs a.on{background:var(--ink);color:#fff}
.empty{text-align:center;padding:52px 20px;color:var(--muted)}
.empty .big{font-family:var(--display);font-weight:900;font-size:20px;color:#4A5260;margin-bottom:6px}
.chip{display:inline-flex;align-items:center;gap:6px;background:#EFEFE8;border-radius:999px;
  padding:4px 11px;font-size:12.5px;margin:2px}
.copybox{display:flex;gap:8px;align-items:center}
.copybox input{font-size:13px;font-family:ui-monospace,monospace}

.auth-page{min-height:100vh;display:grid;place-items:center;padding:34px 18px;background:var(--ink)}
.auth-card{width:100%;max-width:520px;background:#fff;border-radius:22px;overflow:hidden;
  box-shadow:0 24px 60px rgba(0,0,0,.4)}
.auth-card .top{padding:26px 28px 20px}
.auth-card .top h1{font-size:26px}
.auth-card .top p{margin:8px 0 0;color:#5A6272;font-size:14.5px}
.auth-card .body{padding:22px 28px 28px}
.auth-foot{text-align:center;margin-top:18px;font-size:14px;color:#5A6272}
.auth-foot a{color:var(--hong);font-weight:700;text-decoration:none}
.auth-back{display:block;text-align:center;margin-top:18px;color:#8B94A3;font-size:13.5px;text-decoration:none}

.contact-card{background:var(--ink);color:var(--text);border-radius:var(--r-lg);padding:20px;margin-top:18px}
.contact-card h3{font-size:16px;color:var(--gold);margin-bottom:10px}
.contact-card a{color:#fff;text-decoration:none;font-weight:700}
.contact-card .line{display:flex;gap:10px;padding:5px 0;font-size:14.5px;border-bottom:1px solid var(--line)}
.contact-card .line:last-child{border-bottom:0}
.contact-card .line span{color:var(--muted);min-width:92px}

@media (max-width:640px){
  .hero-inner{padding:52px 20px 60px}
  .section{padding:46px 0}
  main.page{padding:18px 14px 50px}
  .card{padding:17px}
  th,td{padding:9px 10px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media print{
  .topbar,.navwrap,.toolbar,.form-actions,.no-print,.page-head,.flash,.bracket-board-head{display:none!important}
  body,.app{background:#fff}
  main.page{padding:0;max-width:none}
  .bracket-board{margin:0;border:0;border-radius:0;box-shadow:none;background:#fff}
  .bracket-scroll{border:0;padding:0;overflow:visible;background:#fff}
  .card{border:0;padding:0;display:none}
  .drawsheet{border:0;box-shadow:none;border-radius:0}
  .ds-logo,.ds-logo-mark{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  hr.belt-rule{display:none}
}
