@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
    --bg: #10151f;
    --panel: #191f2a;
    --text: #f1eee5;
    --muted: #929ba9;
    --gold: #e2c58e;
    --border: #ffffff12;
    --pack-color: #69e2e5;
    --pack-accent: #007985;
    color-scheme: dark;
    font-family: 'DM Sans', sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 70% 0, #20344155, transparent 40%), var(--bg);
    color: var(--text)
}

button,
input,
select {
    font: inherit
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer;
    color: inherit
}

button:disabled {
    cursor: wait;
    opacity: .5
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 5px
}

a {
    color: inherit;
    text-decoration: none
}

[hidden] {
    display: none !important
}

button {
    border: 0
}

img {
    display: block;
    max-width: 100%
}

.topbar {
    height: 94px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1440px;
    padding: 0 60px;
    margin: auto
}

.brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    letter-spacing: 3px;
    position: relative;
    padding-left: 43px
}

.brand-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-size: 40px;
    line-height: 1
}

.brand small {
    display: block;
    font: 8px 'DM Sans', sans-serif;
    letter-spacing: 4px;
    color: var(--muted);
    margin-top: 5px
}

.topbar nav {
    display: flex;
    gap: 30px;
    height: 100%
}

.nav {
    font-size: 13px;
    background: none;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    padding: 3px 0 0
}

.nav.active {
    color: var(--text);
    border-color: var(--gold)
}

.nav span {
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    background: #ffffff0d;
    min-width: 21px;
    height: 21px;
    border-radius: 50%
}

.wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff06;
  border: 1px solid #d9b67a35;
  border-radius: 30px;
  padding: 4px 5px 4px 14px;
  min-width: 110px;
  user-select: none;
  -webkit-user-select: none;
}

