/* Game Point List - responsive UI, putih & biru */
*{box-sizing:border-box}
:root{--blue:#397fe8;--blue-dark:#2368ce;--blue-soft:#edf4ff;--text:#172033;--muted:#6b7686;--line:#e5e9ef;--bg:#f5f7fa;--card:#fff;--danger:#d94444;--success:#16834b;--radius:16px}
html{min-height:100%;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);font-size:15px;line-height:1.45}
button,input,select{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.icon{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;display:inline-block!important;flex:0 0 20px!important;vertical-align:middle!important}
.topbar{min-height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100vw - 1440px)/2));position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:var(--blue-soft);color:#203d70;display:flex;align-items:center;justify-content:center}.brand-title{font-size:17px;font-weight:750;letter-spacing:-.25px;line-height:1.25}.brand-subtitle{font-size:12px;color:var(--muted);margin-top:3px}
.admin-link,.admin-nav a{font-size:14px;font-weight:700;color:#3c6fbf}.admin-nav{display:flex;gap:18px;align-items:center}
.page{width:100%;max-width:1480px;margin:0 auto;padding:22px 24px 40px}
.layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.85fr);gap:22px;align-items:start}
.games-panel,.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 5px 20px rgba(24,39,75,.045);min-width:0}
.games-panel{overflow:hidden}
.panel-heading{padding:22px 24px 17px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.panel-heading h1{display:flex;align-items:center;gap:9px;margin:0 0 5px;font-size:23px;line-height:1.25;letter-spacing:-.4px}.heading-icon{display:inline-flex;align-items:center;color:#213e70}.muted{color:var(--muted);font-size:13px}.muted strong{color:#3d4757}
.ghost-button,.secondary-button,.primary-button,.search-button{border:0;border-radius:10px;padding:10px 14px;font-weight:650;line-height:1.2;transition:background .15s ease,border-color .15s ease;min-height:40px}.ghost-button{display:inline-flex;align-items:center;justify-content:center;background:#f1f4f8;color:#4b596b;white-space:nowrap}.ghost-button:hover,.secondary-button:hover{background:#e7edf5}
.search-box{margin:0 24px 18px;border:1px solid #dfe5ec;border-radius:12px;min-height:52px;display:flex;align-items:center;gap:8px;padding:6px 7px 6px 13px;background:#fff}.search-box:focus-within{border-color:#9dbcf1;box-shadow:0 0 0 3px rgba(57,127,232,.09)}.search-icon{display:inline-flex;align-items:center;justify-content:center;color:#8491a1}.search-box input{border:0;outline:0;flex:1;min-width:100px;height:37px;color:var(--text);background:transparent;font-size:14px}.search-box input::placeholder{color:#929cab}.search-box select{height:37px;min-width:0;max-width:180px;border:1px solid #e1e6ed;border-radius:8px;background:#fff;padding:0 9px;color:#4d5a6b;font-size:13px}.search-button{background:var(--blue);color:#fff;min-height:37px;padding:9px 15px}.search-button:hover,.primary-button:hover,.add-button:hover{background:var(--blue-dark)}
.game-table{width:100%;min-width:0}.game-head,.game-row{display:grid;grid-template-columns:70px minmax(150px,1.55fr) minmax(120px,1fr) minmax(72px,.65fr) 100px;gap:12px;align-items:center;padding:13px 24px}.game-head{background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;font-weight:700;color:#677386}.game-row{min-height:91px;border-bottom:1px solid var(--line);transition:background .15s ease}.game-row:hover{background:#fbfdff}.game-row:last-child{border-bottom:0}.cover-wrap{width:60px;height:60px}.cover{display:block;width:60px;height:60px;object-fit:cover;border-radius:9px;background:#edf1f5;border:1px solid #edf0f4}.game-name{min-width:0}.game-name strong{display:block;font-size:15px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.category-badge{display:inline-flex;align-items:center;gap:6px;background:#eaf2ff;color:#2e5ba4;border-radius:999px;padding:6px 10px;font-size:12px;line-height:1.3;max-width:100%;overflow-wrap:anywhere}.category-badge .icon{width:15px!important;height:15px!important;max-width:15px!important;max-height:15px!important;flex-basis:15px!important}.game-size{color:#515d6e;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.add-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:9px 12px;border:0;background:var(--blue);color:#fff;border-radius:9px;font-size:13px;font-weight:650;white-space:nowrap}.add-button:active,.primary-button:active,.search-button:active{transform:translateY(1px)}
.sidebar{display:flex;flex-direction:column;gap:18px;min-width:0}.card{padding:20px}.card-title{font-size:18px;font-weight:750;display:flex;justify-content:space-between;align-items:center;gap:10px}.inline-title-icon{display:inline-flex;align-items:center;gap:9px}.inline-title-icon .icon{color:#314a72}.text-button{border:0;background:none;color:#778394;font-size:12px;font-weight:650;padding:8px 4px;white-space:nowrap}.text-button:hover{color:var(--danger)}
.cart-empty{text-align:center;padding:30px 8px 24px;color:#6e7886;font-size:15px}.cart-empty small{display:block;font-size:12px;line-height:1.5;margin-top:7px;color:#9aa3af}.cart-empty-icon{display:flex;justify-content:center;align-items:center;margin:0 auto 12px;color:#b2bdcb;min-height:48px}.cart-empty-icon .icon{width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;flex-basis:40px!important;stroke-width:1.5}
.cart-items{margin-top:14px;display:flex;flex-direction:column;gap:12px}.cart-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line)}.cart-item:last-child{border-bottom:0}.cart-item-cover img{display:block;width:44px;height:44px;object-fit:cover;border-radius:8px;background:#f2f4f7}.cart-item-main{min-width:0}.cart-item-main strong{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.cart-item-main small{display:block;color:#788391;font-size:11px;margin-top:3px}.cart-item-total{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.qty-controls{display:flex;align-items:center;gap:6px;margin-top:7px;flex-wrap:wrap}.qty-btn{width:30px;height:30px;border:1px solid #dce2e9;background:#fff;border-radius:8px;color:#334155;display:inline-flex;align-items:center;justify-content:center;font-size:17px}.qty-btn:hover{background:#edf4ff;border-color:#bdd2f5}.qty-controls span{min-width:15px;text-align:center;font-size:12px;font-weight:650}.remove-btn{border:0;background:none;color:#ce4444;font-size:11px;margin-left:2px;padding:6px 2px}.cart-summary{margin-top:15px;border-top:1px solid var(--line);padding-top:13px}.summary-line{display:flex;justify-content:space-between;gap:10px;padding:5px 0;color:#667180;font-size:13px}.summary-line strong{font-variant-numeric:tabular-nums}.summary-line.total{font-size:17px;color:var(--text);font-weight:750}
.storage-list{margin-top:14px;display:flex;flex-direction:column;gap:9px}.storage-option{display:flex;align-items:center;text-align:left;gap:10px;width:100%;border:1px solid #e0e5ec;background:#fff;border-radius:11px;padding:12px;min-height:66px;transition:border-color .15s ease,background .15s ease}.storage-option:hover{border-color:#b6cdf3}.storage-option.selected{border-color:var(--blue);background:#f5f9ff}.storage-icon{display:flex;align-items:center;justify-content:center;color:#697a90;flex:0 0 22px}.storage-icon .icon{width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important;flex-basis:19px!important}.storage-info{flex:1;min-width:0}.storage-info strong{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}.storage-info small{display:block;color:#7b8694;margin-top:2px;font-size:12px}.storage-radio{width:17px;height:17px;flex:0 0 17px;border:1.5px solid #c9d0d8;border-radius:50%}.storage-option.selected .storage-radio{border:5px solid var(--blue)}
.capacity-box{margin-top:15px;border-top:1px solid var(--line);padding-top:15px}.capacity-head{display:flex;justify-content:space-between;gap:10px;font-size:13px}.capacity-head strong{font-variant-numeric:tabular-nums}.progress{height:8px;background:#e9edf2;border-radius:99px;overflow:hidden;margin:10px 0 14px}.progress-bar{height:100%;width:0;background:var(--blue);border-radius:99px;transition:width .25s}.progress-bar.over-capacity{background:#dc4b4b}.capacity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.capacity-grid div{background:#f7f9fb;border-radius:9px;padding:9px;min-width:0}.capacity-grid small{display:block;color:#7d8794;font-size:10px}.capacity-grid strong{display:block;margin-top:4px;font-size:12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.capacity-message{margin-top:11px;border-radius:9px;padding:10px 11px;font-size:12px;line-height:1.45}.capacity-message.ok{background:#ecf9f1;color:#147b47}.capacity-message.danger{background:#fff0f0;color:#c53636}.actions-card{display:flex;flex-direction:column;gap:9px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:13px}.primary-button{background:var(--blue);color:#fff;text-align:center}.secondary-button{background:#eef2f6;color:#3f4c5b;text-align:center}.button-icon{display:inline-flex;align-items:center;justify-content:center}.button-icon .icon{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important;flex-basis:17px!important}.link-button{display:inline-flex;align-items:center;justify-content:center}
.hidden{display:none!important}.alert{padding:14px 16px;border-radius:10px;margin-bottom:18px}.alert-danger{background:#fff0f0;color:#b72f2f;border:1px solid #ffd1d1}.alert-success{background:#ecf9f1;color:#147b47;border:1px solid #c9efd9}.small-text{font-size:12px}.empty-list{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 18px;color:#6f7a88;min-height:170px}.empty-list strong{font-size:14px;color:#4e5a6c;margin-top:4px}.empty-list span{display:block;margin-top:5px;font-size:12px;line-height:1.5}.empty-icon{display:flex;align-items:center;justify-content:center;margin-bottom:8px;color:#a7b3c3}.empty-icon .icon{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;flex-basis:36px!important;stroke-width:1.6}
/* Admin pages remain styled and become usable on smaller screens too. */
.admin-page{max-width:1200px;margin:0 auto;padding:30px 24px}.admin-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.admin-header h1{margin:0 0 5px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 5px 20px rgba(24,39,75,.04)}.stat-card span{color:#6e7886;font-size:13px}.stat-card strong{display:block;font-size:25px;margin-top:8px}.admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.admin-category-card{margin-top:20px}.category-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.category-pill{background:#eef4ff;color:#315fa8;padding:8px 11px;border-radius:999px;font-size:13px}.category-pill b{margin-left:5px}.admin-search{margin:0 0 18px}.table-card{padding:0;overflow:hidden}.admin-table-head,.admin-table-row{display:grid;grid-template-columns:2fr 1fr 1fr .8fr 1fr;gap:15px;padding:14px 18px;align-items:center}.admin-table-head{background:#f8fafc;font-weight:700;color:#566171}.admin-table-row{border-top:1px solid var(--line);font-size:13px}.row-actions{display:flex;gap:10px;flex-wrap:wrap}.row-actions a{color:#286bc7;font-weight:700}.row-actions .danger-link{color:#d04040}.status{display:inline-block;padding:5px 8px;border-radius:999px;background:#f0f2f5;color:#667180;font-size:11px}.status.active{background:#e8f8ef;color:#167846}.narrow-page{max-width:700px}.form-card{padding:26px}.form-card h1{margin-top:0}.form-grid{display:grid;gap:14px}.form-grid h2{margin:12px 0 0;font-size:16px}.form-grid label{display:grid;gap:7px;font-size:13px;font-weight:700}.form-grid input,.form-grid select{width:100%;min-width:0;height:44px;border:1px solid #dce2e9;border-radius:9px;padding:0 12px;background:#fff;outline:0}.form-grid input:focus,.form-grid select:focus{border-color:#6ea0eb}.form-grid small{color:#7d8793;font-weight:400}.checkbox-label{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:8px!important}.checkbox-label input{width:18px;height:18px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.csv-example{background:#f5f7fa;border:1px solid var(--line);padding:12px;border-radius:9px;line-height:1.8;overflow-wrap:anywhere}.install-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.install-card,.login-card{width:100%;max-width:620px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 35px rgba(24,39,75,.08);padding:30px}.login-card{max-width:460px}.install-brand{margin-bottom:22px}.install-card h1,.login-card h1{margin:0 0 8px}.install-success{margin-top:20px}.back-link{display:block;margin-top:20px;color:#356fc4;font-weight:700;font-size:13px}
@media(max-width:1100px){.page{padding:18px}.layout{grid-template-columns:minmax(0,1.45fr) minmax(290px,.85fr);gap:16px}.game-head,.game-row{grid-template-columns:60px minmax(120px,1.5fr) minmax(100px,1fr) 76px 90px;gap:9px;padding-left:16px;padding-right:16px}.cover-wrap,.cover{width:54px;height:54px}.category-badge{padding:6px 8px;font-size:11px}.add-button{padding:9px 8px;font-size:12px}}
@media(max-width:850px){.topbar{padding:0 18px}.page{max-width:760px;padding:16px 14px 28px}.layout{grid-template-columns:minmax(0,1fr);gap:16px}.games-panel{order:1}.sidebar{order:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.cart-card{grid-column:1/-1}.storage-card,.actions-card{grid-column:auto}.actions-card{align-self:start}.game-head,.game-row{grid-template-columns:58px minmax(0,1.5fr) minmax(100px,1fr) 78px 95px;padding-left:16px;padding-right:16px}.game-head{font-size:11px}.game-name strong{font-size:14px}}
@media(max-width:600px){
  body{font-size:14px}
  .topbar{min-height:60px;height:60px;padding:0 13px;position:static}.brand{gap:9px}.brand-icon{width:35px;height:35px;flex-basis:35px;border-radius:10px}.brand-title{font-size:15px;letter-spacing:-.15px}.brand-subtitle{font-size:11px;margin-top:2px}
  .page{padding:11px 10px 24px}.layout{gap:12px}.games-panel,.card{border-radius:13px;box-shadow:0 3px 12px rgba(24,39,75,.035)}
  .panel-heading{padding:16px 14px 12px;gap:9px}.panel-heading h1{font-size:19px;gap:7px;margin-bottom:3px}.heading-icon .icon{width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important;flex-basis:19px!important}.muted{font-size:12px}.ghost-button{min-height:35px;padding:8px 10px;font-size:12px}
  .search-box{margin:0 12px 12px;padding:8px;display:flex;flex-wrap:wrap;gap:7px;border-radius:10px;min-height:0}.search-icon{width:22px;justify-content:center}.search-box input{flex:1 1 calc(100% - 34px);width:calc(100% - 34px);min-width:0;height:36px;font-size:13px}.search-box select{flex:1 1 calc(50% - 5px);width:calc(50% - 5px);max-width:none;height:38px;font-size:12px;padding:0 7px}.search-button{flex:1 1 100%;width:100%;height:38px;min-height:38px;font-size:13px}
  .game-head{display:none}.game-row{grid-template-columns:62px minmax(0,1fr) auto;grid-template-areas:"cover name name" "cover category category" "size size action";gap:8px 10px;padding:13px 12px;min-height:0;align-items:center}.game-row>div:nth-child(1){grid-area:cover;align-self:start}.game-row>div:nth-child(2){grid-area:name;align-self:end}.game-row>div:nth-child(3){grid-area:category;align-self:start}.game-row>div:nth-child(4){grid-area:size;align-self:center;padding-left:1px}.game-row>div:nth-child(5){grid-area:action;justify-self:end}.cover-wrap,.cover{width:60px;height:60px}.cover{border-radius:9px}.game-name strong{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.category-badge{display:inline-flex;max-width:100%;white-space:normal;font-size:11px;line-height:1.3;padding:5px 8px;gap:5px}.category-badge .icon{width:13px!important;height:13px!important;max-width:13px!important;max-height:13px!important;flex-basis:13px!important}.game-size{font-size:13px;font-weight:650;color:#445166}.add-button{min-height:36px;padding:8px 11px;font-size:12px;border-radius:8px}
  .empty-list{min-height:150px;padding:28px 16px}.empty-list strong{font-size:13px}.empty-list span{font-size:12px;max-width:260px}.empty-icon{margin-bottom:6px}
  .sidebar{display:flex;flex-direction:column;gap:12px}.card{padding:15px}.card-title{font-size:16px}.text-button{font-size:11px;padding:6px 0}.cart-empty{padding:20px 8px 16px;font-size:14px}.cart-empty small{font-size:11px}.cart-empty-icon{margin-bottom:8px;min-height:42px}.cart-empty-icon .icon{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;flex-basis:36px!important}.cart-items{gap:10px;margin-top:12px}.cart-item{grid-template-columns:40px minmax(0,1fr) auto;gap:8px;padding-bottom:10px}.cart-item-cover img{width:40px;height:40px}.cart-item-main strong{font-size:12px}.cart-item-main small{font-size:10px}.cart-item-total{font-size:11px}.qty-controls{gap:5px;margin-top:6px}.qty-btn{width:29px;height:29px}.remove-btn{font-size:11px}.summary-line{font-size:12px}.summary-line.total{font-size:16px}
  .storage-list{margin-top:11px;gap:8px}.storage-option{padding:10px;min-height:60px;gap:9px;border-radius:10px}.storage-info strong{font-size:12px}.storage-info small{font-size:11px}.storage-radio{width:16px;height:16px;flex-basis:16px}.capacity-box{margin-top:12px;padding-top:12px}.capacity-grid{gap:6px}.capacity-grid div{padding:8px 7px}.capacity-grid small{font-size:10px}.capacity-grid strong{font-size:11px}.capacity-message{font-size:11px;padding:9px}.actions-card{gap:8px}.primary-button,.secondary-button{min-height:42px;font-size:12px}
  .admin-page{padding:18px 11px}.admin-header{align-items:stretch;flex-direction:column;gap:12px}.stats-grid{grid-template-columns:1fr;gap:10px}.stat-card{padding:15px}.stat-card strong{font-size:22px}.admin-actions{gap:8px}.admin-actions .link-button{flex:1 1 auto}.admin-search{margin-bottom:12px}.admin-table-head{display:none}.admin-table-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:13px}.admin-table-row>div:nth-child(1){grid-column:1/-1;overflow-wrap:anywhere}.admin-table-row>div:nth-child(5){grid-column:1/-1}.row-actions{gap:16px}.form-card{padding:17px}.form-grid label{font-size:12px}.form-actions{display:grid;grid-template-columns:1fr 1fr}.form-actions>*{width:100%}.install-page{padding:12px}.install-card,.login-card{padding:20px;border-radius:14px}.admin-nav{gap:10px;font-size:12px}
}
@media(max-width:360px){.game-row{grid-template-columns:54px minmax(0,1fr) auto;gap:7px 8px;padding:12px 9px}.cover-wrap,.cover{width:52px;height:52px}.game-name strong{font-size:13px}.add-button{padding:8px 9px;font-size:11px}.category-badge{font-size:10px;padding:4px 7px}.panel-heading h1{font-size:18px}.card{padding:13px}}


/* Pagination: clean white footer bar matching the provided reference */
.pagination-wrap{
  width:100%;
  min-height:62px;
  padding:16px 24px;
  border-top:1px solid #edf0f4;
  background:#fff;
  box-shadow:0 8px 18px rgba(22,34,51,.045);
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.pagination-info{
  color:#626d7a;
  font-size:13px;
  font-weight:400;
  line-height:1.5;
  text-align:left;
  white-space:nowrap;
}
.pagination-info strong{color:inherit;font-weight:500}
.pagination-controls{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex:0 0 auto}
.page-label{display:inline-flex;align-items:center;gap:5px;color:#5f6a78;font-size:13px;white-space:nowrap}
.page-label strong{font-weight:500;color:#202b3a}
.page-arrow{width:24px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#4381d7;border-radius:6px;text-decoration:none;line-height:1;font-size:22px;font-weight:400;transition:background .15s ease,color .15s ease}
.page-arrow:hover{background:#f0f6ff;color:#235fb1}
.page-arrow.disabled{color:#bdc8d8;pointer-events:none}
@media(max-width:600px){
  .pagination-wrap{min-height:0;padding:14px 13px;gap:9px;flex-direction:column;align-items:stretch;border-radius:0 0 13px 13px}
  .pagination-info{font-size:12px;white-space:normal;text-align:left}
  .pagination-controls{width:100%;justify-content:flex-end;gap:13px}
  .page-label{font-size:12px}
  .page-arrow{width:30px;height:30px;font-size:23px}
}
@media(max-width:360px){
  .pagination-wrap{padding:12px 10px}
  .pagination-info{font-size:11px}
  .pagination-controls{gap:10px}
}


/* Subtle floating + pointer tilt for public game cards */
@media (hover: hover) and (pointer: fine) {
  .game-row,
  .sidebar .card {
    --card-tilt-x: 0deg;
    --card-tilt-y: 0deg;
    --card-lift: 0px;
    transform: perspective(1000px) rotateX(var(--card-tilt-y)) rotateY(var(--card-tilt-x)) translateY(var(--card-lift));
    transform-origin: center center;
    transform-style: preserve-3d;
    transition:
      transform 220ms cubic-bezier(.2,.75,.25,1),
      box-shadow 220ms ease,
      background-color 180ms ease,
      border-color 180ms ease;
    will-change: transform;
  }

  .game-row:hover,
  .sidebar .card:hover {
    --card-lift: -3px;
    box-shadow: 0 12px 25px rgba(24, 39, 75, .095);
    position: relative;
    z-index: 4;
  }

  .storage-option {
    transition:
      transform 200ms cubic-bezier(.2,.75,.25,1),
      box-shadow 200ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }
  .storage-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(38, 92, 170, .075);
  }

  .add-button,
  .primary-button,
  .page-arrow {
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }
  .add-button:hover,
  .primary-button:hover {
    box-shadow: 0 5px 12px rgba(57, 127, 232, .19);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-row,
  .sidebar .card,
  .storage-option,
  .add-button,
  .primary-button,
  .page-arrow {
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}


/* Cart list scrolls internally; header and summary stay visible. */
.cart-card {
  min-height: 0;
}
.cart-card .cart-items {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c8d2df transparent;
  padding-right: 5px;
}
.cart-card .cart-items::-webkit-scrollbar {
  width: 5px;
}
.cart-card .cart-items::-webkit-scrollbar-track {
  background: transparent;
}
.cart-card .cart-items::-webkit-scrollbar-thumb {
  background: #c8d2df;
  border-radius: 999px;
}
.cart-card .cart-summary {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .cart-card .cart-items {
    max-height: 250px;
    padding-right: 4px;
  }
}
