@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700;1,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --red:#ef1d2d;
  --red2:#c90e2f;
  --crimson:#9e0921;
  --black:#101216;
  --graphite:#252b32;
  --steel:#5c6975;
  --ice:#f2f7fa;
  --white:#fff;
  --line:#d9e2e8;
  --silver:#bac6ce;
  --ink:#17212b;
}

*{box-sizing:border-box}
html{background:#eaf0f4}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 4% 5%,rgba(239,29,45,.08),transparent 22%),
    radial-gradient(circle at 96% 4%,rgba(201,14,47,.07),transparent 22%),
    linear-gradient(180deg,#eef4f7 0,#f9fbfc 34%,#edf2f5 100%);
}

/* HERO — BRIGHT ARENA / FUTURE BASKETBALL */
.hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(115deg,#ffffff 0%,#fbfdff 58%,#eef5f9 100%);
  border-bottom:6px solid var(--red);
  box-shadow:0 10px 28px rgba(28,45,58,.08);
}

.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    repeating-linear-gradient(90deg,transparent 0 59px,rgba(22,33,44,.026) 60px),
    repeating-linear-gradient(0deg,transparent 0 39px,rgba(22,33,44,.022) 40px);
}

.hero:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-115px;
  width:410px;
  height:220px;
  transform:translateX(-50%);
  border:3px solid rgba(20,34,46,.055);
  border-radius:50% 50% 0 0;
}

.arena-light{
  position:absolute;
  width:390px;
  height:390px;
  border-radius:50%;
  filter:blur(5px);
}
.light-a{left:-160px;top:-210px;background:radial-gradient(circle,rgba(239,29,45,.19),transparent 68%)}
.light-b{right:-160px;top:-210px;background:radial-gradient(circle,rgba(201,14,47,.16),transparent 68%)}

.court-arc{
  position:absolute;
  width:250px;
  height:250px;
  border:3px solid rgba(22,34,46,.055);
  border-radius:50%;
}
.arc-a{left:18%;bottom:-165px}
.arc-b{right:18%;bottom:-165px}

.hero-inner{
  position:relative;
  z-index:2;
  max-width:1180px;
  min-height:215px;
  margin:auto;
  padding:18px 28px;
  display:grid;
  grid-template-columns:165px 1fr 165px;
  align-items:center;
  gap:28px;
}

.crest-card{
  height:145px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(200,211,219,.75);
  border-radius:24px;
  box-shadow:
    0 16px 30px rgba(37,56,70,.08),
    inset 0 0 0 5px rgba(255,255,255,.75);
}
.crest-card img{max-width:88%;max-height:125px;object-fit:contain;filter:drop-shadow(0 9px 13px rgba(0,0,0,.12))}

.hero-copy{text-align:center}
.eyebrow{
  display:inline-flex;
  align-items:center;
  padding:7px 13px;
  border-radius:999px;
  background:#fff;
  border:1px solid #dbe4ea;
  color:var(--steel);
  font-size:8px;
  font-weight:800;
  letter-spacing:.17em;
  box-shadow:0 6px 14px rgba(32,50,65,.05);
}