/* 1. Csillag: mértanilag középre zárt flex elem, nincs szöveges eltolódás */
.wallet > span {
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Szám: a line-height: 1 kiveszi a felesleges függőleges font-margókat */
.wallet b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 3. A '+' gomb: tiszta flexbox, a pluszjel pont a kör közepén ül */
.wallet button {
  background: #d9bb8320;
  color: var(--gold);
  height: 26px;
  width: 26px;
  border-radius: 50%;
  border: 0;
  margin-left: auto;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 1px 0; /* optikai 1px finomhangolás */
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.wallet button:hover {
  background: #d9bb8340;
}

.wallet button:active {
  transform: scale(0.92);
}

main {
    max-width: 1320px;
    margin: auto;
    padding: 0 48px
}

.hero {
    min-height: 500px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 55px 0 65px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.7
}

.eyebrow i {
    display: inline-block;
    background: var(--gold);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle
}

h1,
h2,
h3,
p {
    margin: 0
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500
}

h1 {
    font-size: clamp(44px, 5.5vw, 76px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 18px 0 22px
}

h1 em {
    color: var(--gold);
    font-weight: 500
}

.hero-copy>p {
    font-size: 14px;
    line-height: 1.9;
    color: #a7aeba
}

.hero-meta {
    display: flex;
    gap: 24px;
    color: #b6becc;
    font-size: 11px;
    margin-top: 30px
}

.hero-meta span:first-letter {
    color: var(--gold)
}

.hero-art {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px
}

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid #d1be8620;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    width: 390px;
    height: 390px
}

.o2 {
    width: 470px;
    height: 250px;
    transform: translate(-50%, -50%) rotate(-28deg);
    border-color: #d1be8614
}

.hero-card {
    position: absolute;
    width: 192px;
    height: 309px;
    overflow: hidden;
    border-radius: 13px;
    border: 1px solid #ddc18d;
    box-shadow: 0 25px 70px #0008;
    background: #263b48
}

.hero-card img {
    height: 100%;
    width: 100%;
    object-fit: cover
}

.back-card {
    transform: translate(-78px, 5px) rotate(-16deg);
    border-color: #9f8aac;
    opacity: .78
}

.front-card {
    transform: translate(42px, -5px) rotate(10deg);
    animation: hero-float 7s ease-in-out infinite
}

.front-card:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, #ffffff35 45%, transparent 55%);
    pointer-events: none
}

.front-card>div {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 37px 17px 15px;
    background: linear-gradient(transparent, #101722e8);
    display: flex;
    flex-direction: column;
    gap: 6px
}

.front-card span {
    font-family: Georgia, serif;
    font-size: 22px
}

.front-card small {
    font-size: 7px;
    letter-spacing: 2px;
    color: #ffe2a8
}

.floating-star {
    position: absolute;
    color: var(--gold)
}

.star1 {
    left: 12%;
    top: 14%;
    font-size: 38px
}

.star2 {
    right: 7%;
    bottom: 8%;
    font-size: 25px
}

.hero-sticker {
    position: absolute;
    bottom: 16px;
    left: 14px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    transform: rotate(-8deg);
    color: #afb8c7
}

.hero-sticker b {
    font-weight: normal;
    color: var(--gold)
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px
}

.section-title h2 {
    font-size: 27px;
    line-height: 1.3;
    margin-top: 8px
}

.section-title .eyebrow {
    font-size: 8px;
    color: var(--muted)
}

.demo-label {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
    margin-bottom: 4px
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.pack-tile {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(#ffffff02, #ffffff01)
}

.pack-scene {
    height: 326px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 65%, color-mix(in srgb, var(--pack-color) 12%, transparent), transparent 70%)
}

.pack-halo {
    width: 210px;
    height: 210px;
    border: 1px solid color-mix(in srgb, var(--pack-color) 15%, transparent);
    border-radius: 50%;
    position: absolute;
    transform: rotateX(55deg) translateY(100px);
    box-shadow: 0 0 80px color-mix(in srgb, var(--pack-color) 10%, transparent)
}

.booster {
    width: 174px;
    height: 258px;
    position: relative;
    transform: rotate(-7deg);
    filter: drop-shadow(12px 18px 16px #0008);
    transition: transform .5s;
    isolation: isolate;
    color: #14383a
}

.pack-tile:hover .booster {
    transform: translateY(-9px) rotate(-2deg) scale(1.03)
}

.crimp {
    position: absolute;
    left: -3px;
    right: -3px;
    height: 14px;
    background: repeating-linear-gradient(90deg, #ffffff30 0px, #0002 1px, transparent 2px, transparent 4px), linear-gradient(90deg, var(--pack-accent), var(--pack-color) 35%, #e7f8eb 53%, var(--pack-color) 65%, var(--pack-accent));
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 98% 100%, 96% 85%, 94% 100%, 92% 85%, 90% 100%, 88% 85%, 86% 100%, 84% 85%, 82% 100%, 80% 85%, 78% 100%, 76% 85%, 74% 100%, 72% 85%, 70% 100%, 68% 85%, 66% 100%, 64% 85%, 62% 100%, 60% 85%, 58% 100%, 56% 85%, 54% 100%, 52% 85%, 50% 100%, 48% 85%, 46% 100%, 44% 85%, 42% 100%, 40% 85%, 38% 100%, 36% 85%, 34% 100%, 32% 85%, 30% 100%, 28% 85%, 26% 100%, 24% 85%, 22% 100%, 20% 85%, 18% 100%, 16% 85%, 14% 100%, 12% 85%, 10% 100%, 8% 85%, 6% 100%, 4% 85%, 2% 100%, 0 85%)
}

.crimp.top {
    top: 0;
    transform: rotate(180deg)
}

.crimp.bottom {
    bottom: 0
}

.pack-inner {
    position: absolute;
    inset: 10px 0;
    background: linear-gradient(105deg, var(--pack-accent) -40%, var(--pack-color) 50%, var(--pack-accent) 180%);
    border-inline: 1px solid #ffffff55;
    overflow: hidden
}

.pack-inner:before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid #ffffff65;
    z-index: 4;
    pointer-events: none
}

.pack-brand {
    position: relative;
    z-index: 3;
    font-size: 8px;
    letter-spacing: 1px;
    text-align: center;
    padding-top: 12px;
    font-weight: 700
}

.pack-edition {
    text-align: center;
    font-size: 5px;
    letter-spacing: 1.6px;
    position: relative;
    z-index: 3;
    margin-top: 3px
}

.pack-art-window {
    position: absolute;
    inset: 34px 0 20px;
    overflow: hidden;
    mask-image: linear-gradient(transparent, black 12%, black 65%, transparent 99%)
}

.pack-art-window img {
    width: 100%;
    height: auto;
    transform: translateY(-16px);
    mix-blend-mode: multiply
}

.pack-symbol {
    position: absolute;
    right: 16px;
    top: 43px;
    font-size: 24px;
    color: #fff6;
    z-index: 3
}

.pack-name {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 28px;
    line-height: .95;
    color: #fffbe9;
    text-shadow: 0 2px 12px #14332f9c, 0 1px 1px #0008;
    z-index: 3
}

.pack-name em {
    font-size: 33px;
    font-weight: 500
}

.pack-bottom {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 12px;
    font-size: 5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.pack-bottom span {
    font-size: 10px
}

.foil-glint {
    pointer-events: none;
    position: absolute;
    inset: 10px 0;
    background: linear-gradient(108deg, #fff5, transparent 12%, transparent 38%, #fff5 44%, transparent 48%, transparent 73%, #fff2 83%, #0002);
    mix-blend-mode: soft-light;
    z-index: 4
}

.pack-info {
    padding: 0 24px 24px
}

.pack-kicker {
    color: var(--pack-color);
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 11px
}

.pack-info h3 {
    font-size: 27px
}

.pack-info p {
    font-size: 11px;
    color: var(--muted);
    margin: 9px 0 22px
}

.primary {
    background: var(--gold);
    color: #26231e;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: background .2s, transform .2s
}

.primary:hover {
    background: #f5d9a3;
    transform: translateY(-2px)
}

.buy {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 17px
}

.buy span:last-child {
    padding-left: 12px;
    border-left: 1px solid #24221828
}

.inventory-block {
    margin-top: 52px
}

.inventory-block h2 {
    font-size: 23px
}

.muted {
    color: var(--muted);
    font-size: 12px
}

.inventory {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.empty-inventory {
    width: 100%;
    border: 1px dashed #ffffff19;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 12px
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #ffffff18;
    border-radius: 8px;
    padding: 13px 16px;
    background: #ffffff04
}

.inventory-item>span {
    font-size: 28px;
    color: var(--gold)
}

.inventory-item b {
    display: block;
    font-size: 12px
}

.inventory-item small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.inventory-item button {
    margin-left: 16px;
    font-size: 11px;
    padding: 9px 12px;
    background: #d9bb831a;
    color: var(--gold);
    border-radius: 5px
}

.odds {
    border-top: 1px solid var(--border);
    margin-top: 45px;
    padding: 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 22px
}

.odds-mark {
    font-size: 35px;
    color: var(--gold)
}

.odds h3 {
    font-size: 20px;
    margin-bottom: 10px
}

.odds p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 620px
}

.odds summary {
    font-size: 10px;
    color: var(--gold);
    cursor: pointer;
    margin: 12px 0 6px
}

.rarity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 9px;
    color: var(--muted);
    max-width: 185px;
    margin-left: auto;
    padding-top: 10px
}

.rarity-legend span:nth-child(2) {
    color: #d7e6df
}

.rarity-legend span:nth-child(3) {
    color: #e2c58e
}

.rarity-legend span:nth-child(4) {
    color: #8adbe8
}

footer {
    max-width: 1320px;
    margin: auto;
    border-top: 1px solid var(--border);
    padding: 26px 48px 35px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #687484;
    font-size: 9px
}

footer span:first-child {
    color: var(--gold);
    letter-spacing: 2px
}

.album-heading {
    padding: 65px 0 25px
}

.album-heading h1 {
    font-size: 54px
}

.filters {
    display: flex;
    gap: 15px;
    margin: 0 0 35px
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 10px;
    color: var(--muted)
}

.filters label:first-child {
    flex: 1
}

.filters input,
.filters select {
    background: #1b2330;
    color: var(--text);
    border: 1px solid #ffffff15;
    border-radius: 7px;
    padding: 12px;
    font-size: 12px;
    min-width: 160px
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 25px 19px;
    padding-bottom: 60px
}

.album-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2
}

.album-empty span {
    display: block;
    font-size: 50px;
    color: var(--gold);
    margin-bottom: 12px
}

.trading-card {
    aspect-ratio: 0.64;
    position: relative;
    border-radius: 13px;
    border: 2px solid #78959d;
    background: #1b2c3c;
    overflow: hidden;
    color: white;
    text-align: left;
    box-shadow: 0 10px 26px #0005;
    transform-style: preserve-3d;
    transition: transform .15s, box-shadow .3s;
    width: 100%;
    padding: 0;
    isolation: isolate
}

.trading-card>img {
    height: 100%;
    width: 100%;
    object-fit: cover
}

.trading-card:before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid #ffffff6a;
    border-radius: 8px;
    z-index: 3;
    pointer-events: none
}

.trading-card[data-theme=cake] {
    border-color: #e6a6c6
}

.trading-card[data-theme=garden] {
    border-color: #b2cb94
}

.card-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 7px;
    letter-spacing: 1px;
    z-index: 4;
    text-shadow: 0 1px 5px #000
}

.card-top span {
    background: #182332a3;
    border: 1px solid #ffffff30;
    padding: 4px 6px;
    border-radius: 20px
}

.card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 16px 17px;
    background: linear-gradient(transparent, #0b1521f5);
    z-index: 4
}

.card-bottom h3 {
    font-size: 23px;
    margin-bottom: 7px
}

.card-bottom>div {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    align-items: center
}

.card-bottom small {
    font-size: 6px;
    letter-spacing: 1px;
    color: #e5dfd2
}

.card-bottom .finish-tag {
    font-size: 7px;
    letter-spacing: 1px
}

.finish-holo {
    border-color: #8fe9ee !important
}

.finish-prismatic {
    border-color: #d7a5ec !important;
    box-shadow: 0 0 20px #bf8ee629, 0 10px 26px #0005
}

.finish-gold {
    border-color: #f2d495 !important;
    box-shadow: 0 0 28px #d6b36135, 0 10px 26px #0005
}

.card-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), #fff8, transparent 50%);
    mix-blend-mode: soft-light
}

