/* Cut-corner silhouettes, dark surfaces, and restrained gold details. */
:root {
  --accent: #f5bb39;
  --accent-light: #ffd477;
}

.diamond-card, .player-panel, .input-shell,
.continue-button, .input-shell button, .edit-player,
.help-button, .close-button, .step, .player-avatar, .review-symbol {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.diamond-card, .player-panel {
  --cut: 15px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  background: #34383e;
}
.diamond-card::before, .player-panel::before,
.input-shell::before, .continue-button::before,
.input-shell button::before, .edit-player::before,
.help-button::before, .close-button::before,
.step::before, .player-avatar::before, .review-symbol::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  pointer-events: none;
  background: #15171b;
  clip-path: inherit;
}
.diamond-card::before { --cut: 14.4px; background: linear-gradient(155deg, #191c20, #121417); }
.player-panel::before { --cut: 14.4px; background: #15171b; }
.diamond-option { border-radius: 0; }
.diamond-option:hover .diamond-card { background: #73787f; box-shadow: none; transform: translateY(-2px); }
.diamond-option input:checked + .diamond-card { background: #b98c31; border: 0; box-shadow: none; }
.diamond-option input:checked + .diamond-card::before { background: linear-gradient(155deg, #232119, #161719 68%); }
.diamond-option input:focus-visible + .diamond-card { outline: none; background: #ffe2a3; }
.diamond-option input:focus-visible + .diamond-card::before { inset: 3px; }
.choice-mark { display: grid; place-items: center; border-radius: 2px; width: 16px; height: 16px; right: 10px; top: 10px; }
.choice-mark svg { display: block; width: 12px; height: 12px; }
.diamond-option input:checked + .diamond-card .choice-mark { background: var(--accent); color: #101114; }
.diamond-option input:checked + .diamond-card .pack-price { background: transparent; border-top-color: #ffffff0c; color: var(--accent-light); }

.input-shell { --cut: 10px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); background: #3b4046; }
.input-shell::before { background: #0e1013; --cut: 9.4px; }
.input-shell:focus-within { background: var(--accent); box-shadow: none; }
.input-shell.error { background: #bd665e; }
.input-shell.success { background: #3d7464; }

.continue-button { --cut: 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); background: #977b40; color: var(--accent-light); font-weight: 700; letter-spacing: .015em; }
.continue-button::before { --cut: 13.4px; background: linear-gradient(100deg, #22231f, #191c20); }
.continue-button::after { content: ''; position: absolute; width: 19px; height: 3px; background: var(--accent); right: 23px; top: calc(50% - 1.5px); transform: skewX(-40deg); pointer-events: none; }
.continue-button:hover { background: var(--accent); box-shadow: none; }
.continue-button:hover::before { background: #2b2a21; }
.continue-button:active { transform: translateY(1px); }

.input-shell button, .edit-player, .help-button, .close-button {
  --cut: 7px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  background: #4b5057;
  color: #d9dde4;
}
.input-shell button::before, .edit-player::before, .help-button::before, .close-button::before { --cut: 6.4px; background: #23262b; }
.input-shell button:hover, .edit-player:hover, .help-button:hover, .close-button:hover { background: var(--accent); color: var(--accent-light); }
.continue-button:focus-visible, .input-shell button:focus-visible, .edit-player:focus-visible, .help-button:focus-visible, .close-button:focus-visible { outline: none; background: #ffe2a3; }
.continue-button:focus-visible::before, .input-shell button:focus-visible::before, .edit-player:focus-visible::before, .help-button:focus-visible::before, .close-button:focus-visible::before { inset: 3px; }
.help-button { width: 30px; height: 30px; }
.close-button { position: absolute; }
.sticky-footer { background: #0c0d0ff5; border-top-color: #25282d; }

.step, .player-avatar, .review-symbol { --cut: 6px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); background: #555048; }
.step::before, .player-avatar::before, .review-symbol::before { --cut: 5.4px; background: #1b1d20; }
.step, .step.complete { color: #ffd447; background: #a08427; }
.player-avatar { color: var(--accent-light); }
.review-symbol { --cut: 10px; color: var(--accent-light); }
.review-symbol::before { --cut: 9.4px; }
dialog { border-radius: 2px; }
.review-details, .review-demo, .help-panel { border-radius: 0; }

/* Inventory-like inset frames and restrained diagonal edge markings. */
.diamond-card { min-height: 163px; padding: 13px 8px 17px; justify-content: center; }
.diamond-card::before { background: linear-gradient(120deg, transparent 40%, #ffffff05 40%, transparent 65%), linear-gradient(160deg, #1b1c23, #111215); }
.diamond-card::after { content: ''; position: absolute; inset: 5px; border: 1px solid #ffffff07; clip-path: inherit; pointer-events: none; }
.diamond-art { margin: 0 0 5px; height: 91px; width: min(100%, 150px); }
.diamond-art::before { display: none; }
.diamond-art img { width: 140px; max-width: 100%; height: 100px; object-fit: contain; filter: drop-shadow(0 5px 8px #0005); }
.diamond-art img.original-art { position: absolute; top: -22px; width: 140px; height: 140px; max-width: none; object-fit: contain; filter: none; -webkit-mask: var(--art-mask) center / contain no-repeat; mask: var(--art-mask) center / contain no-repeat; }
.diamond-option:hover img.original-art { transform: translateY(-2px); }
.game-art { display: block; width: 140px; height: 100px; max-width: 100%; background-image: url('./assets/diamond-products.png'); background-repeat: no-repeat; background-size: 420px 241px; mix-blend-mode: lighten; }
.game-art-loose { background-position: 0 -9px; }
.game-art-slim-case { background-position: -140px -9px; }
.game-art-open-case { background-position: -280px -9px; }
.game-art-chest { background-position: 0 -120px; }
.game-art-open-chest { background-position: -140px -120px; }
.game-art-vault { background-position: -280px -120px; }
.pack-value { line-height: 1.25; }
.pack-unit { margin-top: 2px; }
.choice-mark { top: 12px; right: 12px; }
.diamond-option input:checked + .diamond-card { background: #e6b82e; }
.diamond-option input:checked + .diamond-card::before {
  background: repeating-linear-gradient(135deg, #e8b82d9c 0 2px, transparent 2px 5px) left center / 3px 38px no-repeat,
    linear-gradient(#e8b82d, #e8b82d) left bottom / calc(100% - 15px) 2px no-repeat,
    linear-gradient(120deg, #a6842012, transparent 55%), #19191c;
}
.diamond-option input:checked + .diamond-card::after { border-color: #e9bd3233; }
.player-panel::before { background: linear-gradient(120deg, #ffffff03, transparent 52%), #15161b; }
.player-result { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.player-banner-wrap { width: 100%; aspect-ratio: 1577 / 400; overflow: hidden; border: 1px solid #ffffff21; background: #101114; }
#player-banner { display: block; width: 100%; height: auto; }
#player-banner[hidden], #player-banner-fallback[hidden], #player-level-stat[hidden] { display: none; }
#player-banner-fallback { display: flex; align-items: center; justify-content: flex-start; gap: 12px; height: 100%; padding: 8px; color: #c3c5c8; }
.player-details-row { display: flex; align-items: center; gap: 8px; }
.player-stats { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 5px 10px; min-width: 0; }
.player-stat { display: inline-flex; align-items: center; gap: 4px; color: #aab0b8; font-size: 11px; line-height: 1.5; min-width: 0; }
.player-stat svg { width: 12px; height: 12px; flex-shrink: 0; }
.player-stat strong { font-size: inherit; font-weight: 500; overflow-wrap: anywhere; color: #d6d9df; }
.uid-stat { white-space: nowrap; }
.player-status { color: var(--green); font-size: 12px; line-height: 1.5; text-align: left; }
.player-details-row .edit-player { flex-shrink: 0; min-height: 34px; padding: 5px 8px; gap: 4px; font-size: 11px; }
.player-details-row .edit-player svg { width: 12px; height: 12px; }
.player-stat + .player-stat::before { content: ''; width: 1px; height: 10px; background: #ffffff30; margin-right: 4px; flex-shrink: 0; }
.player-banner-wrap { position: relative; }
.banner-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #191b20; color: #aab0b8; font-size: 11px; }
.banner-loading[hidden] { display: none; }
.banner-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, #ffffff0d 50%, transparent 75%); transform: translateX(-100%); animation: banner-shimmer 1.6s ease-in-out infinite; }
@keyframes banner-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .banner-loading::after { animation: none; transform: none; } }
.input-shell { grid-template-columns: 34px minmax(0, 1fr) auto; }
#lookup-button { min-width: 48px; gap: 5px; white-space: nowrap; }
#lookup-button[aria-busy="true"] { padding-inline: 8px; }
#lookup-button:disabled { cursor: default; opacity: .45; }
#lookup-button[aria-busy="true"] { opacity: 1; }
.lookup-spinner { width: 12px; height: 12px; flex: 0 0 12px; border: 1.5px solid #ffffff40; border-top-color: #ffca28; border-radius: 50%; animation: spin .7s linear infinite; }
.uid-feedback.loading::before { display: none; }
@media (prefers-reduced-motion: reduce) { .lookup-spinner { animation: none; } }
.input-shell button::before, .edit-player::before { background: linear-gradient(120deg, #ffffff05, transparent 65%), #24252a; }

/* The primary action follows the bright yellow in-game action buttons. */
#continue-button { --cut: 13px; background: #b68b15; color: #211b06; height: 54px; font-size: 18px; }
#continue-button::before { inset: 1px; background: linear-gradient(110deg, #ffffff10 0 24%, transparent 24% 75%, #b77c000a 75%), #ffc600; box-shadow: inset 0 0 0 3px #ffdb4545; }
#continue-button::after {
  inset: 0; width: auto; height: auto; transform: none;
  background: repeating-linear-gradient(45deg, #443409bb 0 2px, transparent 2px 6px) left center / 5px calc(100% - 8px) no-repeat,
    linear-gradient(135deg, transparent 42%, #443409cc 43% 49%, transparent 50%) right 3px bottom 3px / 22px 22px no-repeat;
}
#continue-button:hover { background: #ffdf6a; color: #171300; }
#continue-button:hover::before { background-color: #ffd329; }
#continue-button:focus-visible { background: #fff3bd; }
#continue-button:focus-visible::before { inset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .diamond-option:hover .diamond-card, .continue-button:active { transform: none; }
}
.review-art { height: 110px; display: flex; align-items: center; justify-content: center; margin-top: 14px; }
.review-art .diamond-art { width: 150px; height: 110px; margin: 0; }
.reward-target { display: block; color: #ffd447; font-size: 28px; }
.reward-label { color: #969ca5; font-size: 11px; }
.preparation-track { height: 3px; background: #ffffff12; overflow: hidden; margin-top: 20px; }
#preparation-fill { display: block; width: 24%; height: 100%; background: #ffd447; transition: width .45s ease; }
#preparation-fill.ready { width: 100%; }
#preparation-status { font-size: 12px; color: #bdc2ca; margin: 9px 0; }
.review-back { display: block; margin: 12px auto 0; border: 0; background: transparent; color: #adb3bc; padding: 10px; font: inherit; font-size: 12px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #preparation-fill { transition: none; } }
/* A short, linear reward-selection transition; no delivery is simulated. */
#review-dialog { width: min(440px, calc(100vw - 28px)); padding: 20px; max-height: calc(100dvh - 28px); }
#review-dialog h2 { margin: 12px 0 4px; font-size: 23px; }
#review-dialog .review-caption { margin: 0; font-size: 12px; }
#review-dialog .review-art { height: 96px; margin-top: 8px; }
#review-dialog .review-details { margin: 12px 0; padding: 10px; font-size: 12px; }
#review-dialog .reward-target { font-variant-numeric: tabular-nums; }
#review-dialog .preparation-track { height: 5px; margin-top: 14px; background: #16362a; }
#preparation-fill { width: 0; background: #4cde9b; box-shadow: 0 0 12px #4cde9b66; transition: width 1200ms linear; }
.is-preparing .review-art { animation: reward-hover 1s ease-in-out infinite alternate; }
.is-preparing .review-art::after { content: ''; position: absolute; width: 100px; height: 50px; border-radius: 50%; background: #4cde9b15; filter: blur(20px); z-index: -1; }
@keyframes reward-hover { from { transform: translateY(2px) scale(.97); } to { transform: translateY(-4px) scale(1.03); } }
#offer-preview[hidden] { display: none; }
#offer-preview { text-align: left; animation: offers-enter .35s ease-out both; }
.offer-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.offer-heading h3 { margin: 10px 0 0; font-size: 16px; }
.offer-heading > span { color: #969ca5; font-size: 10px; }
.offer-intro, .offer-preview-note { color: #969ca5; font-size: 11px; margin: 4px 0 12px; }
.offer-preview-card { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 8px 0; background: #202329; border: 1px solid #ffffff13; clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%); }
.offer-preview-card > div { flex: 1; }
.offer-preview-card strong { font-size: 13px; color: #e3e6eb; }
.offer-preview-card p { margin: 2px 0 0; color: #9da4ae; font-size: 11px; line-height: 1.6; }
.offer-icon { display: grid; place-items: center; width: 36px; height: 40px; background: #ffd4470b; color: #ffd447; font-size: 24px; }
#review-dialog .review-demo { padding: 7px 10px; margin: 10px 0; font-size: 11px; }
@keyframes offers-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .is-preparing .review-art, #offer-preview { animation: none; } #preparation-fill { transition: none; } }
/* Quiet preparation becomes one compact reward summary. */
#review-dialog { padding: 18px; }
#review-dialog .dialog-topline { justify-content: flex-start; padding-left: 0; }
#review-dialog h2.sr-only { margin: 0; }
.reward-summary { position: relative; padding: 32px 4px 22px; }
#review-dialog .reward-summary .review-art { position: relative; height: 132px; margin: 0; transition: height .4s ease; }
#review-dialog .reward-summary .review-art .diamond-art { width: 164px; height: 124px; }
.is-preparing .review-details, .is-preparing .review-demo, .is-preparing .reward-label, .is-preparing #back-to-packs { display: none; }
#review-dialog .reward-summary .preparation-track { margin-top: 22px; overflow: visible; border-radius: 2px; }
#preparation-fill { position: relative; border-radius: 2px; }
#preparation-fill::after { content: ''; position: absolute; width: 7px; height: 7px; top: -1px; right: -2px; background: #bdffdc; border-radius: 50%; box-shadow: 0 0 12px 3px #4cde9b88; }
.offers-ready #preparation-fill::after { animation: final-step-glow 1.8s ease-in-out infinite; }
.offers-ready .reward-summary { display: grid; grid-template-columns: 66px 1fr; column-gap: 12px; padding: 14px; margin-top: 10px; background: #15181c; border: 1px solid #ffffff18; animation: summary-enter .4s ease both; }
#review-dialog.offers-ready .reward-summary .review-art { grid-column: 1; grid-row: 1 / 4; height: 64px; align-self: center; }
#review-dialog.offers-ready .reward-summary .review-art .diamond-art { width: 66px; height: 64px; }
.offers-ready .reward-target { grid-column: 2; font-size: 21px; text-align: left; line-height: 1.4; }
.offers-ready .reward-label { grid-column: 2; text-align: left; font-size: 10px; }
#review-dialog.offers-ready .review-details { grid-column: 2; display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 5px 0 0; padding: 0; border: 0; background: none; font-size: 10px; }
#review-dialog.offers-ready .review-details > div { display: flex; flex-direction: row; gap: 4px; }
.offers-ready .review-details dt { display: none; }
.offers-ready #review-uid::before { content: 'UID: '; color: #969ca5; }
.offers-ready .preparation-track, .offers-ready #preparation-status, .offers-ready .review-demo { grid-column: 1 / -1; }
#review-dialog.offers-ready .review-demo { border: 0; padding: 0; margin: 0; background: none; color: #969ca5; font-size: 10px; }
.offers-ready #preparation-status { color: #82e5b3; font-size: 11px; margin: 9px 0 3px; }
#offer-preview { margin-top: 16px; }
@keyframes final-step-glow { 50% { box-shadow: 0 0 17px 5px #4cde9baa; } }
@keyframes summary-enter { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .offers-ready .reward-summary, .offers-ready #preparation-fill::after { animation: none; } #review-dialog .reward-summary .review-art { transition: none; } }
#review-dialog.offers-ready .review-art img.original-art { width: 80px; height: 80px; top: -8px; left: -7px; }
#review-dialog .dialog-topline { min-height: 26px; padding: 0; }
#review-dialog.offers-ready .reward-summary { grid-template-columns: 54px 1fr; padding: 12px; gap: 2px 12px; }
#review-dialog.offers-ready .reward-summary .review-art { grid-row: 1 / 3; height: 48px; }
#review-dialog.offers-ready .reward-summary .review-art .diamond-art { width: 54px; height: 48px; }
#review-dialog.offers-ready .review-art img.original-art { width: 64px; height: 64px; top: -8px; left: -5px; }
#review-dialog.offers-ready .review-details { margin: 0; font-size: 11px; }
.offers-ready #preparation-status { display: none; }
#review-dialog .simple-offer-instruction { font-size: 13px; line-height: 1.8; font-weight: 500; margin: 0 0 12px; color: #d9dee5; }
.offer-start { border: 1px solid #ffd44735; background: #ffd44712; color: #e1c56f; padding: 8px; font: inherit; font-size: 11px; white-space: nowrap; }
.offer-start:disabled { cursor: default; opacity: .65; }
#review-dialog .review-back { margin-top: 4px; }
/* Banner-shaped skeleton retains the final card proportions. */
.banner-loading { justify-content: flex-start; gap: 14px; padding: 10px; background: linear-gradient(115deg, #202329, #121417); }
.banner-loading .skeleton-avatar { height: 100%; aspect-ratio: 1; flex-shrink: 0; background: #ffffff0a; border: 1px solid #ffffff0b; clip-path: polygon(0 0,100% 0,100% 84%,84% 100%,0 100%); }
.skeleton-details { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.skeleton-details > span { display: block; width: 55%; height: 7px; background: #ffffff0b; border-radius: 1px; }
.skeleton-details > span:first-child { width: 68%; height: 12px; }
.skeleton-details > span:last-child { width: 28%; height: 5px; background: #ffd44713; }
.banner-loading::after { background: linear-gradient(105deg, transparent 30%, #ffda7010 48%, #ffffff0b 52%, transparent 70%); animation-duration: 1.7s; }
.player-result .player-status { align-self: flex-end; text-align: right; }
#review-dialog.offers-ready .review-details { flex-direction: column; gap: 1px; align-items: flex-start; }
#review-dialog.offers-ready .review-details dd { overflow-wrap: anywhere; text-align: left; }
.uid-help-link { margin-left: auto; border: 0; padding: 8px 0 8px 10px; background: none; color: #ffd447; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.uid-help-link:hover { color: #ffe58d; text-decoration: underline; text-underline-offset: 3px; }
.uid-help-link:focus-visible { outline: 2px solid #ffd447; outline-offset: 3px; }
.uid-help-link[hidden], .verified-check[hidden], #uid-guide-image[hidden] { display: none; }
#uid-guide-image { display: block; width: 100%; height: auto; }
#uid-guide-placeholder { margin: 0; font-size: 12px; }
.verified-check { display: inline-grid; place-items: center; color: #75dba6; font-size: 11px; margin-left: 3px; }
#uid-entry > label.sr-only { margin: 0; padding: 0; }
.section-heading > .verified-check { width: 18px; height: 18px; margin-left: 0; border: 1px solid #75dba640; border-radius: 50%; background: #75dba60a; font-size: 11px; flex-shrink: 0; }

/* Strong, unambiguous account confirmation. */
.section-heading > .verified-check { width: 20px; height: 20px; background: #75dba6; color: #101914; border: 0; }
.verified-check svg { width: 16px; height: 16px; }
.live-offer { text-decoration: none; color: inherit; }
.live-offer > img { width: 48px; height: 48px; object-fit: cover; flex-shrink: 0; border-radius: 6px; }
.live-offer > div { min-width: 0; flex: 1; }
.live-offer strong { font-size: 13px; overflow-wrap: anywhere; }
.live-offer p { margin: 4px 0 0; color: #a9afb3; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.live-offer .offer-start { flex-shrink: 0; }
.live-offer:hover, .live-offer:focus-visible { border-color: #ffd02f; outline: 2px solid #ffd02f; outline-offset: 2px; }
#offers-status:empty { display: none; }
#offers-list[aria-busy="true"]::before { content: ''; display: block; height: 76px; background: linear-gradient(110deg,#171b1e 25%,#292c2d 45%,#171b1e 65%); background-size: 250% 100%; animation: offer-shimmer 1.4s linear infinite; }
@keyframes offer-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { #offers-list[aria-busy="true"]::before { animation: none; } }

/* A complete text profile appears immediately; the optional banner fades over it. */
#player-banner-fallback { position: absolute; inset: 0; box-sizing: border-box; padding: 10px 14px; background: linear-gradient(115deg, #22262b, #101114); opacity: 1; transition: opacity 280ms ease; }
.banner-profile-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: left; }
#banner-profile-name { color: #f5f6f7; font-size: clamp(17px, 4.6vw, 23px); font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#banner-profile-stats { color: #abb1b9; font-size: 11px; line-height: 1.5; }
#player-banner-fallback .player-avatar { flex-shrink: 0; }
#player-banner { position: absolute; inset: 0; height: 100%; object-fit: contain; z-index: 1; }
.banner-ready #player-banner { animation: profile-banner-in 280ms ease both; }
.banner-ready #player-banner-fallback { opacity: 0; pointer-events: none; }
@keyframes profile-banner-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .banner-ready #player-banner { animation: none; } #player-banner-fallback { transition: none; } }

/* Focused offer overlay with a brief preparation indicator. */
.task-explainer { margin: -3px 0 14px; color: #b1b7bf; font-size: 12px; text-align: left; }
#review-dialog .preparation-track { display: block; }
#review-dialog.offers-ready .preparation-track { display: none; }
#review-dialog .simple-offer-instruction { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.offer-return-note { margin: 0 0 16px; color: #aeb5bf; font-size: 13px; line-height: 1.6; }
.live-offer { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; margin: 12px 0; }
.live-offer[hidden], #offers-more[hidden], #offers-retry[hidden] { display: none; }
.live-offer > div { grid-column: 2; }
.live-offer strong { font-size: 15px; line-height: 1.45; }
.live-offer p { font-size: 14px; line-height: 1.65; color: #c3c9d1; margin-top: 6px; }
.live-offer .offer-start { grid-column: 1 / -1; display: grid; place-items: center; min-height: 44px; padding: 8px 14px; background: #ffd02f; border: 0; color: #15181c; font-size: 14px; font-weight: 700; clip-path: polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%); }
#offers-more { width: 100%; min-height: 44px; padding: 10px; margin: 4px 0 14px; border: 1px solid #ffffff26; background: transparent; color: #e1e5eb; font: inherit; font-size: 14px; cursor: pointer; }
#offers-retry { min-height: 44px; font-size: 14px; cursor: pointer; }
#review-dialog .close-button { min-width: 44px; min-height: 44px; }
#review-dialog .review-details { overflow-wrap: anywhere; }
@media (max-width: 600px) {
 #review-dialog { box-sizing: border-box; width: calc(100% - 28px); max-width: 440px; height: auto; max-height: calc(100dvh - 32px); margin: auto; padding: 16px; }
 #review-dialog.offers-ready .reward-summary { margin-top: 6px; }
 #review-dialog .review-back { min-height: 44px; }
}

/* In-game inspired mission panel: restrained yellow hardware details. */
#review-dialog { background: linear-gradient(125deg, #ffd02f06, transparent 36%), #121518; border: 1px solid #ffffff26; border-top: 2px solid #d9b32b; box-shadow: 0 24px 80px #000b; }
#review-dialog .dialog-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mission-step { display: flex; align-items: center; gap: 8px; color: #bbc1c9; font-size: 12px; font-weight: 600; }
.mission-step b { color: #ffd02f; border: 1px solid #ffd02f66; padding: 3px 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.selected-reward-label { text-align: left; color: #9099a4; font-size: 11px; margin: 14px 0 4px; }
#review-dialog.is-preparing .review-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 10px 0 0; padding: 0; background: transparent; border: 0; }
#review-dialog.is-preparing .review-details > div { display: flex; gap: 5px; font-size: 11px; color: #adb5c0; }
#review-dialog.is-preparing .reward-summary { padding-top: 12px; }
#review-dialog.offers-ready .reward-summary { margin-top: 0; border-left: 2px solid #d9b32b; clip-path: polygon(0 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%); }
#review-dialog .simple-offer-instruction::after { content: ''; display: block; width: 54px; height: 3px; margin: 8px 0 10px; background: repeating-linear-gradient(125deg,#ffd02f 0 12px,transparent 12px 16px); }
.live-offer { position: relative; background: linear-gradient(125deg,#ffffff06 0 25%,transparent 25%),#252b33; border: 1px solid #657080; border-top: 2px solid #e5b838; margin: 18px 0; padding: 18px; }
.live-offer::before { content: ''; position: absolute; width: 3px; height: 26px; top: 16px; left: 0; background: repeating-linear-gradient(135deg,#ffd02f99 0 3px,transparent 3px 6px); }
.live-offer::after { content: ''; position: absolute; right: 4px; bottom: 8px; height: 1px; width: 14px; transform: rotate(-45deg); background: #ffd02f88; }
.live-offer .offer-start { grid-column: 1 / -1; justify-self: stretch; min-height: 44px; font-size: 14px; }
#review-dialog .close-button { background: #ffffff05; border-color: #ffffff26; }

.activity-gate { width: 100%; display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; padding: 18px 14px; min-height: 100px; background: #f5f7f9; color: #20262d; border: 2px solid #d4d9df; border-radius: 10px; font: inherit; text-align: left; cursor: pointer; }
.activity-gate[hidden] { display: none; }
.activity-gate:disabled { opacity: 1; cursor: default; }
.activity-gate:focus-visible { outline: 3px solid #ffd02f; outline-offset: 4px; }
.activity-gate-box { width: 30px; height: 30px; flex-shrink: 0; border: 2px solid #a6afb8; border-radius: 4px; background: white; display: grid; place-items: center; }
.activity-gate-copy { flex: 1; min-width: 0; }
.activity-gate-copy strong { display: block; font-size: 14px; line-height: 1.5; }
.activity-gate-copy small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #56616d; }
.activity-gate-brand { font-size: 10px; font-weight: 700; }
.activity-gate-brand span { display: block; }
.activity-gate[data-state="loading"] .activity-gate-box { border-radius: 50%; background: transparent; border-color: #cbd3da; border-top-color: #96740b; animation: activity-spin .8s linear infinite; }
.activity-gate[data-state="done"] .activity-gate-box { background: #24804b; border-color: #24804b; color: white; }
.activity-gate[data-state="done"] .activity-gate-box::after { content: '✓'; font-size: 24px; font-weight: 800; }
@keyframes activity-spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion: reduce) { .activity-gate[data-state="loading"] .activity-gate-box { animation: none; } }

/* Large centered preparation, then a separate offer view within the overlay. */
#review-dialog:not(.offers-ready) .selected-reward-label { text-align: center; }
#review-dialog:not(.offers-ready) .reward-summary { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 18px; }
#review-dialog:not(.offers-ready) .reward-summary .review-art { width: 100%; height: 200px; display: grid; place-items: center; }
#review-dialog:not(.offers-ready) .reward-summary .review-art .diamond-art { position: relative; width: min(250px, 100%); height: 200px; margin: 0 auto; }
#review-dialog:not(.offers-ready) .review-art img.original-art { position: absolute; width: 250px; height: 250px; max-width: none; top: 50%; left: 50%; transform: translate(-50%,-50%); }
#review-dialog:not(.offers-ready) .reward-target { width: 100%; text-align: center; font-size: 30px; }
#review-dialog:not(.offers-ready) .review-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 0; border: 0; background: transparent; font-size: 11px; }
#review-dialog:not(.offers-ready) .review-details > div { display: flex; gap: 4px; }
#review-dialog:not(.offers-ready) .preparation-track { width: 85%; }
#review-dialog.gate-ready .preparation-track, #review-dialog.gate-ready #preparation-status { display: none; }
#review-dialog .activity-gate { display: block; width: min(301.33px,100%); height: 75.33px; min-height: 75.33px; padding: 0; margin: 10px auto 0; border: 0; border-radius: 3px; background: transparent; }
#review-dialog .activity-gate[hidden], .activity-disclosure[hidden] { display: none; }
#okfreefire-box { display: flex; align-items: center; width: 100%; height: 75.33px; min-height: 75.33px; box-sizing: border-box; padding: 12px; padding-right: 6px; gap: 12px; background: #f9f9f9; border: 1px solid #d3d3d3; border-radius: 3px; box-shadow: 0 1px 4px #00000014; }
#okfreefire-checkbox { box-sizing: border-box; width: 28px; height: 28px; border-radius: 2px; }
.activity-gate-copy strong { font-family: Roboto, helvetica, arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 17px; color: #222; }
.activity-gate-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #555; font: bold 10px sans-serif; }
.activity-gate-brand svg { margin-bottom: 3px; }
.activity-disclosure { text-align: center; color: #aeb5bf; font-size: 11px; margin: 8px 0 14px; }
#review-dialog.offers-ready #offer-preview { animation: activity-page-enter 300ms ease-out both; }
@keyframes activity-page-enter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@media(prefers-reduced-motion: reduce) { #review-dialog.offers-ready #offer-preview { animation: none; } }

/* Preparation stays inside the same solid overlay. */
#review-dialog.is-preparing { box-sizing: border-box; width: min(440px, calc(100vw - 28px)); height: auto; max-height: calc(100dvh - 32px); margin: auto; padding: 18px; overflow: auto; }
#review-dialog.is-preparing .selected-reward-label { text-align: center; margin: 14px 0 0; }
#review-dialog.is-preparing .reward-summary { display: flex; flex-direction: column; align-items: center; padding: 0 0 18px; text-align: center; }
#review-dialog.is-preparing .reward-summary .review-art { position: relative; width: 100%; height: clamp(160px, 28dvh, 220px); margin: 0 auto; animation: none; transform: none; }
#review-dialog.is-preparing .reward-summary .review-art .diamond-art { position: relative; width: min(280px,100%); height: 100%; margin: auto; }
#review-dialog.is-preparing .review-art img.original-art { width: 280px; height: 280px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
#review-dialog.is-preparing .reward-target { width: 100%; text-align: center; margin: 0; }
#review-dialog.is-preparing .review-details { justify-content: center; margin: 8px 0 0; }
#review-dialog.is-preparing .preparation-track { width: 85%; margin: 22px auto 0; }
#review-dialog.is-preparing #preparation-status { width: 100%; text-align: center; margin: 12px 0 0; }
.gate-card { position: relative; width: min(301.33px,100%); margin: 10px auto 0; }
.gate-card:has(.activity-gate[hidden]) { display: none; }
#review-dialog .gate-card .activity-gate { width: 100%; margin: 0; }
.gate-card .activity-gate-brand { min-width: 64px; padding-bottom: 4px; }
.activity-gate[data-state="loading"] #okfreefire-checkbox { border-radius: 50%; border-width: 5px; border-style: solid; border-color: #2986cc33; border-top-color: #2986cc; border-right-color: #2986cc; background: transparent; animation: activity-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .activity-gate[data-state="loading"] #okfreefire-checkbox { animation: none; } }

.activity-gate-brand { color: #888888; }
.activity-gate-brand > span { font-family: Roboto, helvetica, arial, sans-serif; font-size: 10px; font-weight: 400; line-height: 10px; margin-top: 5px; text-align: center; }
#activity-gate-image { display: block; width: 32px; height: 32px; object-fit: contain; margin-bottom: 0; }

/* Center the entire preparation group in the space beneath the overlay header. */
#review-dialog[open]:not(.offers-ready) { display: grid; grid-template-rows: 44px minmax(0, 1fr); box-sizing: border-box; width: min(440px, calc(100vw - 28px)); height: min(760px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 18px; overflow: hidden; }
#review-dialog:not(.offers-ready) .review-body { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: safe center; width: 100%; }
#review-dialog:not(.offers-ready) .review-body > * { flex-shrink: 0; }
#review-dialog:not(.offers-ready) .reward-summary { width: 100%; box-sizing: border-box; }
#review-dialog:not(.offers-ready) .selected-reward-label { margin: 0; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.4; }
#review-dialog:not(.offers-ready) .review-details { width: 100%; box-sizing: border-box; }
#review-dialog:not(.offers-ready) .review-details dd { margin: 0; }
#review-dialog:not(.offers-ready) .review-details > div { font-size: 14px; line-height: 1.6; }
#review-dialog:not(.offers-ready) .review-art { flex-shrink: 0; }
#review-dialog:not(.offers-ready) .activity-disclosure { max-width: 100%; }
#review-dialog.offers-ready .review-body { display: block; }
@media (max-height: 650px) {
 #review-dialog:not(.offers-ready) .reward-summary .review-art { height: 150px; }
 #review-dialog:not(.offers-ready) .reward-summary .review-art .diamond-art { height: 150px; }
 #review-dialog:not(.offers-ready) .review-art img.original-art { width: 210px; height: 210px; }
}

#review-dialog .reward-summary .preparation-track { height: 9px; border-radius: 5px; }
#preparation-fill { border-radius: 5px; }
#preparation-fill::after { top: 1px; }
#offer-detail-dialog { box-sizing: border-box; width: min(420px,calc(100vw - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; background: #141820; color: #edf0f5; border: 1px solid #ffffff22; border-top: 2px solid #e1bd39; border-radius: 10px; }
#offer-detail-dialog::backdrop { background: #05080ec4; backdrop-filter: blur(5px); }
.offer-detail-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #ffffff12; color: #aeb6c4; font-size: 13px; }
#offer-detail-close { width: 44px; height: 44px; border: 1px solid #ffffff20; border-radius: 50%; background: #ffffff06; color: #ccd3dc; font-size: 24px; cursor: pointer; }
.offer-detail-body { padding: 24px 20px; text-align: center; }
#offer-detail-image { display: block; margin: 0 auto 14px; object-fit: cover; border-radius: 12px; }
#offer-detail-image[hidden], #tutorial-section[hidden] { display: none; }
#offer-detail-name { font-size: 21px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.offer-detail-ad, .offer-detail-note { font-size: 12px; color: #aab3c1; line-height: 1.7; }
.offer-detail-steps { background: #0c1018; border: 1px solid #ffffff10; padding: 18px; margin: 20px 0; border-radius: 8px; text-align: left; }
.offer-detail-steps h3 { font-size: 12px; color: #e1bd39; margin: 0 0 8px; }
#offer-detail-instructions { margin: 0; font-size: 14px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
#offer-detail-proceed { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; background: #ffd02f; color: #121518; margin-top: 18px; text-decoration: none; font-weight: 700; clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%); }
#offer-detail-proceed:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.tutorial-section { margin: 12px 0; border: 1px solid #ffffff20; padding: 10px; }
.tutorial-section h4 { display: flex; align-items: center; gap: 8px; color: #ffd02f; font-size: 14px; margin: 0 0 10px; }
.tutorial-section h4 svg { width: 20px; height: 20px; flex-shrink: 0; }
#tutorial-play { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0c0e10; border: 0; padding: 0; cursor: pointer; }
#tutorial-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.tutorial-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 56px; height: 42px; background: #ffd02f; color: #15171b; border-radius: 8px; font-size: 22px; }
#tutorial-play:focus-visible { outline: 3px solid #ffd02f; outline-offset: 3px; }
#tutorial-play[hidden], #tutorial-frame[hidden] { display: none; }
#tutorial-frame { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin-top: 10px; }

.offer-completion { padding: 14px; margin: 16px 0 10px; background: #141d19; border: 1px solid #75dba62a; }
.offer-completion-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.offer-completion-heading strong { font-size: 14px; color: #e4eee8; }
.offer-waiting { display: inline-flex; align-items: center; gap: 7px; color: #aab9b0; font-size: 11px; }
.offer-waiting-spinner { width: 14px; height: 14px; box-sizing: border-box; border: 2px solid #75dba633; border-top-color: #75dba6; border-radius: 50%; animation: activity-spin 1.2s linear infinite; }
.offer-completion-track { height: 9px; margin-top: 12px; border-radius: 5px; overflow: hidden; background: #ffffff12; }
.offer-completion-track > span { display: block; width: 0; height: 100%; background: #75dba6; }
.offer-ad-label { color: #aab3c1; font-size: 11px; margin: 10px 0 6px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .offer-waiting-spinner { animation: none; } }

/* Gentle movement inside the centered artwork area, without layout shifts. */
#review-dialog.is-preparing .review-art .diamond-art { animation: diamond-idle-float 3.2s ease-in-out infinite; }
@keyframes diamond-idle-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { #review-dialog.is-preparing .review-art .diamond-art { animation: none; } }

/* Brand artwork at mobile and desktop sizes. */
.wordmark .brand-symbol { width: 48px; height: 48px; flex-shrink: 0; }
.brand-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 360px) { .wordmark .brand-symbol { width: 42px; height: 42px; } }

#player-banner-fallback .player-avatar { height: auto; aspect-ratio: 1; border-radius: 50%; clip-path: none; overflow: hidden; background: transparent; }
#player-banner-fallback .player-avatar::before { content: none; }
.player-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* Collapse the checkbox at its center, then reveal the loading ring. */
.activity-gate[data-state="loading"] #okfreefire-checkbox { position: relative; border: 0; animation: none; }
.activity-gate[data-state="loading"] #okfreefire-checkbox::before,
.activity-gate[data-state="loading"] #okfreefire-checkbox::after { content: ''; position: absolute; inset: 0; box-sizing: border-box; transform-origin: center; }
.activity-gate[data-state="loading"] #okfreefire-checkbox::before { border: 2px solid #a6afb8; border-radius: 2px; background: white; animation: checkbox-collapse 240ms ease-in forwards; }
.activity-gate[data-state="loading"] #okfreefire-checkbox::after { border: 5px solid #2986cc33; border-top-color: #2986cc; border-right-color: #2986cc; border-radius: 50%; opacity: 0; animation: checkbox-ring-reveal 160ms ease-out 240ms forwards, activity-spin .8s linear 240ms infinite; }
@keyframes checkbox-collapse { 0% { transform: scale(1); border-radius: 2px; opacity: 1; } 45% { border-radius: 50%; opacity: 1; } 100% { transform: scale(0); border-radius: 50%; opacity: 0; } }
@keyframes checkbox-ring-reveal { to { opacity: 1; } }
#player-banner-wrap:not(.banner-ready) + .player-details-row .player-stats { display: none; }
#player-banner-wrap:not(.banner-ready) + .player-details-row { justify-content: flex-end; }
#player-banner-wrap.banner-ready + .player-details-row .player-stats { animation: profile-details-in 280ms ease-out both; }
@keyframes profile-details-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  #player-banner-wrap.banner-ready + .player-details-row .player-stats { animation: none; }
  .activity-gate[data-state="loading"] #okfreefire-checkbox::before { display: none; animation: none; }
  .activity-gate[data-state="loading"] #okfreefire-checkbox::after { opacity: 1; animation: none; }
}
