.packs-page {
  --pack-bg: #080d19;
  --pack-panel: #10192b;
  --pack-line: #2a3953;
  --pack-blue: #478dff;
  --pack-lime: #baff5e;
  background: var(--pack-bg);
  color: #f5f8ff;
  font-family: 'IBM Plex Sans', 'IBM Plex Sans Arabic', sans-serif;
}
.packs-page [hidden] { display: none !important; }
.packs-page h1, .packs-page h2, .packs-page h3, .packs-page p { margin-top: 0; }
.packs-page .container { max-width: 1320px; }
.packs-page a:focus-visible, .packs-page button:focus-visible, .packs-page summary:focus-visible { outline: 3px solid var(--pack-lime); outline-offset: 4px; }
.packs-kicker { color: var(--pack-lime); font-size: .77rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.packs-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--pack-lime); border-radius: 5px; font-family: inherit; font-size: .93rem; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.packs-button:hover { transform: translateY(-2px); }
.packs-button--primary { background: var(--pack-lime); color: #091208; box-shadow: 0 8px 22px #9dfd4929; }
.packs-button--outline { background: #0e1928; color: #eef5ff; border-color: #62718b; }
.packs-button--outline:hover { border-color: var(--pack-lime); }

.packs-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 74% 42%, #1846a7a6 0, transparent 34%), radial-gradient(circle at 14% 25%, #183b3a 0, transparent 42%), linear-gradient(135deg, #0b1719, #0a1121 53%, #0b1530); border-bottom: 1px solid #35517c; }
.packs-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: clamp(20px, 4vw, 70px); align-items: center; min-height: 680px; padding-block: 54px 72px; }
.packs-hero__copy { position: relative; z-index: 2; }
.packs-hero h1 { max-width: 800px; margin-bottom: 20px; font-size: clamp(3rem, 5.9vw, 6rem); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.packs-hero__intro { max-width: 610px; color: #c4d4e8; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.75; }
.packs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.packs-counts { display: flex; gap: 25px; margin-top: 35px; color: #b7c9df; }
.packs-counts span + span { border-inline-start: 1px solid #667995; padding-inline-start: 25px; }
.packs-counts strong { color: #fff; font-size: 1.4rem; }
.packs-hero__notice { max-width: 610px; margin: 28px 0 0; padding-inline-start: 15px; border-inline-start: 3px solid var(--pack-lime); color: #aebed0; font-size: .83rem; line-height: 1.6; }

.pack-arena { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 650px; padding: 25px 15px 15px; }
.pack-arena__sparks { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.pack-arena__sparks span { position: absolute; top: 44%; left: 50%; width: 6px; height: 18px; border-radius: 50%; background: #eafcff; box-shadow: 0 0 12px 5px #74d8ff, 0 0 25px #478dff; opacity: 0; }
.pack-arena__flash { position: absolute; z-index: 5; inset: 0; background: radial-gradient(circle, #fff, #c5ebff 15%, #3487ffbb 50%, transparent 73%); opacity: 0; pointer-events: none; }
.pack-object { position: relative; display: block; width: clamp(225px, 24vw, 320px); aspect-ratio: 2 / 3; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; filter: drop-shadow(0 25px 25px #000b) drop-shadow(0 0 35px #558fff5c); transition: transform .3s ease, filter .3s ease; animation: pack-idle 4s ease-in-out infinite; }
.pack-object:hover { transform: translateY(-8px) rotate(-2deg); filter: drop-shadow(0 35px 32px #000b) drop-shadow(0 0 55px #6ca7ff85); }
.pack-object:disabled { cursor: default; }
.pack-foil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.pack-foil--top { clip-path: inset(0 0 50% 0); }
.pack-foil--bottom { clip-path: inset(50% 0 0 0); }
.pack-object__brand { position: absolute; inset: 14% 15% auto; display: flex; align-items: center; justify-content: space-between; gap: 4px; color: #fff; text-shadow: 0 2px 8px #000b; }
.pack-object__site { display: inline-flex; align-items: center; gap: 3px; font-size: clamp(.65rem, 1.1vw, .86rem); font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.pack-object__site img { display: block; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pack-object__site strong { color: var(--pack-lime); }
.pack-object__game { display: inline-flex; align-items: center; gap: 3px; font-size: clamp(.6rem, 1vw, .76rem); font-weight: 800; white-space: nowrap; }
.pack-object__game-mark { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: url('/images/efootball.png') -3px -4px / 98px 98px no-repeat; box-shadow: 0 0 0 1px #fff5; }
.pack-object__center { position: absolute; top: 37%; left: 9%; right: 9%; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-align: center; text-shadow: 0 2px 12px #000b; }
.pack-object__center > span { font-size: clamp(.65rem, 1.1vw, .83rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pack-object__center strong { font-size: clamp(2.9rem, 4.3vw, 4.2rem); line-height: 1; letter-spacing: -.07em; }
.pack-object__center small { max-width: 95%; margin-top: 7px; font-size: .78rem; font-weight: 800; line-height: 1.2; }
.pack-object__foot { position: absolute; bottom: 12%; left: 15%; right: 15%; display: flex; justify-content: space-between; gap: 5px; border-top: 1px solid #d2e2ff70; padding-top: 8px; font-size: .63rem; font-weight: 800; white-space: nowrap; }
.pack-object__tear { position: absolute; top: 49%; left: 9%; right: 9%; height: 2px; background: #c9f3ff; box-shadow: 0 0 18px 6px #71c0ff; opacity: 0; pointer-events: none; }
.pack-arena__status { min-height: 1.5em; margin: 6px 0 10px; color: #d7ebff; font-size: .85rem; text-align: center; }
.pack-arena__open { position: relative; z-index: 6; min-width: 190px; }
.pack-arena.is-opening .pack-object { animation: pack-shake .55s ease-in-out 2; }
.pack-arena.is-opening .pack-object__brand, .pack-arena.is-opening .pack-object__center, .pack-arena.is-opening .pack-object__foot { animation: brand-fade .45s ease-in forwards; }
.pack-arena.is-opening .pack-object__tear { animation: tear-flash .62s ease-in .28s forwards; }
.pack-arena.is-opening .pack-arena__sparks span { animation: spark-burst .85s ease-out .58s both; }
.pack-arena.is-opening .pack-foil--top { animation: tear-top .9s cubic-bezier(.2,.8,.25,1) .53s forwards; }
.pack-arena.is-opening .pack-foil--bottom { animation: tear-bottom .9s cubic-bezier(.2,.8,.25,1) .53s forwards; }
.pack-arena.is-opening .pack-arena__flash { animation: reveal-flash 1.2s ease-out .75s forwards; }
.pack-arena.is-revealed .pack-object { display: none; }
.pack-result { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; width: 100%; animation: result-rise .7s cubic-bezier(.2,1,.2,1) both; }
.pack-result__eyebrow { margin: 0 0 15px; color: var(--pack-lime); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pack-result__card { width: min(48%, 230px); filter: drop-shadow(0 0 26px #6bb5ff80) drop-shadow(0 25px 20px #0009); }
.pack-result__card .ef-card { display: block; width: 100%; }
.pack-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pack-result__actions .packs-button { min-height: 41px; padding: 8px 13px; font-size: .8rem; }

.pack-shelf { padding-block: clamp(70px, 8vw, 105px); background: #0b111d; }
.pack-shelf__head { max-width: 810px; margin-bottom: 35px; }
.pack-shelf__head h2, .packs-guide h2 { margin-bottom: 10px; font-size: clamp(2.2rem, 4.3vw, 3.7rem); line-height: 1.05; letter-spacing: -.045em; }
.pack-shelf__head > p:last-child { color: #afc1d7; line-height: 1.65; }
.pack-shelf__list { display: grid; gap: 15px; }
.pack-choice { scroll-margin-top: 90px; border: 1px solid var(--pack-line); border-radius: 15px; background: linear-gradient(100deg, #111b2d, #0d1728); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.pack-choice.is-selected { border-color: #82b3ff; box-shadow: inset 4px 0 0 var(--pack-lime), 0 0 30px #4288ff1b; }
[dir="rtl"] .pack-choice.is-selected { box-shadow: inset -4px 0 0 var(--pack-lime), 0 0 30px #4288ff1b; }
.pack-choice__row { display: flex; align-items: center; gap: 24px; min-height: 155px; padding: 15px 22px; }
.pack-choice__thumb { position: relative; flex: 0 0 74px; width: 74px; height: 112px; filter: drop-shadow(0 8px 7px #000a); }
.pack-choice__thumb img { display: block; width: 100%; height: 100%; object-fit: fill; }
.pack-choice__thumb span { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); color: #fff; font-size: .76rem; font-weight: 800; text-align: center; text-shadow: 0 2px 6px #000; }
.pack-choice__info { min-width: 0; flex: 1; }
.pack-choice__index { color: var(--pack-lime); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pack-choice__info h3 { margin: 4px 0; font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.1; overflow-wrap: anywhere; }
.pack-choice__info p { margin: 0; color: #afc1d7; font-size: .84rem; }
.pack-choice__select { flex: none; min-width: 155px; }
.pack-choice__pool { border-top: 1px solid var(--pack-line); }
.pack-choice__pool summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 25px; color: #bcd7ff; font-size: .85rem; font-weight: 800; cursor: pointer; list-style: none; }
.pack-choice__pool summary::-webkit-details-marker { display: none; }
.pack-choice__pool[open] summary span { transform: rotate(45deg); }
.pack-choice__pool h4 { margin: 5px 25px 20px; font-size: 1rem; }
.pack-choice__players { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 0 25px 27px; }
.pack-player-card { display: block; min-width: 0; color: #fff; text-decoration: none; }
.pack-player-card__art { display: block; transition: transform .2s, filter .2s; }
.pack-player-card:hover .pack-player-card__art { transform: translateY(-4px); filter: drop-shadow(0 12px 14px #0009); }
.packs-empty { padding: 28px; border: 1px solid var(--pack-line); color: #b9cce2; }
.packs-guide { padding-block: clamp(65px, 7vw, 95px); border-top: 1px solid var(--pack-line); background: #101d27; }
.packs-guide h2 { max-width: 780px; margin-bottom: 30px; }
.packs-guide__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.packs-guide article { padding: clamp(20px, 2.4vw, 30px); border: 1px solid #385066; border-radius: 8px; background: #152638; }
.packs-guide article > span { color: var(--pack-lime); font-size: .77rem; font-weight: 800; }
.packs-guide h3 { margin: 13px 0 10px; font-size: 1.18rem; }
.packs-guide article p { margin: 0; color: #b9cddd; font-size: .91rem; line-height: 1.75; }
.packs-guide__link { display: inline-block; margin-top: 25px; color: var(--pack-lime); font-weight: 800; }
[dir="rtl"] .packs-page, [dir="rtl"] .packs-page h1, [dir="rtl"] .packs-page h2, [dir="rtl"] .packs-page h3 { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif; }

@keyframes pack-idle { 50% { translate: 0 -8px; } }
@keyframes pack-shake { 20% { transform: translateX(-7px) rotate(-3deg); } 40% { transform: translateX(7px) rotate(3deg); } 60% { transform: translateX(-5px) rotate(-2deg); } 80% { transform: translateX(5px) rotate(2deg); } }
@keyframes brand-fade { to { opacity: 0; } }
@keyframes tear-flash { 20% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.4); } }
@keyframes tear-top { to { opacity: 0; transform: translate(-35px, -160px) rotate(-14deg) scale(.9); } }
@keyframes tear-bottom { to { opacity: 0; transform: translate(28px, 155px) rotate(10deg) scale(.9); } }
@keyframes reveal-flash { 15% { opacity: .95; } 100% { opacity: 0; } }
@keyframes spark-burst { 0% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(0) scale(.3); } 18% { opacity: 1; } 100% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-220px) scale(.4); } }
@keyframes result-rise { from { opacity: 0; transform: translateY(60px) scale(.65); filter: blur(15px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@media (max-width: 1100px) { .pack-choice__players { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 850px) { .packs-hero__layout { grid-template-columns: 1fr; } .packs-hero__copy { text-align: center; } .packs-hero__intro, .packs-hero__notice { margin-inline: auto; } .packs-hero__actions, .packs-counts { justify-content: center; } .pack-arena { width: min(100%, 570px); margin-inline: auto; } .packs-guide__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .packs-hero__layout { padding-block: 45px 55px; } .packs-hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); } .pack-arena { min-height: 540px; padding-inline: 10px; } .pack-object { width: min(65vw, 270px); } .pack-object__site > span { display: none; } .pack-object__site img { width: 32px; height: 32px; } .pack-object__center strong { font-size: clamp(2.7rem, 12vw, 3.5rem); } .pack-choice__row { gap: 12px; padding: 15px; flex-wrap: wrap; } .pack-choice__thumb { flex-basis: 59px; width: 59px; height: 91px; } .pack-choice__select { margin-inline-start: 70px; min-width: 0; width: calc(100% - 70px); } .pack-choice__players { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-inline: 14px; } .pack-choice__pool summary { padding-inline: 15px; } }
@media (prefers-reduced-motion: reduce) { .pack-object, .pack-arena__sparks span { animation: none !important; } .packs-button, .pack-player-card__art { transition: none; } .pack-arena.is-opening .pack-object { opacity: 0; } .pack-arena.is-opening .pack-arena__flash { display: none; } .pack-result { animation: none; } }