.trading-card:hover .card-shine {
    opacity: .7
}

.finish-holo .card-shine,
.finish-prismatic .card-shine,
.finish-gold .card-shine {
    opacity: .3;
    background: repeating-linear-gradient(120deg, #f7c3ed55 0%, #a5e6f555 15%, #f5e9a855 30%, #f7c3ed55 45%);
    background-size: 260% 260%;
    background-position: var(--mx, 50%) var(--my, 30%);
    mix-blend-mode: color-dodge
}

.finish-prismatic .card-shine {
    opacity: .5;
    background-image: repeating-linear-gradient(135deg, #f9a5dc66 0%, #b4b0ff55 10%, #97eac855 20%, #ffe39d55 30%)
}

.finish-gold .card-shine {
    opacity: .5;
    background-image: radial-gradient(circle, #fffbe9bb 1px, transparent 2px), linear-gradient(120deg, transparent 30%, #fff3b570 45%, transparent 60%);
    background-size: 23px 23px, 250% 250%
}

.finish-holo .finish-tag {
    color: #8bf0fa
}

.finish-prismatic .finish-tag {
    color: #e3b7ff
}

.finish-gold .finish-tag {
    color: #ffe1a0
}

.owned-count {
    position: absolute;
    top: 41px;
    right: 16px;
    background: #0e1825bc;
    padding: 5px 7px;
    border-radius: 20px;
    font-size: 9px;
    z-index: 5
}

.collection-item {
    perspective: 900px
}

.collection-item>p {
    font-size: 10px;
    color: var(--muted);
    padding: 9px 3px 0;
    text-align: center
}

dialog {
    border: 1px solid #d9bb8324;
    background: radial-gradient(ellipse at 50% 42%, #263a4d, #111824 70%);
    color: var(--text);
    padding: 30px;
    border-radius: 20px;
    max-width: 1100px;
    width: calc(100% - 40px);
    max-height: calc(100dvh - 35px);
    overflow: auto;
    box-shadow: 0 40px 130px #000a
}

dialog::backdrop {
    background: #060b13e8;
    backdrop-filter: blur(14px)
}

body:has(dialog[open]) {
    overflow: hidden
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 30;
    background: #ffffff09;
    color: #b8c2cc;
    border: 1px solid #ffffff18;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 24px;
    line-height: 1
}

.opening-top {
    text-align: center;
    padding-top: 8px
}

.opening-top h2 {
    font-size: 34px;
    margin: 10px 0
}

.opening-top p {
    font-size: 12px;
    color: var(--muted)
}

#opening-stage {
    min-height: 355px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    position: relative;
    padding: 35px 15px 20px;
    gap: 18px;
    z-index: 2
}

#opening-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    min-height: 50px;
    margin: 10px 0 0;
    position: relative;
    z-index: 4
}

#opening-actions button {
    padding: 14px 25px
}

.secondary {
    color: var(--gold);
    background: #d9bb8312;
    border: 1px solid #d9bb8330;
    border-radius: 7px;
    font-size: 12px
}

.opening-pack-button {
    background: none;
    padding: 10px 60px;
    border: 0;
    position: relative;
    perspective: 900px
}

.opening-pack-button .booster {
    width: 205px;
    height: 305px;
    transform: rotate(-5deg);
    animation: pack-float 3s ease-in-out infinite
}

.opening-pack-button .pack-brand {
    font-size: 10px
}

.opening-pack-button .pack-edition {
    font-size: 6px
}

.opening-pack-button .pack-art-window {
    inset: 40px 0 25px
}

.opening-pack-button .pack-name {
    font-size: 34px;
    bottom: 37px
}

.opening-pack-button .pack-name em {
    font-size: 40px
}

.opening-pack-button .pack-bottom {
    font-size: 6px
}

.opening-pack-button:after {
    content: '';
    width: 160px;
    height: 24px;
    background: #0008;
    filter: blur(10px);
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%
}

.opening-pack-button:hover .booster {
    filter: drop-shadow(0 0 30px color-mix(in srgb, var(--pack-color) 45%, transparent))
}

.tear .booster {
    animation: pack-shake .5s ease-in-out 2, pack-vanish .45s 1s forwards
}

.tear .crimp.top {
    animation: tear-top .7s .65s forwards
}

.tear .foil-glint {
    background: linear-gradient(0deg, #fff, transparent);
    animation: flash .6s .6s both
}

.flash-burst {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #fff6ddcc, transparent 65%);
    animation: flash .8s ease-out forwards;
    pointer-events: none;
    z-index: 8
}

.reveal-slot {
    perspective: 1000px;
    flex: 1;
    max-width: 220px;
    min-width: 0;
    position: relative;
    animation: deal-in .65s cubic-bezier(.17, .8, .25, 1) both;
    animation-delay: calc(var(--i) * .13s)
}

.flip-card {
    position: relative;
    width: 100%;
    aspect-ratio: .64;
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.2, .7, .3, 1);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.flip-card.revealed {
    transform: rotateY(180deg)
}

.card-back,
.flip-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden
}

.card-back {
    border: 2px solid var(--gold);
    border-radius: 13px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #31404e, #101b2c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.card-back:before,
.card-back:after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid #d7bc7e70;
    border-radius: 8px
}

.card-back:after {
    inset: 35px 20px;
    border-radius: 50%;
    transform: rotate(25deg)
}

.card-back .sigil {
    font-size: 60px;
    color: var(--gold);
    text-shadow: 0 0 24px #ecc77c44
}

.card-back b {
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-top: 12px
}

.card-back small {
    color: #c7b48c;
    letter-spacing: 2px;
    font-size: 7px;
    margin-top: 10px
}

.flip-front {
    transform: rotateY(180deg)
}

.flip-front .trading-card {
    height: 100%;
    display: block
}

.reveal-slot>p {
    text-align: center;
    font-size: 10px;
    min-height: 16px;
    margin-top: 13px;
    color: var(--muted)
}

.new-card-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid #e4c78b80;
    border-radius: 999px;
    background: #e4c78b1a;
    color: #f2d99f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
}

