.frost-admin-panel {
  min-width: 0;
  padding: clamp(14px, 2.2vw, 30px);
  border: 1px solid #365464;
  background: linear-gradient(132deg, #173342 0, #0b1821 19rem, #0a141c 100%);
  box-shadow: inset 0 1px #98d7e032, inset 0 0 28px #050e15a6;
}
.frost-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .95rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #77919c4f;
}
.frost-admin-heading h2 { margin: 0; color: #e4f6fb; }
.frost-admin-heading small, .balance-entries small { color: #bdd2dd; }
.frost-admin-icon { width: 3.2rem; height: 3.2rem; object-fit: contain; }
.admin-count {
  display: inline-block;
  margin-left: .25em;
  padding: .08em .48em;
  border: 1px solid #ba974d;
  color: #ffe4a1;
  background: #483923;
}
.balance-tabs { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 1.15rem; }
.balance-tabs button[aria-pressed=true] {
  border-color: #9dcddb;
  color: #ecfaff;
  background: #263f50;
  box-shadow: inset 0 -2px #dfa65b;
}
.frost-admin-panel .fields, .balance-fields .fields {
  grid-template-columns: repeat(auto-fit,minmax(min(100%, 10rem),1fr));
  align-items: end;
}
.balance-fields h3, .balance-fields h4 { margin-block: 1rem .5rem; }
.balance-fields h3 { color: #ebd7a4; }
.balance-fields fieldset { margin-block: .6rem; }
.balance-table { width: 100%; }
.balance-table th { white-space: normal; }
.balance-table td:has(input[type=number]) { min-width: 6rem; }
.balance-table th:has(label) { min-width: 12rem; }
.balance-table input[type=number] { width: 100%; min-width: 0; }
.balance-table .balance-invalid { color: #ffb4a2; font-weight: 700; }
.balance-rarities label, .balance-table td label { display: block; }
.balance-rarities input[type=color] { display: block; padding: 3px; width: 3rem; height: 2rem; }
.balance-matrix td, .balance-matrix thead th:not(:first-child) { text-align: center; }
.balance-matrix td input { accent-color: #9cd6e2; width: 18px; height: 18px; }
.balance-entries { display: grid; gap: .5rem; }
.balance-entries > details {
  min-width: 0;
  padding: .55rem .8rem;
  background: #0e222ee6;
  border: 1px solid #375666;
}
.balance-entries > details[open] { border-color: #5a7b8b; }
.balance-entries > details > summary { cursor: pointer; color: #edf5f5; }
.balance-entries > details > summary > span { display: inline-flex; flex-direction: column; vertical-align: middle; }
.balance-entries > details > summary .balance-frame-image { margin-inline: .35rem .65rem; }
.balance-frame-image { display: inline-block; vertical-align: middle; width: 2.1rem; height: 2.7rem; object-fit: contain; }
.balance-pool { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.balance-pool label { background: #132d39; padding: .4rem; border: 1px solid #395764; }
.balance-asset { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding-block: .55rem; }
.balance-asset label { min-width: 0; overflow-wrap: anywhere; }
.balance-asset-image { width: 4.4rem; height: 4.4rem; object-fit: contain; }
.balance-footer { padding-top: .8rem; margin-top: 1rem; border-top: 1px solid #7596a25c; }
.balance-footer output { color: #e3c88a; }
.balance-review-table { max-height: 48vh; overflow: auto; }
.balance-review-table td { min-width: 7rem; white-space: normal; overflow-wrap: anywhere; }
.player-table .numeric { text-align: right; }
.player-table th:first-child { min-width: 12rem; }
.player-identity { display: inline-flex; align-items: center; gap: .55rem; }
.player-identity small { display: block; color: #f3bb91; }
.gameplay-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  border: 1px solid #8a9fa9;
  background: #1b3847;
  color: #e9f9ff;
  font-weight: 700;
}
.gameplay-avatar-image { width: 100%; height: 100%; object-fit: cover; }
.player-modal-heading { margin-bottom: .8rem; }
.player-collection { margin-top: 1rem; }
.admin-player-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%, 10rem),1fr));
  gap: .6rem;
  margin-top: .7rem;
}
.meme-submission-layout { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 15rem),1fr)); gap: .7rem; }
.meme-submission-preview { margin: 0; background: #0a1823; }
.meme-submission-preview img { width: 100%; max-height: 17rem; object-fit: contain; }
.meme-inbox { display: grid; gap: .7rem; }
.meme-inbox-item {
  display: grid;
  grid-template-columns: minmax(4rem, 7rem) minmax(0,1fr);
  align-items: start;
  gap: .8rem;
  padding: .6rem;
  border: 1px solid #3b5f6d;
  background: #0c202a;
}
.meme-inbox-item h3, .meme-inbox-item p { margin-block: .12rem .45rem; overflow-wrap: anywhere; }
.meme-inbox-image { width: 100%; height: 6rem; object-fit: contain; background: #06121a; }
.meme-status[data-status=pending] { color: #ffdf97; }
.meme-status[data-status=approved] { color: #abe1c8; }
.meme-status[data-status=rejected] { color: #fac0a8; }
.meme-review-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
.legacy-mark { color: #e5cc98; border: 1px solid #826e45; padding: .08em .35em; }
@media (max-width: 720px) {
  .balance-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
  .balance-tabs button { white-space: nowrap; }
  .meme-review-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.pack-stations {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr));
  gap: clamp(.65rem,1.3vw,1.15rem);
  margin-bottom: 1.4rem;
}
.pack-station {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(.7rem,1.3vw,1.1rem);
  border: 1px solid #446273;
  background: linear-gradient(150deg,#173344,#0b1924 50%,#08131d);
  box-shadow: inset 0 1px #98d7e032;
}
.pack-station[data-pack-kind=seasonal] { border-color: #9c8052; }
.pack-station-art { width: 100%; height: clamp(7rem,15vh,8.5rem); object-fit: contain; }
.pack-station header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.pack-station h2 { font-size: 1.2rem; margin-block: .35rem; }
.pack-station header strong { color: #e6ca8c; }
.pack-station > p { margin-block: .35rem .5rem; }
.pack-rarity-list { display: flex; flex-wrap: wrap; gap: .28rem; list-style: none; padding: 0; margin: .35rem 0 .7rem; }
.pack-rarity-list li { font-size: .73rem; padding: .18rem .3rem; color: var(--rarity,#d4e4ee); border: 1px solid #4d6674; }
.pack-station-details { margin-top: auto; margin-bottom: .35rem; padding-top: .55rem; }
.pack-station-details div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .5rem; border-top: 1px solid #304a5a; padding-block: .25rem; }
.pack-station-details dt { color: #a9bfce; }
.pack-station-details dd { margin: 0; }
.pack-station .actions { margin-top: .5rem; }
.pack-receipt-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .55rem;
  width: min(100%,42rem);
  margin-inline: auto;
}
.pack-receipt-cards.multiple { grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)); width: 100%; }
#reveal-dialog[data-compact=true] .reveal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 44rem; }
.balance-pack-frames { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
.balance-pack-frames > div { display: flex; align-items: center; gap: .4rem; }
.balance-pack-frames input[type=number] { width: 5rem; }
@media (max-width: 680px) {
  .pack-station .actions > button { flex: 1 1 auto; }
}

/* SKIP_CARDS_PACK_SHOP_FROST_V1_BEGIN */
/* Presentation only. The game state and all data-do handlers stay in packs.js. */
html[data-theme="frost"] body:has(#content .pack-stations) {
  background: linear-gradient(180deg,#07131c85 0%,#07121bb8 56%,#07121bee 100%),
    url('/assets/backgrounds/cold-data-center.webp') center top / cover fixed no-repeat;
  background-color:#08131c;
}
html[data-theme="frost"] #content:has(.pack-stations) > .page-head {
  position:relative; isolation:isolate; min-height:100px;
  padding:12px 19px 15px; margin-bottom:18px;
  border:0; border-bottom:1px solid #477186;
  background:linear-gradient(90deg,#0d2536b5,transparent 70%);
}
html[data-theme="frost"] #content:has(.pack-stations) > .page-head::after {
  content:""; position:absolute; inset:auto 0 -1px 0; height:2px;
  background:linear-gradient(90deg,#80d8f4, #42778e 34%, transparent 85%); pointer-events:none;
}
html[data-theme="frost"] #content:has(.pack-stations) > .page-head h1 {
  font:750 clamp(32px,3.8vw,48px)/1.12 var(--display); letter-spacing:.035em;
  color:#e7f7ff; text-shadow:0 0 16px #72d6ff40;
}
html[data-theme="frost"] #content:has(.pack-stations) > .page-head .lede {
  margin:7px 0 0; color:#add4e6; font:500 14px/1.35 var(--display);
}
html[data-theme="frost"] #content:has(.pack-stations) > .page-head .section-insignia {
  width:82px; height:76px; filter:drop-shadow(0 0 10px #66d8ff55);
}
html[data-theme="frost"] #content .pack-stations {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:stretch; gap:clamp(10px,1.2vw,17px); margin:0 0 23px;
}
html[data-theme="frost"] #content .pack-station {
  --pack-light:#8edff8; --pack-rgb:86,186,225; --pack-button:#185a76;
  position:relative; isolation:isolate; min-width:0;
  display:flex; flex-direction:column; gap:0; padding:7px 9px 9px;
  border:solid transparent; border-width:15px 13px 20px;
  border-image:url('/assets/ui/station/side-frame.png') 28 28 44 28 stretch;
  border-radius:0;
  background:linear-gradient(180deg,rgba(var(--pack-rgb),.13),transparent 37%),#091722f2;
  background-clip:padding-box; overflow:visible;
  box-shadow:inset 0 0 0 1px #45758b55;
}
html[data-theme="frost"] #content .pack-station[data-pack-kind="advanced"] {
  --pack-light:#83f2d9; --pack-rgb:40,205,186; --pack-button:#17665f;
}
html[data-theme="frost"] #content .pack-station[data-pack-kind="elite"] {
  --pack-light:#f5d399; --pack-rgb:224,160,63; --pack-button:#6e4924;
}
html[data-theme="frost"] #content .pack-station[data-pack-kind="seasonal"] {
  --pack-light:#b6f1ff; --pack-rgb:99,208,255; --pack-button:#235e85;
  background:linear-gradient(180deg,#163d5399,transparent 60%),#091722f5;
  background-clip:padding-box;
  box-shadow:inset 0 0 0 1px #80dfff99,inset 0 0 26px #45cfff15;
}
/* Art is the existing pack image, not a flattened screenshot of the UI. */
html[data-theme="frost"] #content .pack-station .pack-station-display {
  position:relative; isolation:isolate; display:grid; place-items:center;
  min-width:0; height:clamp(135px,11vw,165px); margin:-1px -5px 8px;
  background:radial-gradient(ellipse at 50% 77%,rgba(var(--pack-rgb),.26),transparent 67%),
    linear-gradient(180deg,#07131c33,#0d233155); overflow:hidden;
  border-bottom:1px solid rgba(var(--pack-rgb),.4);
}
html[data-theme="frost"] #content .pack-station .pack-station-display::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:repeating-linear-gradient(90deg,transparent 0 29px,#89def009 30px 31px),
    repeating-linear-gradient(0deg,transparent 0 29px,#89def009 30px 31px);
  mask-image:linear-gradient(transparent,#000);
}
html[data-theme="frost"] #content .pack-station .pack-station-display::after {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:auto 8% 2px; height:43%;
  background:radial-gradient(ellipse at 50% 86%,rgba(var(--pack-rgb),.28),transparent 70%),
    url('/assets/decor/frost-traces.webp') center bottom / 100% 48% no-repeat;
  opacity:.8;
}
html[data-theme="frost"] #content .pack-station .pack-station-art {
  position:relative; display:block; width:100%; height:100%; min-height:0;
  max-width:none; max-height:100%; margin:0; padding:8px 8px 11px;
  object-fit:contain; object-position:center;
  filter:drop-shadow(0 8px 8px #000b) drop-shadow(0 0 10px rgba(var(--pack-rgb),.2));
}
html[data-theme="frost"] #content .pack-station[data-pack-kind="standard"] .pack-station-art {padding:2px 8px 9px;}
html[data-theme="frost"] #content .pack-station > header {
  display:grid; grid-template-columns:minmax(0,1fr); justify-items:center;
  align-content:start; gap:7px; min-height:76px; margin:0 0 4px; padding:0;
  border:0; text-align:center; background:none;
}
html[data-theme="frost"] #content .pack-station > header h2 {
  font:750 clamp(16px,1.32vw,20px)/1.18 var(--display); margin:0;
  display:grid; align-content:center; min-height:40px;
  color:#e9f8ff; letter-spacing:-.02em; text-transform:uppercase; overflow-wrap:anywhere;
}
html[data-theme="frost"] #content .pack-station > header strong {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:28px;
  max-width:100%; padding:3px 14px; margin:0; border:1px solid rgba(var(--pack-rgb),.62);
  border-radius:5px; background:linear-gradient(#173447,#0a1a26); color:var(--pack-light);
  font:750 13px/1.2 var(--display); text-align:center; overflow-wrap:anywhere;
  box-shadow:inset 0 0 7px rgba(var(--pack-rgb),.13);
}
html[data-theme="frost"] #content .pack-station[data-pack-currency="skc"] > header strong::before,
html[data-theme="frost"] #content .pack-station[data-pack-currency="lm"] > header strong::before {
  content:""; width:20px; height:20px; flex:none; background:center/contain no-repeat;
}
html[data-theme="frost"] #content .pack-station[data-pack-currency="skc"] > header strong::before {background-image:url('/assets/icons/currency/skipcoin.webp');}
html[data-theme="frost"] #content .pack-station[data-pack-currency="lm"] > header strong::before {background-image:url('/assets/icons/currency/legendary-coin.webp');}
html[data-theme="frost"] #content .pack-station[data-pack-currency="lm"] > header strong {color:#f5d399;}
html[data-theme="frost"] #content .pack-station > p {font:400 13px/1.44 var(--body); color:#c2d7e3; margin:0 0 10px; min-height:38px;}
html[data-theme="frost"] #content .pack-station > p.muted {min-height:0; margin:0 0 8px; color:#f1c79e;}
html[data-theme="frost"] #content .pack-station .pack-rarity-list {
  display:flex; flex-wrap:wrap; align-content:start; align-items:flex-start;
  list-style:none; gap:4px; padding:0; margin:0 0 12px; min-height:66px;
}
html[data-theme="frost"] #content .pack-station .pack-rarity-list li {
  display:inline-flex; align-items:center; padding:3px 5px; margin:0;
  font:500 10px/1.2 var(--body); color:var(--rarity,#bdd0dc);
  border:1px solid color-mix(in srgb,var(--rarity,#8da8bc) 35%,transparent);
  border-radius:4px; background:color-mix(in srgb,var(--rarity,#8da8bc) 7%,#0a1722);
  white-space:normal; overflow-wrap:anywhere;
}
html[data-theme="frost"] #content .pack-station .pack-station-details {
  display:flex; flex-direction:column; justify-content:flex-start; min-height:83px;
  border-top:1px solid #36596b; border-bottom:0; padding:3px 0 0; margin:auto 0 10px;
}
html[data-theme="frost"] #content .pack-station .pack-station-details > div {
  display:flex; align-items:baseline; justify-content:space-between; gap:5px;
  padding:5px 0; border-bottom:1px solid #36596b65; min-width:0;
}
html[data-theme="frost"] #content .pack-station .pack-station-details dt {font:500 12px/1.2 var(--body); color:#a3c4d6; min-width:0;}
html[data-theme="frost"] #content .pack-station .pack-station-details dd {font:650 12px/1.2 var(--body); color:#e2f5ff; margin:0; text-align:right; min-width:0; overflow-wrap:anywhere;}
html[data-theme="frost"] #content .pack-station .pack-station-details dd.numeric {font-family:var(--numbers); color:var(--pack-light);}
html[data-theme="frost"] #content .pack-station > .actions {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; align-items:stretch; margin:0; padding:0;
}
html[data-theme="frost"] #content .pack-station > .actions button {
  position:relative; isolation:isolate; min-width:0; width:100%; min-height:39px;
  padding:7px 5px; border:0; border-radius:0;
  clip-path:polygon(7px 0,calc(100% - 7px) 0,100% 7px,100% calc(100% - 7px),calc(100% - 7px) 100%,7px 100%,0 calc(100% - 7px),0 7px);
  background:linear-gradient(180deg,#7ba6b7,#315365 50%,#567b90); color:#e4f6ff;
  font:700 12px/1.25 var(--display); text-align:center; text-transform:uppercase;
  text-shadow:0 1px 2px #000b; white-space:normal; overflow-wrap:anywhere;
}
html[data-theme="frost"] #content .pack-station > .actions button::before {
  content:""; position:absolute; inset:1px; z-index:-1; pointer-events:none;
  clip-path:inherit; background:linear-gradient(180deg,#193747,#0a1925 72%,#142c3c);
}
html[data-theme="frost"] #content .pack-station > .actions [data-do="instant-pack"] {
  grid-column:1/-1; min-height:47px; font-size:13px;
  background:linear-gradient(180deg,#d7f6ff,var(--pack-light) 35%,#315565 53%,var(--pack-light));
}
html[data-theme="frost"] #content .pack-station > .actions [data-do="instant-pack"]::before {
  inset:2px; background:linear-gradient(180deg,rgba(var(--pack-rgb),.3),transparent 46%,rgba(var(--pack-rgb),.12)),linear-gradient(180deg,var(--pack-button),#0b2130 95%);
  box-shadow:inset 0 0 10px rgba(var(--pack-rgb),.45);
}
html[data-theme="frost"] #content .pack-station > .actions button:hover:not(:disabled) {filter:brightness(1.23);color:#fff;}
html[data-theme="frost"] #content .pack-station > .actions button:focus-visible {outline:none;filter:brightness(1.35);box-shadow:inset 0 0 0 3px #fff;}
html[data-theme="frost"] #content .pack-station > .actions button:disabled {opacity:.46;filter:saturate(.55);}
/* Match the quest board to the shop; existing radio tabs and claim handlers remain unchanged. */
html[data-theme="frost"] #content:has(.pack-stations) .frost-quest-board {margin:20px 0 30px; padding:7px 14px 14px;}
html[data-theme="frost"] #content:has(.pack-stations) .fq-header {min-height:96px; padding:7px 10px 14px;background:radial-gradient(ellipse at 90% 55%,#266f8c46,transparent 62%),linear-gradient(90deg,#102b3c70,#0a1b29);}
html[data-theme="frost"] #content:has(.pack-stations) .fq-header h2 {font-size:clamp(23px,2.7vw,34px);}
html[data-theme="frost"] #content:has(.pack-stations) .fq-tabs label {min-width:145px;text-align:center;border-color:#416478;background:linear-gradient(#153142,#0c1d29);border-radius:4px;}
html[data-theme="frost"] #content:has(.pack-stations) #fq-tab-day:checked~.fq-tabs label[for="fq-tab-day"],
html[data-theme="frost"] #content:has(.pack-stations) #fq-tab-week:checked~.fq-tabs label[for="fq-tab-week"] {background:linear-gradient(#20586d,#102c3c);color:#e6faff;border-color:#84d5ec;box-shadow:inset 0 0 9px #67d9ff30;}
html[data-theme="frost"] #content:has(.pack-stations) .fq-tabs label:hover {border-color:#9cdaeb;}
html[data-theme="frost"] #content:has(.pack-stations) .fq-task {border-color:#446c81;background:linear-gradient(115deg,#153243,#0b1925 65%);box-shadow:inset 0 0 0 1px #8cd8ff0b;}
html[data-theme="frost"] #content:has(.pack-stations) .fq-task[data-status="ready"] {border-color:#c3a76a;}
@media (max-width:1090px) {
  html[data-theme="frost"] #content .pack-stations {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-theme="frost"] #content .pack-station .pack-station-display {height:175px;}
  html[data-theme="frost"] #content .pack-station > header {min-height:65px;}
  html[data-theme="frost"] #content .pack-station > header h2 {min-height:29px;font-size:20px;}
  html[data-theme="frost"] #content .pack-station .pack-rarity-list {min-height:44px;}
}
@media (max-width:720px) {
  html[data-theme="frost"] body:has(#content .pack-stations) {background-attachment:scroll;}
  html[data-theme="frost"] #content:has(.pack-stations) > .page-head {min-height:75px;padding:8px 9px 11px;}
  html[data-theme="frost"] #content .pack-station {padding:6px;border-width:13px 11px 17px;}
}
@media (max-width:510px) {
  html[data-theme="frost"] #content .pack-stations {grid-template-columns:minmax(0,1fr);gap:10px;}
  html[data-theme="frost"] #content .pack-station .pack-station-display {height:160px;}
  html[data-theme="frost"] #content .pack-station > header,html[data-theme="frost"] #content .pack-station > p,html[data-theme="frost"] #content .pack-station .pack-rarity-list,html[data-theme="frost"] #content .pack-station .pack-station-details {min-height:0;}
  html[data-theme="frost"] #content .pack-station > .actions button {min-height:44px;}
  html[data-theme="frost"] #content:has(.pack-stations) .fq-tabs label {min-width:0;flex:1;}
}
/* SKIP_CARDS_PACK_SHOP_FROST_V1_END */
