#main-menu.night-menu #panel-chassis.night-supply { background:#091820; font:14px/1.4 var(--ui-font); }
#main-menu.night-menu .night-supply .shop-header { min-height:82px; padding:14px 28px; background:#10232bd9; }
#main-menu.night-menu .night-supply .shop-heading h2 { font:800 40px/1 var(--ui-display); letter-spacing:.04em; }
#main-menu.night-menu .night-supply .shop-back { min-height:48px; min-width:160px; justify-content:center; font:800 18px var(--ui-display); }
#main-menu.night-menu .night-supply .shop-content { display:flex; overflow:hidden; background:radial-gradient(ellipse at 50% 0,#28576288,transparent 70%),repeating-linear-gradient(135deg,#152c361a 0 80px,transparent 80px 170px); }
.supply-content { display:flex; flex-direction:column; justify-content:center; width:min(1180px,100%); height:100%; min-height:0; margin:auto; padding:20px 28px 24px; }
.supply-intro { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:16px; }
.supply-intro>span { font:11px var(--ui-mono); letter-spacing:.16em; color:#81d7cf; }
.supply-intro p { margin:0; color:#a2bac1; font-size:12px; }
.supply-grid { display:grid; flex:1; min-height:0; max-height:620px; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:18px; }
.supply-card { --supply-accent:#f5ca77; position:relative; isolation:isolate; display:flex; flex-direction:column; min-width:0; min-height:0; padding:18px; border:1px solid #506a70; border-top:3px solid var(--supply-accent); background:linear-gradient(145deg,#1d3540f0,#0b1a23 65%); box-shadow:0 12px 24px #0003,inset 0 -3px #071119; }
.supply-card::before { content:''; position:absolute; inset:7px; z-index:-1; pointer-events:none; background:linear-gradient(var(--supply-accent),var(--supply-accent)) top right/12px 1px no-repeat,linear-gradient(var(--supply-accent),var(--supply-accent)) top right/1px 12px no-repeat; opacity:.5; }
.supply-trial { --supply-accent:#81d7cf; }.supply-match { --supply-accent:#ff9868; }
.supply-card header { display:flex; align-items:center; justify-content:space-between; gap:6px; font:9px var(--ui-mono); letter-spacing:.08em; }
.supply-tag { color:var(--supply-accent); }.supply-card-state { color:#abc0c5; }
.supply-art { position:relative; display:flex; align-items:center; justify-content:center; flex:1 1 170px; min-height:0; max-height:170px; overflow:hidden; margin:6px -6px; background:radial-gradient(ellipse at center,#7d927326,transparent 68%); }
.supply-art::after { content:''; position:absolute; bottom:12px; width:70%; height:12px; border:1px solid #79939445; border-radius:50%; background:#66cfc609; }
.supply-credit-art svg { width:116px; height:116px; max-height:100%; transform:translateX(-23px) rotate(-9deg); filter:drop-shadow(0 10px 12px #0007); }
.supply-art-value { position:absolute; left:48%; top:40%; color:#ffdc94; font:800 clamp(34px,5vw,54px)/.9 var(--ui-display); text-shadow:0 4px 12px #071019; }
.supply-part-art { overflow:hidden; }
.supply-part-art img { width:100%; height:100%; min-height:0; object-fit:contain; transform:scale(1.2); filter:drop-shadow(0 12px 9px #0008); }
.supply-multiplier-art svg { width:106px; height:106px; max-height:100%; transform:translate(26px,2px) rotate(8deg); opacity:.65; }
.supply-multiplier-art>span { position:absolute; left:calc(50% - 50px); top:5%; color:#ffd39c; font:800 clamp(48px,12dvh,108px)/1 var(--ui-display); text-shadow:0 5px 18px #06151d; }
#main-menu.night-menu .supply-card h3 { margin:5px 0 6px; color:#e4f2ee; font:800 26px/1.1 var(--ui-display); text-transform:uppercase; letter-spacing:.02em; }
.supply-copy { min-height:32px; margin:0 0 14px; color:#b0c6cc; font:12px/1.4 var(--ui-font); }
.supply-trial-info { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 8px; flex:none; min-width:0; margin:0 0 12px; color:#a0d9d3; font:10px/1.3 var(--ui-mono); }
.supply-trial-info [data-trial-reset] { color:#f5ca77; }
.supply-actions { display:grid; gap:7px; flex:none; min-width:0; margin-top:auto; }
#main-menu.night-menu #panel-chassis.night-supply .supply-actions>.reward-action { width:100%; min-height:50px; padding:10px; border:1px solid #ffb28a; background:#ff9868; color:#162127; font:800 20px/1.1 var(--ui-display); text-transform:uppercase; letter-spacing:.03em; }
#main-menu.night-menu #panel-chassis.night-supply .supply-actions>.reward-action:hover:not(:disabled) { background:#ffb08b; border-color:#ffc5a7; color:#162127; }
#main-menu.night-menu #panel-chassis.night-supply .supply-actions>.reward-action:disabled { background:#22363e; color:#8da3a9; border-color:#4c626a; opacity:1; }
.supply-actions .reward-feedback { font-size:11px; line-height:1.4; color:#8fdbbf; }
.supply-footnote { margin-top:10px; text-align:center; color:#8ea5ae; font:10px/1.3 var(--ui-font); }
.supply-match[data-available=false] .supply-art { opacity:.4; filter:grayscale(1); }
#main-menu.night-menu .night-supply .shop-footer { display:flex; justify-content:space-between; gap:12px; padding:10px 28px; font:10px var(--ui-mono); color:#8ba8ad; }
.supply-offline { padding:60px 20px; text-align:center; }.supply-offline h3 { font:32px var(--ui-display); }
/* Size the cards to the frame; decoration yields before any action does. */
@media(max-height:700px),(max-width:900px) {
  #main-menu.night-menu .night-supply .shop-header { min-height:68px; padding:10px 20px; }
  #main-menu.night-menu .night-supply .shop-heading h2 { font-size:32px; }
  .supply-content { padding:12px 20px; }.supply-intro { margin-bottom:10px; }.supply-grid { gap:12px; }.supply-card { padding:12px; }
  #main-menu.night-menu .supply-card h3 { font-size:clamp(18px,2.6vw,23px); }.supply-copy { font-size:11px;margin-bottom:8px;min-height:28px; }
  .supply-trial-info { margin-bottom:8px; }.supply-footnote { font-size:9px;margin-top:6px; }
  #main-menu.night-menu #panel-chassis.night-supply .supply-actions>.reward-action { min-height:42px; padding:8px; font-size:18px; }
}
@media(max-width:720px) {
  #main-menu.night-menu .night-supply .shop-header { gap:14px;padding:8px 12px;min-height:60px; }
  #main-menu.night-menu .night-supply .shop-back { min-width:44px;padding:8px; }.night-supply .shop-back-label { display:none; }
  .night-supply .shop-heading { padding-left:0;border:0; }.night-supply .shop-wallet { gap:5px;flex-direction:column; }.night-supply .shop-wallet strong { font-size:20px; }
  #main-menu.night-menu .night-supply .shop-heading h2 { font-size:30px; }
  .supply-content { padding:8px; }.supply-grid { gap:8px; }.supply-card { padding:10px; }
  .supply-intro,.supply-copy,.supply-footnote { display:none; }
  #main-menu.night-menu .night-supply .shop-footer { display:none; }
  .supply-actions .reward-ad-action { gap:5px; }.supply-actions .reward-ad-icon { padding:2px 3px; }.supply-actions .reward-ad-icon svg { width:16px;height:15px; }
}
@media(max-height:500px) {
  #main-menu.night-menu .night-supply .shop-header { min-height:54px;padding:6px 12px;gap:14px; }
  #main-menu.night-menu .night-supply .shop-back { min-height:40px;min-width:44px;padding:6px 10px; }
  #main-menu.night-menu .night-supply .shop-heading h2 { font-size:28px; }
  .supply-content { padding:8px; }.supply-grid { gap:8px; }.supply-card { padding:10px; }
  .supply-intro,.supply-copy,.supply-footnote { display:none; }
  #main-menu.night-menu .night-supply .shop-footer { display:none; }
  .supply-actions { gap:4px; }.supply-actions .reward-feedback { font-size:11px;line-height:1.2; }
}
@media(max-height:360px) { .supply-art { display:none; }.supply-card header { margin-bottom:6px; } }
/* Portrait frames show three complete rows instead of a horizontal carousel. */
@media(max-width:599px) {
  .supply-grid { grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));max-height:none; }
  .supply-card { display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;column-gap:12px;row-gap:4px; }
  .supply-card header { display:none; }
  .supply-art { grid-column:1;grid-row:1/4;align-self:center;width:72px;height:100%;max-height:100px;margin:0; }
  .supply-credit-art svg { width:66px;transform:translateY(-8px); }.supply-art-value { left:0;top:auto;bottom:0;width:100%;text-align:center;font-size:32px; }
  .supply-multiplier-art svg { width:64px;transform:none; }.supply-multiplier-art>span { left:0;top:20%;width:100%;text-align:center;font-size:58px; }
  #main-menu.night-menu .supply-card h3 { grid-column:2;grid-row:1;margin:0;font-size:21px; }
  .supply-trial-info { grid-column:2;grid-row:2;align-self:center;margin:0; }
  .supply-actions { grid-column:2;grid-row:3;margin:0; }
}
/* Very short/narrow frames keep names, the hourly countdown, ad labels and actions. */
@media(max-width:599px) and (max-height:599px) {
  .supply-card { grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;column-gap:8px;padding:8px; }
  .supply-art { display:none; }
  #main-menu.night-menu .supply-card h3 { grid-column:1;grid-row:1;align-self:center;font-size:19px; }
  .supply-trial-info { grid-column:1;grid-row:2;font-size:10px; }
  .supply-trial-info [data-trial-slot] { display:none; }
  .supply-actions { grid-column:2;grid-row:1/3;align-self:center; }
  #main-menu.night-menu #panel-chassis.night-supply .supply-actions>.reward-action { min-height:40px;padding:5px;font-size:17px; }
}
@media(max-width:599px) and (max-height:400px) {
  #main-menu.night-menu .night-supply .shop-header { min-height:46px;padding:3px 8px; }
  .supply-card { padding:5px 6px; }.supply-grid { gap:5px; }.supply-content { padding:5px; }
  .supply-actions .reward-feedback { font-size:10px; }
}
/* Give feedback the full card width in the shortest frames, including banners. */
@media(max-width:599px) and (max-height:360px) {
  #main-menu.night-menu .supply-card:has(.reward-feedback:not(:empty)) { grid-template-rows:minmax(0,1fr) auto;row-gap:2px;padding:3px 6px; }
  .supply-card:has(.reward-feedback:not(:empty)) .supply-trial-info { display:none; }
  #main-menu.night-menu .supply-card:has(.reward-feedback:not(:empty)) h3 { font-size:16px; }
  .supply-card:has(.reward-feedback:not(:empty)) .supply-actions { display:contents; }
  #main-menu.night-menu #panel-chassis.night-supply .supply-actions:has(.reward-feedback:not(:empty))>.reward-action { grid-column:2;grid-row:1;align-self:center;min-height:32px;padding:3px;font-size:15px; }
  .supply-actions .reward-feedback:not(:empty) { grid-column:1/-1;grid-row:2;margin:0; }
}