.reveal-slot.shiny {
    filter: drop-shadow(0 0 12px #d9c79560)
}

#particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10
}

.particle {
    position: absolute;
    left: 50%;
    top: 45%;
    font-size: 20px;
    color: var(--gold);
    animation: particle-fly 1.5s ease-out forwards
}

#card-detail {
    width: 380px;
    padding: 55px 35px 25px;
    text-align: center
}

#card-detail .trading-card {
    display: block;
    max-height: 70dvh
}

.detail-note {
    font-size: 11px;
    color: var(--muted);
    padding-top: 16px
}

#toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 20px);
    z-index: 100;
    max-width: calc(100% - 30px);
    background: #e9d3a7;
    color: #25221d;
    box-shadow: 0 6px 30px #0007;
    padding: 14px 24px;
    border-radius: 9px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s
}

#toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

#toast.error {
    background: #f0bcc2;
    color: #5a2630
}

@keyframes hero-float {

    0%,
    100% {
        transform: translate(42px, -5px) rotate(10deg)
    }

    50% {
        transform: translate(42px, -16px) rotate(8deg)
    }
}

@keyframes pack-float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg)
    }

    50% {
        transform: translateY(-10px) rotate(-2deg)
    }
}

@keyframes pack-shake {

    0%,
    100% {
        transform: rotate(0) scale(1)
    }

    20%,
    60% {
        transform: rotate(-4deg) scale(1.04)
    }

    40%,
    80% {
        transform: rotate(4deg) scale(1.04)
    }
}

