* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--page); font: 16px/1.45 var(--font); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #ad70ed; outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-header { display: flex; align-items: center; gap: 24px; min-height: 62px; padding: 8px 24px; background: #fff; border-bottom: var(--border); }
.brand { display: flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 950; font-size: 23px; letter-spacing: -.8px; }
.brand-flame { width: 25px; height: 32px; color: #ff6877; }
.brand-dot { color: #b78cff; }
.main-nav { display: flex; align-items: center; justify-content: space-evenly; flex: 1; gap: 10px; }
.main-nav button { border: 0; background: none; text-transform: uppercase; padding: 9px 0; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.main-nav button:hover { color: #9863c8; }
.account-tools { display: flex; align-items: center; gap: 10px; }
.header-button { position: relative; display: grid; place-items: center; height: 36px; min-width: 36px; padding: 5px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 #d9d9d9; }
.balance { display: flex; gap: 10px; padding-inline: 9px; font-weight: 700; font-size: 13px; }
.balance small { font-size: 10px; }
.notification { position: absolute; top: -9px; right: -6px; background: #fc5288; color: #fff; border: 1.5px solid var(--ink); min-width: 16px; padding: 0 3px; font-size: 10px; font-weight: 800; }
.profile { position: relative; display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px; height: 39px; border: var(--border); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); background: #a9cae8; font-size: 13px; font-weight: 750; white-space: nowrap; }
.avatar { display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; width: 25px; height: 25px; color: #fbd887; background: #3d4553; }
.news-strip { display: flex; height: 31px; overflow: hidden; border-bottom: 3px solid var(--ink); background: #fff2af; font-size: 12px; font-weight: 800; }
.live-label { display: grid; place-items: center; flex: 0 0 51px; background: #ff5570; border-right: var(--border); font-size: 11px; letter-spacing: .06em; }
.news-window { overflow: hidden; }
.news-items { display: flex; align-items: center; width: max-content; height: 100%; gap: 42px; padding-inline: 20px; }
.news-items span { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.page { padding: 22px 28px 50px; background: radial-gradient(ellipse at 95% 0, #ffdbf1, transparent 48%); min-height: calc(100svh - 93px); }
.opening-room, .booster-queue { width: min(100%, var(--content-width)); margin-inline: auto; }
.opening-room { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; color: var(--stage-text); background: radial-gradient(ellipse at 50% 46%, var(--stage-glow), transparent 57%), radial-gradient(ellipse at 0 0, #14231b88, transparent 35%), var(--stage); border: var(--border); border-radius: var(--room-radius); box-shadow: 7px 7px 0 var(--ink); }
.opening-room::before { content: ''; z-index: -1; position: absolute; inset: -55%; background: repeating-conic-gradient(from 1deg at 50% 50%, #df89c909 0deg 9deg, #12091236 9deg 18deg); pointer-events: none; }
.opening-room::after { content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(transparent 65%, #25091191); pointer-events: none; }
.room-stars { position: absolute; inset: 0; z-index: -1; opacity: .6; background: radial-gradient(circle at 15% 23%, #fbbcfb 0 1px, transparent 2px), radial-gradient(circle at 29% 17%, #fbbcfb 0 1px, transparent 3px), radial-gradient(circle at 89% 46%, #fbbcfb 0 1px, transparent 3px), radial-gradient(circle at 70% 24%, #fbbcfb 0 1px, transparent 2px), radial-gradient(circle at 21% 90%, #fbbcfb 0 1px, transparent 2px), radial-gradient(circle at 83% 31%, #fbbcfb 0 1px, transparent 2px); }
.room-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; padding: 20px; }
.back-button { justify-self: start; border: 1px solid #ffffff35; background: #ffffff04; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #e8d9ee; }
.back-button:hover { background: #ffffff12; }
.room-heading { text-align: center; }
.eyebrow { margin: -4px 0 0; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .34em; color: #e29dde; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -1.1px; }
.room-tools { display: flex; justify-content: end; align-items: center; gap: 7px; }
.pack-ticket { padding: 6px 8px; border: 1px dashed #b49bb7; border-radius: 5px; transform: rotate(3deg); font-size: 10px; font-weight: 900; white-space: nowrap; letter-spacing: .04em; }
.pill { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 6px 10px; border: 0; border-radius: 99px; font-size: 10px; font-weight: 800; background: #fff; color: var(--ink); white-space: nowrap; }
.pill svg { height: 13px; width: 13px; }
.pill[aria-pressed='false'] { background: #e6dce8; }
.stage { position: relative; display: grid; place-items: center; flex: 1; min-height: 534px; padding: 32px 20px 46px; perspective: 1000px; }
.pack-shadow { position: absolute; width: 190px; height: 25px; left: calc(50% - 95px); bottom: 27px; border-radius: 50%; background: #09040dbb; filter: blur(9px); }
.booster-pack { position: relative; display: flex; flex-direction: column; width: var(--pack-width); height: calc(var(--pack-width) * 1.6); padding: 0; border: none; background: none; color: var(--ink); filter: drop-shadow(9px 9px 0 #25252d); transform: rotate(3deg); animation: pack-float 5s ease-in-out infinite; }
.pack-top, .pack-bottom { position: relative; display: block; width: 100%; height: 39px; flex-shrink: 0; border: 3px solid var(--ink); background: repeating-linear-gradient(90deg, var(--pack-seal) 0 3px, #bf788e 3px 4px, #ffcbcf 4px 7px); }
.pack-top { transform-origin: right bottom; clip-path: polygon(0 15%, 2% 0, 4% 15%, 6% 0, 8% 15%, 10% 0, 12% 15%, 14% 0, 16% 15%, 18% 0, 20% 15%, 22% 0, 24% 15%, 26% 0, 28% 15%, 30% 0, 32% 15%, 34% 0, 36% 15%, 38% 0, 40% 15%, 42% 0, 44% 15%, 46% 0, 48% 15%, 50% 0, 52% 15%, 54% 0, 56% 15%, 58% 0, 60% 15%, 62% 0, 64% 15%, 66% 0, 68% 15%, 70% 0, 72% 15%, 74% 0, 76% 15%, 78% 0, 80% 15%, 82% 0, 84% 15%, 86% 0, 88% 15%, 90% 0, 92% 15%, 94% 0, 96% 15%, 98% 0, 100% 15%, 100% 100%, 0 100%); }
.pack-bottom { height: 31px; transform: rotate(180deg); clip-path: polygon(0 15%, 2% 0, 4% 15%, 6% 0, 8% 15%, 10% 0, 12% 15%, 14% 0, 16% 15%, 18% 0, 20% 15%, 22% 0, 24% 15%, 26% 0, 28% 15%, 30% 0, 32% 15%, 34% 0, 36% 15%, 38% 0, 40% 15%, 42% 0, 44% 15%, 46% 0, 48% 15%, 50% 0, 52% 15%, 54% 0, 56% 15%, 58% 0, 60% 15%, 62% 0, 64% 15%, 66% 0, 68% 15%, 70% 0, 72% 15%, 74% 0, 76% 15%, 78% 0, 80% 15%, 82% 0, 84% 15%, 86% 0, 88% 15%, 90% 0, 92% 15%, 94% 0, 96% 15%, 98% 0, 100% 15%, 100% 100%, 0 100%); }
.pack-face { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; border-inline: 4px solid var(--ink); background: repeating-linear-gradient(-52deg, var(--pack-pink) 0 20px, var(--pack-stripe) 20px 30px, var(--pack-pink) 30px 41px, var(--pack-mint) 41px 47px); }
.pack-brand { display: block; margin-top: 24px; color: #fff; font-size: 23px; font-weight: 950; letter-spacing: .16em; -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--ink); }
.pack-face strong { position: absolute; top: 55%; left: 7%; width: 86%; padding: 7px; border: 4px solid var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--ink); font-size: 22px; letter-spacing: -.8px; }
.pack-number { position: absolute; bottom: 16px; right: 20px; padding: 0 6px; background: #fff; border: 3px solid var(--ink); border-radius: 4px; font-size: 16px; line-height: 1.3; font-weight: 900; transform: rotate(-1deg); }
.tear-line { position: absolute; top: 47px; left: -29px; width: calc(100% + 49px); border-top: 2px dashed #fff; transform: rotate(-3deg); filter: drop-shadow(0 0 4px #ffe0fd); }
.tear-line svg { position: absolute; right: -12px; top: -13px; width: 25px; height: 25px; color: #fff; }
.booster-pack:hover .tear-line { filter: drop-shadow(0 0 7px #fff); }
.opening-controls { display: grid; justify-items: center; gap: 8px; padding: 12px 20px 0; min-height: 132px; }
#openingStatus { color: var(--stage-muted); margin: 0 0 6px; font-size: 14px; font-weight: 700; text-align: center; }
.primary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; border: 3px solid var(--ink); border-radius: var(--button-radius); box-shadow: var(--hard-shadow); color: var(--ink); padding: 11px 26px; font-size: 15px; font-weight: 850; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button-primary { background: var(--accent); }
.button-secondary { background: #fff7ff; }
.button:disabled { opacity: .7; transform: none; }
.text-button { color: #d9b8dd; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; font-size: 13px; font-weight: 750; }
.save-note { margin: 18px 20px 19px; color: #b599b3; text-align: center; font-size: 12px; }
.booster-queue { margin-top: 30px; border: var(--border); border-radius: 15px; background: var(--paper); padding: 24px 27px; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.queue-heading h2 { margin: 0 0 5px; font-size: 25px; letter-spacing: -1px; }
.queue-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.button-small { min-height: 41px; padding: 9px 16px; font-size: 12px; }
.booster-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 24px; margin-top: 24px; border-top: 1px solid #d4cad4; }
.queue-item { display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; background: #fff; border: var(--border); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
.queue-item:hover { background: #fff7d5; }
.queue-item[aria-current='true'] { background: #efe2f9; }
.mini-pack { display: grid; place-items: center; width: 35px; height: 51px; flex-shrink: 0; background: repeating-linear-gradient(-52deg, var(--mini-color) 0 10px, #ffc1d2 10px 15px); border: 2px solid var(--ink); border-block-width: 6px; transform: rotate(-5deg); font-size: 18px; font-weight: 900; }
.queue-item strong, .queue-item small { display: block; }
.queue-item strong { font-size: 14px; }
.queue-item small { color: #736477; font-size: 12px; margin-top: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); background: #fffaf0; color: var(--ink); border: var(--border); border-radius: 10px; box-shadow: var(--hard-shadow); padding: 14px 20px; font-size: 14px; z-index: 5; }
.reveal-card { position: relative; width: var(--pack-width); height: calc(var(--pack-width) * 1.6); padding: 0; background: none; border: none; border-radius: 13px; text-align: left; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card-back, .card-front { position: absolute; inset: 0; display: flex; flex-direction: column; border: 5px solid var(--ink); border-radius: 13px; backface-visibility: hidden; overflow: hidden; box-shadow: 7px 9px 0 #08030a80; }
.card-back { align-items: center; justify-content: space-between; padding: 25px 16px; color: #fff1e2; border-color: #f7c772; background: repeating-linear-gradient(-45deg, #723b8c 0 2px, #603277 2px 13px); outline: 4px solid var(--ink); outline-offset: -1px; }
.card-back::after { content: ''; position: absolute; inset: 10px; border: 1px solid #efbade85; border-radius: 5px; pointer-events: none; }
.card-back-brand { font-size: 20px; font-weight: 900; letter-spacing: .14em; }
.card-back-mark { position: relative; font-size: 135px; line-height: 1; font-weight: 900; font-style: italic; text-shadow: 5px 5px 0 #271634; }
.card-back-mark span { position: absolute; font-size: 38px; right: -17px; top: 8px; color: #ffd166; }
.card-back-caption { max-width: 160px; font-size: 12px; text-align: center; }
.card-front { transform: rotateY(180deg); background: #fff6e2; color: var(--ink); border-color: var(--rarity-color, #c4c7c8); }
.reveal-card.is-revealed { transform: rotateY(180deg); }
.card-topline, .card-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 850; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.card-topline { background: var(--rarity-color, #c4c7c8); }
.card-art { display: grid; place-items: center; min-height: 0; flex: 1; margin: 10px 10px 0; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.card-info { display: grid; gap: 6px; padding: 15px 13px 10px; }
.card-info strong { font-size: 23px; line-height: 1.1; letter-spacing: -.6px; }
.card-info > span { font-size: 12px; color: #746773; }
.card-footer { font-size: 9px; border-top: 1px solid #d8cbd0; margin: 0 11px; padding-inline: 0; }
.reveal-progress { display: flex; gap: 7px; justify-content: center; padding-top: 5px; }
.progress-dot { width: 22px; height: 4px; border-radius: 3px; background: #ffffff30; }
.progress-dot.is-revealed { background: var(--accent); }
.completion { width: 100%; text-align: center; }
.completion-star { color: var(--accent); font-size: 50px; }
.completion h2 { margin: 5px 0; font-size: 32px; letter-spacing: -1px; }
.completion p { color: var(--stage-muted); margin: 8px 0 25px; font-size: 14px; }
.summary-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.summary-card { width: 160px; overflow: hidden; border: 4px solid var(--rarity-color); border-radius: 9px; background: #fff5e6; color: var(--ink); transform: rotate(-4deg); box-shadow: 5px 6px 0 #08030a88; }
.summary-card:nth-child(2) { transform: translateY(-9px) rotate(2deg); }
.summary-card:nth-child(3) { transform: rotate(5deg); }
.summary-card img { display: block; width: 100%; height: 148px; object-fit: contain; background: #fff; }
.summary-card strong { display: block; padding: 10px 7px 3px; font-size: 13px; }
.summary-card small { display: block; padding: 0 8px 10px; font-size: 11px; }
.opening-room[data-state='tearing'] .booster-pack { animation: pack-tear .7s ease-in forwards; }
.opening-room[data-state='tearing'] .pack-top { animation: seal-tear .65s ease-out forwards; }
.opening-room[data-state='tearing'] .tear-line { opacity: 0; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
@keyframes pack-float { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes seal-tear { to { transform: translate(90px, -110px) rotate(35deg); opacity: 0; } }
@keyframes pack-tear { 0% { transform: rotate(3deg); } 35% { transform: rotate(-4deg) scale(1.04); opacity: 1; } 100% { transform: translateY(100px) rotate(9deg) scale(.9); opacity: 0; } }
@media (min-width: 1800px) { .site-header { gap: 70px; } .main-nav button { font-size: 14px; } .page { padding-top: 22px; } }
@media (max-width: 1400px) { .site-header { flex-wrap: wrap; gap: 12px; padding: 10px 20px 0; } .account-tools { margin-left: auto; } .main-nav { order: 3; flex-basis: 100%; justify-content: space-between; } .main-nav button { padding: 5px 0 10px; } }
@media (max-width: 1000px) { .room-header { grid-template-columns: 1fr 1fr; } .room-heading { grid-column: 1 / -1; grid-row: 1; } .room-tools { grid-column: 2; } .stage { min-height: 510px; padding-top: 20px; } }
@media (max-width: 650px) {
  :root { --pack-width: 218px; --room-radius: 19px; }
  .site-header { gap: 8px; padding: 12px 14px 0; }
  .brand { font-size: 17px; gap: 5px; }
  .brand-flame { width: 20px; height: 25px; }
  .account-tools { gap: 7px; }
  .balance, .messages, .profile > span:not(.avatar) { display: none; }
  .profile { padding: 4px; border-radius: 50%; height: 35px; box-shadow: 2px 2px 0 var(--ink); }
  .header-button { height: 31px; min-width: 31px; }
  .main-nav { justify-content: flex-start; overflow-x: auto; gap: 23px; scrollbar-width: none; }
  .main-nav button { flex-shrink: 0; font-size: 11px; }
  .news-strip { height: 29px; font-size: 11px; }
  .page { padding: 16px 14px 32px; }
  .room-header { padding: 17px 12px 4px; gap: 15px 5px; }
  h1 { font-size: 27px; }
  .eyebrow { font-size: 9px; }
  .room-tools { gap: 5px; }
  .pill { padding: 7px; font-size: 10px; }
  .pack-ticket { position: absolute; top: 104px; left: 50%; transform: translateX(-50%) rotate(3deg); font-size: 9px; }
  .back-button { padding: 7px 9px; font-size: 11px; }
  .stage { padding: 46px 14px 26px; min-height: 442px; }
  .pack-shadow { bottom: 15px; }
  .pack-brand { font-size: 20px; }
  .pack-face strong { font-size: 18px; }
  .pack-number { font-size: 13px; right: 12px; bottom: 12px; }
  .opening-controls { padding-top: 5px; }
  .save-note { font-size: 11px; margin: 17px 19px; }
  .booster-queue { padding: 20px; margin-top: 23px; }
  .queue-heading { flex-direction: column; align-items: stretch; gap: 17px; }
  .queue-heading h2 { font-size: 23px; }
  .booster-list { grid-template-columns: 1fr; }
  .card-info strong { font-size: 20px; }
  .completion h2 { font-size: 26px; }
  .summary-cards { gap: 9px; }
  .summary-card { width: 112px; }
  .summary-card img { height: 105px; }
  .summary-card strong { font-size: 11px; }
  .summary-card small { font-size: 10px; }
  .completion-star { font-size: 36px; }
  .completion p { margin-bottom: 20px; }
}
