main > section[hidden] { display: none; }
.navigation { justify-content: flex-start; overflow-x: auto; }
.navigation a, .navigation button { flex: none; }
.catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 20px; }
.star-window {
  display: grid; position: relative; isolation: isolate; place-items: center;
  aspect-ratio: 1.7; overflow: hidden; border-radius: 22px 22px 6px 6px;
  background: radial-gradient(ellipse at 37% 122%,color-mix(in srgb,var(--card-color) 65%,#111322),transparent 68%),
              linear-gradient(133deg,#0a0d19 0%,color-mix(in srgb,var(--card-color) 14%,#0e101e) 72%,#090d1c);
}
.star-dust {
  position: absolute; inset: -15%; opacity: .72;
  background-image: radial-gradient(1.4px 1.4px at 20% 30%,#fffc 80%,transparent),
                    radial-gradient(1px 1px at 70% 68%,#bbd9ff 80%,transparent),
                    radial-gradient(1.7px 1.7px at 51% 14%,var(--card-color) 70%,transparent);
  background-size: 79px 67px, 49px 83px, 183px 113px;
  transition: transform .65s ease;
}
.planet-limb {
  position: absolute; bottom: -108%; left: -25%; width: 166%; height: 132%; border-radius: 50%;
  transform: rotate(-13deg); background: linear-gradient(180deg,color-mix(in srgb,var(--card-color) 30%,#151529),#10101b 32%);
  box-shadow: 0 -1px 1px #faf4ff,0 -4px 17px var(--card-color),0 -15px 46px color-mix(in srgb,var(--card-color) 50%,transparent);
}
.product:nth-child(3n+2) .planet-limb { transform: rotate(13deg); left: -40%; }
.track { position: absolute; width: 87%; height: 45%; border: 1px solid #e4e7ff24; border-radius: 50%; transform: rotate(-21deg); }
.track i { position: absolute; inset: -2px; border-radius: inherit; }
.track i::after {
  content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px var(--card-color); offset-path: ellipse(49% 49% at 50% 50%); animation: drift 12s linear infinite;
}
.product:nth-child(even) .track i::after { animation-delay: -5s; }
.game-mark { display: block; position: relative; width: 65%; height: 47%; object-fit: contain; filter: drop-shadow(0 5px 12px #000c); transition: transform .45s; }
.product-main:is(:hover,:focus-visible) .game-mark { transform: translateY(-4px) scale(1.09); }
.product-main:is(:hover,:focus-visible) .star-dust { transform: translate(3%, -4%); }
.product-name { display:block; margin: 12px 3px 2px; }
.product-subtitle { margin-left: 3px; }
.favorite { border-radius: 50%; background: #101321a8; }
@keyframes drift { to { offset-distance: 100%; } }
dialog:has(.product-sheet) { width: min(760px,calc(100% - 24px)); }
.sheet-title { display: flex; align-items: center; gap: 20px; padding: 8px 0 20px; }
.sheet-title .game-mark { width: 96px; height: 56px; flex: none; }
.sheet-title #modal-title { margin: 2px 0; }
.sheet-title p, .sale-note, .opt-copy small { color: #b5b5c8; }
.sheet-title p { margin: 3px 0; }
.field-guide { border-left: 3px solid var(--card-color); background: #202331; padding: 13px 17px; border-radius: 0 12px 12px 0; }
.field-guide summary { font-weight: 700; cursor: pointer; }
.field-guide p { color: #d0cfdf; line-height: 1.6; margin: 8px 0 0; }
.product-sheet h3 { margin: 24px 0 10px; }
.pack-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.pack { display: flex; gap: 8px; align-items: center; justify-content: space-between; border: 1px solid #393949; background: #20212e; padding: 12px; border-radius: 12px; }
.pack.selected { border-color: var(--card-color); background: color-mix(in srgb,var(--card-color) 9%,#20212e); }
.pack-label { font-size: 14px; font-weight: 700; }
.counter { display: inline-flex; gap: 3px; align-items: center; flex: none; }
.counter button { background: #323342; border-radius: 9px; min-width: 34px; height: 38px; color: #fff; font-size: 20px; }
.counter button:disabled { opacity: .32; }
.counter output { width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.selection-summary { border-top: 1px solid #393949; margin-top: 16px; padding-top: 15px; font-weight: 700; }
.sale-note { font-size: 13px; margin-bottom: 0; }
.opt-portal { position: relative; isolation: isolate; overflow: hidden; margin: 24px auto; min-height: 380px; border-radius: 24px; display: flex; align-items: center; padding: clamp(26px,5vw,76px); background: radial-gradient(ellipse at 81% 58%,#4c3067,transparent 55%),#101320; }
.opt-art { position: absolute; right: -5%; top: 8%; height: 85%; width: 55%; display: grid; place-items: center; z-index: -1; }
.opt-art i { position: absolute; width: 86%; height: 45%; border: 1px solid #e3c6ff77; border-radius: 50%; transform: rotate(-27deg); }
.opt-art i:nth-child(2) { transform: rotate(27deg); }
.opt-art i:nth-child(3) { transform: rotate(90deg); }
.opt-art b { font-size: clamp(54px,9vw,130px); color: #efe4ff; text-shadow: 0 0 35px #a679ff; animation: pulsar 4s ease-in-out infinite alternate; }
@keyframes pulsar { to { transform: scale(.83) rotate(14deg); } }
.opt-copy { max-width: 52%; }
.opt-copy h1 { font-size: clamp(48px,7vw,86px); margin: 6px 0; line-height: 1.06; letter-spacing: -.05em; }
.opt-copy h1 span { color: #b69bff; }
.opt-copy p { line-height: 1.6; }
.opt-copy small { display: block; margin-top: 9px; }
@media(max-width:760px) { .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 10px; } .star-window { aspect-ratio: 1.3; } }
@media(max-width:560px) {
  .pack-list { grid-template-columns: 1fr; } .counter button { height: 44px; width: 44px; }
  .sheet-title { gap: 12px; } .sheet-title .game-mark { width: 70px; }
  .opt-copy { max-width: 100%; } .opt-portal { min-height: 350px; align-items: flex-end; } .opt-art { top: -15%; right: -13%; height: 72%; opacity: .5; }
}
.motion-off :is(.track i::after,.opt-art b) { animation: none; }
.motion-off .track i::after { animation: none; }
.motion-off .product-main .game-mark, .motion-off .product-main .star-dust { transform: none; transition: none; }
@media(prefers-reduced-motion: reduce) { .track i::after,.opt-art b { animation: none; } .game-mark,.star-dust { transition: none; } }


.item-art { flex:none; width:56px; height:56px; background-image:url("assets/items.webp"); background-size:400% 300%; border-radius:11px; }
.shop-field { display:grid; gap:5px; font-size:14px; margin:12px 0; color:#dedcea; }
.shop-field[hidden]{display:none}
.shop-field input,.shop-field select { box-sizing:border-box;width:100%;min-width:0;border:1px solid #56546e;border-radius:10px;background:#121421;color:#f2f1fd;padding:11px 12px;font:inherit;font-size:16px; }
.quick-picks { display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px; }
.quick-picks button,.score-picks span { display:inline-block;border:1px solid #615581;border-radius:10px;padding:9px 12px;background:#282336;color:#f1eafe; }
.quick-picks button:hover,.quick-picks button:focus-visible,.score-picks input:checked+span { background:#54416f; }
.pack { gap:5px;padding:8px; }
.pack-choice { min-width:0; flex:1; display:flex; align-items:center; gap:9px; text-align:left; color:inherit; padding:0; }
.pack-choice strong { overflow-wrap:anywhere;font-size:14px; }
.config-result { color:#cfb7ff;line-height:1.5; }
.config-result:empty {display:none}
.help-topics { display:grid;gap:8px;margin:16px 0 24px; }
.help-topics .field-guide { border-color:#ab8df3; }
.ratings-list { padding:0;list-style:none; }
.ratings-list li { display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #414051; }
.score-picks { border:0;padding:0;display:flex;flex-wrap:wrap;gap:5px;margin:16px 0; }
.score-picks legend { margin-bottom:6px; }
.score-picks label { position:relative;cursor:pointer; }
.score-picks input { position:absolute;opacity:0; }
.score-picks input:focus-visible+span { outline:2px solid white; }
.product-sheet:has([name="amount"]) .sheet-title::before,.product-sheet:has([name="game"]) .sheet-title::before { content:'';width:72px;height:72px;flex:none;border-radius:12px;background:url("assets/items.webp") 0 0 / 400% 300%; }
.product-sheet:has([name="game"]) .sheet-title::before {background-position:66.6667% 0}
.product-sheet:has([name="amount"]) .sheet-title .game-mark,.product-sheet:has([name="game"]) .sheet-title .game-mark {display:none}

.gift-shelf {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 16px}
.gift-shelf button {display:flex;align-items:center;gap:8px;text-align:left;border-radius:10px;background:#232437;color:#ede9fd;padding:7px}
.gift-shelf .item-art {height:34px;width:34px}
.gift-shelf button:hover,.gift-shelf button:focus-visible {background:#403452}
.help-link {color:#d3b8ff;text-decoration:underline;padding:4px 0}
@media(max-width:550px){.gift-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}}

.pack-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.pack-list .pack { padding:0; }
.pack-choice { padding:8px; min-height:54px; align-self:stretch; border-radius:11px; }
@media(max-width:560px){.pack-choice .item-art{width:30px;height:30px}.pack-choice{gap:5px}.pack-choice strong{font-size:13px}}