@keyframes tear-top {
    to {
        transform: translate(70px, -120px) rotate(50deg);
        opacity: 0
    }
}

@keyframes pack-vanish {
    to {
        transform: translateY(120px) scale(.8);
        opacity: 0
    }
}

@keyframes flash {
    0% {
        opacity: 0
    }

    40% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

@keyframes deal-in {
    from {
        opacity: 0;
        transform: translateY(100px) rotate(calc((var(--i) - 1.5) * 12deg)) scale(.65)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes particle-fly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.3)
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(1)
    }
}

@media(min-width:1500px) {
    .hero {
        min-height: 540px
    }

    .pack-scene {
        height: 350px
    }

    .booster {
        width: 187px;
        height: 277px
    }
}

@media(max-width:1050px) {
    .topbar {
        padding: 0 30px
    }

    main {
        padding: 0 30px
    }

    .hero {
        gap: 10px
    }

    .hero-art {
        transform: scale(.9)
    }

    .hero-meta {
        flex-direction: column;
        gap: 12px
    }

    .pack-grid {
        gap: 15px
    }

    .pack-info {
        padding: 0 17px 20px
    }

    .pack-info p {
        font-size: 10px
    }

    .pack-scene {
        height: 295px
    }

    .pack-info h3 {
        font-size: 25px
    }

    .buy {
        font-size: 10px;
        padding: 14px 12px
    }

    .collection-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .demo-label {
        max-width: 160px;
        white-space: normal;
        text-align: right;
        line-height: 1.6
    }
}

@media(max-width:760px) {
    .topbar {
        height: 110px;
        padding: 17px 22px 0;
        flex-wrap: wrap;
        gap: 10px
    }

    .brand {
        font-size: 18px;
        padding-left: 33px
    }

    .brand-icon {
        font-size: 32px
    }

    .brand small {
        font-size: 6px;
        letter-spacing: 3px
    }

    .wallet {
        margin-left: auto;
        padding: 4px 6px 4px 12px;
        font-size: 12px;
        min-width: 100px
    }

    .topbar nav {
        order: 3;
        width: 100%;
        height: 40px;
        justify-content: center;
        gap: 40px
    }

    .nav {
        font-size: 11px
    }

    main {
        padding: 0 22px
    }

    .hero {
        min-height: auto;
        padding: 35px 0 40px;
        grid-template-columns: 1fr 1fr;
        gap: 0
    }

    .hero h1 {
        font-size: 45px
    }

    .hero .eyebrow {
        font-size: 7px;
        letter-spacing: 1px
    }

    .hero-copy>p {
        font-size: 11px
    }

    .hero-meta {
        font-size: 9px;
        margin-top: 20px
    }

    .hero-art {
        height: 300px;
        transform: scale(.72);
        transform-origin: center
    }

    .hero-sticker {
        display: none
    }

    .orbit {
        width: 310px;
        height: 310px
    }

    .o2 {
        width: 350px;
        height: 200px
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px
    }

    .section-title h2 {
        font-size: 24px
    }

    .demo-label {
        text-align: left;
        max-width: none;
        font-size: 9px
    }

    .pack-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .pack-tile {
        display: grid;
        grid-template-columns: 45% 55%;
        align-items: center
    }

    .pack-scene {
        height: 280px
    }

    .pack-info {
        padding: 25px 22px 25px 0
    }

    .pack-info p {
        line-height: 1.7
    }

    .booster {
        width: 154px;
        height: 235px
    }

    .pack-name {
        font-size: 25px
    }

    .pack-name em {
        font-size: 29px
    }

    .pack-kicker {
        font-size: 7px
    }

    .odds {
        gap: 13px;
        flex-wrap: wrap
    }

    .odds>div:nth-child(2) {
        flex: 1
    }

    .rarity-legend {
        max-width: none;
        width: 100%;
        margin-left: 40px
    }

    .collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 12px
    }

    .filters {
        gap: 10px;
        flex-wrap: wrap
    }

    .filters label:first-child {
        flex-basis: 100%
    }

    .filters label:not(:first-child) {
        flex: 1
    }

    .filters select {
        min-width: 0;
        width: 100%
    }

    .album-heading {
        padding-top: 40px
    }

    .album-heading h1 {
        font-size: 40px
    }

    .card-bottom {
        padding: 35px 12px 14px
    }

    .card-bottom h3 {
        font-size: 20px
    }

    .card-bottom small {
        font-size: 5px
    }

    .card-top {
        left: 12px;
        right: 12px;
        top: 13px;
        font-size: 6px
    }

    .owned-count {
        right: 12px
    }

    footer {
        padding: 24px 22px;
        flex-wrap: wrap;
        font-size: 8px
    }

    footer span:nth-child(2) {
        display: none
    }

    dialog {
        padding: 25px 18px;
        width: calc(100% - 20px)
    }

    .opening-top {
        padding-top: 25px
    }

    .opening-top h2 {
        font-size: 27px
    }

    .opening-top p {
        font-size: 11px
    }

    .opening-top .eyebrow {
        font-size: 8px
    }

    #opening-stage {
        flex-wrap: wrap;
        gap: 15px;
        padding-inline: 0
    }

    .reveal-slot {
        flex-basis: calc(50% - 15px);
        max-width: 180px;
        flex-grow: 0
    }

    .reveal-slot>p {
        font-size: 9px;
        margin-top: 8px
    }

    .card-back .sigil {
        font-size: 45px
    }

    .card-back b {
        font-size: 9px
    }

    .card-back small {
        font-size: 6px
    }
}

