
/* ================================================================
   HOOPROVE UI Theme v3.31
   Reference: supplied HOOPROVE app v37 design package
   ================================================================ */
:root{
  --hp-orange:#ff5708;
  --hp-orange2:#ff7b17;
  --hp-black:#0b0e12;
  --hp-black2:#15191e;
  --hp-bg:#f4f5f6;
  --hp-card:#fff;
  --hp-line:#e4e6e8;
  --hp-muted:#747d86;
  --hp-green:#2aa568;
  --hp-red:#dc143c;
  --hp-blue:#4169e1;
  --hp-shadow:0 4px 18px rgba(13,19,25,.045);
}

/* base */
html{background:var(--hp-bg)}
body{
  margin:0!important;
  background:var(--hp-bg)!important;
  color:#111!important;
  font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic","Helvetica Neue",Arial,sans-serif!important;
}
a{text-decoration:none}
img{max-width:100%}
button,input,select,textarea{font:inherit}
body.hp-menu-open{overflow:hidden}
body.hp-app-shell{min-height:100vh}

/* desktop application shell */
.hp-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:280px;
  background:linear-gradient(160deg,#090c10,#11151a);
  color:#fff;
  padding:20px 18px;
  display:flex;
  flex-direction:column;
  z-index:1100;
  box-shadow:7px 0 24px rgba(0,0,0,.06);
}
.hp-logo-box{
  min-height:104px;
  padding:12px 14px;
  background:#fff;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}
.hp-logo-box img{display:block;width:100%;max-width:230px;height:auto}
.hp-side-nav{display:grid;gap:5px}
.hp-side-nav a,
.hp-side-footer a{
  min-height:50px;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:10px 14px;
  color:#fff;
  font-weight:800;
  font-size:14px;
  transition:.18s ease;
}
.hp-side-nav a:hover,.hp-side-footer a:hover{background:#1b2025}
.hp-side-nav a.active{
  background:linear-gradient(90deg,#ff6900,#ff4b00);
  box-shadow:0 7px 17px rgba(255,87,8,.16);
}
.hp-side-nav img,.hp-side-footer img{
  width:24px;height:24px;object-fit:contain;filter:invert(1);
  flex:0 0 24px;
}
.hp-side-footer{margin-top:auto;display:grid;gap:4px;padding-top:12px;border-top:1px solid #272c31}
.hp-logout-form{margin:0}
.hp-logout-button{
  width:100%;border:0;background:none;color:#fff;cursor:pointer;
  min-height:48px;border-radius:7px;display:flex;align-items:center;gap:13px;
  padding:10px 14px;font-weight:800;font-size:14px;text-align:left;
}
.hp-logout-button:hover{background:#1b2025}
.hp-logout-button img{width:24px;height:24px;filter:invert(1)}

.hp-app-main{margin-left:280px;min-height:100vh}
.hp-topbar{
  height:92px;
  background:#fff;
  border-bottom:1px solid var(--hp-line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 34px;
  position:sticky;
  top:0;
  z-index:1000;
}
.hp-top-team{display:flex;align-items:center;gap:13px;min-width:0}
.hp-team-crest{
  width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;
  border-radius:50%;background:#f6f7f8;overflow:hidden;
}
.hp-team-crest img{width:100%;height:100%;object-fit:contain}
.hp-top-team strong{display:block;font-size:18px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hp-top-team small{display:block;color:#777;margin-top:2px;font-size:11px}
.hp-top-user{display:flex;align-items:center;gap:14px;font-size:12px;font-weight:800;color:#444}
.hp-version{
  display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:999px;
  background:#111;color:#fff;font-size:9px;font-weight:900;letter-spacing:.04em;
}
.hp-content{
  width:min(100% - 64px,1580px);
  margin:0 auto;
  padding:28px 0 64px;
}

/* guest/public shell */
body.hp-guest-shell{background:#f5f6f7!important}
.hp-guest-header{
  min-height:88px;background:#0b0e12;color:#fff;padding:12px max(20px,calc((100vw - 1480px)/2));
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  border-bottom:3px solid var(--hp-orange);
}
.hp-guest-logo{
  display:flex;align-items:center;background:#fff;border-radius:9px;padding:6px 10px;
  width:220px;min-height:54px;
}
.hp-guest-logo img{display:block;width:100%}
.hp-guest-nav{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.hp-guest-nav a{
  min-height:38px;padding:0 13px;border:1px solid #3b3f44;border-radius:7px;
  display:flex;align-items:center;color:#fff;font-size:11px;font-weight:900;
}
.hp-guest-main{width:min(100% - 28px,1480px);margin:auto;padding:26px 0 60px}

/* focus/game input pages */
body.hp-focus-shell{background:#d9dcdf!important}
.hp-focus-main{
  width:min(100%,1040px);min-height:100vh;margin:auto;background:#fff;
  box-shadow:0 0 32px rgba(0,0,0,.12);padding-bottom:40px;
}
.hp-focus-header{
  background:#0b0e12;color:#fff;border-bottom:3px solid var(--hp-orange);
  padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.hp-focus-header-logo{width:210px;background:#fff;border-radius:8px;padding:5px 8px}
.hp-focus-header-links{display:flex;gap:6px;align-items:center}
.hp-focus-header-links a{
  height:38px;padding:0 11px;border:1px solid #363b40;border-radius:7px;color:#fff;
  display:flex;align-items:center;font-size:10px;font-weight:900;
}
.hp-focus-content{padding:18px 18px 54px}

/* shared content */
.container{max-width:none!important;margin:0!important;padding:0!important}
.page-head{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:20px!important;margin:0 0 18px!important;
}
.page-head h1{margin:0!important;font-size:24px!important;font-weight:900!important;letter-spacing:-.02em;color:#151c23}
.page-head p{margin:7px 0 0!important;color:#68727c!important;font-size:12px!important;line-height:1.7!important}
.page-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important;justify-content:flex-end}
.card,.panel,.section,.analysis-card,.home-analysis-card{
  background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:11px!important;
  box-shadow:var(--hp-shadow)!important;
}
.card{padding:18px!important}
.card.narrow{max-width:720px!important;margin:0 auto!important}
.section-head,.panel-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;border-bottom:1px solid #eee!important;padding-bottom:12px!important;margin-bottom:14px!important;
}
.section-head h2,.panel-head h2{margin:0!important;font-size:17px!important;font-weight:900!important}
.muted{color:#7a838c!important}
.alert{
  border:1px solid transparent!important;border-radius:9px!important;padding:12px 14px!important;
  margin:0 0 14px!important;font-size:12px!important;line-height:1.6!important;
}
.alert.success{background:#edf9f2!important;border-color:#cbead7!important;color:#167342!important}
.alert.error{background:#fff0f0!important;border-color:#f2caca!important;color:#a62929!important}

/* buttons */
.button{
  min-height:42px!important;padding:0 15px!important;border:1px solid #d9dde1!important;
  border-radius:8px!important;background:#fff!important;color:#151a1f!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;font-size:12px!important;font-weight:900!important;line-height:1.2!important;
  box-shadow:none!important;cursor:pointer!important;transition:.16s ease!important;
}
.button:hover{border-color:#bfc5ca!important;transform:translateY(-1px)}
.button.primary{
  border-color:transparent!important;background:linear-gradient(90deg,#ff6900,#ff4b00)!important;color:#fff!important;
  box-shadow:0 6px 15px rgba(255,87,8,.15)!important;
}
.button.danger{background:#d14a4a!important;border-color:#d14a4a!important;color:#fff!important}
.button.public-on{background:#178b45!important;border-color:#178b45!important;color:#fff!important}
.status{
  display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:0 10px!important;
  border-radius:999px!important;background:#f0f2f4!important;color:#59636c!important;
  font-size:10px!important;font-weight:900!important;
}
.status-finished,.chart-complete-status{background:#e8f7ee!important;color:#14723d!important}
.chart-progress-status,.status-paused{background:#fff4df!important;color:#956117!important}
.winner{font-weight:900!important;color:var(--hp-orange)!important}

/* forms */
.form-grid{display:grid!important;gap:14px!important}
.form-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.form-grid .full{grid-column:1/-1!important}
label{font-size:12px;font-weight:800;color:#26303a}
input[type=text],input[type=password],input[type=email],input[type=url],input[type=date],input[type=month],input[type=number],select,textarea{
  width:100%!important;min-height:46px!important;margin-top:6px!important;
  border:1px solid #d9dde1!important;border-radius:8px!important;background:#fff!important;color:#111!important;
  padding:10px 12px!important;outline:none!important;transition:border-color .15s,box-shadow .15s!important;
}
textarea{min-height:120px!important}
input:focus,select:focus,textarea:focus{border-color:var(--hp-orange)!important;box-shadow:0 0 0 3px rgba(255,87,8,.08)!important}

/* tables */
.table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:9px}
table{border-collapse:collapse}
.table-wrap table{min-width:760px}
table th{font-weight:900;color:#303942;background:#f7f8f9}
table th,table td{border-bottom:1px solid #e9ecef;padding:11px 10px}
table tr:last-child td{border-bottom:0}

/* game list */
.game-list{display:grid!important;gap:14px!important}
.game-card{padding:20px 22px!important;position:relative;overflow:hidden}
.game-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#ff6900,#ff4b00);
}
.game-meta{color:#6f7982!important;font-size:12px!important;font-weight:700!important;margin-bottom:8px}
.score-line{
  display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:20px!important;
  padding:6px 0 14px!important;text-align:center!important;
}
.score-line span{font-size:17px!important;font-weight:900!important}
.score-line strong{font-size:34px!important;letter-spacing:-.04em!important;color:#111!important}
.game-actions{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;padding-top:13px!important;border-top:1px solid #edf0f2!important}
.inline-form{display:inline-flex!important;margin:0!important}

/* analysis visual system */
.home-analysis-hero{
  background:linear-gradient(145deg,#090c10,#15191e)!important;color:#fff!important;
  border:0!important;border-radius:12px!important;box-shadow:0 8px 24px rgba(0,0,0,.08)!important;
}
.ha-kpi,.chart-kpi,.analysis-kpi{
  background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:9px!important;
  box-shadow:0 2px 9px rgba(0,0,0,.025)!important;
}
.ha-panel{background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:10px!important}
.ha-svg-chart{background:linear-gradient(180deg,#fbfcfe,#fff)!important;border-radius:9px!important}
.anim-bar-track,.combined-zone-track{background:#eceff1!important;border-radius:999px!important;overflow:hidden!important}
.anim-bar-track i,.combined-zone-track i{border-radius:999px!important}

/* existing score/game input area: HOOPROVE visual refresh without changing mechanics */
.score-header,.score-top,.game-score-header{
  background:#0b0e12!important;color:#fff!important;border-radius:10px!important;
}
.score-shell,.score-page,.recording-shell{background:#fff!important}
.player-card,.player-button,.jersey-button{
  border-radius:8px!important;border-color:#dfe2e5!important;box-shadow:0 2px 7px rgba(0,0,0,.025)!important;
}
.player-card.selected,.player-button.selected,.jersey-button.selected{
  outline:3px solid rgba(255,87,8,.16)!important;border-color:var(--hp-orange)!important;
}
.stat-button,.event-button,.shot-button,.score-action-button{
  border-radius:8px!important;font-weight:900!important;
}
.shot-success,.made-button{background:#111!important;color:#fff!important}
.shot-miss,.miss-button{background:#fff!important;color:#111!important}
.center-actions button:active,.stat-button:active,.event-button:active,.shot-button:active{transform:scale(.97)}

/* footer */
.hp-copyright{text-align:center;color:#9aa0a6;font-size:10px;padding:25px 10px 8px}

/* mobile */
.hp-mobile-head,.hp-mobile-bottom,.hp-drawer,.hp-overlay{display:none}
@media(max-width:900px){
  .hp-sidebar{display:none}
  .hp-app-main{margin-left:0}
  .hp-topbar{
    position:relative;height:auto;min-height:156px;padding:14px 16px 19px;display:block;
  }
  .hp-mobile-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .hp-mobile-logo{display:flex;background:#fff;width:176px;min-height:50px;border-radius:8px;padding:5px 8px}
  .hp-mobile-logo img{width:100%;object-fit:contain}
  .hp-mobile-actions{display:flex;gap:8px}
  .hp-mobile-actions button{
    width:42px;height:42px;border:1px solid #e1e4e6;border-radius:8px;background:#fff;padding:8px;
  }
  .hp-mobile-actions img{width:100%;height:100%;object-fit:contain}
  .hp-top-team{margin-top:18px}
  .hp-top-user{display:none}
  .hp-content{width:100%;padding:18px 14px 92px}
  .page-head{display:block!important}
  .page-head .page-actions{margin-top:14px!important;justify-content:flex-start!important}
  .page-head h1{font-size:22px!important}
  .form-grid.two-col{grid-template-columns:1fr!important}
  .score-line{grid-template-columns:1fr auto 1fr!important;gap:8px!important}
  .score-line span{font-size:12px!important}
  .score-line strong{font-size:27px!important}
  .game-card{padding:16px!important}
  .game-actions{gap:5px!important}
  .game-actions .button{min-height:38px!important;padding:0 10px!important;font-size:10px!important}
  .hp-mobile-bottom{
    display:grid;position:fixed;left:0;right:0;bottom:0;height:68px;background:#0b0e12;color:#fff;
    grid-template-columns:repeat(5,1fr);z-index:1200;padding-bottom:env(safe-area-inset-bottom);
  }
  .hp-mobile-bottom a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    color:#fff;font-size:9px;font-weight:800;min-width:0;
  }
  .hp-mobile-bottom a.active{color:var(--hp-orange)}
  .hp-mobile-bottom img{width:24px;height:24px;object-fit:contain;filter:invert(1)}
  .hp-mobile-bottom a.active img{filter:none}
  .hp-overlay{
    display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1290;
    opacity:0;visibility:hidden;pointer-events:none;transition:.25s;
  }
  .hp-overlay.open{opacity:1;visibility:visible;pointer-events:auto}
  .hp-drawer{
    display:flex;flex-direction:column;position:fixed;top:0;right:0;bottom:0;width:min(88vw,365px);
    height:100dvh;background:#0b0e12;color:#fff;z-index:1300;transform:translate3d(105%,0,0);
    transition:transform .28s ease;box-shadow:-16px 0 38px rgba(0,0,0,.28);overflow:hidden;
  }
  .hp-drawer.open{transform:none}
  .hp-drawer-header{
    min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:12px 14px;background:#fff;border-bottom:1px solid #e8e8e8;
  }
  .hp-drawer-logo{width:200px}
  .hp-drawer-close{width:44px;height:44px;border:0;border-radius:8px;background:#f4f4f4;padding:10px}
  .hp-drawer-team{
    display:flex;align-items:center;gap:12px;padding:14px 16px;background:#15191d;border-bottom:1px solid #272c31;
  }
  .hp-drawer-team img{width:46px;height:46px}
  .hp-drawer-team strong{display:block;font-size:14px}
  .hp-drawer-team small{display:block;color:#aaa;font-size:10px;margin-top:3px}
  .hp-drawer-scroll{flex:1;min-height:0;overflow:auto;padding:8px 12px 20px}
  .hp-drawer .hp-side-nav a{min-height:48px}
  .hp-focus-content{padding:14px 8px 48px}
}
@media(max-width:620px){
  .hp-guest-header{min-height:76px;padding:10px 12px}
  .hp-guest-logo{width:175px}
  .hp-guest-nav a:not(:last-child){display:none}
  .hp-guest-main{width:calc(100% - 20px);padding-top:18px}
  .hp-focus-header-logo{width:165px}
  .hp-focus-header-links a{font-size:9px;padding:0 8px}
  .card{padding:14px!important}
  .button{font-size:11px!important}
}

/* Login */
.hp-login-card{
  max-width:520px!important;margin:44px auto!important;padding:30px!important;
  border-radius:14px!important;box-shadow:0 14px 45px rgba(0,0,0,.08)!important;
}
.hp-login-brand{
  width:240px;min-height:68px;margin:0 auto 24px;background:#fff;display:flex;align-items:center;justify-content:center;
}
.hp-login-brand img{width:100%}
.hp-login-eyebrow{display:block;text-align:center;color:var(--hp-orange);font-size:9px;font-weight:900;letter-spacing:.14em}
.hp-login-card h1{text-align:center;margin:8px 0 0!important;font-size:25px!important}
.hp-login-lead{text-align:center;color:#7a828a;font-size:11px;line-height:1.8;margin:8px 0 22px}
.hp-login-card .button.primary{width:100%;min-height:52px!important}
.remember-login-check{display:flex!important;align-items:center!important;gap:8px!important}
.remember-login-check input{width:18px!important;height:18px!important;margin:0!important}


/* =================================================================
   VERSION 3.32 — HOOPROVE COMPLETE RENEWAL
   This layer intentionally overrides legacy Basketball Score UI.
   ================================================================= */
:root{
 --hp-o:#ff5708;--hp-o2:#ff6b0b;--hp-ink:#0b0e12;--hp-line:#e6e7e9;
 --hp-bg:#f5f6f7;--hp-blue:#1672d2;--hp-green:#198c44;--hp-red:#d94a4a;
}

/* shell: exact reference proportions */
@media(min-width:901px){
 body.hp-app-shell .hp-sidebar{width:280px!important;padding:20px 18px!important}
 body.hp-app-shell .hp-app-main{margin-left:280px!important}
 body.hp-app-shell .hp-logo-box{height:112px!important;min-height:112px!important;padding:10px 14px!important}
 body.hp-app-shell .hp-side-nav a{height:52px!important;min-height:52px!important;font-size:15px!important;padding:0 14px!important}
 body.hp-app-shell .hp-topbar{height:92px!important;padding:0 34px!important}
 body.hp-app-shell .hp-content{max-width:1650px!important;width:auto!important;padding:28px 38px 64px!important}
}
.hp-page-eyebrow{display:block;font-size:9px;letter-spacing:.16em;font-weight:950;color:var(--hp-o);margin-bottom:5px}
.hp-primary-action,.hp-outline-action{
 height:46px;padding:0 18px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;
 font-size:12px;font-weight:900;border:1px solid #ddd;background:#fff;color:#111;
}
.hp-primary-action{background:linear-gradient(90deg,#ff6900,#ff4b00);border:0;color:#fff;box-shadow:0 7px 16px #ff57081f}

/* ---------------- Games page: true HOOPROVE list ---------------- */
.hp-games-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:18px}
.hp-games-head h1{font-size:28px;margin:0 0 5px;font-weight:950}
.hp-games-head p{margin:0;color:#777;font-size:12px}
.hp-games-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.hp-games-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.hp-summary-box{
 background:#fff;border:1px solid var(--hp-line);border-radius:10px;padding:16px 18px;position:relative;overflow:hidden;
 box-shadow:0 2px 10px #00000008;
}
.hp-summary-box:before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:#bbb}
.hp-summary-box.win:before{background:var(--hp-o)}.hp-summary-box.lose:before{background:var(--hp-blue)}.hp-summary-box.rate:before{background:#111}
.hp-summary-box span{font-size:11px;color:#666}.hp-summary-box strong{display:block;font-size:30px;margin:3px 0}.hp-summary-box small{font-size:8px;color:#aaa;letter-spacing:.1em}
.hp-ad-slot{height:84px;margin:15px 0;background:#fff;border:1px solid var(--hp-line);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#888}
.hp-ad-slot small{font-size:8px;letter-spacing:.2em}.hp-ad-slot strong{font-size:13px;color:#555;margin-top:4px}
.hp-games-toolbar{
 display:grid;grid-template-columns:minmax(300px,1fr) 180px 180px 90px;gap:9px;background:#fff;border:1px solid var(--hp-line);
 border-radius:10px;padding:12px;margin-bottom:12px;
}
.hp-games-toolbar input,.hp-games-toolbar select{margin:0!important;min-height:42px!important;height:42px!important}
.hp-search-box{position:relative}.hp-search-box span{position:absolute;left:12px;top:10px;color:#999;font-size:20px}.hp-search-box input{padding-left:36px!important}
.hp-games-toolbar button{border:1px solid #ddd;border-radius:7px;background:#fff;font-weight:900;font-size:10px}
.hp-games-list{background:#fff;border:1px solid var(--hp-line);border-radius:10px;overflow:visible;box-shadow:0 2px 10px #00000008}
.hp-games-list-head,.hp-game-row{display:grid;grid-template-columns:130px minmax(170px,1.2fr) minmax(180px,1fr) 110px 110px 82px 50px;gap:10px;align-items:center}
.hp-games-list-head{padding:12px 16px;background:#f7f8f9;border-bottom:1px solid #e8e9ea;color:#7a8086;font-size:9px;font-weight:900}
.hp-game-row{padding:15px 16px;border-bottom:1px solid #eee;font-size:11px;position:relative}
.hp-game-row:last-of-type{border-bottom:0}.hp-game-row:hover{background:#fffaf6}
.hp-game-date b{display:block;font-size:11px}.hp-game-date small{display:block;color:#999;font-size:8px;margin-top:2px}
.hp-game-title strong{display:block;font-size:12px}.hp-game-title small{display:block;color:#999;font-size:8px;margin-top:3px}
.hp-game-opponent{display:flex;align-items:center;gap:8px;font-weight:800}.hp-team-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#111;color:#fff;font-size:10px;font-weight:900}
.hp-game-score{font-size:17px;font-weight:950;letter-spacing:-.03em}
.hp-mode,.hp-result{display:inline-flex;width:max-content;align-items:center;justify-content:center;min-width:65px;height:26px;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.05em}
.hp-mode-score{background:#eef1f3;color:#3d4851}.hp-mode-game{background:#fff1e8;color:#d75713}.hp-mode-chart{background:#eee9ff;color:#654eb0}
.hp-result-win{color:var(--hp-o)}.hp-result-lose{color:var(--hp-blue)}.hp-result-draw{color:#777}.hp-result-play{color:var(--hp-green)}
.hp-game-more{position:relative}.hp-game-more summary{list-style:none;width:34px;height:34px;border:1px solid #ddd;border-radius:7px;display:grid;place-items:center;cursor:pointer;font-weight:900}.hp-game-more summary::-webkit-details-marker{display:none}
.hp-game-menu{position:absolute;right:0;top:40px;width:220px;background:#111;color:#fff;border-radius:9px;padding:7px;z-index:100;box-shadow:0 14px 30px #0004;display:grid;gap:2px}
.hp-game-menu a,.hp-game-menu button{display:flex;width:100%;min-height:36px;align-items:center;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#fff;font-size:10px;font-weight:800;text-align:left;cursor:pointer}
.hp-game-menu a:hover,.hp-game-menu button:hover{background:#25292d}.hp-game-menu a.primary{background:var(--hp-o)}.hp-game-menu button.danger{color:#ff9696!important}
.hp-game-menu form{margin:0}.hp-filter-empty{display:none;text-align:center;padding:35px;color:#888;font-size:11px}
.hp-games-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.hp-games-quick a{background:#fff;border:1px solid var(--hp-line);border-radius:10px;min-height:115px;padding:16px;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;align-content:center}
.hp-games-quick img{width:34px;height:34px;grid-row:1/3}.hp-games-quick strong{font-size:13px}.hp-games-quick span{font-size:9px;color:#777;margin-top:3px}
.hp-empty-state{background:#fff;border:1px solid var(--hp-line);border-radius:10px;padding:60px;text-align:center;display:grid;place-items:center;gap:8px}
.hp-empty-state strong{font-size:18px}.hp-empty-state span{font-size:11px;color:#777}.hp-empty-state a{margin-top:8px;background:var(--hp-o);color:#fff;border-radius:7px;padding:12px 18px;font-weight:900;font-size:11px}

/* ---------------- New game: full panel flow ---------------- */
.hp-page-game-create .hp-content{max-width:1280px!important}
.hp-newgame-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.hp-newgame-head h1{font-size:28px;margin:0 0 5px}.hp-newgame-head p{font-size:12px;color:#777;margin:0}
.hp-newgame-steps{display:flex;align-items:center;justify-content:center;margin:0 0 18px;background:#fff;border:1px solid var(--hp-line);border-radius:10px;padding:14px}
.hp-newgame-steps span{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:900;color:#888}.hp-newgame-steps span b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#eee;color:#666}.hp-newgame-steps span.active{color:#111}.hp-newgame-steps span.active b{background:var(--hp-o);color:#fff}.hp-newgame-steps i{width:60px;height:1px;background:#ddd;margin:0 10px}
.hp-newgame-form{display:grid;gap:14px}.hp-form-panel{background:#fff;border:1px solid var(--hp-line);border-radius:11px;box-shadow:0 2px 10px #00000008;overflow:hidden}
.hp-panel-title{padding:15px 18px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}.hp-panel-title h2{font-size:16px;margin:2px 0 0}.hp-panel-title small{font-size:8px;color:var(--hp-o);font-weight:900;letter-spacing:.1em}.hp-panel-title>span{font-size:8px;color:#aaa;letter-spacing:.12em}
.hp-form-body{padding:18px}.hp-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hp-fields-grid .full{grid-column:1/-1}.hp-fields-grid label>span{display:block;font-size:10px;font-weight:900}
.hp-mode-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hp-mode-cards button{min-height:140px;text-align:left;border:2px solid #e5e6e8;border-radius:10px;background:#fff;padding:18px;cursor:pointer;transition:.18s}.hp-mode-cards button:hover{border-color:#bbb}.hp-mode-cards button.active{border-color:var(--hp-o);background:#fffaf6;box-shadow:0 0 0 3px #ff57080b}.hp-mode-cards button>span{font-size:9px;font-weight:950;color:var(--hp-o);letter-spacing:.12em}.hp-mode-cards strong{display:block;font-size:17px;margin:8px 0}.hp-mode-cards small{font-size:10px;line-height:1.7;color:#777}
.hp-form-note{margin:0 18px 18px;padding:10px 12px;border-radius:7px;background:#f7f8f9;color:#777;font-size:10px}
.hp-newgame-submit{display:flex;justify-content:flex-end;gap:9px;margin-top:2px}.hp-newgame-submit>a,.hp-newgame-submit>button{height:50px;border-radius:8px;padding:0 22px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900}.hp-newgame-submit>a{border:1px solid #ddd;background:#fff;color:#111}.hp-newgame-submit>button{border:0;background:linear-gradient(90deg,#ff6900,#ff4b00);color:#fff;min-width:270px}.hp-newgame-submit>button span{font-size:18px;margin-left:10px}

/* ---------------- Team / player / user / identity ---------------- */
.hp-page-team-masters .game-list,.hp-page-player-identity .game-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}
.hp-page-team-masters .game-card{min-height:180px!important;padding:22px!important;border-left:0!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
.hp-page-team-masters .game-card:before{height:4px!important;width:auto!important;right:0!important;bottom:auto!important;background:var(--hp-o)!important}
.hp-page-team-masters .game-card h2{font-size:21px;margin:0 0 7px}.hp-page-team-masters .game-actions{border:0!important;padding:0!important;margin-top:20px!important}
.hp-page-team-master-edit .card.narrow,.hp-page-users .card,.hp-page-player-identity .card,.hp-page-external-import .card{max-width:none!important}
.hp-page-team-master-edit .jersey-grid{display:grid!important;grid-template-columns:repeat(10,1fr)!important;gap:6px!important}.hp-page-team-master-edit .jersey-number{min-height:52px!important;border-radius:7px!important;background:#fff!important;border:1px solid #ddd!important;font-weight:900!important}.hp-page-team-master-edit .jersey-number.selected{background:var(--hp-o)!important;color:#fff!important;border-color:var(--hp-o)!important}
.hp-page-users .card{margin-bottom:14px!important}
.identity-auto-card{background:#fffaf6!important;border-left:0!important;border-top:4px solid var(--hp-o)!important}

/* ---------------- Results: score-first reference style ---------------- */
.hp-page-result .result-hero,.hp-page-public-result .result-hero{
 background:linear-gradient(145deg,#0a0d11,#171b20)!important;color:#fff!important;border:0!important;padding:26px!important;
}
.hp-page-result .result-hero h1,.hp-page-public-result .result-hero h1{color:#fff!important}
.hp-page-result .result-hero .score,.hp-page-public-result .result-hero .score{font-size:42px!important}
.hp-page-result .page-actions{background:#fff;border:1px solid var(--hp-line);border-radius:10px;padding:10px;margin-bottom:14px}
.hp-page-result .card>h2,.hp-page-public-result .card>h2{font-size:17px;margin-top:0}
.hp-page-result table thead th,.hp-page-public-result table thead th{background:#0b0e12!important;color:#fff!important;border-color:#0b0e12!important}
.hp-page-result .history-quarter-nav{display:flex!important;gap:5px!important;background:#f7f8f9!important;padding:8px!important;border-radius:8px!important}
.hp-page-result .history-quarter-link{min-width:48px!important;height:38px!important;border-radius:6px!important;background:#fff!important;border:1px solid #ddd!important;display:grid!important;place-items:center!important;font-weight:900!important}

/* ---------------- Analysis pages: reference panels ---------------- */
.hp-page-analysis .analysis-page-head,.hp-page-public-analysis .analysis-page-head,.hp-page-home-analysis .home-analysis-page-head{margin-bottom:16px!important}
.analysis-card,.chart-personal-analysis,.ha-panel,.home-analysis-filter-card{
 border-radius:10px!important;border:1px solid var(--hp-line)!important;box-shadow:0 2px 10px #00000008!important;
}
.analysis-summary-grid,.chart-kpi-grid,.ha-kpi-grid{gap:10px!important}
.analysis-summary-grid>*,.chart-kpi,.ha-kpi{position:relative;overflow:hidden}
.analysis-summary-grid>*:before,.chart-kpi:before,.ha-kpi:before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:var(--hp-o)}
.plusminus-player{border-radius:8px!important}
.chart-analysis-panel,.ha-panel{background:#fff!important}
.panel-title{padding-bottom:10px!important;border-bottom:1px solid #eee!important;margin-bottom:13px!important}
.panel-title h3{font-size:15px!important}
.home-analysis-hero{padding:24px!important;min-height:120px!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.home-analysis-hero h2{font-size:28px!important;margin:4px 0!important}
.home-analysis-filter{display:grid!important;grid-template-columns:1.2fr 1fr 1fr 1fr 1fr auto!important;gap:9px!important;align-items:end!important}

/* ---------------- Manual ---------------- */
.hp-page-manual .manual-hero{background:linear-gradient(145deg,#090c10,#171b20)!important;color:#fff!important;border-radius:12px!important;padding:30px!important;margin-bottom:15px!important}
.hp-page-manual .manual-hero h1{color:#fff!important}.hp-page-manual .manual-toc{background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:10px!important;padding:14px!important;margin-bottom:14px!important}
.hp-page-manual .manual-section{background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:10px!important;padding:20px!important;margin:0 0 12px!important}.hp-page-manual .manual-no{background:var(--hp-o)!important;color:#fff!important;border-radius:50%!important}

/* ---------------- External import ---------------- */
.hp-page-external-import .external-import-card{border-top:4px solid var(--hp-o)!important}.hp-page-external-import .external-team-preview{background:#f8f9fa!important;border-radius:9px!important}.hp-page-external-import .hoopapps-period-score table thead th{background:#111!important;color:#fff!important}

/* ---------------- Game setup / chart edit ---------------- */
.hp-page-game-setup .flow-steps{background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:10px!important;padding:12px!important}
.hp-page-game-setup .roster-team-card{border:1px solid var(--hp-line)!important;border-radius:10px!important;background:#fff!important}
.hp-page-chart-edit .chart-edit-card{border-top:4px solid var(--hp-o)!important}.hp-page-chart-edit .chart-edit-layout{gap:14px!important}.hp-page-chart-edit .chart-shot-list-panel,.hp-page-chart-edit .chart-edit-court-panel{background:#fff!important;border:1px solid var(--hp-line)!important;border-radius:10px!important}

/* ---------------- Score input — force full HOOPROVE console ---------------- */
.hp-page-score.hp-focus-shell{background:#d8dadd!important}.hp-page-score .hp-focus-main{max-width:1280px!important}
.hp-page-score .hp-focus-header{height:68px!important;padding:8px 16px!important}
.hp-page-score .hp-focus-header-logo{width:190px!important}
.hp-page-score .score-app{background:#fff!important;border-radius:0!important;box-shadow:none!important}
.hp-page-score .ref-score-console{border-radius:0!important;background:#f8f9fa!important;padding:0!important}
.hp-page-score .rsc-topbar{background:#0b0e12!important;color:#fff!important;border-radius:0!important;padding:10px 14px!important}
.hp-page-score .rsc-score-head{background:#fff!important;border-bottom:1px solid var(--hp-line)!important;box-shadow:0 3px 10px #00000008!important}
.hp-page-score .rsc-main-score{font-size:52px!important;color:#111!important}
.hp-page-score .rsc-court{background:#fff!important;padding:12px!important}
.hp-page-score .rsc-controls{background:#f8f9fa!important;border:1px solid #e5e6e8!important;border-radius:10px!important;padding:12px!important}
.hp-page-score .rsc-action{min-height:68px!important;border-radius:7px!important;border:1px solid #dadde0!important;background:#fff!important;box-shadow:0 2px 7px #00000008!important}
.hp-page-score .rsc-made{background:#111!important;color:#fff!important;border-color:#111!important}
.hp-page-score .rsc-shot-grid{gap:7px!important}.hp-page-score .rsc-stat-grid{gap:7px!important}
.hp-page-score .rsc-roster-column{background:#f5f6f7!important;border-radius:8px!important}
.hp-page-score .rsc-player,.hp-page-score .rsc-roster button{border-radius:7px!important}
.hp-page-score .rsc-player.is-selected,.hp-page-score .rsc-roster button.is-selected{outline:3px solid #ff57082b!important;border-color:var(--hp-o)!important}
.hp-page-score .rsc-bottom-actions{background:#0b0e12!important;border-radius:8px!important;overflow:hidden!important}
.hp-page-score .rsc-bottom-actions button{color:#fff!important;border-color:#333!important}

/* ---------------- Guest/public: actual public reference ---------------- */
body.hp-guest-shell:not(.hp-page-login) .hp-guest-header{background:#fff!important;color:#111!important;border-top:4px solid var(--hp-o)!important;border-bottom:1px solid var(--hp-line)!important;min-height:78px!important}
body.hp-guest-shell:not(.hp-page-login) .hp-guest-logo{width:220px!important}
body.hp-guest-shell:not(.hp-page-login) .hp-guest-nav a{color:#111!important;border-color:#ddd!important;background:#fff!important}
.hp-page-public-games .hp-guest-main,.hp-page-public-result .hp-guest-main,.hp-page-public-analysis .hp-guest-main{max-width:1250px!important}
.hp-page-public-games .game-card,.hp-page-public-result .card,.hp-page-public-analysis .card{box-shadow:0 2px 10px #00000008!important}
.hp-page-public-games .score-line strong{font-size:28px!important}

/* ---------------- Login exact split-screen renewal ---------------- */
body.hp-page-login .hp-guest-header{display:none!important}
body.hp-page-login .hp-guest-main{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
body.hp-page-login .hp-copyright{display:none!important}
.hp-login-full{min-height:100vh;display:grid;grid-template-columns:1.08fr .92fr;background:#fff}
.hp-login-visual{background:linear-gradient(145deg,#090c10,#161b20);color:#fff;position:relative;overflow:hidden}
.hp-login-visual:after{content:"";position:absolute;width:460px;height:460px;border:100px solid #ff570810;border-radius:50%;right:-180px;bottom:-180px}
.hp-login-visual-inner{height:100%;padding:55px 70px;display:flex;flex-direction:column;justify-content:space-between;position:relative;z-index:2}
.hp-login-visual-inner>img{width:260px;background:#fff;border-radius:10px;padding:8px 12px}
.hp-login-copy span{font-size:10px;letter-spacing:.18em;color:#ff8a4d;font-weight:900}.hp-login-copy h1{font-size:50px;line-height:1.15;margin:14px 0;color:#fff;letter-spacing:-.04em}.hp-login-copy h1 em{color:var(--hp-o);font-style:normal}.hp-login-copy p{font-size:14px;line-height:2;color:#c9cdd1}
.hp-login-form-side{display:grid;place-items:center;padding:50px}.hp-login-form-inner{width:min(100%,470px)}.hp-login-sp-logo{display:none}.hp-login-welcome{font-size:9px;letter-spacing:.16em;color:var(--hp-o);font-weight:950}.hp-login-form-inner h2{font-size:28px;margin:7px 0 6px}.hp-login-form-inner>p{font-size:11px;color:#777;margin:0 0 25px}
.hp-real-login-form{display:grid;gap:16px}.hp-real-login-form label>span{display:block;font-size:10px;font-weight:900}.hp-real-login-form input[type=text],.hp-real-login-form input[type=password]{height:50px!important;margin-top:7px!important;border-radius:7px!important}
.hp-real-login-form .hp-remember{display:flex;align-items:center;gap:8px}.hp-real-login-form .hp-remember input{width:17px;height:17px}.hp-real-login-form .hp-remember span{font-size:10px;color:#555}
.hp-real-login-form>button{height:52px;border:0;border-radius:7px;background:linear-gradient(90deg,#ff6900,#ff4b00);color:#fff;font-size:12px;font-weight:950;cursor:pointer}.hp-real-login-form>button span{float:right}
.hp-login-info{margin-top:24px;padding:13px;background:#f7f8f9;border-radius:7px;text-align:center;font-size:9px;color:#777}.hp-login-copyright{text-align:center;color:#aaa;font-size:8px;margin-top:22px}

/* ---------------- Responsive full renewal ---------------- */
@media(max-width:900px){
 .hp-games-head{display:block}.hp-games-head-actions{margin-top:13px}.hp-games-head-actions>*{flex:1}
 .hp-games-summary{grid-template-columns:repeat(2,1fr)}
 .hp-games-toolbar{grid-template-columns:1fr 1fr}.hp-search-box{grid-column:1/-1}
 .hp-games-list{overflow:hidden}.hp-games-list-head{display:none}
 .hp-game-row{grid-template-columns:85px 1fr 85px 38px!important;gap:8px!important;padding:13px!important}
 .hp-game-title{grid-column:2/3}.hp-game-opponent{grid-column:2/3}.hp-game-score{grid-column:3/4;grid-row:1/3;text-align:right}
 .hp-game-row>.hp-mode{grid-column:1/2}.hp-game-row>.hp-result{grid-column:3/4}
 .hp-game-more{grid-column:4/5;grid-row:1/3}.hp-game-opponent .hp-team-dot{width:24px;height:24px}.hp-game-opponent{font-size:10px}
 .hp-games-quick{grid-template-columns:repeat(2,1fr)}
 .hp-newgame-head{display:block}.hp-newgame-head>a{margin-top:12px}
 .hp-newgame-steps{justify-content:flex-start;overflow-x:auto}.hp-newgame-steps i{width:25px}
 .hp-mode-cards{grid-template-columns:1fr}.hp-mode-cards button{min-height:105px}
 .hp-fields-grid{grid-template-columns:1fr}.hp-fields-grid .full{grid-column:auto}
 .hp-newgame-submit{display:grid;grid-template-columns:1fr}.hp-newgame-submit>*{width:100%!important}
 .hp-page-team-masters .game-list{grid-template-columns:1fr!important}
 .home-analysis-filter{grid-template-columns:1fr 1fr!important}
 .hp-login-full{grid-template-columns:1fr;min-height:100vh}.hp-login-visual{display:none}.hp-login-form-side{padding:30px 20px}.hp-login-sp-logo{display:block;width:220px;margin:0 auto 30px}.hp-login-sp-logo img{width:100%}
}
@media(max-width:560px){
 .hp-games-summary{background:linear-gradient(145deg,#090c10,#15191e);border-radius:9px;padding:8px;gap:0}.hp-summary-box{background:transparent!important;border:0!important;color:#fff!important;border-right:1px solid #333!important;border-radius:0!important;padding:10px!important}.hp-summary-box:nth-child(even){border-right:0!important}.hp-summary-box span,.hp-summary-box small{color:#aaa}.hp-summary-box strong{color:#fff}
 .hp-games-toolbar{grid-template-columns:1fr}.hp-search-box{grid-column:auto}.hp-games-quick{grid-template-columns:1fr 1fr}.hp-games-quick a{min-height:90px;padding:10px}
 .hp-page-score .hp-focus-content{padding-left:0!important;padding-right:0!important}
}


/* =========================================================
   v3.37 GAME CREATE / STEP 02 RECORD MODE
   Reference-layout correction
   ========================================================= */
#game-create-form [data-step-panel="2"] .v333-mode-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:14px !important;
  align-items:stretch !important;
  width:100% !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card]{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  min-width:0 !important;
  min-height:126px !important;
  padding:22px 20px !important;
  border:2px solid #e3e3e3 !important;
  border-radius:14px !important;
  background:#fff !important;
  text-align:left !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card].selected{
  border-color:#ff5a0a !important;
  background:#fff8f4 !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card] .v333-mode-name{
  display:block !important;
  margin:0 0 8px !important;
  font-size:21px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  letter-spacing:0 !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card].selected .v333-mode-name{
  color:#ff5200 !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card] .v333-mode-desc{
  display:block !important;
  width:100% !important;
  margin:0 0 12px !important;
  color:#777 !important;
  font-size:12px !important;
  line-height:1.55 !important;
  font-weight:500 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card] .v333-mode-tag{
  display:inline-flex !important;
  align-items:center !important;
  width:auto !important;
  max-width:max-content !important;
  min-height:25px !important;
  padding:4px 10px !important;
  margin:0 !important;
  border-radius:999px !important;
  background:#f1f1f1 !important;
  color:#111 !important;
  font-size:10px !important;
  line-height:1 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
#game-create-form [data-step-panel="2"] [data-mode-card] .v333-pro{
  position:absolute !important;
  top:13px !important;
  right:13px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:4px 8px !important;
  border-radius:5px !important;
  background:#e60012 !important;
  color:#fff !important;
  font-size:9px !important;
  line-height:1 !important;
  font-weight:900 !important;
}
@media (max-width:767px){
  #game-create-form [data-step-panel="2"] .v333-mode-grid{
    grid-template-columns:1fr !important;
  }
  #game-create-form [data-step-panel="2"] [data-mode-card]{
    min-height:112px !important;
  }
}

/* =========================================================
   v3.38 GAME CREATE / STEP 03 PLAYER & JERSEY
   Matches supplied HOOPROVE reference
   ========================================================= */
.v338-team-choice-label{font-size:10px;color:#777;margin-bottom:14px}
.v338-team-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.v338-team-choice{min-height:78px!important;border:2px solid #e2e2e2!important;border-radius:10px!important;background:#fff!important;padding:15px 16px!important;text-align:left!important;cursor:pointer!important}
.v338-team-choice strong{display:block;font-size:17px;line-height:1.2}
.v338-team-choice small{display:block;margin-top:7px;color:#999;font-size:9px}
.v338-team-choice.selected{border-color:#ff5708!important;background:#fff8f4!important}
.v338-team-choice.selected strong{color:#ff5708}
.v338-team-choice.other{display:none!important}
.v338-hidden-select{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important}
.v338-other-team{display:block;margin:0 0 14px}
.v338-other-team.hidden{display:none!important}
.v338-home-rosters{border:1px solid #e2e4e6;border-radius:9px;overflow:hidden;margin-bottom:12px}
.v338-home-roster{display:none}
.v338-home-roster.active{display:block}
.v338-player-table-head,.v338-player-row{display:grid;grid-template-columns:minmax(220px,1.5fr) 140px 180px 82px;gap:10px;align-items:center}
.v338-player-table-head{min-height:40px;padding:0 14px;background:#f8f8f8;border-bottom:1px solid #e8e8e8;color:#777;font-size:9px;font-weight:900}
.v338-player-row{min-height:62px;padding:8px 14px;border-bottom:1px solid #eee}
.v338-player-row:last-child{border-bottom:0}
.v338-player-name strong{display:block;font-size:12px}
.v338-player-name small{display:block;margin-top:3px;color:#aaa;font-size:8px}
.v338-player-setting{width:max-content;padding:4px 7px;border-radius:999px;background:#e9faef;color:#26984f;font-size:8px;font-weight:900}
.v338-number-input input{width:72px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:7px 9px!important;text-align:center!important;font-weight:900!important}
.v338-player-check{display:grid;place-items:center}
.v338-player-check input{position:absolute;opacity:0}
.v338-player-check i{width:22px;height:22px;border:2px solid #ddd;border-radius:4px;display:block;position:relative;background:#fff}
.v338-player-check input:checked+i{background:#ff5708;border-color:#ff5708}
.v338-player-check input:checked+i:after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.v338-empty-roster{padding:28px;text-align:center;color:#999;font-size:10px}
.v338-roster-note{padding:10px 13px;border:1px solid #f1dccb;border-radius:7px;background:#fffaf6;color:#77685f;font-size:8px;line-height:1.7;margin-bottom:16px}
.v338-away-number-card{border:1px solid #e1e3e5;border-radius:10px;overflow:hidden}
.v338-away-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 16px;border-bottom:1px solid #e9e9e9}
.v338-away-head strong{display:block;font-size:14px}
.v338-away-head small{display:block;margin-top:4px;color:#888;font-size:9px}
.v338-away-head button{height:34px;border:1px solid #ddd;border-radius:7px;background:#fff;padding:0 10px;font-size:9px;font-weight:900}
.v338-away-status{display:flex;align-items:center;gap:12px;padding:10px 16px;color:#888;font-size:9px}
.v338-away-status strong{color:#555}
.v338-away-number-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;padding:4px 16px 12px}
.v338-away-number-grid button{height:36px;border:1px solid #ddd;border-radius:6px;background:#fff;font-size:9px;font-weight:900}
.v338-away-number-grid button.selected{background:#4169e1;color:#fff;border-color:#4169e1}
.v338-away-number-card>p{margin:0 16px 14px;padding:9px 10px;border-radius:6px;background:#f4f5f6;color:#888;font-size:8px;line-height:1.6}
.v338-confirm-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.v338-confirm-grid>div{min-height:74px;border:1px solid #e1e3e5;border-radius:9px;padding:13px 15px;display:flex;flex-direction:column;justify-content:center}
.v338-confirm-grid>div.full{grid-column:1/-1}
.v338-confirm-grid small{display:block;color:#999;font-size:8px;margin-bottom:5px}
.v338-confirm-grid strong{font-size:14px;line-height:1.35}
.v338-confirm-message{text-align:center;padding:26px 10px 6px}
.v338-confirm-message strong{display:block;font-size:20px}
.v338-confirm-message span{display:block;margin-top:7px;color:#888;font-size:9px}
@media(max-width:767px){
 .v338-team-choice-grid{grid-template-columns:1fr 1fr}
 .v338-player-table-head{display:none}
 .v338-player-row{grid-template-columns:1fr 70px 48px;gap:7px}
 .v338-player-setting{display:none}
 .v338-number-input{grid-column:2}
 .v338-player-check{grid-column:3}
 .v338-away-number-grid{grid-template-columns:repeat(5,1fr)}
 .v338-confirm-grid{grid-template-columns:1fr}
 .v338-confirm-grid>div.full{grid-column:auto}
}

/* DEMO environment marker */
.hp-demo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:25px;
  padding:0 9px;
  border-radius:999px;
  background:#ff5708;
  color:#fff;
  font-size:9px;
  font-weight:950;
  letter-spacing:.09em;
}
.hp-focus-header{position:relative}
.hp-demo-corner{
  position:absolute;
  top:7px;
  right:7px;
  z-index:5;
  border-radius:999px;
  background:#ff5708;
  color:#fff;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
  padding:4px 7px;
}


/* ============================================================
   v3.49 MOBILE MENU + BOTTOM HOME ICON
   ============================================================ */
html.hp-menu-open,
body.hp-menu-open{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

@media(max-width:900px){
  /* Active icons previously became black on the black bottom bar. */
  .hp-mobile-bottom a.active img{
    filter:invert(1) !important;
    opacity:1 !important;
  }

  .hp-mobile-bottom a img{
    display:block !important;
    width:24px !important;
    height:24px !important;
    min-width:24px !important;
    min-height:24px !important;
    object-fit:contain !important;
    opacity:1 !important;
  }

  .hp-mobile-actions button,
  .hp-mobile-bottom [data-hp-menu-open]{
    cursor:pointer !important;
    touch-action:manipulation !important;
  }

  .hp-drawer,
  .hp-overlay{
    -webkit-tap-highlight-color:transparent;
  }
}


/* v3.54 mobile games header — sample has bell + hamburger */
@media(max-width:900px){
  .hp-page-games .hp-mobile-actions{
    display:flex !important;
    align-items:center !important;
    gap:14px !important;
  }
  .hp-page-games .hp-mobile-actions .hp-top-notice{
    display:inline-flex !important;
    width:32px !important;
    height:32px !important;
    align-items:center !important;
    justify-content:center !important;
  }
  .hp-page-games .hp-mobile-actions .hp-top-notice img{
    display:block !important;
    width:25px !important;
    height:25px !important;
  }
}


/* ============================================================
   v3.84 LOGIN LOGO FIX
   The login logo is wrapped in .hp-global-logo-link.
   Keep the original HOOPROVE logo at the intended size.
   ============================================================ */
body.hp-page-login .hp-login-visual-inner > .hp-global-logo-link{
  display:block !important;
  width:260px !important;
  max-width:260px !important;
  line-height:0 !important;
  background:#fff !important;
  border-radius:10px !important;
  padding:8px 12px !important;
  overflow:hidden !important;
}
body.hp-page-login .hp-login-visual-inner > .hp-global-logo-link img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
}
body.hp-page-login .hp-login-sp-logo .hp-global-logo-link{
  display:block !important;
  width:100% !important;
  line-height:0 !important;
  background:#fff !important;
  border-radius:10px !important;
  padding:8px 12px !important;
}
body.hp-page-login .hp-login-sp-logo .hp-global-logo-link img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}
@media(max-width:760px){
  body.hp-page-login .hp-login-sp-logo{
    width:220px !important;
  }
}
