.rip-game {
  --rip-surface: #171e32;
  --rip-table: #0d1221;
  --rip-violet: #c9b7ff;
  --rip-border: #424b66;
  --rip-opening-height: 350px;
  padding: 20px 0 clamp(32px, 5vw, 68px);
  line-height: 1.45;
}

.rip-game [hidden] { display: none !important; }
.rip-game p { margin: 0; }
.rip-header {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  align-items: end;
  margin-bottom: 22px;
}
.rip-header h1 { font-size: clamp(2.65rem, 6vw, 4.6rem); }
.rip-header h1 span { color: var(--lime); }
.rip-header > p { max-width: 27ch; font-size: .9rem; }
.rip-competition-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--rip-border);
  border-radius: 12px;
  background: var(--rip-surface);
}
.rip-competition-intro h2 { font-size: 1.15rem; margin-bottom: 4px; }
.rip-competition-intro p { color: var(--muted); }
.rip-game .rip-kicker {
  color: var(--rip-violet);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .095em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.rip-kicker a { text-decoration: underline; text-underline-offset: 3px; }
.rip-kicker a:hover { color: var(--lime); }
.rip-kicker span { color: var(--muted); margin: 0 4px; }
.rip-layout {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.65fr);
  gap: 16px;
  align-items: start;
}
.rip-sidebar {
  display: grid;
  gap: 0;
  background: var(--rip-surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.rip-mission { padding: clamp(16px, 2vw, 26px); }
.rip-mission h2 { font-size: clamp(1.15rem, 2.4vw, 1.75rem); letter-spacing: -.026em; line-height: 1.24; }
.rip-wallet,
.rip-binder-summary { border-top: 1px solid var(--line); }
.rip-wallet,
.rip-binder-button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px clamp(16px, 2vw, 26px);
  min-width: 0;
}
.rip-wallet div,
.rip-binder-button > span:last-child { min-width: 0; line-height: 1.28; }
.rip-wallet div > span,
.rip-binder-button small { display: block; color: var(--muted); font-size: .83rem; }
.rip-wallet strong { display: block; color: var(--lime); font-size: 1.25rem; margin-top: 2px; }
.rip-coin,
.rip-slot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  font-weight: 700;
}
.rip-coin {
  color: #182711;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), #9bbf50);
  border: 3px double #2c431d;
  font-size: 1.05rem;
}
.rip-slot {
  border: 1px dashed var(--rip-violet);
  border-radius: 6px;
  color: var(--rip-violet);
  font-size: .83rem;
}
.rip-slot-filled { background: #39315b; border-style: solid; }
.rip-binder-button {
  border: 0;
  color: var(--white);
  border-radius: 0 0 16px 16px;
  background: transparent;
  width: 100%;
  text-align: left;
}
.rip-binder-button:hover { background: #232b44; }
.rip-binder-button strong { display: block; font-size: .92rem; margin-bottom: 3px; }
.rip-stage {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 55% 0%, #252140, transparent 65%), var(--rip-table);
  min-width: 0;
}
.rip-stage > p { padding: 24px; }
/* Reserve the opening pack's space while the module restores this device's round. */
@media (scripting: enabled) {
  .rip-stage > .rip-loading { min-height: var(--rip-opening-height); }
}
.rip-stage h2 { font-size: clamp(1.42rem, 3vw, 2.15rem); }
.rip-game .button { gap: 7px; min-height: 46px; }
.rip-game .button:disabled { cursor: default; color: var(--muted); background: #252d44; border-color: #494f66; filter: none; }
.rip-sealed {
  min-height: var(--rip-opening-height);
  display: grid;
  grid-template-columns: minmax(145px, .9fr) minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(24px, 4vw, 55px);
}
.rip-sealed-copy p { margin: 9px 0 15px; }
.rip-sealed-copy .button + p { margin-top: 12px; }
.rip-pack {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 190px);
  aspect-ratio: 19 / 27;
  display: grid;
  place-items: stretch;
  padding: 14px 9px;
  transform: rotate(-8deg);
  border-radius: 5px;
  background: linear-gradient(105deg, #352863 1%, #aa8ef3 8%, #33245f 17%, #271f4b 69%, #635393 89%, #211f3e 99%);
  box-shadow: 0 18px 34px #080914c4, 0 0 45px #8f67e82a, inset 0 0 0 1px #cbbbfa70;
}
.rip-pack::before,
.rip-pack::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 13px;
  background: repeating-linear-gradient(90deg, #dbd0ff85 0 1px, #241a4d90 1px 3px, transparent 3px 5px), linear-gradient(110deg, #6756a1, #b491f5 20%, #5e43a2 76%, #b0a4d3);
  border-radius: 3px;
}
.rip-pack::before { top: 0; border-bottom: 1px solid #ded2ff91; }
.rip-pack::after { bottom: 0; border-top: 1px solid #ded2ff91; }
.rip-pack-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  gap: 8px;
  text-align: center;
  background:
    linear-gradient(148deg, #ffffff00 33%, #c6adff28 47%, #ffffff00 58%),
    repeating-radial-gradient(ellipse at 50% 46%, #c8b6ff2e 0 1px, transparent 2px 12px),
    radial-gradient(ellipse at 47% 43%, #4d398d, #211b3e 72%);
  border: 1px solid #c8b6ff6e;
  border-radius: 3px;
  box-shadow: inset 0 0 16px #09091855;
}
.rip-pack-print > span,
.rip-pack-print > small { font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: #e4daff; }
.rip-pack-print > strong { font-size: clamp(1.7rem, 3.5vw, 2.75rem); line-height: .85; letter-spacing: -.05em; text-shadow: 1px 2px #1d143b; }
.rip-pack-print > strong i { color: var(--lime); font-style: normal; }
.rip-pack-emblem {
  display: grid;
  place-items: center;
  color: var(--lime);
  text-shadow: 0 0 17px #d9ff6499;
  width: 52px;
  height: 52px;
  border: 1px solid #dcccff94;
  border-radius: 50%;
  font-style: normal;
  font-size: 2.15rem;
}
.rip-reveal,
.rip-receipt { padding: clamp(14px, 3vw, 32px); }
.rip-reveal-head,
.rip-inspect-head,
.rip-receipt-heading,
.rip-review {
  display: flex;
  justify-content: space-between;
  gap: 10px 16px;
  align-items: center;
}
.rip-reveal-head { margin-bottom: 17px; }
.rip-reveal-head p { margin-top: 5px; font-size: .9rem; }
.rip-reveal-head .button { flex-shrink: 0; }
.rip-pulls,
.rip-binder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  gap: clamp(10px, 2vw, 20px);
  justify-content: center;
}
.rip-pull {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  text-align: left;
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--white);
}
.rip-unrevealed { touch-action: pan-y; user-select: none; }
.rip-card-face,
.rip-card-back {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #71718c;
  border-radius: 10px;
  background: #1a2136;
  box-shadow: 0 7px 18px #070a1466;
}
.rip-card-face { padding: 5px; }
.rip-card-back {
  aspect-ratio: 4 / 5;
  justify-content: center;
  gap: 10px;
  align-items: center;
  color: #ede5ff;
  font-size: .83rem;
  text-align: center;
  background: repeating-radial-gradient(ellipse at 50% 50%, #c697ff45 0 1px, transparent 2px 14px), radial-gradient(ellipse at 50% 49%, #564382, #252242 72%);
  border: 1px solid #9a84ba;
}
.rip-card-back::before { content: ''; position: absolute; inset: 8px; border: 1px solid #d1b9f984; border-radius: 8px; pointer-events: none; }
.rip-card-back strong { color: var(--lime); line-height: 1; font-size: clamp(2rem, 5vw, 3.6rem); text-shadow: 0 0 15px #d9ff6475; }
.rip-card-back > span:first-child { font-size: .68rem; font-weight: 700; letter-spacing: .07em; }
.rip-card-art { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 5px 5px 2px 2px; }
.rip-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rip-card-copy { display: grid; gap: 2px; padding: 7px 5px 4px; line-height: 1.25; }
.rip-card-copy strong { font-size: clamp(.87rem, 1.7vw, 1.1rem); }
.rip-card-copy > span { font-size: .83rem; color: var(--muted); }
.rip-card-foil {
  border-color: #e0bcff;
  background: linear-gradient(130deg, #352a52 17%, #223448 52%, #42304b 80%);
}
.rip-card-foil::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(132deg, transparent 19%, #f4baff14 29%, #d6ff8a23 36%, #b9d5ff12 43%, transparent 59%);
}
.rip-pull:hover .rip-card-back,
.rip-pull:hover .rip-card-face,
.rip-pull[aria-pressed='true'] .rip-card-face { border-color: var(--lime); }
.rip-pull[aria-pressed='true'] .rip-card-face { outline: 1px solid var(--lime); }
.rip-pull-status { font-size: .82rem; color: var(--rip-violet); margin: 8px 2px 0; }
.rip-inspection {
  margin-top: 20px;
  padding: clamp(13px, 2vw, 22px);
  border: 1px solid var(--rip-border);
  border-radius: 12px;
  background: var(--rip-surface);
}
.rip-inspect-head { flex-wrap: wrap; align-items: start; }
.rip-inspect-head h3 { margin-bottom: 4px; font-size: 1.35rem; }
.rip-inspect-head p { font-size: .89rem; }
.rip-inspect-head .rip-duplicate { color: var(--rip-violet); }
.rip-prices, .rip-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.rip-prices > div { min-width: 0; border: 1px solid var(--line); background: #0f1527; border-radius: 8px; padding: 10px; }
.rip-prices h4 { font-size: .87rem; line-height: 1.25; letter-spacing: 0; margin-bottom: 6px; }
.rip-prices ul { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.rip-prices strong { color: var(--lime); font-size: 1rem; }
.rip-choices .button { width: 100%; padding: 8px 7px; }
.rip-choices p, .rip-choice-note { font-size: .83rem; margin-top: 7px; }
.rip-inspection > .button { margin-top: 10px; }
.rip-game .button[aria-pressed='true'],
.rip-game .button[aria-current='true'] { color: var(--lime); background: #252e2c; border-color: var(--lime); }
.rip-review { margin-top: 16px; padding: 14px; border: 1px solid var(--rip-border); border-radius: 10px; }
.rip-review h3 { font-size: 1.04rem; margin: 0 0 4px; }
.rip-review p { color: var(--white); }
.rip-review small { color: var(--muted); font-size: .82rem; }
.rip-review .button { flex-shrink: 0; }
.rip-score { color: var(--lime); white-space: nowrap; }
.rip-score strong { font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1; }
.rip-objectives, .rip-outcomes, .rip-binder-grid { margin: 0; padding: 0; list-style: none; }
.rip-objectives { display: grid; gap: 7px; margin-top: 19px; }
.rip-objectives li { display: flex; align-items: baseline; gap: 9px; font-size: .92rem; }
.rip-objectives li > span { color: var(--muted); min-width: 68px; font-weight: 700; }
.rip-objectives li > .rip-met { color: var(--lime); }
.rip-ledger { margin: 17px 0; border-top: 1px solid var(--rip-border); }
.rip-ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rip-ledger dt { color: var(--muted); }
.rip-ledger dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rip-ledger > div:last-child dd { color: var(--lime); }
.rip-outcomes li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; font-size: .9rem; }
.rip-outcomes small { color: var(--muted); }
.rip-receipt-actions,
.rip-binder-tabs,
.rip-mode-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rip-receipt-actions { margin-top: 16px; }
.rip-receipt-actions a { white-space: normal; padding: 9px 3px; }
.rip-modes { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--rip-surface); }
.rip-modes p { margin-top: 8px; font-size: .9rem; }
.rip-weekly-entry {
  display: grid;
  gap: 9px;
  justify-items: start;
  margin-top: 16px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--rip-border);
  border-radius: 12px;
  background: var(--rip-surface);
  scroll-margin-top: 90px;
}
.rip-weekly-entry h2 { font-size: 1.25rem; }
.rip-weekly-entry form { display: grid; gap: 14px; justify-items: start; }
.rip-weekly-entry label { display: flex; align-items: start; gap: 9px; }
.rip-weekly-entry label input { width: 1em; height: 1em; margin: .2em 0 0; accent-color: var(--lime); }
.rip-weekly-history { margin-top: 16px; }
.rip-weekly-history summary { color: var(--rip-violet); cursor: pointer; }
.rip-competition-filter { align-items: end; max-width: 430px; }
.rip-competition-filter label { display: grid; gap: 6px; flex: 1 1 180px; }
.rip-weekly-history .rip-competition-filter { margin-top: 10px; }
.rip-standings { width: 100%; margin-top: 24px; text-align: left; border-collapse: collapse; }
.rip-standings caption { text-align: left; margin-bottom: 10px; font-weight: 700; }
.rip-standings th, .rip-standings td { padding: 10px clamp(6px, 2.5vw, 18px); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rip-standings thead th { overflow-wrap: normal; }
.rip-standings thead { background: var(--rip-surface); }
.rip-standings-note, .rip-standing-pages { margin-top: 16px; }
.rip-game .rip-standings-note { margin-top: 16px; color: var(--muted); }
.rip-standing-pages { display: flex; gap: 14px; flex-wrap: wrap; }
.rip-standing-pages a { color: var(--lime); text-decoration: underline; }
.rip-game .rip-storage-note { margin-top: 12px; }
.rip-dialog {
  width: min(94%, 650px);
  max-height: 86dvh;
  overflow: auto;
  padding: clamp(14px, 3vw, 27px);
  border: 1px solid var(--rip-border);
  border-radius: 14px;
  color: var(--white);
  background: var(--rip-surface);
}
.rip-dialog::backdrop { background: #050716d9; }
.rip-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rip-dialog h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.rip-dialog .rip-binder-tabs { margin-bottom: 12px; }
.rip-dialog [data-binder-content] > p { margin-bottom: 14px; }
.rip-binder-grid { grid-template-columns: repeat(auto-fit, minmax(min(42%, 130px), 1fr)); }
.rip-binder-grid > li { max-width: 220px; }
.rip-binder-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  padding: 8px;
  text-align: center;
  border: 1px dashed #8372aa;
  border-radius: 10px;
  color: var(--muted);
  background: #12182a;
}
.rip-binder-empty strong { color: var(--rip-violet); font-size: 1.6rem; }
.rip-copy-count {
  position: absolute;
  top: 12px;
  right: 10px;
  padding: 3px 7px;
  color: var(--white);
  border: 1px solid var(--rip-border);
  border-radius: 4px;
  background: #0b1229;
  font-size: .75rem;
}
.rip-just-opened .rip-unrevealed { animation: rip-deal .34s ease-out both; }
.rip-just-opened .rip-unrevealed:nth-child(2) { animation-delay: .07s; }
.rip-just-revealed { animation: rip-turn .33s cubic-bezier(.18, .8, .35, 1) both; }
@keyframes rip-deal {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: none; }
}
@keyframes rip-turn {
  from { opacity: .45; transform: perspective(650px) rotateY(-75deg); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 750px) {
  .rip-game { --rip-opening-height: 260px; }
  .restored-product:has(.rip-game) .global-search,
  .product-main:has(.rip-game) > .mobile-space-menu { display: none; }
  .rip-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rip-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rip-mission { grid-column: 1 / -1; padding: 12px 14px; }
  .rip-wallet, .rip-binder-button { padding: 9px; gap: 7px; }
  .rip-binder-summary { border-left: 1px solid var(--line); }
  .rip-binder-button { border-radius: 0 0 16px; }
  .rip-pack { width: min(100%, 144px); }
  .rip-pack-emblem { width: 42px; height: 42px; font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .rip-game { --rip-opening-height: 220px; padding-top: 12px; }
  .rip-header { align-items: start; flex-direction: column; margin-bottom: 13px; gap: 5px; }
  .rip-header > p { max-width: none; }
  .rip-header h1 { font-size: clamp(2.3rem, 11vw, 3.25rem); }
  .rip-sealed { grid-template-columns: minmax(0, .74fr) minmax(0, 1.1fr); padding: 17px 14px; gap: 14px; }
  .rip-sealed-copy .button { width: 100%; padding: 10px 6px; }
  .rip-pack { width: min(100%, 124px); }
  .rip-pack-print { gap: 5px; padding: 4px; }
  .rip-pack-print > span, .rip-pack-print > small { font-size: .56rem; letter-spacing: .06em; }
  .rip-pack-emblem { width: 35px; height: 35px; font-size: 1.45rem; }
  .rip-reveal-head { flex-wrap: wrap; gap: 8px; }
  .rip-reveal-head .button { padding: 7px 10px; }
  .rip-review { align-items: start; flex-direction: column; }
  .rip-review .button { width: 100%; }
}
@media (scripting: enabled) and (max-width: 750px) {
  .rip-sidebar:has(.rip-mission:empty) { min-height: 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rip-game *, .rip-game *::before, .rip-game *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html:has(.rip-game) { scroll-behavior: auto; }
}

.rip-result-comparisons { padding-block: 1rem; border-block: 1px solid var(--line, #4d5058); }
.rip-result-comparisons h3 { margin: 0 0 .5rem; }
.rip-result-comparisons div { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.rip-result-comparisons a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link, #a2adff); text-decoration: underline; }