@media(max-width:440px) {
    .hero {
        grid-template-columns: 1fr 40%;
        overflow: hidden
    }

    .hero h1 {
        font-size: 39px
    }

    .hero-art {
        transform: scale(.55);
        height: 290px;
        width: 200px;
        transform-origin: 30% center
    }

    .hero-meta {
        font-size: 8px
    }

    .hero-copy>p {
        font-size: 10px
    }

    .pack-tile {
        grid-template-columns: 44% 56%
    }

    .pack-scene {
        height: 255px
    }

    .booster {
        width: 130px;
        height: 210px
    }

    .pack-brand {
        font-size: 6px
    }

    .pack-name {
        font-size: 22px
    }

    .pack-name em {
        font-size: 26px
    }

    .pack-info {
        padding-right: 15px
    }

    .pack-info h3 {
        font-size: 24px
    }

    .buy {
        font-size: 9px;
        padding: 12px 9px
    }

    .pack-info p {
        margin-bottom: 16px
    }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .card-bottom h3 {
        font-size: 22px
    }

    .inventory-item {
        width: 100%
    }

    .inventory-item button {
        margin-left: auto
    }

    .opening-top h2 {
        font-size: 23px
    }

    .opening-top p {
        font-size: 10px
    }

    #opening-actions {
        flex-wrap: wrap
    }

    #opening-actions button {
        padding: 12px 17px;
        font-size: 11px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }

    .tear .booster {
        opacity: 0
    }

    .particle {
        display: none
    }

    .front-card {
        transform: translate(42px, -5px) rotate(10deg)
    }
}

/* Base set and independent expansion previews. */
.pack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.pack-scene {
    height: 300px
}

.pack-info {
    padding: 0 17px 22px
}

.pack-info h3 {
    font-size: 24px
}

.pack-info p {
    min-height: 40px;
    line-height: 1.7
}

.buy {
    font-size: 10px;
    padding: 14px 12px
}

.pack-kicker {
    font-size: 7px;
    letter-spacing: 1.5px
}

.coming-soon .booster {
    opacity: .65
}

.coming-soon .pack-inner {
    background: linear-gradient(135deg, #182532, var(--pack-accent))
}

.coming-soon .pack-brand,
.coming-soon .pack-edition,
.coming-soon .pack-bottom {
    color: var(--pack-color)
}

.coming-soon .pack-name {
    color: var(--pack-color)
}

.expansion-seal {
    position: absolute;
    top: 43px;
    left: 50%;
    transform: translateX(-50%);
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pack-color);
    border-radius: 50%;
    font-size: 60px;
    color: var(--pack-color);
    opacity: .7
}

.locked-pack {
    width: 100%;
    background: #ffffff05;
    border: 1px solid #ffffff14;
    color: #a3acba;
    padding: 14px 6px;
    border-radius: 7px;
    font-size: 10px;
    cursor: default !important;
    opacity: 1 !important
}

.trading-card[data-theme=base] {
    border-color: #c5c5c5
}

@media(max-width:1100px) and (min-width:761px) {
    .pack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .pack-info p {
        min-height: 0
    }

    .pack-scene {
        height: 310px
    }
}