.hero h1{
  margin:10px 0 0;
  color:var(--black);
  font:italic 800 clamp(54px,8vw,92px)/.84 "Barlow Condensed",Impact,sans-serif;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.hero h1 span{
  color:var(--red);
  text-shadow:6px 0 0 rgba(201,14,47,.08);
}

.hero-sub{
  margin-top:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.hero-sub b{
  width:48px;
  height:5px;
  background:linear-gradient(90deg,var(--red),var(--red2));
  transform:skewX(-24deg);
}
.hero-sub strong{
  color:var(--graphite);
  font:800 14px "Barlow Condensed";
  letter-spacing:.14em;
}

/* PAGE */
.page{max-width:1160px;margin:auto;padding:15px 18px 28px}

.action-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  background:rgba(255,255,255,.96);
  border:1px solid #d9e3e9;
  border-radius:16px;
  padding:13px 15px;
  margin-bottom:13px;
  box-shadow:0 12px 30px rgba(33,51,66,.08);
}
.action-card strong{display:block;font-size:13px;color:var(--graphite)}
.action-card small{display:block;font-size:9px;color:#77838e;margin-top:2px}
.actions{display:flex;gap:9px}
.btn{
  min-width:150px;
  padding:10px 14px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  transition:.18s;
}
.btn:hover{transform:translateY(-2px)}
.btn.save{background:#fff;border:1px solid #95a4b0;color:var(--graphite)}
.btn.print{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--red),var(--red2));
  box-shadow:0 8px 17px rgba(212,18,48,.18);
}

/* SHEET */
.sheet{
  background:#fff;
  border:1px solid #d7e1e7;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 22px 50px rgba(28,47,62,.09);
}
.panel{padding:0 15px 13px}
.section-head{
  margin:0 -15px 11px;
  min-height:61px;
  padding:9px 15px;
  display:flex;
  gap:11px;
  align-items:center;
  background:
    linear-gradient(90deg,#fff 0,#f7fafc 62%,#eef5f8 100%);
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.roster-head{
  background:
    linear-gradient(105deg,#293844,#405466 58%,#e9eef2 100%);
  color:#fff;
  border:0;
}
.section-index{
  width:40px;height:40px;display:grid;place-items:center;
  border-radius:12px;color:#fff;
  background:linear-gradient(145deg,var(--red),var(--red2));
  font:800 18px "Barlow Condensed";
  box-shadow:0 8px 15px rgba(217,21,44,.16);
}
.section-head small{
  display:block;color:var(--red);font-size:6px;font-weight:800;letter-spacing:.15em
}
.roster-head small{color:#ffc4c9}
.section-head h2{
  margin:1px 0 0;color:var(--graphite);
  font:800 24px "Barlow Condensed";letter-spacing:.03em
}
.roster-head h2{color:#fff}
.section-head em{color:#ff5361;font-style:normal}
.speed-lines{
  margin-left:auto;
  width:140px;height:38px;
  background:
    linear-gradient(120deg,transparent 0 22%,rgba(239,29,45,.15) 23% 33%,transparent 34% 45%,rgba(201,14,47,.10) 46% 55%,transparent 56%);
}

.form-grid{display:grid;gap:9px}
.team-grid{grid-template-columns:1.4fr .62fr .76fr .63fr}
.coach-contact{grid-column:3/5}
label span{
  display:block;margin-bottom:4px;color:#334451;
  font-size:8px;font-weight:800;letter-spacing:.04em
}
input,select{
  width:100%;border:1px solid #cad6de;background:#fbfdfe;
  border-radius:7px;padding:8px 9px;color:var(--ink);
  font:500 10.5px Inter;outline:none
}
input:focus,select:focus{
  background:#fff;border-color:var(--red);
  box-shadow:0 0 0 3px rgba(239,29,45,.07)
}

/* TABLE */
.roster-panel{padding-bottom:13px}
.table-wrap{overflow-x:auto;border:1px solid #cbd6dd;border-radius:8px}
table{width:100%;min-width:900px;border-collapse:collapse}
thead th{
  padding:7px 5px;color:#fff;
  background:linear-gradient(180deg,#364856,#293945);
  border-right:1px solid #52636f;
  font:800 10.5px "Barlow Condensed"
}
thead th small{display:block;color:#d7e1e7;font-size:6.5px;margin-top:1px}
tbody td{
  padding:2px;background:#fff;
  border-right:1px solid #dde4e9;
  border-bottom:1px solid #dde4e9
}
tbody tr:nth-child(even) td{background:#f8fbfd}
tbody tr:hover td{background:#fff5f6}
tbody td:first-child{
  width:42px;text-align:center;color:#fff;font-weight:800;
  background:linear-gradient(180deg,#fa4d59,var(--red))!important
}
tbody input{border:0;border-radius:0;padding:5px 6px;background:transparent;font-size:9.5px}
tbody input:focus{background:#fff;box-shadow:inset 0 0 0 1px var(--red)}

/* LOWER PANELS */
.lower-grid{
  display:grid;grid-template-columns:1.15fr .85fr;
  gap:11px;padding:0 15px 12px
}
.mini-panel,.signatures-panel{
  background:#fff;border:1px solid #ced8df;border-radius:10px;overflow:hidden
}
.mini-head{
  min-height:40px;padding:0 12px;
  display:flex;align-items:center;gap:8px;
  color:#fff;background:linear-gradient(90deg,#334653,#465b6b);
  font:800 14px "Barlow Condensed"
}
.mini-head.red{background:linear-gradient(90deg,var(--red),var(--red2))}
.mini-head span{
  width:23px;height:23px;display:grid;place-items:center;
  border-radius:7px;background:rgba(255,255,255,.14);
  font-size:9px
}
.officials-grid{grid-template-columns:1fr 1fr;padding:11px}
.stamp-space{
  min-height:124px;margin:10px;border:2px dashed #b8c4cc;border-radius:10px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:
    radial-gradient(circle at center,rgba(239,29,45,.035),transparent 62%),
    #fbfcfd;
  color:#a9b4bc
}
.stamp-core{
  width:64px;height:64px;display:grid;place-items:center;
  border:3px double #c8d2d9;border-radius:50%;
  font:800 13px "Barlow Condensed";margin-bottom:5px
}
.stamp-space small{font-size:7.5px}

/* SIGNATURES */
.signatures-panel{margin:0 15px 13px}
.signature-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.signature-card{padding:11px;border-right:1px solid #dce3e8}
.signature-card:last-child{border-right:0}
.role{text-align:center;color:var(--red);font-size:8px;font-weight:800;margin-bottom:6px}
.signature-space{
  height:66px;display:flex;align-items:center;justify-content:center;
  border:1px solid #d4dde3;border-radius:7px;background:#fbfcfd;
  color:#b5bec6;font:italic 16px "Barlow Condensed"
}
.date-row{
  margin-top:7px;display:grid;grid-template-columns:38px 1fr;gap:6px;align-items:center
}
.date-row span{margin:0;font-size:7px}
.date-row input{padding:5px 6px}

/* NOTE */
.important{
  padding:7px 12px;text-align:center;
  background:linear-gradient(90deg,#f3f7f9,#fff4f5,#f3f7f9);
  color:#63727e;border-top:3px solid var(--red);font-size:7.5px
}
.important strong{color:var(--red)}

/* FOOTER */
.footer{
  max-width:1160px;margin:0 auto 24px;padding:11px 18px;
  min-height:60px;display:grid;grid-template-columns:160px 1fr 160px;
  align-items:center;gap:10px;background:#fff;
  border:1px solid #d6e0e6;border-top:4px solid var(--red);
  border-radius:0 0 14px 14px;
  box-shadow:0 12px 30px rgba(35,52,66,.06)
}
.footer-mark{text-align:center;color:#4c5d6a;font:800 9px "Barlow Condensed";letter-spacing:.12em}
.footer-contacts{
  display:flex;justify-content:center;align-items:center;gap:13px;
  color:#334654;font-size:9px;font-weight:700
}
.footer-contacts i{width:1px;height:18px;background:#cbd4da}

.toast{
  position:fixed;right:18px;bottom:18px;z-index:50;
  padding:10px 13px;color:#fff;background:#334653;
  border-left:4px solid var(--red);border-radius:7px;
  font-size:10px;font-weight:800;opacity:0;transform:translateY(8px);transition:.2s
}
.toast.show{opacity:1;transform:none}

/* MOBILE */
@media(max-width:800px){
  .hero-inner{min-height:155px;padding:12px 8px;grid-template-columns:78px 1fr 78px;gap:8px}
  .crest-card{height:86px;border-radius:14px}.crest-card img{max-height:76px}
  .eyebrow{font-size:5.5px;padding:4px 6px}
  .hero h1{font-size:44px;margin-top:5px}
  .hero-sub{gap:5px;margin-top:5px}.hero-sub strong{font-size:8px}.hero-sub b{width:20px;height:2px}
  .page{padding:8px}
  .action-card{flex-direction:column;align-items:flex-start}
  .actions{width:100%}.btn{flex:1;min-width:0}
  .team-grid{grid-template-columns:1fr 1fr}.coach-contact{grid-column:auto}
  .lower-grid{grid-template-columns:1fr}
  .signature-grid{grid-template-columns:1fr}
  .signature-card{border-right:0;border-bottom:1px solid #dce3e8}
  .signature-card:last-child{border-bottom:0}
  .footer{margin:0 8px 18px;grid-template-columns:1fr}.footer-contacts{flex-direction:column;gap:2px}.footer-contacts i{display:none}
}
@media(max-width:480px){.team-grid,.officials-grid{grid-template-columns:1fr}.section-head h2{font-size:20px}}

/* PRINT */
@media print{
  @page{size:A4 portrait;margin:5mm}
  body{background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .no-print{display:none!important}
  .hero-inner{min-height:auto;padding:4px 9px;grid-template-columns:58px 1fr 58px}
  .crest-card{height:55px;border-radius:8px;box-shadow:none}.crest-card img{max-height:50px}
  .eyebrow{font-size:4px;padding:2px 4px}.hero h1{font-size:34px;margin-top:2px}
  .hero-sub{margin-top:2px}.hero-sub strong{font-size:5.8px}.hero-sub b{width:18px;height:1.5px}
  .page{padding:1px;max-width:none}
  .sheet{box-shadow:none;border-radius:0;border:1px solid #9eabb4}
  .panel{padding:0 6px 4px}
  .section-head{min-height:28px;margin:0 -6px 4px;padding:3px 6px;gap:5px}
  .section-index{width:21px;height:21px;font-size:9px;border-radius:3px}
  .section-head small{font-size:3.8px}.section-head h2{font-size:12px}.speed-lines{display:none}
  .form-grid{gap:3px}.team-grid{grid-template-columns:1.4fr .62fr .76fr .63fr}
  label span{font-size:4.7px;margin-bottom:1px}input,select{font-size:6px;padding:2px 3px}
  table{min-width:0}thead th{font-size:5.8px;padding:2px}thead th small{font-size:3.6px}
  tbody td{padding:0}tbody td:first-child{font-size:5.8px;width:22px}tbody input{font-size:5.8px;padding:1px 2px}
  .lower-grid{padding:0 6px 4px;gap:4px}.mini-head{min-height:21px;padding:0 5px;font-size:7.5px}
  .officials-grid{padding:4px}.stamp-space{min-height:53px;margin:4px}.stamp-core{width:31px;height:31px;border-width:2px;font-size:6px;margin-bottom:1px}.stamp-space small{font-size:4px}
  .signatures-panel{margin:0 6px 4px}.signature-card{padding:4px}.role{font-size:4.7px;margin-bottom:2px}.signature-space{height:28px;font-size:8px}
  .date-row{grid-template-columns:22px 1fr;gap:2px;margin-top:2px}.date-row span{font-size:4px}.date-row input{padding:1px 2px}
  .important{padding:3px;font-size:4.2px;border-top-width:2px}
  .footer{margin:0;padding:3px 6px;min-height:27px;grid-template-columns:78px 1fr 78px;border-top-width:2px;border-radius:0;box-shadow:none}
  .footer-mark{font-size:4.8px}.footer-contacts{font-size:4.8px;gap:6px}.footer-contacts i{height:9px}
}
