@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/bebas-neue.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0c0b10;
  --surface: #16151c;
  --surface-2: #1f1e27;
  --line: #2a2933;
  --text: #f3f3f5;
  --muted: #8d8c97;
  --accent: #fc0053;
  --accent-2: #ff3d7a;
  --radius: 16px;
  --c-common: #9a9aa2;
  --c-uncommon: #5fb84c;
  --c-rare: #4f8fe0;
  --c-epic: #a45ce6;
  --c-legendary: #f0b23f;
  --c-mythic: #ff2e74;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
html.no-scroll { overflow: hidden; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.5 "Inter", system-ui, sans-serif; }
body.has-ambience { background: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: .02em; line-height: 1.05; margin: 0; }
.muted { color: var(--muted); }
.is-soon { opacity: .45; cursor: default; }

.topbar { position: sticky; top: 0; z-index: 50; background: rgba(12, 11, 16, .78); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-in { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav-link { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
a.nav-link:hover, .nav-link.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.lang:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font: 600 14px "Inter", sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-open { width: 100%; padding: 16px 22px; border-radius: 999px; font-size: 18px; background: var(--b, var(--accent)); color: #fff; box-shadow: 0 10px 30px -10px var(--b, var(--accent)); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.btn-open:hover { background: var(--b, var(--accent)); filter: brightness(1.12); box-shadow: 0 14px 40px -8px var(--b, var(--accent)); }
.btn-open small { font-size: 13px; font-weight: 400; opacity: .85; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .35); }

.page { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 40px 24px 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h1 { font-size: 44px; }
.section-head p { margin: 4px 0 0; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page > :not(.ambience, .fx, .banner) { position: relative; z-index: 1; }
.ambience { --b: #fc0053; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background:
  radial-gradient(60% 50% at 50% 45%, color-mix(in srgb, var(--b) 26%, transparent), transparent 70%),
  radial-gradient(40% 40% at 85% 10%, color-mix(in srgb, var(--b) 14%, transparent), transparent 70%),
  radial-gradient(50% 45% at 10% 95%, color-mix(in srgb, var(--b) 12%, transparent), transparent 70%),
  var(--bg); transition: background .8s; }
.ambience::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, .65)); }
.ambience-motif { position: absolute; right: -6vw; top: 50%; height: 120vh; width: auto; max-width: none; transform: translateY(-50%) rotate(-8deg); opacity: .07; filter: blur(1px) saturate(1.4); transition: opacity .3s; mix-blend-mode: screen; }
.ambience-motif.is-fading { opacity: 0; }
.ambience-embers { position: absolute; inset: 0; }
.ambience-embers i { position: absolute; bottom: -10px; border-radius: 50%; background: color-mix(in srgb, var(--b) 70%, #fff); box-shadow: 0 0 8px var(--b); animation: ember linear infinite; }
@keyframes ember { 0% { transform: translate(0, 0); } 100% { transform: translate(var(--dx), -110vh); opacity: 0; } }

.shop { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.shop-head h1 { font-size: clamp(40px, 5vw, 60px); }
.shop-head p { margin: 8px 0 0; max-width: 620px; }
.pack-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; }
.pick-pack { position: relative; width: 100%; aspect-ratio: 560 / 954; transition: transform .45s var(--ease), filter .45s var(--ease); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55)) brightness(.78) saturate(.85); }
.pick-pack img { width: 100%; height: 100%; object-fit: contain; }
.pack-shine { position: absolute; inset: 0; pointer-events: none; clip-path: inset(2% 3% 2% 3% round 4%); background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .4) 48%, transparent 58%) -150% 0 / 250% 100% no-repeat; mix-blend-mode: soft-light; }
.pick:hover .pick-pack { transform: translateY(-6px); filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .6)) brightness(.95); }
.pick:hover .pack-shine { animation: shine-sweep 1.1s ease-out; }
.pick.is-selected .pick-pack { transform: translateY(-12px) scale(1.04); filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px color-mix(in srgb, var(--b) 60%, transparent)) brightness(1.05); animation: pack-float 3.2s ease-in-out infinite; }
.pick.is-selected .pack-shine { animation: shine-sweep 2.6s ease-in-out infinite; }
.pick-name { font-family: "Bebas Neue", sans-serif; font-size: 21px; letter-spacing: .03em; color: var(--muted); transition: color .2s; text-align: center; line-height: 1.05; }
.pick-price { font-size: 12px; font-weight: 600; color: var(--muted); opacity: .7; }
.pick.is-selected .pick-name { color: var(--text); }
.pick.is-selected .pick-price { color: color-mix(in srgb, var(--b) 60%, #fff); opacity: 1; }
.pick-free .pick-price { color: var(--accent-2); opacity: 1; }
@keyframes pack-float { 0%, 100% { transform: translateY(-12px) scale(1.04); } 50% { transform: translateY(-18px) scale(1.04) rotate(.6deg); } }
@keyframes shine-sweep { to { background-position: 150% 0; } }

.chamfer { clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.shop-panel { position: sticky; top: 88px; padding: 26px 24px 20px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 16%, rgba(18, 17, 24, .92)), rgba(14, 13, 19, .92) 45%);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  border-top: 3px solid var(--b); backdrop-filter: blur(14px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); transition: border-color .4s, background .4s; }
.shop-panel.is-swapping .panel-name, .shop-panel.is-swapping .panel-meta, .shop-panel.is-swapping .panel-odds li { animation: swap-in .45s var(--ease) both; }
.shop-panel.is-swapping .panel-odds li:nth-child(2) { animation-delay: .04s; } .shop-panel.is-swapping .panel-odds li:nth-child(3) { animation-delay: .08s; } .shop-panel.is-swapping .panel-odds li:nth-child(4) { animation-delay: .12s; }
@keyframes swap-in { from { opacity: 0; transform: translateX(-10px); } }
.panel-kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--b) 55%, #fff); }
.panel-name { font-size: 46px; line-height: .95; margin-top: -4px; text-shadow: 0 0 30px color-mix(in srgb, var(--b) 55%, transparent); }
.panel-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13px; color: var(--muted); }
.panel-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px; transform: rotate(45deg); background: var(--b); }
.panel-meta b { color: var(--text); font-weight: 600; }
.panel-odds { padding: 14px 0 4px; border-top: 1px dashed rgba(255, 255, 255, .12); border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.panel-label { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel-odds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-odds li { position: relative; display: flex; flex-direction: column; padding: 8px 10px 8px 30px; background: rgba(255, 255, 255, .035); }
.panel-odds li i { position: absolute; left: 10px; top: 13px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.panel-odds li span { font-size: 12px; color: var(--rc); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.panel-odds li small { font-size: 11px; color: var(--muted); }
.panel-odds li b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.odd-r1 { --rc: var(--c-common); } .odd-r2 { --rc: var(--c-uncommon); } .odd-r3 { --rc: var(--c-rare); } .odd-r4 { --rc: var(--c-epic); } .odd-r5 { --rc: var(--c-legendary); } .odd-r6 { --rc: var(--c-mythic); }
.panel-buy { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.qty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-self: stretch; }
.stage-idle .qty, .summary-actions .qty { width: 200px; }
.qty button { position: relative; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 8px 0; font-family: "Bebas Neue", sans-serif; font-size: 20px; letter-spacing: .04em; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.qty button:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.qty button.is-on { color: #fff; border-color: var(--b, var(--accent)); background: color-mix(in srgb, var(--b, var(--accent)) 28%, transparent); }
.btn-open { width: 100%; padding: 15px 20px; border-radius: 0; font-family: "Bebas Neue", sans-serif; font-size: 24px; font-weight: 400; letter-spacing: .05em; justify-content: space-between;
  background: var(--b, var(--accent)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); box-shadow: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.btn-open:hover { background: var(--b, var(--accent)); filter: brightness(1.15); box-shadow: none; }
.btn-open small { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 4px 10px; border: 0; background: rgba(0, 0, 0, .25); }
.panel-note { margin: 0; font-size: 12px; }
.steps { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps div { padding: 22px; border-radius: var(--radius); background: rgba(22, 21, 28, .6); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.steps b { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); font-size: 14px; }
.steps h3 { margin-top: 12px; font-size: 26px; }
.steps p { margin: 4px 0 0; font-size: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; }
.card {
  container-type: inline-size; position: relative; width: 100%; aspect-ratio: 750 / 1050; border-radius: 4.6% / 3.3%; overflow: hidden;
  background: #202020 center / 100% 100% no-repeat; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform;
}
.card:hover, .card:focus-visible { transform: translateY(-8px); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .85); outline: none; }
.card-common { background-image: url("/assets/img/rarities/common.webp"); }
.card-uncommon { background-image: url("/assets/img/rarities/uncommon.webp"); }
.card-rare { background-image: url("/assets/img/rarities/rare.webp"); }
.card-epic { background-image: url("/assets/img/rarities/epic.webp"); }
.card-legendary { background-image: url("/assets/img/rarities/legendary.webp"); }
.card-mythic { background-image: url("/assets/img/rarities/mythic.webp"); }
.card-common { --rc: var(--c-common); } .card-uncommon { --rc: var(--c-uncommon); } .card-rare { --rc: var(--c-rare); } .card-epic { --rc: var(--c-epic); } .card-legendary { --rc: var(--c-legendary); } .card-mythic { --rc: var(--c-mythic); }
.card-title { position: absolute; left: 13.5%; right: 4%; top: 1.3%; height: 6.6%; display: flex; align-items: center; justify-content: center; font-size: 6.4cqw; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title-s { font-size: 5.2cqw; }
.card-title-xs { font-size: 4.3cqw; }
.card-legendary .card-title, .card-mythic .card-title { color: #262626; }
.card-art { position: absolute; left: 3.33%; top: 8.57%; width: 93.33%; height: 80%; border-radius: 1.9cqw; overflow: hidden; background: #1a1a1a; isolation: isolate; }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; font-size: 0; color: transparent; }
.card-info { position: absolute; left: 3.33%; right: 3.33%; top: 90.4%; bottom: 2%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; text-align: center; }
.card-info div { min-width: 0; padding: 0 1.2cqw; }
.card-info dt { font-size: 3cqw; line-height: 1.2; color: #85858c; text-transform: uppercase; letter-spacing: .03em; }
.card-info dd { margin: .5cqw 0 0; font-size: 3.2cqw; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foil { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; }

.card-shiny::before { content: ""; position: absolute; z-index: 4; top: 2.4%; right: 3.6%; width: 5cqw; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 1cqw #fff); animation: star-pulse 1.8s ease-in-out infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card-shiny { background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 22px -4px rgba(255, 255, 255, .55), 0 12px 28px -12px rgba(0, 0, 0, .7); }
.card-shiny .card-art { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.card-shiny .card-art img { object-position: 50% 0; }
.card-shiny .card-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, color-mix(in srgb, var(--rc) 70%, #000) 0%, color-mix(in srgb, var(--rc) 35%, transparent) 9%, transparent 17%),
  linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, transparent 22%); }
.card-shiny .card-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card-shiny .card-info { background: rgba(8, 8, 12, .68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 1.6cqw; left: 4%; right: 4%; top: 89.6%; bottom: 2.2%; }
.card-shiny .card-title, .card-legendary.card-shiny .card-title, .card-mythic.card-shiny .card-title { z-index: 3; color: #fff; text-shadow: 0 0 1.4cqw rgba(0, 0, 0, .9), 0 0 3cqw rgba(255, 255, 255, .35); }
.card-shiny .card-info { z-index: 3; }
.card-shiny .card-info dt { color: rgba(255, 255, 255, .6); }
.card-badge { display: none; }
.card-shiny .card-art::before { content: attr(data-l); position: absolute; z-index: 2; top: 1.8%; left: 2.6%; width: 9.2cqw; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; color: var(--rc); border: .7cqw solid var(--rc); font-family: "Bebas Neue", sans-serif; font-size: 6.4cqw; line-height: 1; padding-top: .6cqw; box-shadow: 0 0 2cqw rgba(0, 0, 0, .6); }
.card-pearl { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; padding: 1.5cqw;
  background: conic-gradient(from var(--ang), var(--rc) 0deg, #fff 14deg, var(--rc) 40deg, color-mix(in srgb, var(--rc) 70%, #fff) 180deg, #fff 194deg, var(--rc) 220deg, var(--rc) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ang-spin 3.2s linear infinite; }
@keyframes ang-spin { to { --ang: 360deg; } }
.card-shiny .card-pearl + .card-glitter { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; mix-blend-mode: screen;
  background:
    radial-gradient(circle, #fff 0 .9px, rgba(255, 255, 255, .6) 1.4px, transparent 2.6px) 13px 21px / 97px 89px,
    radial-gradient(circle, #ffe8fb 0 .8px, rgba(255, 220, 250, .5) 1.3px, transparent 2.4px) 61px 47px / 131px 113px,
    radial-gradient(circle, #e8f6ff 0 1px, rgba(220, 240, 255, .5) 1.6px, transparent 3px) 37px 83px / 173px 151px,
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%) -120% 0 / 260% 100% no-repeat;
  animation: twinkle 1.8s ease-in-out infinite, sheen 4.5s ease-in-out infinite; }
.card-shiny .card-title { text-shadow: 0 0 1.5cqw rgba(255, 255, 255, .6); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes sheen { 0%, 30% { background-position: 13px 21px, 61px 47px, 37px 83px, -120% 0; } 70%, 100% { background-position: 13px 21px, 61px 47px, 37px 83px, 220% 0; } }
@keyframes star-pulse { 50% { transform: scale(1.35) rotate(45deg); opacity: .7; } }

.viewer { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(6, 6, 8, .8); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.viewer.is-open { opacity: 1; }
.viewer-stage { perspective: 1200px; }
.viewer-tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --hyp: 0; width: min(400px, 82vw, calc(78vh * .714)); aspect-ratio: 750 / 1050; transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(.9); transition: transform .12s ease-out; transform-style: preserve-3d; cursor: pointer; }
.viewer.is-open .viewer-tilt { transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1); }
.viewer-tilt.is-resetting { transition: transform .45s var(--ease); }
.viewer-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, 1.4, .4, 1); }
.viewer-flip.is-flipped { transform: rotateY(180deg); }
.viewer-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.viewer-front .card { width: 100%; height: 100%; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); }
.viewer-front .card:hover { transform: none; }
.viewer .card-foil { opacity: 1; z-index: 3; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, calc(.12 + var(--hyp) * .35)), transparent 55%); mix-blend-mode: overlay; }
.viewer .card-legendary .card-foil { mix-blend-mode: color-dodge; opacity: .95; background:
  radial-gradient(circle at var(--mx) var(--my), rgba(255, 240, 200, .5), transparent 45%),
  repeating-linear-gradient(calc(100deg + var(--hyp) * 40deg), rgba(255, 200, 80, 0) 0%, rgba(255, 210, 110, .35) 4%, rgba(255, 255, 255, .1) 8%, rgba(255, 200, 80, 0) 12%);
  background-size: 100% 100%, 220% 220%; background-position: center, var(--mx) var(--my); }
.card-mythic .card-foil { z-index: 3; opacity: .34; mix-blend-mode: color-dodge; background:
  radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .4), transparent 45%),
  repeating-linear-gradient(115deg, #ff2e74 0%, #ffbe3d 6%, #fff35c 12%, #4fff9b 18%, #4f9bff 24%, #b25cff 30%, #ff2e74 36%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 6px);
  background-size: 200% 200%, 300% 300%, 100% 100%; animation: mythic-foil 6s ease-in-out infinite alternate; }
@keyframes mythic-foil { from { background-position: 0% 0%, 0% 50%, center; } to { background-position: 100% 100%, 100% 50%, center; } }
.viewer .card-mythic .card-foil { animation: none; mix-blend-mode: color-dodge; opacity: .4; background:
  radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 42%),
  repeating-linear-gradient(calc(110deg + var(--hyp) * 60deg), #ff2e74 0%, #ffbe3d 6%, #fff35c 12%, #4fff9b 18%, #4f9bff 24%, #b25cff 30%, #ff2e74 36%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 6px);
  background-size: 100% 100%, 300% 300%, 100% 100%; background-position: center, var(--mx) var(--my), center; }
.viewer .card-shiny .card-glitter { display: none; }
.viewer-sparkles { position: absolute; left: 50%; top: 50%; width: 170%; height: 150%; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.viewer-stage { position: relative; }
.viewer-tilt { position: relative; z-index: 1; }
.viewer .card-shiny .card-glitter-off { animation: twinkle 1.4s ease-in-out infinite; background-size: 140px 128px, 190px 160px, 240px 210px, 100% 100%; background-position: calc(13px + var(--mx) * .4) calc(21px + var(--my) * .3), calc(61px - var(--mx) * .3) calc(47px + var(--my) * .4), calc(37px + var(--mx) * .2) calc(83px - var(--my) * .3), center; background-image: radial-gradient(circle, #fff 0 1.2px, rgba(255, 255, 255, .6) 2px, transparent 3.4px), radial-gradient(circle, #ffe8fb 0 1px, rgba(255, 220, 250, .5) 1.8px, transparent 3px), radial-gradient(circle, #e8f6ff 0 1.3px, rgba(220, 240, 255, .5) 2px, transparent 3.6px), radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 40%); }
.viewer-back { transform: rotateY(180deg); border-radius: 4.6% / 3.3%; overflow: hidden; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(160deg, var(--surface-2), #101013 70%); border: 2px solid var(--rc, var(--line)); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); cursor: pointer; }
.back-r1 { --rc: var(--c-common); } .back-r2 { --rc: var(--c-uncommon); } .back-r3 { --rc: var(--c-rare); } .back-r4 { --rc: var(--c-epic); } .back-r5 { --rc: var(--c-legendary); } .back-r6 { --rc: var(--c-mythic); }
.back-loading { margin: auto; color: var(--muted); }
.back-head { display: flex; justify-content: space-between; align-items: center; }
.back-year { font-family: "Bebas Neue", sans-serif; font-size: 22px; color: var(--muted); }
.back-title { font-size: clamp(24px, 5vw, 32px); }
.back-summary { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.back-summary h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.back-summary p { margin: 0; font-size: 13px; line-height: 1.55; color: #d6d6dc; }
.back-rating { display: flex; align-items: baseline; gap: 4px; }
.back-rating b { font-family: "Bebas Neue", sans-serif; font-size: 34px; font-weight: 400; color: var(--rc); }
.back-rating span { color: var(--muted); }
.back-rating small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.back-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.back-grid dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.back-grid dd { margin: 2px 0 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.back-logo { position: absolute; right: 16px; bottom: 10px; font-family: "Bebas Neue", sans-serif; font-size: 16px; color: rgba(255, 255, 255, .12); }
.pill { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 22%, transparent); color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent); }
.pill-r1 { --rc: #b8b8b8; } .pill-r2 { --rc: #6fd257; } .pill-r3 { --rc: #4f9bff; } .pill-r4 { --rc: #b25cff; } .pill-r5 { --rc: #ffbe3d; } .pill-r6 { --rc: #ff2e74; }
.viewer-hint { margin: 0; font-size: 13px; color: var(--muted); }
.viewer-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: var(--surface-2); }

.kback { position: absolute; inset: 0; container-type: inline-size; border-radius: inherit; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw;
  background:
    radial-gradient(circle at 50% 42%, rgba(252, 0, 83, .22), transparent 38%),
    conic-gradient(from 45deg at 50% 42%, rgba(255, 255, 255, .035) 0 25%, transparent 0 50%, rgba(255, 255, 255, .035) 0 75%, transparent 0) 50% 42% / 9cqw 9cqw,
    linear-gradient(165deg, #1b1824 0%, #100e16 55%, #08070b 100%);
  box-shadow: inset 0 0 0 1.4cqw #0b0a10, inset 0 0 0 1.75cqw rgba(255, 196, 120, .55), inset 0 0 0 3cqw #0b0a10, inset 0 0 0 3.2cqw rgba(255, 196, 120, .22), 0 18px 36px -14px rgba(0, 0, 0, .8); }
.kback::before { content: ""; position: absolute; inset: 5.5cqw; pointer-events: none; background: linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 0 0 / 7cqw .8cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 0 0 / .8cqw 7cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 100% 0 / 7cqw .8cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 100% 0 / .8cqw 7cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 0 100% / 7cqw .8cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 0 100% / .8cqw 7cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 100% 100% / 7cqw .8cqw no-repeat, linear-gradient(rgba(255, 196, 120, .8), rgba(255, 196, 120, .8)) 100% 100% / .8cqw 7cqw no-repeat; }
.kback-ring { position: relative; display: grid; place-items: center; width: 44cqw; aspect-ratio: 1; margin-top: -6cqw; border-radius: 50%;
  background: radial-gradient(circle, #15131c 0 56%, transparent 57%), repeating-conic-gradient(rgba(255, 196, 120, .85) 0 4deg, transparent 4deg 10deg), conic-gradient(#f6d28b, #9c6a22, #ffe7b0, #8c5a18, #f6d28b);
  box-shadow: 0 0 6cqw rgba(252, 0, 83, .35), inset 0 0 3cqw rgba(0, 0, 0, .6); }
.kback-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: .6cqw solid rgba(255, 196, 120, .5); }
.kback-ring b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 22cqw; line-height: 1; padding-top: 2cqw; background: linear-gradient(180deg, #ffe9b8, #d9a04a 55%, #a66d1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 2cqw rgba(252, 0, 83, .6)); }
.kback-name { font-family: "Bebas Neue", sans-serif; font-size: 11cqw; letter-spacing: .35em; padding-left: .35em; line-height: 1; color: #f4d6a0; text-shadow: 0 0 3cqw rgba(252, 0, 83, .5); }
.kback-sub { margin-top: -2cqw; font-size: 2.6cqw; letter-spacing: .4em; color: rgba(244, 214, 160, .5); font-weight: 600; }

.open { position: relative; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 64px - 120px); }
.open-bar { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.open-bar .sound-toggle { justify-self: end; }
.open-bar .back-link { justify-self: start; }
.back-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back-link:hover { color: var(--text); }
.open-title { display: inline-flex; align-items: center; gap: 10px; font-family: "Bebas Neue", sans-serif; font-size: 28px; letter-spacing: .04em; }
.open-title i { width: 12px; height: 12px; border-radius: 50%; background: var(--b); box-shadow: 0 0 12px var(--b); }
.sound-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(22, 21, 28, .7); cursor: pointer; display: grid; place-items: center; }
.sound-toggle.is-muted { color: var(--muted); }
.stage { position: relative; width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 16px; }
.stage > [hidden] { display: none !important; }

.stage-idle { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stage-idle .qty, .summary-actions .qty { align-self: center; }
.open-pack { position: relative; width: min(280px, 60vw); aspect-ratio: 560 / 954; padding: 0; border: 0; background: none; cursor: pointer; animation: idle-float 3s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px color-mix(in srgb, var(--b) 35%, transparent)); transition: opacity .5s, transform .5s; }
.open-pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.pack-body { clip-path: inset(7.5% 0 0 0); }
.pack-top { clip-path: inset(0 0 92.5% 0); transform-origin: 85% 7.5%; }
.open-pack .pack-shine { animation: shine-sweep 2.8s ease-in-out infinite; }
.open-pack:hover { animation-play-state: paused; }
.pack-shadow { width: 180px; height: 18px; margin-top: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); animation: shadow-breathe 3s ease-in-out infinite; }
@keyframes idle-float { 50% { transform: translateY(-12px) rotate(.8deg); } }
@keyframes shadow-breathe { 50% { transform: scale(.8); opacity: .6; } }
.open-pack.is-charging { animation: charge .9s cubic-bezier(.5, 0, .9, .5) forwards; }
@keyframes charge {
  0% { transform: scale(1); }
  20% { transform: scale(1.03) rotate(-1deg) translateX(-2px); }
  40% { transform: scale(1.05) rotate(1.5deg) translateX(3px); }
  60% { transform: scale(1.07) rotate(-2.5deg) translateX(-4px); }
  80% { transform: scale(1.09) rotate(3deg) translateX(5px); }
  100% { transform: scale(1.1); filter: drop-shadow(0 0 50px var(--b)) brightness(1.3); }
}
.open-pack.is-torn { animation: none; transform: scale(1.1); }
.open-pack.is-torn .pack-top { animation: tear-off .7s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes tear-off { to { transform: translate(60px, -140px) rotate(28deg); opacity: 0; } }
.open-pack.is-gone { opacity: 0; transform: translateY(60px) scale(.8); pointer-events: none; }
.open-hint { margin: 18px 0 16px; color: var(--muted); font-weight: 600; animation: hint-blink 1.8s ease-in-out infinite; }
@keyframes hint-blink { 50% { opacity: .45; } }
.stage-idle.is-busy .open-hint, .stage-idle.is-busy .qty, .stage-idle.is-busy .pack-shadow { opacity: 0; transition: opacity .3s; pointer-events: none; }

.stage-stack { width: 100%; display: flex; flex-direction: column; align-items: center; }
.counter { position: absolute; left: 0; top: 10px; font-family: "Bebas Neue", sans-serif; font-size: 44px; line-height: 1; }
.counter span { font-size: 22px; color: var(--muted); }
.counter i { font-style: normal; }
.stack { position: relative; width: min(330px, 72vw); aspect-ratio: 750 / 1050; margin-top: 10px; }
.stack .reveal { position: absolute; inset: 0; transform: translate(calc(var(--k) * 5px), calc(var(--k) * -5px)) rotate(calc(var(--k) * 1.6deg)); transition: transform .45s var(--ease), opacity .35s; }
.stack .reveal.is-hidden { opacity: 0; }
.stack:not(.is-in) .reveal { opacity: 0; transform: translateY(120px) scale(.5) rotate(-10deg); }
.stack .reveal.is-top { cursor: pointer; }
.stack .reveal.is-top:not(.is-revealed):hover .reveal-in { transform: translateY(-6px) rotateX(5deg); }
.stack .reveal.is-leaving { z-index: 200 !important; transform: translate(var(--tx, 0), var(--ty, 300px)) scale(var(--ts, .2)); opacity: 0; transition: transform .45s cubic-bezier(.6, 0, .4, 1), opacity .45s ease-in; }
.reveal { perspective: 1100px; }
.reveal-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.reveal.is-revealed .reveal-in { transform: rotateY(180deg); }
.reveal-back, .reveal-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4.6% / 3.3%; }
.reveal-front { transform: rotateY(180deg); }
.reveal-front .card { width: 100%; height: 100%; }
.reveal-front .card:hover { transform: none; }
.reveal.is-building .reveal-in { animation: tremble .08s linear infinite; }
@keyframes tremble { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 2px) rotate(-1.5deg); } 50% { transform: translate(3px, -2px) rotate(1.5deg); } 75% { transform: translate(-2px, -3px) rotate(-1deg); } }
.reveal.is-revealed[data-rarity="3"] .card, .reveal.is-revealed[data-rarity="4"] .card { box-shadow: 0 0 34px -6px var(--rc), 0 18px 36px -14px rgba(0, 0, 0, .8); }
.reveal.is-revealed[data-rarity="5"] .card, .reveal.is-revealed[data-rarity="6"] .card { box-shadow: 0 0 55px 0 var(--rc), 0 18px 36px -14px rgba(0, 0, 0, .8); }
.reveal-rays { position: absolute; inset: -55%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.5); background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 55%, transparent) 0deg 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 25%, transparent 100%); mask: radial-gradient(closest-side, #000 25%, transparent 100%); transition: opacity .5s, transform .8s cubic-bezier(.2, 1.2, .3, 1); }
.reveal.has-rays .reveal-rays { opacity: 1; transform: scale(1); animation: rays-spin 9s linear infinite; }
@keyframes rays-spin { to { rotate: 360deg; } }
.tray { display: flex; gap: 6px; margin-top: 34px; height: 30px; align-items: center; }
.tray span { width: 22px; height: 30px; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: background .3s, box-shadow .3s, transform .3s var(--ease); }
.tray span.is-filled { background: var(--rc); border-color: transparent; box-shadow: 0 0 12px -2px var(--rc); transform: scale(1.08); }
.tray span.is-shiny { background: linear-gradient(135deg, #ffc9ef, #c9e6ff, #d6ffcf, #fff1b8); box-shadow: 0 0 14px #fff; }
.tray.tray-bar { width: min(420px, 80vw); height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; display: block; }
.tray.tray-bar i { display: block; height: 100%; width: 0; background: var(--b); box-shadow: 0 0 10px var(--b); transition: width .3s; }
.stack-ui { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: 14px; }
.keys { margin: 12px 0 0; font-size: 12px; color: var(--muted); opacity: .7; letter-spacing: .03em; }

.stage-summary { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.summary-title { font-size: clamp(40px, 6vw, 64px); }
.summary-sub { margin: 8px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px; }
.spread { display: flex; justify-content: center; align-items: flex-start; margin: 40px 0 10px; padding: 20px 0 30px; width: 100%; }
.spread-item { position: relative; width: clamp(130px, 15vw, 210px); margin: 0 -1.2vw; transform: translateY(var(--y)) rotate(var(--a)); transition: transform .35s var(--ease); z-index: 1; }
.spread-item:hover { transform: translateY(calc(var(--y) - 20px)) rotate(0) scale(1.06); z-index: 5; }
.spread-item .card:hover { transform: none; }
.spread-item .card { animation: spread-in .6s var(--ease) both; animation-delay: var(--d); }
.spread-item.is-best { z-index: 3; }
.spread-item.is-best .card { box-shadow: 0 0 0 2px var(--rc), 0 0 40px -4px var(--rc), 0 20px 40px -16px rgba(0, 0, 0, .8); }
.best-tag { position: absolute; z-index: 6; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--rc); color: #111; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px -4px var(--rc); animation: spread-in .6s var(--ease) both; animation-delay: var(--d); }
@keyframes spread-in { from { opacity: 0; transform: translateY(40px) scale(.7) rotate(-8deg); } }
.spread.spread-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; max-width: 1100px; padding: 20px 0; }
.spread-grid .spread-item { width: auto; margin: 0; transform: none; }
.spread-grid .spread-item:hover { transform: translateY(-8px); }
.summary-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.summary-actions .btn-open { width: auto; padding: 12px 28px; font-size: 22px; }
.open-demo { margin-top: 18px; font-size: 12px; }

.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 150; }
.flash { position: fixed; inset: 0; z-index: 140; pointer-events: none; background: radial-gradient(circle, var(--fc), transparent 70%); opacity: 0; animation: flash .7s ease-out; }
.flash-strong { background: var(--fc); animation: flash-strong .9s ease-out; }
@keyframes flash { 10% { opacity: .55; } 100% { opacity: 0; } }
@keyframes flash-strong { 8% { opacity: .6; } 100% { opacity: 0; } }
body.is-shaking .page { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translate(calc(var(--shake) * -.2), 0); }
  20%, 80% { transform: translate(calc(var(--shake) * .4), calc(var(--shake) * -.2)); }
  30%, 50%, 70% { transform: translate(calc(var(--shake) * -1), calc(var(--shake) * .3)); }
  40%, 60% { transform: translate(var(--shake), calc(var(--shake) * -.3)); }
}
.banner { position: fixed; left: 50%; top: 42%; z-index: 160; pointer-events: none; font-family: "Bebas Neue", sans-serif; font-size: clamp(54px, 11vw, 130px); letter-spacing: .04em; color: var(--bc, #fff); text-shadow: 0 0 30px var(--bc), 0 0 80px var(--bc), 0 6px 0 rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, -50%) scale(.3); white-space: nowrap; }
.banner.is-on { animation: banner-pop 1.6s cubic-bezier(.2, 1.4, .3, 1) forwards; }
.banner-shiny { background: linear-gradient(90deg, #ffc9ef, #c9e6ff, #ffffff, #d6ffcf, #fff1b8, #ffc9ef) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .8)); }
.banner-shiny.is-on { animation: banner-pop 1.6s cubic-bezier(.2, 1.4, .3, 1) forwards, rainbow-move 1s linear infinite; }
@keyframes banner-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-6deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); } 30% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05); } }
@keyframes rainbow-move { to { background-position: 200% 0; } }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.hud { display: flex; gap: 6px; }
.hud-item { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.hud-item b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-item i { width: 9px; height: 9px; transform: rotate(45deg); }
.hud-mix i { width: 8px; height: 12px; transform: none; border-radius: 2px; background: #62816b; box-shadow: 0 0 8px #62816b; }
.hud-item small { font-size: 11px; color: var(--muted); margin-left: 2px; font-variant-numeric: tabular-nums; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu[open] .avatar { border-color: var(--accent); }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8); }
.user-name { margin: 0 0 8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.user-pop button { width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.user-pop button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

.auth-box { max-width: 440px; margin: 6vh auto 0; padding: 34px 30px 26px; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  background: rgba(18, 17, 24, .9); backdrop-filter: blur(14px); border-top: 3px solid var(--accent);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }
.auth-box h1 { font-size: 46px; }
.auth-box > p { margin: 0; }
.auth-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; border: 3px solid var(--accent); object-fit: cover; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; font-weight: 600; text-decoration: none; transition: filter .2s, transform .15s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.auth-btn:hover { filter: brightness(1.1); }
.auth-btn:active { transform: translateY(1px); }
.auth-google { background: #fff; color: #1f1f1f; }
.auth-discord { background: #5865f2; color: #fff; }
.auth-error { padding: 10px 12px; background: rgba(252, 0, 83, .12); border: 1px solid rgba(252, 0, 83, .4); color: #ff8fb0; font-size: 14px; }
.auth-gift { font-size: 13px; color: var(--muted); margin-top: 4px !important; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.field { width: 100%; padding: 14px 16px; font: 600 18px "Inter", sans-serif; text-align: center; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none; }
.field:focus { border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.auth-form .btn-open { justify-content: center; }
@media (max-width: 720px) { .hud-mix small { display: none; } .hud-item { padding: 0 8px; } }

.legal { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.legal h1 { font-size: 48px; }
.legal h2 { font-size: 26px; margin: 34px 0 8px; color: #fff; }
.legal p, .legal li { color: #c9c9d1; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-2); }
.footer-in a { color: var(--muted); text-decoration: none; }
.footer-in a:hover { color: var(--text); }

.open-wallet { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.open-wallet b { color: var(--text); font-weight: 600; }
.open-hint.is-error { color: #ff8fb0; animation: none; }
.open-pack.is-denied { animation: denied .45s ease-in-out; }
@keyframes denied { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.new-tag { position: absolute; z-index: 6; top: 8%; left: -6px; padding: 2px 8px; background: #fff; color: #111; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-6deg); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); animation: spread-in .6s var(--ease) both; animation-delay: var(--d); }
.panel-note b { color: var(--text); }

.qty button:disabled { opacity: .3; cursor: not-allowed; }
.btn-open.is-disabled { background: #34333d !important; color: #9a99a3; text-shadow: none; filter: none; cursor: not-allowed; }
.shop-panel.is-denied .btn-open { animation: denied .45s ease-in-out; }

.coll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.coll-head h1 { font-size: clamp(40px, 5vw, 60px); }
.coll-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.coll-stats div { display: flex; flex-direction: column; }
.coll-stats b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 34px; line-height: 1; }
.coll-stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.coll-recycle { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.coll-recycle b { color: #fff; margin-left: 6px; }
.js-recycle-all.is-confirm { background: var(--accent); border-color: var(--accent); }
.coll-rarities { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.coll-rarities a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 14px 30px; text-decoration: none; background: rgba(255, 255, 255, .035); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.coll-rarities a:hover, .coll-rarities a.is-on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 10%, transparent); }
.coll-rarities i { position: absolute; left: 11px; top: 15px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.coll-rarities span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--rc); }
.coll-rarities b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 22px; line-height: 1; }
.coll-rarities a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .07); }
.coll-rarities em { position: absolute; z-index: 1; left: 12px; bottom: 7px; height: 3px; border-radius: 2px; width: calc((100% - 24px) * var(--p) / 100%); max-width: calc(100% - 24px); background: var(--rc); box-shadow: 0 0 6px var(--rc); }
.coll-rarities a { padding-bottom: 18px; }
.coll-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.field-sm { padding: 9px 12px; font: 14px "Inter", sans-serif; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none; }
.field-sm:focus { border-color: var(--accent); }
.field-sm[type="search"] { flex: 1; min-width: 200px; }
select.field-sm option { background: var(--surface); }
.coll-count { margin: 16px 0 18px; font-size: 13px; }
.coll-item { position: relative; display: flex; flex-direction: column; gap: 8px; }
.coll-n { position: absolute; z-index: 5; top: -8px; right: -8px; min-width: 34px; padding: 3px 8px; text-align: center; font-family: "Bebas Neue", sans-serif; font-size: 18px; background: #fff; color: #111; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.is-hidden { display: none !important; }
.coll-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); font-weight: 600; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .coll-rarities { grid-template-columns: repeat(3, 1fr); } .coll-recycle { align-items: flex-start; } }

.is-landing .page { max-width: 1320px; }
.land-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: calc(100vh - 220px); padding: 20px 0 40px; }
.land-kicker { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.land-copy h1 { font-size: clamp(52px, 6.4vw, 96px); line-height: .92; }
.land-copy h1 em { font-style: normal; background: linear-gradient(90deg, #ff2e74, #ffbe3d, #4f9bff, #b25cff, #ff2e74) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow-move 8s linear infinite; }
.land-lead { margin: 22px 0 28px; max-width: 520px; font-size: 17px; line-height: 1.6; color: #b9b8c2; }
.login-btns { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.land-gift { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.land-gift i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
.land-gift b { color: var(--text); }
.land-fan { --px: 0; --py: 0; position: relative; height: min(560px, 70vh); display: flex; align-items: center; justify-content: center; transform: perspective(1200px) rotateY(calc(var(--px) * 8deg)) rotateX(calc(var(--py) * -6deg)); transition: transform .6s ease-out; }
.fan-card { position: absolute; width: clamp(150px, 15vw, 230px); transform: translateX(calc(var(--i) * 62%)) translateY(calc(var(--i) * var(--i) * 14px)) rotate(calc(var(--i) * 9deg)); z-index: calc(10 - var(--i) * var(--i)); animation: fan-in .9s var(--ease) backwards; animation-delay: calc((var(--i) + 2) * 90ms); }
.fan-lift { transition: transform .45s var(--ease); will-change: transform; }
.fan-float { animation: fan-float 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); will-change: transform; }
.fan-card .card, .fan-card .card:hover { transform: none; transition: box-shadow .45s var(--ease); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9); }
.fan-card:hover { z-index: 20; }
.fan-card:hover .fan-lift { transform: translateY(-18px) scale(1.06); }
.fan-card:hover .card { box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .95); }
@keyframes fan-in { from { opacity: 0; transform: translateY(120px) scale(.6); } }
@keyframes fan-float { 50% { transform: translateY(-10px); } }
.land-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.land-stats div { padding: 22px 24px; background: rgba(14, 13, 19, .85); }
.land-stats b { display: block; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 46px; line-height: 1; color: #fff; }
.land-stats span { font-size: 13px; color: var(--muted); }
.land-packs { margin-top: 90px; text-align: center; }
.land-packs h2, .land-cta h2 { font-size: clamp(34px, 4vw, 52px); }
.land-packs-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; margin-top: 34px; }
.land-packs figure { margin: 0; }
.land-packs img { width: 100%; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .6)); transition: transform .4s var(--ease), filter .4s; }
.land-packs figure:hover img { transform: translateY(-10px) rotate(-2deg); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px var(--b)); }
.land-packs figcaption { margin-top: 10px; font-family: "Bebas Neue", sans-serif; font-size: 19px; line-height: 1.05; }
.land-packs small { display: block; font-family: "Inter", sans-serif; font-size: 12px; color: var(--muted); }
.land-cta { margin: 90px auto 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.land-cta .login-btns { width: 100%; }
@media (max-width: 960px) {
  .land-hero { grid-template-columns: 1fr; min-height: 0; }
  .land-fan { height: 380px; order: -1; }
  .fan-card { width: 140px; }
  .land-stats { grid-template-columns: 1fr 1fr; }
  .land-packs-row { grid-template-columns: repeat(4, 1fr); }
}

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.album-tile { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .3s var(--ease);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.album-tile:hover { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.album-tile.is-ready { border-color: var(--c-legendary); background: color-mix(in srgb, var(--c-legendary) 10%, transparent); }
.album-tile.is-done { border-color: color-mix(in srgb, var(--c-uncommon) 60%, transparent); }
.album-covers { position: relative; flex: none; width: 74px; height: 96px; }
.album-covers img { position: absolute; top: 0; left: 0; width: 64px; height: 90px; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); transform: translate(calc(var(--k) * 5px), calc(var(--k) * 3px)) rotate(calc((var(--k) - 1) * 4deg)); }
.album-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.album-info b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 23px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-info small { font-size: 12px; color: var(--muted); }
.album-tile.is-ready small { color: var(--c-legendary); font-weight: 600; }
.album-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.album-bar em { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 8px var(--accent); }
.album-tile.is-done .album-bar em { background: var(--c-uncommon); box-shadow: none; }
.album-reward { font-size: 12px; font-weight: 600; color: var(--accent-2); }
.album-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 14px 0 28px; }
.album-head h1 { font-size: clamp(40px, 5vw, 64px); }
.album-head p { margin: 6px 0 10px; }
.album-bar-lg { width: min(420px, 80vw); height: 6px; }
.album-claim .btn-open { width: auto; min-width: 320px; }
.album-done { padding: 10px 16px; font-weight: 600; color: var(--c-uncommon); border: 1px solid color-mix(in srgb, var(--c-uncommon) 50%, transparent); }
.album-locked { font-size: 14px; color: var(--muted); }
.album-locked b { color: var(--text); }
.coll-item.is-missing .card { filter: grayscale(1) brightness(.35); }
.coll-item.is-missing .card:hover { filter: grayscale(.6) brightness(.6); }
.btn-open.is-claimed { background: var(--c-uncommon) !important; }

.tabs { display: flex; gap: 4px; }
.tabs a { padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.is-on { color: var(--text); border-bottom-color: var(--accent); }
.mk-item { display: flex; flex-direction: column; gap: 8px; transition: opacity .5s, transform .5s; }
.mk-item.is-sold { opacity: 0; transform: scale(.9); }
.mk-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.mk-badge { padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); }
.mk-badge.is-auc { border-color: color-mix(in srgb, var(--c-legendary) 60%, transparent); color: var(--c-legendary); }
.mk-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-time.is-soon { color: #ff8fb0; font-weight: 600; }
.mk-time.is-over { color: var(--muted); opacity: .6; }
.mk-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; }
.mk-price { display: inline-flex; align-items: center; gap: 7px; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 28px; line-height: 1; }
.mk-btn { padding: 8px 14px; font-weight: 600; font-size: 13px; border: 0; color: #fff; background: var(--accent); cursor: pointer; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.mk-btn:hover { filter: brightness(1.12); }
.mk-btn.is-confirm { background: var(--c-legendary); color: #111; }
.mk-bid { background: var(--c-legendary); color: #111; }
.mk-cancel { background: rgba(255, 255, 255, .08); color: var(--text); }
.mk-note { font-size: 12px; font-weight: 600; color: var(--muted); }
.mk-lead { color: var(--c-uncommon); }
.mk-seller { font-size: 12px; color: var(--muted); }
.mk-item.is-mine .mk-seller { color: var(--accent-2); }
.mk-bidform { display: flex; gap: 4px; }
.mk-bidform input { width: 92px; padding: 7px 8px; font: 600 14px "Inter", sans-serif; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--c-legendary); outline: none; }
.mk-bidform button { padding: 7px 10px; font-weight: 600; border: 0; background: var(--c-legendary); color: #111; cursor: pointer; }
.mk-h2 { font-size: 30px; margin: 36px 0 16px; }
.mk-h2 small { font-family: "Inter", sans-serif; font-size: 13px; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.mk-history { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-history td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mk-history em { font-style: normal; font-size: 11px; color: #fff; background: rgba(255, 255, 255, .12); padding: 1px 6px; margin-left: 6px; }
.mk-history .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-history .is-sold.dir-sell .num { color: var(--c-uncommon); }
.mk-history .is-sold.dir-buy .num { color: #ff8fb0; }
.toast.is-bad { border-left-color: #ff8fb0; }
.coll-actions { display: flex; gap: 6px; opacity: .55; transition: opacity .25s; }
.coll-item:hover .coll-actions, .coll-actions:focus-within { opacity: 1; }
.coll-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; font: 600 12px "Inter", sans-serif; color: var(--text); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.coll-sell { flex: 1; }
.coll-sell:hover { border-color: var(--accent); background: rgba(252, 0, 83, .12); }
.coll-act.coll-recycle-one b { color: var(--accent-2); font-weight: 600; }
.coll-act.coll-recycle-one:hover { border-color: var(--c-uncommon); background: rgba(95, 184, 76, .1); }
.card-grid .coll-item > .coll-actions .coll-sell { display: none; }
.card-grid .coll-item > .coll-actions { justify-content: flex-end; }
.viewer-actions { display: flex; gap: 8px; opacity: 1; }
.viewer-actions .coll-sell { display: inline-flex; }
.bidder { color: var(--text); font-weight: 600; }
.viewer-actions .coll-act { padding: 10px 18px; font-size: 14px; background: rgba(22, 21, 28, .9); }
.modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 16px; background: rgba(6, 6, 8, .8); backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.modal.is-open { opacity: 1; }
.modal-box { position: relative; display: grid; grid-template-columns: 240px 320px; gap: 26px; padding: 26px; max-height: 92vh; overflow: auto; background: var(--surface); border-top: 3px solid var(--accent); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.modal-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.sell-card .card:hover { transform: none; }
.sell-form { display: flex; flex-direction: column; gap: 10px; }
.sell-form h2 { font-size: 32px; }
.sell-name { margin: -6px 0 4px; color: var(--muted); font-size: 14px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.seg button { padding: 9px 6px; font-weight: 600; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer; }
.seg button.is-on { color: #fff; border-color: var(--accent); background: rgba(252, 0, 83, .15); }
.seg-sm button { font-size: 12px; padding: 7px 4px; }
.sell-label { margin: 6px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sell-price { display: flex; align-items: center; gap: 10px; }
.sell-price .field { text-align: left; font-size: 22px; padding: 10px 14px; }
.sell-price span { color: var(--muted); font-weight: 600; }
.sell-receive { margin: 0; font-size: 14px; color: var(--muted); min-height: 20px; }
.sell-receive b { color: var(--c-uncommon); }
.sell-info { margin: 0; font-size: 12px; }
.js-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; }
.js-stats b { color: var(--text); }
.sell-error { margin: 0; min-height: 18px; color: #ff8fb0; font-size: 13px; }
@media (max-width: 640px) { .modal-box { grid-template-columns: 1fr; } .sell-card { width: 160px; margin: 0 auto; } }

.mk-item .card { cursor: pointer; }
.mk-detail { grid-template-columns: 300px minmax(0, 560px); }
.mk-d-card .card:hover { transform: none; }
.mk-d-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk-d-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; padding-right: 30px; }
.mk-d-rar { font-weight: 600; }
.mk-d-tags b { color: var(--text); }
.mk-d-own { margin-left: auto; padding: 3px 10px; font-size: 12px; font-weight: 600; color: var(--c-uncommon); border: 1px solid color-mix(in srgb, var(--c-uncommon) 50%, transparent); }
.mk-d-own.is-owned { color: var(--muted); border-color: var(--line); }
.mk-d-status { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.mk-d-status small { display: block; font-size: 12px; color: var(--muted); }
.mk-d-status .mk-price { font-size: 44px; margin: 4px 0; }
.mk-d-time { text-align: right; }
.mk-d-time b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 32px; color: var(--c-legendary); }
.mk-d-time b.is-over { color: #ff8fb0; }
.mk-d-action { display: flex; flex-direction: column; gap: 6px; }
.mk-d-action:empty { display: none; }
.mk-d-bid label { font-size: 13px; color: var(--muted); }
.mk-d-bid label b { color: var(--text); }
.mk-d-bid > div { display: flex; gap: 8px; margin: 6px 0; }
.mk-d-bid .field { text-align: left; font-size: 20px; padding: 10px 14px; }
.mk-d-bid .btn-open { width: auto; flex: none; background: var(--c-legendary); color: #111; text-shadow: none; }
.mk-d-lead { margin: 0; padding: 10px 14px; font-weight: 600; color: var(--c-uncommon); border: 1px solid color-mix(in srgb, var(--c-uncommon) 50%, transparent); }
.mk-d-h { font-size: 22px; }
.mk-d-bids { list-style: none; margin: 0; padding: 0; max-height: 160px; overflow: auto; }
.mk-d-bids li { display: grid; grid-template-columns: 1fr auto 110px; gap: 10px; padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.mk-d-bids li.is-me span { color: var(--accent-2); font-weight: 600; }
.mk-d-bids small { color: var(--muted); text-align: right; }
.mk-d-market { padding-top: 14px; border-top: 1px dashed var(--line); }
.mk-d-mhead { display: flex; justify-content: space-between; align-items: center; }
.mk-d-mhead .seg { width: 110px; }
.mk-d-stats { display: flex; gap: 26px; margin: 10px 0; font-size: 12px; color: var(--muted); }
.mk-d-stats b { display: block; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 26px; color: var(--text); }
.mk-chart { width: 100%; height: auto; display: block; }
.mk-chart text { fill: var(--muted); font: 11px "Inter", sans-serif; }
.mk-chart .mk-chart-med { fill: #fff; font-weight: 600; }
@media (max-width: 900px) { .mk-detail { grid-template-columns: 1fr; } .mk-d-card { width: 200px; margin: 0 auto; } }

.coll-recycle .btn svg { flex: none; }
.recycle-panel { margin-top: 22px; padding: 18px; background: rgba(22, 21, 28, .85); border: 1px solid var(--line); border-top: 3px solid var(--c-uncommon); animation: swap-in .3s var(--ease); }
.recycle-panel > p { margin: 0 0 12px; font-size: 14px; }
.rp-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.rp-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; text-align: left; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, background .2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.rp-tile.is-on { opacity: 1; border-color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.rp-tile:disabled { opacity: .25; cursor: not-allowed; }
.rp-name { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--rc); }
.rp-name i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--rc); }
.rp-fa { --rc: #e8f1ff; }
.rp-fa .rp-name i { background: linear-gradient(135deg, #ffc9ef, #c9e6ff, #fff1b8); }
.rp-val { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-state { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-tile.is-on .rp-state { color: var(--rc); }
.rp-foot { display: flex; gap: 10px; margin-top: 14px; }
.rp-foot .btn-open { width: auto; background: var(--c-uncommon); }
.rp-foot .btn-open:disabled { background: #34333d; color: #9a99a3; cursor: not-allowed; }
@media (max-width: 900px) { .rp-tiles { grid-template-columns: repeat(2, 1fr); } }

:root { --rc-1: var(--c-common); --rc-2: var(--c-uncommon); --rc-3: var(--c-rare); --rc-4: var(--c-epic); --rc-5: var(--c-legendary); --rc-6: var(--c-mythic); }
.px-ico, .hud-item i.px-ico { display: inline-block; flex: none; width: 11px; height: 11px; transform: none; box-shadow: none; filter: drop-shadow(0 0 4px rgba(252, 0, 83, .7));
  background: linear-gradient(var(--accent) 0 0) 0 0 / 5px 5px no-repeat, linear-gradient(var(--accent-2) 0 0) 100% 0 / 5px 5px no-repeat, linear-gradient(#ff8fb0 0 0) 0 100% / 5px 5px no-repeat, linear-gradient(var(--accent) 0 0) 100% 100% / 5px 5px no-repeat; }
.mk-price .px-ico { width: 13px; height: 13px; background-size: 6px 6px; }
.is-market .page { max-width: 1560px; }
.market-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.lobby { position: sticky; top: 84px; height: calc(100vh - 104px); display: flex; flex-direction: column; background: rgba(18, 17, 24, .92); border: 1px solid var(--line); border-top: 3px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.lb-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; }
.lb-title { display: block; font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: .03em; }
.lb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-uncommon); box-shadow: 0 0 8px var(--c-uncommon); animation: hint-blink 1.6s infinite; }
.lb-toggle { display: none; width: 34px; height: 34px; border: 1px solid var(--line); background: none; color: var(--text); font-size: 22px; cursor: pointer; }
.lb-ch { display: flex; gap: 4px; padding: 0 16px 10px; border-bottom: 1px solid var(--line); }
.lb-ch button { padding: 6px 12px; font: 600 13px "Inter", sans-serif; color: var(--muted); background: none; border: 1px solid transparent; cursor: pointer; }
.lb-ch button.is-on { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, .05); }
.lb-ch small { margin-left: 4px; color: var(--c-uncommon); font-weight: 600; }
.lb-list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.lb-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; }
.lb-msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; animation: swap-in .3s var(--ease); }
.lb-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 13px; }
.lb-av img { width: 100%; height: 100%; object-fit: cover; }
.lb-meta { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 13px; }
.lb-meta b { color: var(--text); }
.lb-msg.is-mine .lb-meta b { color: var(--accent-2); }
.lb-meta time { font-size: 11px; color: var(--muted); }
.lb-del { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; }
.lb-msg:hover .lb-del { opacity: 1; }
.lb-body { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: #d9d9e0; overflow-wrap: anywhere; }
.lb-att { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; margin-top: 8px; padding: 10px; background: rgba(255, 255, 255, .035); border-left: 3px solid var(--lk, var(--line)); }
.lb-k-seek { --lk: var(--c-rare); } .lb-k-sell { --lk: var(--accent); } .lb-k-show { --lk: var(--c-legendary); }
.lb-att-card .card { box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); }
.lb-att-card .card:hover { transform: translateY(-3px); }
.lb-att-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; }
.lb-kind { align-self: flex-start; padding: 1px 7px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lk, var(--text)); border: 1px solid var(--lk, var(--line)); }
.lb-att-info b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 19px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lb-price { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.lb-own { color: var(--muted); }
.lb-own.is-miss { color: var(--c-uncommon); font-weight: 600; }
.lb-act { align-self: flex-start; margin-top: 4px; padding: 6px 10px; font: 600 12px "Inter", sans-serif; color: #111; background: #fff; border: 0; text-decoration: none; cursor: pointer; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.lb-act:hover { background: var(--c-legendary); }
.lb-compose { position: relative; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.lb-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.lb-chips button { padding: 5px 10px; font: 600 12px "Inter", sans-serif; background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.lb-chips [data-kind="seek"]:hover { color: var(--c-rare); border-color: var(--c-rare); }
.lb-chips [data-kind="sell"]:hover { color: var(--accent-2); border-color: var(--accent); }
.lb-chips [data-kind="show"]:hover { color: var(--c-legendary); border-color: var(--c-legendary); }
.lb-attach { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 8px; background: rgba(255, 255, 255, .05); }
.lb-attach[hidden] { display: none; }
.lb-attach img { width: 30px; height: 42px; object-fit: cover; border-radius: 3px; }
.lb-attach div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.lb-attach b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-unattach, .lb-pick-x { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.lb-input { display: flex; gap: 8px; align-items: flex-end; }
.lb-input textarea { flex: 1; resize: none; min-height: 40px; max-height: 110px; padding: 10px 12px; font: 14px/1.4 "Inter", sans-serif; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none; }
.lb-input textarea:focus { border-color: var(--accent); }
.lb-send { width: 42px; height: 40px; flex: none; display: grid; place-items: center; border: 0; color: #fff; background: var(--accent); cursor: pointer; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.lb-foot { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 11px; color: var(--muted); opacity: .7; }
.lb-flash { position: absolute; left: 14px; right: 14px; bottom: calc(100% + 6px); margin: 0; padding: 8px 10px; font-size: 13px; background: var(--surface-2); border-left: 3px solid #ff8fb0; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.lb-flash.is-on { opacity: 1; transform: none; }
.lb-pick { position: absolute; left: 10px; right: 10px; bottom: 150px; top: 110px; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .8); }
.lb-pick[hidden] { display: none; }
.lb-pick-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.lb-pick-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: start; }
.lb-pick-item { display: flex; flex-direction: column; gap: 4px; padding: 0; text-align: left; background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.lb-pick-item img { width: 100%; aspect-ratio: 528 / 748; object-fit: cover; border-radius: 4px; border: 2px solid var(--rc, var(--line)); }
.lb-pick-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pick-item:hover span { color: var(--text); }
.lb-pick-item.r1 { --rc: var(--c-common); } .lb-pick-item.r2 { --rc: var(--c-uncommon); } .lb-pick-item.r3 { --rc: var(--c-rare); } .lb-pick-item.r4 { --rc: var(--c-epic); } .lb-pick-item.r5 { --rc: var(--c-legendary); } .lb-pick-item.r6 { --rc: var(--c-mythic); }
.lb-pick-item.is-fa img { box-shadow: 0 0 0 1px #fff, 0 0 10px rgba(255, 255, 255, .6); }
.lb-fab { display: none; }
@media (max-width: 1180px) {
  .market-wrap { grid-template-columns: 1fr; }
  .lobby { position: fixed; z-index: 120; inset: 64px 0 0 auto; width: min(420px, 100vw); height: auto; transform: translateX(105%); transition: transform .3s var(--ease); clip-path: none; }
  .lobby.is-open { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .7); }
  .lb-toggle { display: block; }
  .lb-fab { display: inline-flex; position: fixed; z-index: 110; right: 18px; bottom: 18px; padding: 12px 20px; font: 600 14px "Inter", sans-serif; color: #fff; background: var(--accent); border: 0; box-shadow: 0 10px 30px -8px var(--accent); cursor: pointer; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
}

.footer { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .06); background: rgba(12, 11, 16, .6); }
.footer-in { max-width: 1320px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: var(--muted); }
.footer-in span:last-child { margin-left: auto; }

@media (max-width: 1100px) {
  .shop { grid-template-columns: 1fr; }
  .shop-panel { position: relative; top: 0; }
  .pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar-in { gap: 14px; padding: 0 16px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav-link { padding: 8px 10px; }
  .topbar-right .btn { display: none; }
  .page { padding: 24px 16px 60px; }
  .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .pick-name { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .counter { position: static; align-self: flex-start; font-size: 34px; }
  .spread { flex-wrap: wrap; gap: 14px; }
  .spread-item { width: calc(33% - 12px); margin: 0; transform: none; }
  .viewer-back { padding: 16px; }
  .footer-in span:last-child { margin-left: 0; }
  .ambience-motif { opacity: .05; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/1 "Inter", sans-serif; vertical-align: 2px; }
.page > .back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: 14px; text-decoration: none; }
.page > .back-link:hover { color: var(--text); }
.tr-who .field-sm, .tr-side .field-sm, .tr-send .field-sm { width: 100%; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.tr-who { display: grid; gap: 12px; max-width: 440px; }
.tr-who .btn { justify-self: start; }
.tr-who-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-who-list a { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 13px; text-decoration: none; }
.tr-who-list a:hover { border-color: var(--accent); }
.tr-with { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--muted); }
.tr-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; }
.tr-av img { width: 100%; height: 100%; object-fit: cover; }
.tr-with b { color: var(--text); }
.tr-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.tr-side { display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.tr-side h2 { margin: 0; font: 400 26px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.tr-side[data-side="get"] h2 { color: var(--c-uncommon); }
.tr-swap { align-self: center; font-size: 30px; color: var(--muted); }
.tr-picked { display: grid; gap: 6px; min-height: 52px; padding: 8px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--line); }
.tr-none { margin: 8px; font-size: 13px; }
.tr-pick { display: flex; align-items: center; gap: 10px; }
.tr-pick .tr-thumb { width: 34px; }
.tr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.tr-ctl { display: flex; gap: 4px; }
.tr-ctl button { width: 26px; height: 26px; padding: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); cursor: pointer; }
.tr-ctl button:hover { border-color: var(--accent); }
.tr-px { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.tr-px input { width: 110px; padding: 7px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 600 14px "Inter", sans-serif; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.tr-item { display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 11px; text-align: left; cursor: pointer; }
.tr-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-item:hover .tr-thumb { transform: translateY(-2px); }
.tr-thumb { position: relative; display: block; flex: none; width: 100%; --rc: var(--line); transition: transform .15s; }
.tr-thumb img { display: block; width: 100%; aspect-ratio: 528 / 748; object-fit: cover; border-radius: 4px; border: 2px solid var(--rc); }
.tr-thumb.r1 { --rc: var(--c-common); } .tr-thumb.r2 { --rc: var(--c-uncommon); } .tr-thumb.r3 { --rc: var(--c-rare); } .tr-thumb.r4 { --rc: var(--c-epic); } .tr-thumb.r5 { --rc: var(--c-legendary); } .tr-thumb.r6 { --rc: var(--c-mythic); }
.tr-thumb.is-fa img { box-shadow: 0 0 10px rgba(255, 255, 255, .55); }
.tr-q { position: absolute; right: 3px; bottom: 3px; padding: 1px 5px; background: rgba(0, 0, 0, .8); border-radius: 4px; color: #fff; font-size: 10px; }
.tr-send { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: center; margin-top: 18px; }
.tr-err { grid-column: 1 / -1; min-height: 1em; margin: 0; color: #ff8fb0; font-weight: 600; font-size: 14px; }
.tr-err.is-ok { color: var(--c-uncommon); }
.tr-tabs { margin: 8px 0 18px; border-bottom: 1px solid var(--line); }
.tr-list { display: grid; gap: 14px; max-width: 980px; }
.tr-empty { padding: 30px 0; }
.tr-card { display: grid; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); transition: opacity .4s, transform .4s; }
.tr-card.is-done { opacity: 0; transform: translateX(20px); }
.tr-card.st-accepted { border-left-color: var(--c-uncommon); }
.tr-card.st-refused, .tr-card.st-failed, .tr-card.st-cancelled, .tr-card.st-expired, .tr-card.st-pending:not(:has(footer)) { border-left-color: var(--line); }
.tr-card header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tr-st { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); }
.st-accepted .tr-st { color: var(--c-uncommon); }
.tr-msg { margin: 0; color: var(--muted); font-style: italic; font-size: 14px; }
.tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.tr-cols .tr-swap { font-size: 22px; }
.tr-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tr-row .tr-thumb { width: 54px; }
.tr-pxtag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; font-weight: 700; font-size: 14px; }
.tr-card footer { display: flex; justify-content: flex-end; gap: 8px; }
.tr-card .js-tr.is-confirm { background: var(--c-uncommon); }
.lb-att-info .lb-act + .lb-act { margin-top: 4px; }
@media (max-width: 860px) {
  .tr-board, .tr-cols { grid-template-columns: 1fr; }
  .tr-swap { justify-self: center; transform: rotate(90deg); }
  .tr-send { grid-template-columns: 1fr; }
}
.user-pop .user-link { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13.3px; }
.user-pop .user-link:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.pf-link { color: inherit; text-decoration: none; }
.pf-link:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
a.lb-av { text-decoration: none; color: inherit; }

.av { --t: 3px; --g: 2px; position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 600; }
.av-i { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.av-i img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.av > span:not(.av-i):not(.av-d) { position: relative; }
.av-d { --rm: radial-gradient(farthest-side, transparent 70.6%, #000 71.4%, #000 74.6%, transparent 75.4%); --gm: radial-gradient(farthest-side, transparent 62%, rgba(0, 0, 0, .85) 72%, transparent 96%); position: absolute; z-index: 1; inset: -20%; pointer-events: none; container-type: size; }
.av-d::before, .av-d::after { content: ""; position: absolute; inset: 0; border-radius: 50%; -webkit-mask: var(--rm); mask: var(--rm); }
.av-d::after { -webkit-mask: var(--gm); mask: var(--gm); }
.av-d i { position: absolute; left: 50%; top: 50%; display: none; }
.fr-rare .av-d::before { background: #b9d8ff; }
.fr-rare .av-d::after { background: #3d86ff; animation: d-pulse 2.6s ease-in-out infinite; }
.fr-epic .av-d::before, .fr-epic .av-d::after { background: conic-gradient(#22d3ee, #6366f1, #c026d3, #ff4fd8, #a855f7, #22d3ee); animation: d-spin 7s linear infinite; }
.fr-legendary .av-d::before, .fr-legendary .av-d::after { background: conic-gradient(transparent 0 35%, #ff9d00 62%, #fff4c2 84%, #ffb300 92%, transparent 100%); animation: d-spin 4.5s linear infinite; }
.fr-legendary .av-d::before { --rm: radial-gradient(farthest-side, transparent 70%, #000 71.4%, #000 76%, transparent 77.5%); }
.fr-legendary .av-d i { display: block; width: 2.4cqw; height: 2.4cqw; margin: -1.2cqw; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 2cqw 0.6cqw #ff9a00; animation: d-ember 2.6s ease-out infinite; }
.fr-mythic .av-d::before { background: conic-gradient(#ff2a6d, #ffd0df, #ff0055, #ff7aa8, #ffffff, #ff2a6d); animation: d-spin 3s linear infinite; }
.fr-mythic .av-d::after { --gm: radial-gradient(farthest-side, transparent 64%, #000 72%, transparent 90%); background: #ff1f5a; animation: d-pulse 2s ease-in-out infinite; }
.fr-mythic .av-d i:first-child { display: block; inset: 0; left: 0; top: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 70, 130, .95) 0 1.6deg, transparent 1.6deg 7deg), repeating-conic-gradient(from 3deg, rgba(255, 210, 225, .7) 0 .8deg, transparent .8deg 11deg); -webkit-mask: radial-gradient(farthest-side, transparent 73%, #000 76%, rgba(0, 0, 0, .5) 88%, transparent 100%); mask: radial-gradient(farthest-side, transparent 73%, #000 76%, rgba(0, 0, 0, .5) 88%, transparent 100%); animation: d-spin 24s linear infinite, d-flare 3s ease-in-out infinite; }
.fr-mythic .av-d i:nth-child(n+2) { display: block; width: 2cqw; height: 2cqw; margin: -1cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 1.6cqw 0.6cqw #ff2a6d; animation: d-orbit 3.4s linear infinite; }
.fr-mythic .av-d i:nth-child(odd) { animation-duration: 5.2s; animation-direction: reverse; }
.fr-album10 .av-d::before { -webkit-mask: none; mask: none; background: url(/assets/img/laurel.svg) center / 100% no-repeat; filter: drop-shadow(0 0 1.6cqw rgba(245, 179, 1, .35)); }
.fr-album10 .av-d::after { -webkit-mask: url(/assets/img/laurel.svg) center / 100% no-repeat; mask: url(/assets/img/laurel.svg) center / 100% no-repeat; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) 0 0 / 300% 100%; animation: d-shine 4.5s ease-in-out infinite; }
.fr-fullart .av-d::before { background: conic-gradient(#ffffff, #ffd6ee, #d2ecff, #fff3cf, #e4d9ff, #ffffff); animation: d-spin 9s linear infinite; }
.fr-fullart .av-d::after { background: #ffffff; opacity: .55; }
.fr-fullart .av-d i { display: block; width: 7cqw; height: 7cqw; margin: -3.5cqw; background: radial-gradient(circle, #fff 30%, #ffe9f6 60%, #d9efff); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: d-twinkle 2.8s ease-in-out infinite; }
.fr-album .av-d::before { background: repeating-conic-gradient(#fc0053 0 7deg, transparent 7deg 15deg); }
.fr-album .av-d::after { background: #fc0053; opacity: .45; }
.fr-album .av-d i { display: block; width: 4.6cqw; height: 4.6cqw; margin: -2.3cqw; background: #ff3d7a; box-shadow: 0 0 2.4cqw #fc0053; animation: d-orbit 4s steps(20) infinite; }
.fr-album .av-d i:nth-child(even) { background: #fff; width: 3.2cqw; height: 3.2cqw; margin: -1.6cqw; }
.fr-vip .av-d::before { background: linear-gradient(135deg, #fff6cf, #ffc93c 40%, #b77a00 70%, #ffe17a); }
.fr-vip .av-d::after { background: #ffbf1f; opacity: .7; }
.fr-vip .av-d i:nth-child(-n+3) { display: block; left: 14.3%; top: 14.3%; right: 14.3%; bottom: 14.3%; border-radius: 50%; border: 0.8cqw solid #ffd660; animation: d-ripple 3s ease-out infinite; }
.fr-vip .av-d i:nth-child(2) { animation-delay: -1s; }
.fr-vip .av-d i:nth-child(3) { animation-delay: -2s; }
.av-d i:nth-child(1) { --a: 0deg; } .av-d i:nth-child(2) { --a: 60deg; animation-delay: -.45s; } .av-d i:nth-child(3) { --a: 120deg; animation-delay: -.9s; } .av-d i:nth-child(4) { --a: 180deg; animation-delay: -1.35s; } .av-d i:nth-child(5) { --a: 240deg; animation-delay: -1.8s; } .av-d i:nth-child(6) { --a: 300deg; animation-delay: -2.25s; }
@keyframes d-spin { to { transform: rotate(1turn); } }
@keyframes d-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes d-ember { from { transform: rotate(var(--a)) translateY(-36cqw) scale(1); opacity: 1; } to { transform: rotate(calc(var(--a) + 25deg)) translateY(-49cqw) scale(.2); opacity: 0; } }
@keyframes d-twinkle { 0%, 100% { opacity: 0; transform: rotate(var(--a)) translateY(-42cqw) rotate(calc(var(--a) * -1)) scale(.3); } 50% { opacity: 1; transform: rotate(var(--a)) translateY(-42cqw) rotate(calc(var(--a) * -1)) scale(1); } }
@keyframes d-orbit { from { transform: rotate(var(--a)) translateY(-40cqw); } to { transform: rotate(calc(var(--a) + 360deg)) translateY(-40cqw); } }
@keyframes d-ripple { from { transform: scale(1); opacity: .85; } to { transform: scale(1.38); opacity: 0; } }
.pe-frame.is-locked .av-d { opacity: .3; }
.pe-frame.is-locked .av-d::before, .pe-frame.is-locked .av-d::after, .pe-frame.is-locked .av-d i { animation: none !important; }
.avatar-sum { list-style: none; cursor: pointer; display: block; }
.avatar-sum::-webkit-details-marker { display: none; }
.av-top { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--line); }
.av-top[class*="fr-"] { box-shadow: none; }
.user-menu[open] .av-top { box-shadow: 0 0 0 2px var(--accent); }
.lb-av { overflow: visible; }
.lb-av img { border-radius: 50%; }
.is-profile { overflow-x: hidden; }
.pf { --pa: var(--accent); position: relative; isolation: isolate; }
.pf-bg { position: absolute; z-index: -1; top: -40px; left: 50%; width: 100vw; height: 560px; transform: translateX(-50%); }
.pf.has-bg .pf-bg { background: linear-gradient(180deg, rgba(12, 11, 16, .25), rgba(12, 11, 16, .55) 45%, var(--bg) 96%), var(--pbg) center 30% / cover no-repeat; }
.pf:not(.has-bg) .pf-bg { background: radial-gradient(60% 80% at 20% 0, color-mix(in srgb, var(--pa) 22%, transparent), transparent 70%); }
.pf-head { display: flex; align-items: center; gap: 26px; padding: 40px 0 10px; }
.pf-avw { position: relative; flex: none; }
.pf-av { --t: 5px; --g: 3px; width: 120px; height: 120px; font: 400 56px "Bebas Neue", sans-serif; box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .8); }
.pf-on { position: absolute; z-index: 2; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-uncommon); border: 3px solid var(--bg); }
.pf-id { flex: 1; min-width: 0; }
.pf-id h1 { margin: 0; font: 400 60px/1 "Bebas Neue", sans-serif; letter-spacing: .02em; overflow-wrap: anywhere; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
.pf-since { margin: 6px 0 0; color: rgba(243, 243, 245, .7); font-size: 14px; }
.pf-bio { margin: 12px 0 0; max-width: 620px; padding-left: 12px; border-left: 3px solid var(--pa); font-size: 15px; line-height: 1.5; }
.pf-vip { display: inline-block; padding: 3px 10px; vertical-align: middle; font: 700 13px "Inter", sans-serif; letter-spacing: .1em; color: #111; background: var(--c-legendary); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.pf .pf-cta .btn { background: var(--pa); color: #fff; }
.pf .pf-cta .btn:hover { filter: brightness(1.12); }
.pf-h { margin: 40px 0 18px; font: 400 32px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.pf-h::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 4px; background: var(--pa); }
.pf-show { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.pf-slot { display: grid; place-content: center; gap: 6px; aspect-ratio: 528 / 748; border: 2px dashed var(--line); color: var(--muted); font-size: 13px; text-align: center; text-decoration: none; transition: border-color .15s, color .15s; }
.pf-slot span { font-size: 40px; line-height: 1; }
.pf-slot:hover { border-color: var(--pa); color: var(--text); }
.pf-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.pf-stats div, .pf-rar div { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.pf-stats b { font: 400 34px/1 "Bebas Neue", sans-serif; letter-spacing: .03em; color: var(--pa); }
.pf-stats span, .pf-rar span { color: var(--muted); font-size: 13px; }
.pf-stats small { font-size: 11px; }
.pf-rar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pf-rar div { border-top: 3px solid var(--rc); padding: 12px 16px; }
.pf-rar b { font: 400 26px/1 "Bebas Neue", sans-serif; color: var(--rc); }
.pe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 10px; padding-bottom: 90px; }
.pe-box { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pe-box:first-child { grid-column: 1 / -1; }
.pe-box h2 { margin: 0 0 16px; font: 400 26px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.pe-box h2 small { font: 400 13px "Inter", sans-serif; letter-spacing: 0; margin-left: 8px; }
.pe-show { display: grid; grid-template-columns: repeat(5, minmax(0, 150px)); gap: 16px; }
.pe-slot { position: relative; display: grid; align-content: start; gap: 6px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 12px; text-align: left; }
.pe-slot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.pe-slot { cursor: pointer; }
button.pe-slot span { display: grid; place-items: center; aspect-ratio: 528 / 748; border: 2px dashed var(--line); font-size: 36px; transition: border-color .15s; }
button.pe-slot:hover span { border-color: var(--accent); color: var(--text); }
.pe-slot-ctl { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; opacity: 0; transition: opacity .15s; }
.pe-slot:hover .pe-slot-ctl { opacity: 1; }
.pe-slot-ctl button { width: 26px; height: 26px; padding: 0; background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; color: #fff; font-size: 16px; cursor: pointer; }
.pe-avrow, .pe-bgrow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pe-av { --t: 4px; width: 92px; height: 92px; font: 400 42px "Bebas Neue", sans-serif; }
.pe-avbtns { display: grid; gap: 8px; }
.pe-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pe-frame { display: grid; justify-items: center; gap: 8px; padding: 14px 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; }
.pe-frame b { font-size: 12px; }
.pe-frame small { font-size: 10px; color: var(--muted); line-height: 1.3; }
.pe-frame.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pe-frame.is-locked { cursor: not-allowed; }
.pe-frame.is-locked .av-i { opacity: .35; }
.pe-fr-av { width: 52px; height: 52px; font-size: 20px; }
.pe-bgprev { display: grid; place-items: center; width: 320px; max-width: 100%; aspect-ratio: 16 / 9; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.pe-bgprev img { width: 100%; height: 100%; object-fit: cover; }
.pe-arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 14px; }
.pe-art { padding: 0; aspect-ratio: 16 / 9; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.pe-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-art.is-on, .pe-art:hover { border-color: var(--accent); }
.pe-bio { width: 100%; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px/1.5 "Inter", sans-serif; resize: none; }
.pe-lbl { margin: 16px 0 8px; color: var(--muted); font-size: 13px; }
.pe-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.pe-color { width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.pe-color.is-on { box-shadow: 0 0 0 2px var(--c); }
.pe-bar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 12px max(24px, calc(50vw - 640px)); background: rgba(12, 11, 16, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.pe-bar .btn-open { width: 240px; }
.pe-msg { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.pe-msg.is-ok { color: var(--c-uncommon); }
.pe-msg.is-bad { color: #ff8fb0; }
.pe-pick { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); }
.pe-pick[hidden] { display: none; }
.pe-pick-in { display: grid; gap: 12px; width: min(760px, 100%); max-height: 86vh; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.pe-pick-head { display: flex; justify-content: space-between; align-items: center; }
.pe-x { width: 32px; height: 32px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.pe-pick .field-sm { width: 100%; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.pe-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; overflow-y: auto; }
@media (max-width: 860px) {
  .pf-head { flex-wrap: wrap; padding-top: 20px; }
  .pf-av { width: 84px; height: 84px; font-size: 40px; }
  .pf-id h1 { font-size: 42px; }
  .pf-show { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-stats, .pf-rar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pe { grid-template-columns: 1fr; }
  .pe-show { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tr-av.av { overflow: visible; }
button.pf-slot { width: 100%; background: none; font: inherit; font-size: 13px; cursor: pointer; }
.kp-lock { overflow: hidden; }
.kp { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .75); backdrop-filter: blur(3px); }
.kp[hidden] { display: none; }
.kp-in { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 14px; width: min(820px, 100%); height: min(720px, 88vh); padding: 20px; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.kp-head { display: flex; align-items: center; gap: 12px; }
.kp-head b { flex: 1; font: 400 26px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.kp-back { padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.kp-x { width: 34px; height: 34px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
.kp-x:hover { color: var(--text); }
.kp-q { width: 100%; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.kp-q[hidden] { display: none; }
.kp-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); align-content: start; gap: 14px 12px; min-height: 0; overflow-y: auto; padding: 2px 6px 2px 2px; }
.kp-body.is-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kp-item { display: grid; gap: 5px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 11px; text-align: left; cursor: pointer; }
.kp-item:hover .tr-thumb { transform: translateY(-3px); }
.kp-item:hover { color: var(--text); }
.kp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-name em { font-style: normal; color: #ffd6ef; }
.kp-body .muted { grid-column: 1 / -1; }
.crop { grid-column: 1 / -1; display: grid; justify-items: center; gap: 16px; padding: 10px 0; }
.crop-view { position: relative; width: 280px; height: 280px; border-radius: 50%; overflow: hidden; cursor: grab; touch-action: none; box-shadow: 0 0 0 3px var(--line), 0 20px 50px -20px #000; background: var(--surface-2); }
.crop-view:active { cursor: grabbing; }
.crop-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.crop-z { width: 280px; accent-color: var(--accent); }
.crop .muted { margin: 0; font-size: 13px; text-align: center; }
.crop .btn { min-width: 160px; }
.pe-frame { padding-top: 18px; }
.pe-frame small.is-ok { color: var(--c-uncommon); font-weight: 600; }
.pe-frame small svg { vertical-align: -1px; }
.pe-fr-av { margin-bottom: 6px; }
.pe-frame.is-locked b { color: var(--muted); }

@keyframes d-flare { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes d-shine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0% 0; } }
.pe-frame { contain: paint; isolation: isolate; }
.av-d { will-change: transform; }
.shop-streak { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 18px; background: linear-gradient(90deg, rgba(224, 162, 27, .18), rgba(224, 162, 27, .04)); border: 1px solid rgba(224, 162, 27, .45); color: var(--text); text-decoration: none; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.shop-streak b { font: 400 22px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.shop-streak span { color: #ffd36b; font-weight: 700; font-size: 13px; }
.shop-streak:hover { border-color: #ffd36b; }
.shop-special { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--b) 60%, transparent); box-shadow: 0 0 30px -12px var(--b); color: var(--text); text-decoration: none; }
.shop-special img { width: 44px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.shop-special span { flex: 1; display: grid; }
.shop-special b { font: 400 22px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.shop-special small { color: var(--muted); font-size: 12px; }
.shop-special em { font-style: normal; padding: 8px 16px; background: var(--b); color: #1a1205; font-weight: 700; font-size: 13px; }
.streak, .ms-box { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.streak { margin-bottom: 18px; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ms-head h2 { margin: 0; font: 400 28px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.streak-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 10px; }
.sk-day { position: relative; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 120px; padding: 14px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.sk-day small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sk-day b { display: inline-flex; align-items: center; gap: 6px; font: 400 26px "Bebas Neue", sans-serif; letter-spacing: .03em; }
.sk-day.is-big { background: radial-gradient(80% 90% at 50% 30%, rgba(224, 162, 27, .25), transparent 70%), var(--surface-2); border-color: rgba(224, 162, 27, .5); }
.sk-day.is-big img { width: 46px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.sk-day.is-big b { font-size: 20px; color: #ffd36b; }
.sk-day.is-got { opacity: .55; }
.sk-day.is-got .sk-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-uncommon); }
.sk-day.is-got .sk-check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #0c0b10; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sk-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 30px -8px var(--accent); animation: sk-glow 2s ease-in-out infinite; }
.sk-day.is-big.is-today { border-color: #ffd36b; box-shadow: 0 0 0 1px #ffd36b, 0 0 36px -6px #e0a21b; }
.sk-day.is-pop { animation: sk-pop .5s ease-out; }
@keyframes sk-glow { 50% { box-shadow: 0 0 0 1px var(--accent), 0 0 44px -6px var(--accent); } }
@keyframes sk-pop { 40% { transform: scale(1.08); } }
.streak-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.streak-foot .btn-open { width: auto; min-width: 280px; }
.streak-foot p { margin: 0; }
.streak-odds { margin: 14px 0 0; font-size: 12px; }
.ms-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ms-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ms-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.ms-main { flex: 1; min-width: 0; }
.ms-main p { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.ms-bar { height: 6px; background: rgba(255, 255, 255, .07); border-radius: 3px; overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
.ms-reward { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.ms-count { min-width: 64px; text-align: right; color: var(--muted); font-size: 13px; font-weight: 600; }
.ms-ok { min-width: 64px; text-align: right; color: var(--c-uncommon); font-size: 13px; font-weight: 700; }
.ms-item.is-done { border-color: var(--accent); }
.ms-item.is-done .ms-bar i { background: var(--c-uncommon); }
.ms-item.is-claimed { opacity: .5; }
.ms-item.is-claimed .ms-bar i { background: var(--c-uncommon); }
@media (max-width: 860px) {
  .streak-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sk-day.is-big { grid-column: span 2; }
  .ms-cols { grid-template-columns: 1fr; }
  .ms-item { flex-wrap: wrap; }
}
button.sk-day { font: inherit; color: var(--text); cursor: pointer; transition: transform .15s; }
button.sk-day:hover { transform: translateY(-3px); }
.sk-cta { font-style: normal; padding: 4px 12px; border-radius: 999px; background: rgba(252, 0, 83, .15); border: 1px solid rgba(252, 0, 83, .5); color: #ff8fb0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sk-day.is-big .sk-cta { background: rgba(224, 162, 27, .15); border-color: rgba(255, 211, 107, .6); color: #ffd36b; }
.sk-day.is-today { animation: none; box-shadow: 0 0 0 1px var(--accent), 0 0 26px -10px var(--accent); }
.sk-day.is-big.is-today { box-shadow: 0 0 0 1px #ffd36b, 0 0 30px -8px #e0a21b; }
.streak-foot { margin-top: 14px; }
.streak-foot .muted { font-size: 13px; }
.js-claim-all small { opacity: .8; font-weight: 400; }

.kback { background: #0b0a10 url(/assets/img/backcard.webp) center / cover no-repeat; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .8); }
.kback::before, .kback > * { display: none; }
.ms-cols { margin-top: 0; }
.coll-head:has(.js-claim-all) { margin-bottom: 24px; align-items: flex-end; }
.ms-count, .ms-ok, .ms-item .js-claim { flex: none; width: 104px; text-align: right; }
.ms-item .js-claim { justify-content: center; }
.ms-item { min-height: 72px; }

.pf-stats b small { font-size: 18px; color: var(--muted); }
.ms-tabs { margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.ms-tabs .nav-badge { vertical-align: 1px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.ach { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ach.is-ready { border-color: var(--accent); box-shadow: 0 0 24px -12px var(--accent); }
.ach.is-done { background: linear-gradient(135deg, rgba(120, 220, 255, .08), transparent 60%), var(--surface); }
.ach-medal { --m: #3a3846; --m2: #23212b; flex: none; display: grid; place-items: center; width: 58px; height: 58px; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: linear-gradient(160deg, var(--m), var(--m2)); }
.ach-medal span { font: 400 26px "Bebas Neue", sans-serif; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.ach-medal.t0 span { color: var(--muted); }
.t1 { --m: #e3a46b; --m2: #7a4420; } .t2 { --m: #f1f3f7; --m2: #7d8494; } .t3 { --m: #ffe17a; --m2: #a86a00; } .t4 { --m: #c9fff4; --m2: #3a9c8c; } .t5 { --m: #d6f3ff; --m2: #4a7dff; }
.ach-main { flex: 1; min-width: 0; }
.ach-main h3 { margin: 0; font: 400 24px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.ach-main h3 small { margin-left: 6px; font: 700 11px "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ach-main p { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.ach-pips { display: flex; gap: 5px; margin-bottom: 8px; }
.ach-pips i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.ach-pips i.is-got { background: linear-gradient(90deg, var(--m), var(--m2)); }
.ach-pips i.is-ready { background: var(--accent); }
.ach-val { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.ach-side { display: grid; justify-items: end; gap: 8px; }
.coll-head:has(.js-ach-all) { margin-bottom: 18px; align-items: flex-end; }
@media (max-width: 860px) { .ach-grid { grid-template-columns: 1fr; } .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pf-cta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn.is-static { cursor: default; opacity: .7; }
.shop-tickets { margin: 0 0 16px; padding: 12px 16px; background: rgba(95, 184, 76, .1); border: 1px solid rgba(95, 184, 76, .4); border-radius: 10px; font-size: 14px; }
.shop-tickets b { color: var(--c-uncommon); }
.fr-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fr-side { display: grid; gap: 18px; }
.fr-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.fr-av { width: 38px; height: 38px; font-size: 15px; }
.fr-name { font-weight: 700; }
.fr-st { color: var(--muted); font-size: 12px; }
.fr-st.is-on { color: var(--c-uncommon); }
.fr-act { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.fr-act .nav-badge { margin-left: 2px; background: #fff; color: var(--accent); }
.fr-x { width: 30px; height: 30px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 18px; cursor: pointer; }
.fr-x.is-confirm { width: auto; padding: 0 10px; font-size: 12px; color: #ff8fb0; border-color: #ff8fb0; }
.fr-q { width: 100%; margin-bottom: 10px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.ref-link { margin-bottom: 18px; }
.ref-link .pe-lbl { margin-top: 0; }
.ref-copy { display: flex; gap: 10px; }
.ref-copy input { flex: 1; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 600 14px "Inter", sans-serif; }
.ref-note { margin: 14px 0 0; font-size: 12px; }
.pm { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; height: min(70vh, 680px); }
.pm-list { display: grid; align-content: start; gap: 6px; overflow-y: auto; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.pm-c { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.pm-c > span:not(.av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-c:hover { background: var(--surface-2); }
.pm-c.is-on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.pm-c .fr-av { width: 32px; height: 32px; font-size: 13px; }
.pm-thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pm-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pm-head .btn { margin-left: auto; }
.pm-msgs { display: flex; flex-direction: column; gap: 8px; padding: 16px; overflow-y: auto; }
.pm-m { max-width: 72%; align-self: flex-start; padding: 9px 13px; background: var(--surface-2); border-radius: 14px 14px 14px 4px; }
.pm-m.is-mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); border-radius: 14px 14px 4px 14px; }
.pm-m p { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-m time { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; text-align: right; }
.pm-empty { margin: auto; }
.pm-input { margin: 0; padding: 12px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .fr-cols { grid-template-columns: 1fr; } .pm { grid-template-columns: 1fr; height: auto; } .pm-list { display: flex; overflow-x: auto; } .pm-thread { height: 70vh; } }
.nav-badge[hidden] { display: none; }

.pm-c > .av { flex: none; }
.pm-trade { align-self: center; width: min(460px, 100%); display: grid; gap: 8px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; }
.pm-trade.is-mine { border-left-color: var(--c-rare); }
.pm-trade header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.pt-st { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-st.st-pending { color: #ffd36b; } .pt-st.st-accepted { color: var(--c-uncommon); }
.pt-msg { margin: 0; color: var(--muted); font-size: 13px; font-style: italic; }
.pt-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; }
.pt-row small { color: var(--muted); font-size: 11px; }
.pt-row > div { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.pt-row .tr-thumb { width: 38px; }
.pt-row .tr-pxtag { padding: 4px 8px; font-size: 12px; }
.pm-trade footer { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.pm-trade footer .is-confirm { background: var(--c-uncommon); }
.pm-trade time { color: var(--muted); font-size: 10.5px; text-align: right; }
.pick.has-stock .pick-price { color: var(--c-uncommon); font-weight: 700; }
.pick.pick-vip .pick-pack img { filter: saturate(.7) brightness(.8); }
.pick.pick-vip .pick-price { color: #ffd36b; font-weight: 700; letter-spacing: .08em; }
.btn-open.is-vip { background: linear-gradient(90deg, #6b4c0e, #3a2a08); color: #ffd36b; box-shadow: none; }
.panel-vip { display: block; margin-top: 10px; color: #ffd36b; font-size: 13px; font-weight: 600; text-decoration: none; }
.panel-vip:hover { text-decoration: underline; }
.panel-vip[hidden] { display: none; }
.ref-rw { display: inline-flex; align-items: center; gap: 6px; }
.ref-rw img { width: 18px; }
.ch-in { height: auto; max-height: 88vh; grid-template-rows: auto minmax(0, 1fr) auto; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; overflow-y: auto; padding: 4px; }
.ch-item { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.ch-item.is-on { border-color: var(--b); box-shadow: 0 0 20px -10px var(--b); }
.ch-item img { width: 64px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.ch-item b { font-size: 12px; }
.ch-q { display: flex; align-items: center; gap: 8px; }
.ch-q button { width: 28px; height: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; }
.ch-q button:disabled { opacity: .35; cursor: default; }
.ch-q i { font-style: normal; font-weight: 700; min-width: 14px; }
.ch-foot { display: flex; justify-content: space-between; align-items: center; }
.notif { position: relative; }
.notif summary { list-style: none; }
.notif summary::-webkit-details-marker { display: none; }
.nt-bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.nt-bell:hover, .notif[open] .nt-bell { color: var(--text); border-color: var(--accent); }
.nt-bell .nav-badge { position: absolute; top: -5px; right: -6px; margin: 0; }
.nt-pop { position: absolute; z-index: 120; right: 0; top: calc(100% + 10px); width: 320px; max-height: 420px; overflow-y: auto; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8); }
.nt-head { margin: 4px 8px 8px; font: 400 20px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.nt-item { display: grid; gap: 2px; padding: 9px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.nt-item b { color: var(--text); }
.nt-item:hover { background: var(--surface-2); }
.nt-item.is-new { color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nt-item time { font-size: 11px; color: var(--muted); }
.nt-empty { margin: 8px; font-size: 13px; }
.topbar-right { gap: 10px; }
.lb-flag, .pm-flag { padding: 0 4px; background: none; border: 0; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s; }
.lb-msg:hover .lb-flag, .pm-m:hover .pm-flag { opacity: .8; }
.lb-flag:hover, .pm-flag:hover { color: #ff8fb0; opacity: 1; }
.pm-m { position: relative; }
.pm-flag { position: absolute; top: 4px; right: -22px; font-weight: 800; font-size: 13px; }
.rp-in { height: auto; width: min(460px, 100%); grid-template-rows: none; }
.rp-reasons { display: grid; gap: 8px; }
.rp-reasons label { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.rp-more { margin-top: 4px; }
.md-search { display: flex; gap: 8px; }
.md-search input, .md-row .field-sm { padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.md-reports { display: grid; gap: 12px; }
.md-rep header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.md-rep header time { margin-left: auto; font-size: 12px; }
.md-rep footer { display: flex; gap: 8px; margin-top: 10px; }
.md-rep footer input { flex: 1; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.md-rep p { margin: 4px 0; font-size: 14px; }
.md-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.md-tag.is-warn { color: #ffd36b; border-color: rgba(255, 211, 107, .4); }
.md-tag.is-bad { color: #ff8fb0; border-color: rgba(255, 143, 176, .4); }
.md-raw { padding: 10px 12px; background: var(--surface-2); border-left: 3px solid #ff8fb0; border-radius: 6px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-player { display: grid; gap: 16px; }
.md-id { display: flex; gap: 16px; align-items: flex-start; }
.md-id .fr-av { width: 64px; height: 64px; font-size: 26px; }
.md-id h2 { margin: 0; font: 400 32px "Bebas Neue", sans-serif; }
.md-id p { margin: 4px 0; }
.md-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.md-actions h3, .md-player h3 { margin: 0 0 10px; font: 400 22px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.md-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.md-row input.field-sm { flex: 1; min-width: 140px; }
.md-danger { border-color: rgba(255, 143, 176, .35); }
.md-del { background: #b3123f; }
.md-msgs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 420px; overflow-y: auto; }
.md-msgs li { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.md-msgs li time { flex: none; color: var(--muted); font-size: 11px; }
.md-msgs li span { flex: 1; overflow-wrap: anywhere; }
.md-msgs li.is-del { opacity: .45; text-decoration: line-through; }
.md-convs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pf-report { padding: 8px 10px; }
.avatar-sum { position: relative; }
.av-badge { position: absolute; top: -4px; right: -6px; z-index: 3; margin: 0; }
.md-new { display: block; margin-bottom: 12px; padding: 10px 14px; background: rgba(252, 0, 83, .12); border: 1px solid var(--accent); border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.md-closeall { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.md-rep { transition: opacity .3s, transform .3s; }
.md-rep.is-gone { opacity: 0; transform: translateX(20px); }
.md-rep-s { padding: 10px 0; border-bottom: 1px solid var(--line); }
.md-rep-s:last-child { border-bottom: 0; }
.md-rep-s header .btn { margin-left: 8px; }
.md-open { border-color: rgba(252, 0, 83, .4); }
.kadm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kadm-stats div { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.kadm-stats b { font: 400 34px/1 "Bebas Neue", sans-serif; color: var(--accent); }
.kadm-stats span { color: var(--muted); font-size: 13px; }
.kadm-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.kadm-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.kadm-bars i { width: 100%; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.kadm-bars small { color: var(--muted); font-size: 10px; }
.kadm-charts h3, .kadm-form h3 { margin: 0 0 12px; font: 400 24px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.kadm-form { display: grid; gap: 16px; padding-bottom: 90px; }
.kadm-field { padding: 12px 0; border-top: 1px solid var(--line); }
.kadm-field:first-of-type { border-top: 0; }
.kadm-lbl { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.kadm-help { margin: -4px 0 10px; font-size: 12px; }
.kadm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kadm-grid label { display: grid; gap: 4px; }
.kadm-grid small { color: var(--muted); font-size: 11px; }
.kadm-form .field-sm, .md-give .field-sm { width: 100%; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.kadm-field > .field-sm { max-width: 220px; }
.kadm-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.kadm-q { margin-bottom: 10px; }
.kadm-fr { display: grid; gap: 8px; margin-top: 10px; }
.kadm-fr .is-off { opacity: .45; }
.kadm-merges { margin-top: 18px; }
.kadm-pick { grid-template-columns: 1fr; }
.kadm-pick .fr-row { width: 100%; text-align: left; color: var(--text); cursor: pointer; font: inherit; }
.kadm-pick .fr-row.is-confirm { border-color: var(--accent); }
.md-give { margin-top: 10px; }
.md-give .field-sm { width: auto; flex: 1; min-width: 110px; }
.burger { display: none; flex: none; width: 40px; height: 40px; padding: 10px 9px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-lang, .nav-shade { display: none; }
@media (max-width: 1100px) {
  .topbar-in { gap: 12px; padding: 0 16px; }
  .burger { display: flex; }
  .logo img { height: 32px; }
  .nav { position: fixed; z-index: 60; top: 64px; left: 0; bottom: 0; width: min(300px, 82vw); flex-direction: column; gap: 2px; padding: 16px 12px; overflow-y: auto; background: #111017; border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .28s var(--ease, ease); }
  .nav-open .nav { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .nav-link { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; font-size: 16px; border-radius: 10px; }
  .nav-link.is-active { background: var(--surface-2); }
  .nav-lang { display: flex; margin-top: auto; border-top: 1px solid var(--line); border-radius: 0; }
  .nav-shade { position: fixed; z-index: 55; inset: 64px 0 0 0; background: rgba(0, 0, 0, .55); }
  .nav-open .nav-shade { display: block; }
  .nav-open { overflow: hidden; }
  .topbar-right { margin-left: auto; gap: 8px; }
  .topbar-right > .lang { display: none; }
}
@media (max-width: 520px) {
  .topbar-in { gap: 8px; padding: 0 10px; }
  .logo img { height: 26px; }
  .hud { gap: 4px; }
  .hud-item { height: 32px; padding: 0 7px; font-size: 12px; gap: 4px; }
  .hud-mix small { display: none; }
  .nt-bell { width: 34px; height: 34px; }
  .av-top { width: 32px; height: 32px; }
  .nt-pop { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; }
  .user-pop { position: fixed; right: 8px; top: 64px; }
  .page { padding: 20px 14px 60px; }
  .coll-head h1, .pf-id h1 { font-size: 40px; }
}
html, body { overflow-x: clip; }
.notif:not([open]) .nt-pop, .user-menu:not([open]) .user-pop { display: none; }
@media (max-width: 1180px) { .market-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .fr-cols { grid-template-columns: minmax(0, 1fr); }
  .fr-row { flex-wrap: wrap; }
  .fr-act { flex-wrap: wrap; }
  .md-id { flex-wrap: wrap; }
}
.md-actions { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.ach-grid { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
@media (max-width: 1100px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0c0b10; }
}
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .pf-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: center; padding-top: 16px; }
  .pf-av { width: 84px; height: 84px; font-size: 40px; }
  .pf-bio { grid-column: 1 / -1; }
  .pf-id { display: contents; }
  .pf-id h1 { grid-column: 2; font-size: 38px; }
  .pf-since { grid-column: 1 / -1; margin: 0; }
  .pf-avw { grid-row: span 1; }
  .pf-cta { grid-column: 1 / -1; justify-content: flex-start; }
  .pf-show { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .coll-head { flex-wrap: wrap; gap: 12px; }
  .md-search { width: 100%; }
  .md-search input { flex: 1; min-width: 0; }
}
@media (max-width: 1180px) { .lobby { background: #111017; } }
@media (max-width: 520px) { .lobby { inset: 64px 0 0 0; width: 100vw; } .pe-bar .btn-open { width: auto; min-width: 150px; } .pe-bar { padding: 10px 14px; } .pe-msg { font-size: 12px; } }
.pe-bar { position: sticky; z-index: 40; bottom: 0; left: auto; right: auto; margin: 0 -24px -80px; padding: 12px 24px; border-radius: 0; }
.pe, .kadm-form { padding-bottom: 24px; }
@media (max-width: 520px) { .pe-bar { margin: 0 -14px -60px; padding: 10px 14px; } }
.kspots:empty { display: none; }
.kspot { position: relative; display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 14px 48px 14px 16px; overflow: hidden; background: radial-gradient(120% 160% at 0 50%, color-mix(in srgb, var(--sc) 28%, transparent), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent); border-radius: 14px; transition: opacity .3s, transform .3s; }
.kspot[hidden] { display: none; }
.kspot.is-gone { opacity: 0; transform: translateY(-6px); }
.kspot img { flex: none; width: 46px; transform: rotate(-8deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); }
.kspot div { flex: 1; min-width: 0; }
.kspot b { display: block; font: 400 24px/1.1 "Bebas Neue", sans-serif; letter-spacing: .03em; }
.kspot p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.kspot .btn { flex: none; background: var(--sc); color: #fff; }
.kspot .btn:hover { filter: brightness(1.12); }
.kspot-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.kspot-x:hover { color: var(--text); }
@media (max-width: 640px) { .kspot { flex-wrap: wrap; padding-right: 40px; } .kspot img { width: 36px; } .kspot .btn { margin-left: 64px; } }
.kspot-wrap { margin: 26px 0 32px; }
.kspots { display: grid; }
.kspots .kspot { grid-area: 1 / 1; margin: 0; padding-right: 18px; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .45s, transform .45s, visibility .45s; }
.kspots .kspot.is-on { opacity: 1; visibility: visible; transform: none; }
.kspot-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.kspot-nav[hidden] { display: none; }
.kspot-arrow { width: 26px; height: 26px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.kspot-arrow:hover { color: var(--text); border-color: var(--muted); }
.kspot-dots { display: flex; gap: 6px; }
.kspot-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .2); cursor: pointer; transition: width .25s, background .25s; }
.kspot-dots button.is-on { width: 22px; background: var(--accent); }
@media (max-width: 640px) { .kspots .kspot { padding-right: 14px; } }

.viewer-tilt { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer-tilt img { -webkit-user-drag: none; pointer-events: none; }
.back-summary { touch-action: pan-y; }
@media (max-width: 640px) {
  .kspots .kspot { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 14px; }
  .kspot img { width: 36px; grid-row: span 2; }
  .kspot div { min-width: 0; }
  .kspot b { font-size: 21px; }
  .kspot .btn { grid-column: 2; justify-self: start; margin: 6px 0 0; }
  .kspot-wrap { margin: 20px 0 24px; }
}
.land-packs-row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.land-packs figcaption { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 960px) { .land-packs-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; } }
@media (max-width: 520px) { .land-packs figcaption { font-size: 16px; } .land-packs small { font-size: 11px; } }
.st { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.st .pe-bar { grid-column: 1 / -1; }
.st h3 { margin: 0 0 12px; font: 400 24px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.st-help { margin: -4px 0 12px; font-size: 13px; }
.st-switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.st-switch input { position: absolute; opacity: 0; pointer-events: none; }
.st-switch i { flex: none; position: relative; width: 40px; height: 22px; margin-top: 2px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s; }
.st-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.st-switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.st-switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.st-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-switch span { display: grid; gap: 2px; }
.st-switch b { font-size: 14px; }
.st-switch small { color: var(--muted); font-size: 12.5px; }
.st-opts { display: grid; gap: 8px; }
.st-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.st-opt:has(input:checked) { border-color: var(--accent); }
.st-opt input { accent-color: var(--accent); }
.st-providers { display: grid; gap: 8px; }
.st-danger { border-color: rgba(255, 143, 176, .35); }
.st-danger .md-row .field-sm { flex: 1; min-width: 180px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 14px "Inter", sans-serif; }
.md-del:disabled { opacity: .4; cursor: not-allowed; }
.pf-private { margin-top: 24px; text-align: center; padding: 30px; }
.pf-private b { font: 400 26px "Bebas Neue", sans-serif; letter-spacing: .04em; }
.st .pe-bar { margin: 0; border-radius: 12px; border: 1px solid var(--line); }
.wish-btn { position: absolute; z-index: 6; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(10,10,16,.72); color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s, transform .2s, background .2s; }
.wish-btn svg { fill: none; stroke: currentColor; stroke-width: 2; }
.coll-item:hover .wish-btn, .wish-btn:focus-visible { opacity: 1; }
.wish-btn:hover { transform: scale(1.1); }
.wish-btn.is-on { opacity: 1; color: #ff5c9a; border-color: rgba(255,92,154,.6); background: rgba(40,8,22,.85); }
.wish-btn.is-on svg { fill: currentColor; }
.wish-btn.is-pop { animation: wishpop .3s ease; }
@keyframes wishpop { 50% { transform: scale(1.35); } }
.cat-filters { flex-wrap: wrap; }
.cat-count { margin: 6px 0 14px; }
.cat-owned { position: absolute; z-index: 7; top: -8px; left: -8px; padding: 2px 8px; font-family: "Bebas Neue", sans-serif; font-size: 17px; background: #fff; color: #111; }
.cat-market { align-self: center; font-size: 13px; color: var(--muted, #9aa); text-decoration: none; }
.cat-market:hover { color: var(--accent); }
@media (hover: none) { .wish-btn { opacity: 1; } }
.back-more { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--rc); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.back-more:hover { color: #fff; border-color: #fff; }
.gp-hero { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; margin-top: 8px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; isolation: isolate; }
.gp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,11,16,.96) 25%, rgba(12,11,16,.72)), var(--gp-bg, none) center / cover; }
.gp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc); }
.gp-card .card { width: 100%; }
.gp-kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; }
.gp-title { font-size: clamp(38px, 5.5vw, 72px); line-height: .95; margin: 10px 0 6px; overflow-wrap: anywhere; }
.gp-by { margin: 0 0 22px; font-size: 16px; font-weight: 600; }
.gp-scores { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 22px; }
.gp-score { display: flex; align-items: center; gap: 10px; }
.gp-score b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 46px; line-height: 1; color: var(--rc); }
.gp-score span { font-size: 13px; line-height: 1.3; }
.gp-score small { color: var(--muted); }
.gp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gp-own { font-weight: 600; }
.gp-own b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 22px; color: var(--rc); }
.gp-wish svg { fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -2px; }
.gp-wish.is-on { color: #ff5c9a; border-color: rgba(255,92,154,.6); }
.gp-wish.is-on svg { fill: currentColor; }
.gp-market { margin: 12px 0 0; font-size: 13px; }
.gp-market b { color: var(--text); }
.gp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 28px; }
.gp-block { margin-bottom: 28px; }
.gp-block h2 { font-size: 30px; margin: 0 0 12px; }
.gp-block h3 { font-size: 22px; margin: 22px 0 8px; }
.gp-note { font-size: 12px; margin: -6px 0 10px; }
.gp-text { margin: 0; line-height: 1.7; color: #d6d6dc; }
.gp-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gp-video, .gp-iframe { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000 center / cover; }
.gp-video { cursor: pointer; padding: 0; color: #fff; }
.gp-video::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background .2s; }
.gp-video:hover::before { background: rgba(0,0,0,.15); }
.gp-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.gp-play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.gp-vname { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: left; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.gp-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gp-shot { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.gp-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gp-shot:hover img { transform: scale(1.06); }
.gp-info { margin: 0; display: grid; gap: 14px; }
.gp-info dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.gp-info dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gp-tag { display: inline-block; padding: 4px 10px; font-size: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.gp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-tag-link { color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
.gp-tag-link:hover { border-color: var(--accent); color: var(--accent); }
.gp-rel { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.gp-rel li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.gp-rel b { font-weight: 600; white-space: nowrap; }
.gp-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.gp-rel-card { display: block; text-decoration: none; color: inherit; }
.gp-igdb { text-align: center; margin: 20px 0 10px; }
.gp-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(5,5,8,.92); }
.gp-lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 20px 60px #000; }
.gp-lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.gp-lightbox button:hover { background: var(--accent); }
.gp-lb-prev { left: 16px; top: 50%; } .gp-lb-next { right: 16px; top: 50%; } .gp-lb-close { right: 16px; top: 16px; }
@media (max-width: 900px) {
  .gp-hero { grid-template-columns: 1fr; padding: 22px 16px; gap: 22px; }
  .gp-card { width: min(240px, 70%); margin: 0 auto; }
  .gp-cols { grid-template-columns: minmax(0, 1fr); }
  .gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.gp-videos + .gp-note { margin: 8px 0 0; }
.vip-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 20px; }
.vip-pack { width: 100%; filter: drop-shadow(0 30px 50px rgba(255, 190, 61, .25)); animation: vipfloat 5s ease-in-out infinite; }
@keyframes vipfloat { 50% { transform: translateY(-10px) rotate(-2deg); } }
.vip-hero h1 { font-size: clamp(56px, 7vw, 96px); line-height: .9; margin: 0 0 10px; }
.vip-hero h1 em, .lb-meta b.is-vip { font-style: normal; background: linear-gradient(90deg, #ffe08a, #ffbe3d, #ff9f1c, #ffe08a) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow-move 6s linear infinite; }
.vip-price { margin: 0 0 4px; font-size: 18px; }
.vip-price b { font-family: "Bebas Neue", sans-serif; font-weight: 400; font-size: 44px; color: #ffbe3d; }
.vip-cta { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.vip-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; }
.vip-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.vip-consent input { margin-top: 3px; accent-color: #ffbe3d; }
.vip-consent a { color: var(--text); }
.vip-safe { font-size: 12px; margin: 0; }
.vip-state { margin: 0; font-size: 16px; }
.vip-state b { color: #ffbe3d; }
.vip-msg { padding: 12px 16px; border-left: 3px solid #6fd257; background: rgba(111, 210, 87, .08); }
.vip-msg.is-bad { border-color: #ff8fb0; background: rgba(255, 143, 176, .08); }
.vip-perks h2 { font-size: 40px; margin: 30px 0 18px; }
.vip-list { list-style: none; counter-reset: vp; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vip-list li { counter-increment: vp; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.vip-list li::before { content: counter(vp); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; display: grid; place-items: center; font-family: "Bebas Neue", sans-serif; font-size: 20px; color: #111; background: linear-gradient(135deg, #ffe08a, #ffbe3d); border-radius: 50%; }
.vip-list b { font-size: 15px; }
.vip-list span { font-size: 13px; color: var(--muted); }
.ms-reroll { flex: none; width: 30px; height: 30px; margin-left: 6px; border: 1px solid rgba(255, 190, 61, .5); border-radius: 50%; background: transparent; color: #ffbe3d; font-size: 16px; cursor: pointer; }
.ms-reroll:hover { background: rgba(255, 190, 61, .15); }
.vip-toast { border-left-color: #ffbe3d; animation: viptoast 6s forwards; }
@keyframes viptoast { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 760px) {
  .vip-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .vip-pack { width: 160px; margin: 0 auto; }
}
.vip-form .btn-open { background: linear-gradient(90deg, #ffd56a, #ffbe3d); color: #16120a; }
.lb-meta b.is-vip, .lb-msg.is-mine .lb-meta b.is-vip { color: transparent; -webkit-text-fill-color: transparent; }
a.nav-link.nav-vip, a.nav-link.nav-vip:hover, a.nav-link.nav-vip.is-active { font-weight: 700; background: linear-gradient(90deg, #ffe08a, #ffbe3d, #ff9f1c, #ffe08a) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: rainbow-move 6s linear infinite; }
a.nav-link.nav-vip:hover, a.nav-link.nav-vip.is-active { filter: brightness(1.25) drop-shadow(0 0 8px rgba(255, 190, 61, .45)); }
.st-vip { border-color: rgba(255, 190, 61, .35); }
.st-vip h3 { color: #ffbe3d; }
.md-vip { align-items: center; }
.md-vipst { font-size: 13px; color: #ffbe3d; margin-right: 6px; }
.md-vipbtn { border-color: rgba(255, 190, 61, .5); color: #ffbe3d; }