@media(max-width:760px) {
    .pack-grid {
        grid-template-columns: 1fr
    }

    .pack-info {
        padding: 25px 20px 25px 0
    }

    .pack-scene {
        height: 270px
    }

    .pack-info p {
        min-height: 0
    }

    .locked-pack {
        font-size: 9px
    }
}

.theme-base .pack-name em {
    font-size: 27px
}

.opening-pack-button [data-opening-art="base"] .pack-name em {
    font-size: 31px
}

@media(max-width:440px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 105px
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -1.2px
    }

    .hero-art {
        width: 105px;
        transform: scale(.48);
        transform-origin: center
    }

    .theme-base .pack-name em {
        font-size: 21px
    }

    .pack-scene {
        overflow: visible
    }

    .pack-tile {
        overflow: hidden
    }
}

@media(max-width:440px) {
    .hero-copy {
        min-width: 0
    }

    .hero h1 {
        max-width: 180px
    }

    .hero-art {
        z-index: 0
    }

    .hero-copy {
        z-index: 1
    }
}

/* ===== Album nézet (sorozatonként, hiányzó helyekkel) ===== */
.album-sections { display: block; padding-bottom: 60px }
.album-section { margin-bottom: 54px }
.album-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border) }
.album-section-head h2 { margin: 6px 0 0; font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 600 }
.album-progress { min-width: 230px; font-size: 11px; color: var(--muted); text-align: right }
.album-progress b { color: var(--text) }
.album-progress-bar { height: 5px; border-radius: 5px; background: #ffffff14; margin-top: 9px; overflow: hidden }
.album-progress-bar i { display: block; height: 100%; background: var(--series-accent, var(--gold)); border-radius: inherit; transition: width .4s }
.album-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 25px 19px }
.album-slot { perspective: 900px }
.album-open { padding: 0; background: none; border: 0; width: 100%; display: block; border-radius: 13px; cursor: pointer }
.album-ghost { aspect-ratio: .64; border-radius: 20px; border: 2px dashed #ffffff24; background: #ffffff06; position: relative; overflow: hidden; display: grid; place-items: end center; padding-bottom: 16px }
.album-ghost img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.22) blur(7px); transform: scale(1.1) }
.album-ghost span { position: relative; font-size: 11px; letter-spacing: 2px; color: var(--muted) }
.album-pips { display: flex; justify-content: center; gap: 8px; padding-top: 10px; font-size: 12px; line-height: 1 }
.album-pips .pip { color: var(--muted); opacity: .25 }
.album-pips .pip.on { color: var(--gold); opacity: 1 }
.album-slot > p { font-size: 11px; color: var(--muted); text-align: center; padding: 7px 3px 0; margin: 0 }
.album-slot.missing > p { opacity: .5 }
.album-soon { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed #ffffff1f; border-radius: 14px }
.album-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px }
.album-tab { background: #ffffff0d; color: var(--text); border: 1px solid #ffffff1f; border-radius: 99px; padding: 7px 12px; font-size: 11px; cursor: pointer }
.album-tab.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold) }
.album-tab:disabled { opacity: .3; cursor: not-allowed }
@media (max-width: 900px) { .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px } .album-section-head { flex-direction: column; align-items: stretch } .album-progress { text-align: left } }
@media (max-width: 560px) { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* ===== Nagy kártyarészlet asztali gépen: kártya középen, a gombok és infók oldalt ===== */
@media (min-width: 900px) and (min-height: 560px) {
  #card-detail { width: min(1700px, calc(100% - 60px)); max-width: 1700px; padding: 40px 56px; max-height: calc(100dvh - 40px) }
  #detail-content { display: grid; grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr); align-items: center; column-gap: 64px }
  #card-detail .trading-card { grid-column: 2; grid-row: 1; width: auto; height: min(calc(100dvh - 130px), 1400px); max-height: none; aspect-ratio: .64; border-radius: 28px }
  #card-detail .card-top { font-size: clamp(10px, 1.1dvh, 15px) }
  #card-detail .card-top span { padding: 6px 9px }
  #card-detail .card-bottom { padding: 70px 24px 24px }
  #card-detail .card-bottom h3 { font-size: clamp(30px, 4dvh, 54px) }
  #card-detail .card-bottom small { font-size: 9px }
  #card-detail .card-bottom .finish-tag { font-size: 11px }
  #card-detail .owned-count { font-size: 13px; padding: 7px 10px }
  #card-detail .detail-note { grid-column: 1; grid-row: 1; text-align: right; font-size: 15px; line-height: 1.8; padding: 0 }
  #card-detail .detail-note span { display: block }
  #card-detail .detail-note span:first-child { font-size: 20px; color: var(--text); font-family: 'Playfair Display', serif }
  #card-detail .detail-note i { display: none }
  #card-detail .album-tabs { grid-column: 3; grid-row: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; margin: 0 }
  #card-detail .album-tab { text-align: left; font-size: 15px; padding: 15px 20px; border-radius: 14px }
}

/* ===== Sticky fejléc (a háttér a teljes szélességet kitölti) ===== */
body { overflow-x: clip }
.topbar { position: sticky; top: 0; z-index: 60; border-bottom: 0 }
.topbar::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: rgba(16, 21, 31, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--border) }

/* ===== Fóliaelőnézet sáv ===== */
.vfx-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 50px; padding: 16px 20px; border: 1px dashed #ffffff22; border-radius: 14px; background: #ffffff05 }
.vfx-demo > span { flex: 1 1 280px; font-size: 11px; letter-spacing: .04em; color: var(--muted) }
.vfx-demo button { background: #ffffff0b; color: var(--text); border: 1px solid #ffffff1f; border-radius: 99px; padding: 8px 16px; font-size: 12px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s }
.vfx-demo button:hover { background: #ffffff14; transform: translateY(-1px) }
.vfx-demo button[data-vfx-preview="gold"] { color: #e2c58e }
.vfx-demo button[data-vfx-preview="holo"] { color: #8adbe8 }
.vfx-demo button[data-vfx-preview="prismatic"] { color: #d4adef }
.vfx-demo button[data-vfx-preview="parallax"] { color: #9ff0d2 }
.vfx-demo button:hover { border-color: currentColor }

/* ===== Ritkaság-jelmagyarázat: egy sorban, Parallax színnel ===== */
.rarity-legend { max-width: 300px }
.rarity-legend span:nth-child(5) { color: #d4adef }
.rarity-legend span:nth-child(6) { color: #9ff0d2 }

/* Bontás közbeni animációk alatt a modal nem görgethető */
#opening.anim-lock { overflow: hidden !important; overscroll-behavior: none }

/* Duplikátumok beváltása */
.dupe-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 28px; padding:16px 20px; border:1px solid var(--border); border-radius:14px; background:#ffffff04 }
.dupe-toolbar p { margin:0; font-size:12px }
.dupe-toolbar button, .card-sale .primary, .sale-footer .primary { padding:13px 18px }
.card-sale { display:grid; gap:10px; margin-top:22px; padding-top:18px; border-top:1px solid var(--border) }
.card-sale p { font-size:12px; margin:0; color:var(--text) }
.card-sale small { font-size:10px; color:var(--muted); text-align:center }
.card-sale .album-tab { text-align:center!important; font-size:12px!important; padding:12px!important }
.card-sale button:disabled, .dupe-toolbar button:disabled, .sale-footer button:disabled { opacity:.4; cursor:not-allowed }
.detail-controls { min-width:0 }
#sale-dialog { position:fixed; inset:0; margin:auto; width:min(600px,calc(100% - 28px)); max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; padding:30px; border:1px solid #d8c29555; border-radius:20px; background:#151d2b; color:var(--text); box-shadow:0 25px 100px #0009 }
#sale-dialog::backdrop { background:#060b14bb; backdrop-filter:blur(6px) }
#sale-dialog h2 { font-family:Georgia,serif; font-size:28px; margin:12px 30px 12px 0 }
#sale-dialog > .muted { font-size:12px; line-height:1.6 }
#sale-options > label { display:grid; gap:8px; font-size:12px; margin:20px 0 16px }
#sale-theme { padding:12px; background:#202b3b; color:var(--text); border:1px solid var(--border); border-radius:8px; width:100% }
#sale-finishes { border:0; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px }
#sale-finishes legend { font-size:12px; margin-bottom:10px; color:var(--muted) }
#sale-finishes label { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:9px; cursor:pointer; font-size:13px }
#sale-finishes input { accent-color:var(--gold); width:17px; height:17px }
#sale-finishes small { margin-left:auto; color:var(--muted); font-size:11px }
.sale-totals { display:flex; justify-content:space-between; align-items:center; padding:20px 0 12px }
.sale-totals strong { color:var(--gold); font-size:24px }
.sale-items { list-style:none; max-height:180px; overflow:auto; padding:0; margin:0; border-top:1px solid var(--border) }
.sale-items li { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 2px; border-bottom:1px solid var(--border); font-size:12px }
.sale-items small { display:block; color:var(--muted); font-size:10px; margin-top:4px }
.sale-items li > span:last-child { white-space:nowrap }
.sale-empty { color:var(--muted); padding:20px 0; font-size:13px }
#sale-error { color:#ffb1a9; font-size:12px }
.sale-footer { display:flex; gap:10px; justify-content:flex-end; margin-top:18px }
@media(min-width:900px) and (min-height:560px) {
  #card-detail .detail-controls { grid-column:3; grid-row:1; max-height:calc(100dvh - 140px); overflow:auto; padding:2px }
  #card-detail .detail-controls .album-tabs { display:flex }
}
@media(max-width:560px) {
  .dupe-toolbar { align-items:stretch; flex-direction:column }
  #sale-dialog { padding:24px 18px }
  #sale-finishes { grid-template-columns:1fr }
  .sale-footer { flex-direction:column }
}

/* Elég magas ablakon a bontás-modalnak nincs szüksége görgetésre (a tartalma elfér),
   így nincs látható görgetősáv és nincs elcsúszás az animációk alatt. Alacsony ablakon marad a görgetés. */
@media (min-width: 900px) and (min-height: 880px) {
  #opening, #opening.anim-lock { overflow: hidden !important }
}
