/* Shared EMBER surfaces for the account and rental catalogues. */
html { scroll-behavior: smooth; }
body.accounts-page, body.rent-page {
  background: radial-gradient(ellipse at 50% 0, rgba(123,27,33,.22), transparent 48%), #0d070a;
}
.accounts-page main, .rent-page main { position: relative; z-index: 1; }
.accounts-hero, .rent-hero { position: relative; }
.accounts-hero { padding-bottom: 50px; }
.accounts-hero h1 { max-width: 780px; }
.accounts-page .game-search {
  max-width: 570px; background: rgba(30,10,15,.78); border-color: var(--border);
  transition: border-color .25s, box-shadow .25s;
}
.accounts-page .game-search:focus-within { border-color: var(--flame-2); box-shadow: 0 0 0 3px rgba(255,90,30,.1); }
.accounts-page .game-search input { min-width: 0; }
.accounts-page .game-search input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; display:none; }
.accounts-page .games-grid > .account-catalog-empty { grid-column:1 / -1; }
.accounts-page .games-section { padding-bottom: 64px; }
.accounts-page .games-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.accounts-page .game-tile {
  min-height: 200px; padding: 22px; gap: 14px;
  background: linear-gradient(160deg, rgba(40,12,18,.76), rgba(15,6,10,.82));
  transition: transform .3s ease, border-color .3s, box-shadow .3s, background .3s;
}
.accounts-page .game-tile:hover, .accounts-page .game-tile.active { transform: translateY(-3px); }
.accounts-page .game-tile-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,116,65,.18);
  border-radius: 13px; background: var(--grad-fire-soft); font-size: 25px;
}
.accounts-page .game-tile-icon img { width: 30px; height: 30px; object-fit: contain; }
.accounts-page .game-tile-body, .accounts-page .game-tile-stock { position: relative; z-index: 1; }
.accounts-page .game-tile-stock { font-size: 11px; }
.accounts-page .game-tile-arrow { transition: transform .25s, color .25s; }
.accounts-page .game-tile:hover .game-tile-arrow { color: var(--flame-3); transform: translateX(3px); }
.accounts-page .account-products { scroll-margin-top: 100px; }
.accounts-page .configurable-card { background: linear-gradient(160deg, rgba(40,12,18,.76), rgba(15,6,10,.86)); }
.accounts-page .card-media { height: 165px; background: linear-gradient(145deg, #261018, #13090e); }
.accounts-page .card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.accounts-page .product-card-emoji { font-size: 46px; }
.accounts-page :is(.game-tile, .configurable-card, .filter):focus-visible,
.rent-page :is(a, button, input):focus-visible { outline: 2px solid var(--flame-2); outline-offset: 3px; }

.rent-page .rent-hero { padding: 28px 0 76px; }
.rent-page .rent-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .64fr); gap: clamp(35px, 6vw, 85px); }
.rent-page .rent-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.rent-page .rent-hero-action { display: inline-flex; gap: 14px; margin-top: 25px; text-decoration: none; }
.rent-page .rent-hero-points { margin-top: 27px; }
.rent-page .rent-hero-card, .rent-page .rent-game, .rent-page .rent-order {
  border-color: var(--border); background: linear-gradient(160deg, rgba(40,12,18,.76), rgba(15,6,10,.88));
}
.rent-page .rent-game { min-height: 282px; }
.rent-page .rent-game-art { height: 112px; background: linear-gradient(135deg, #321018, #170a10); }
.rent-page .rent-game-art img { width: 110px; height: 88px; right: 22px; top: 10px; }
.rent-page .rent-game-art-shade { background: linear-gradient(180deg, transparent, #1c0b10); }
.rent-page .rent-game-top { margin-top: 58px; }
.rent-page .rent-game:hover { border-color: rgba(255,112,62,.55); }
.rent-page .rent-order:hover { background: linear-gradient(160deg, rgba(50,15,21,.85), rgba(20,7,11,.9)); }
.rent-page .rent-order > div { display: grid; gap: 5px; }
.rent-page .rent-modal-window { max-height: calc(100dvh - 40px); overflow-y: auto; }
.rent-page .rent-catalog, .rent-page .rent-orders { scroll-margin-top: 100px; }
@media (max-width: 980px) { .rent-page .rent-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .accounts-page .games-grid { grid-template-columns: 1fr; }
  .accounts-page .game-tile { min-height: 160px; }
  .rent-page .rent-hero { padding: 24px 0 55px; }
  .rent-page .rent-hero h1 { font-size: clamp(38px, 10vw, 44px); }
  .rent-page .rent-hero-card { padding: 21px; }
  .rent-page .rent-game-art img { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accounts-page .game-tile, .rent-page .rent-game { transition: none; }
}

/* Catalogue layout */
.accounts-page .accounts-hero { padding: 142px 0 57px; }
.accounts-page .accounts-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.04; }
.accounts-page .accounts-hero p { max-width: 470px; margin-bottom: 25px; font-size: 15px; }
.accounts-page .game-search { min-height: 58px; border-radius: 14px; }
.accounts-page .games-section { padding: 14px 0 74px; }
.accounts-page .section-head, .rent-page .rent-section-head { align-items: end; }
.catalog-section-note { margin: 9px 0 0; color: var(--text-mute); font-size: 13px; line-height: 1.5; }
.accounts-page .catalog-count { padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-mute); font-size: 11px; white-space: nowrap; }
.accounts-page .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.accounts-page .game-tile { min-height: 210px; padding: 24px; gap: 17px; }
.accounts-page .game-tile::after { width: 180px; height: 180px; right: -58px; top: -68px; opacity: .65; }
.accounts-page .game-tile-icon { width: 52px; height: 52px; border-radius: 15px; }
.accounts-page .game-tile-body b { font-size: 21px; }
.accounts-page .game-tile-body small { max-width: 240px; line-height: 1.5; }
.accounts-page .game-tile-stock { color: var(--text-mute); }
.accounts-page .game-tile-arrow { display: grid; place-items: center; right: 20px; bottom: 18px; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; font-size: 17px; }
.accounts-page .game-tile.active { border-color: var(--flame-2); }
.accounts-page .game-tile:disabled { cursor: default; opacity: .65; }
.accounts-page .game-tile:disabled:hover { transform: none; border-color: var(--border); box-shadow: none; }
.accounts-page .account-products { padding-top: 0; }
.accounts-page .product-toolbar { margin-bottom: 18px; }
.accounts-page .product-search { width: min(420px, 100%); }
.accounts-page .grid > .empty, .accounts-page .games-grid > .empty, .rent-page .rent-games > .rent-empty, .rent-page .rent-games > .rent-loading { grid-column: 1 / -1; }

/* Rental catalogue and order controls */
.rent-page .rent-hero { padding-bottom: 65px; }
.rent-page .rent-hero-grid { gap: clamp(40px, 6vw, 85px); }
.rent-page .rent-hero-card { padding: 26px 28px; }
.rent-page .rent-step { padding: 15px 0; }
.rent-page .rent-step b { font-size: 15px; }
.rent-page .rent-step small { font-size: 12px; }
.rent-page .rent-catalog { padding-bottom: 76px; }
.rent-page .rent-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rent-page .rent-game { min-height: 272px; padding: 23px; }
.rent-page .rent-game-art { height: 140px; }
.rent-page .rent-game-art img { right: 28px; top: 15px; width: 120px; height: 100px; opacity: .65; }
.rent-page .rent-game-top { margin-top: 0; min-height: 50px; }
.rent-page .rent-stock { padding: 7px 10px; border: 1px solid rgba(116,210,154,.2); border-radius: 999px; background: rgba(79,180,117,.08); }
.rent-page .rent-stock.empty { border-color: var(--border); background: rgba(255,255,255,.03); }
.rent-page .rent-game h3 { margin: 24px 0 7px; }
.rent-page .rent-game p { max-width: 300px; min-height: 38px; }
.rent-page .rent-game-meta { margin-top: auto; padding-top: 19px; border-top: 1px solid var(--border); }
.rent-price-wrap { display: grid; gap: 5px; }
.rent-price-wrap > span { color: var(--text-dim); font-size: 10px; }
.rent-page .rent-game button { min-width: 112px; }
.rent-page .rent-empty, .rent-page .rent-loading { background: rgba(40,12,18,.3); line-height: 1.6; }
.rent-page .rent-hour-presets button.is-selected { border-color: var(--flame-2); color: #ffe2d3; background: rgba(255,90,30,.16); }
.rent-page .rent-hour-presets button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 800px) {
  .accounts-page .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rent-page .rent-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .accounts-page .accounts-hero { padding: 115px 0 42px; }
  .accounts-page .games-grid, .rent-page .rent-games { grid-template-columns: 1fr; }
  .accounts-page .section-head, .rent-page .rent-section-head { align-items: flex-start; }
  .accounts-page .game-tile { min-height: 180px; padding: 20px; }
  .rent-page .rent-hero { padding: 24px 0 50px; }
  .rent-page .rent-game { min-height: 260px; }
  .rent-page .rent-catalog { padding-bottom: 55px; }
}

/* Give Cyrillic descenders room on both lines, including the clipped gradient. */
.accounts-page .accounts-hero h1 { line-height: 1.2; padding: .06em .04em .16em; overflow: visible; }
.accounts-page .accounts-hero h1 .flame-text { display: inline-block; line-height: 1.2; padding: 0 .04em .12em; }

/* Rental cards stay consistent for any number of games without bespoke art. */
.rent-page .rent-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rent-page .rent-game { position: relative; isolation: isolate; min-height: 270px; padding: 22px; overflow: hidden; border-color: rgba(255,145,92,.2); background: linear-gradient(150deg, #27151b, #130d12 75%); }
.rent-page .rent-game::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle at 100% 0, rgba(255,100,45,.15), transparent 48%), repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.018) 19px 20px); }
.rent-page .rent-game-top { min-height: 0; margin: 0; }
.rent-page .rent-game-content { position: relative; padding-top: 23px; }
.rent-game-label { color: #d59172; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.rent-page .rent-game h3 { margin: 7px 0; line-height: 1.2; overflow-wrap: anywhere; }
.rent-page .rent-game p { max-width: none; min-height: 0; }
.rent-page .rent-game-meta { gap: 12px; }
.rent-page .rent-game button:focus-visible { outline: 2px solid var(--flame-2); outline-offset: 3px; }
@media (max-width: 980px) { .rent-page .rent-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rent-page .rent-games { grid-template-columns: 1fr; } }
/* Consistent card surfaces across marketplace catalogues. */
.accounts-page .game-tile,.rent-page .rent-game { border:1px solid rgba(255,255,255,.1); border-radius:18px; background:linear-gradient(145deg,#292023,#151418); transition:transform .25s,border-color .25s,box-shadow .25s; }
.accounts-page .game-tile:hover,.rent-page .rent-game:hover { transform:translateY(-4px); border-color:rgba(255,144,84,.5); box-shadow:0 18px 40px rgba(0,0,0,.25); }
.accounts-page .game-tile:focus-visible,.rent-page .rent-game button:focus-visible { outline:2px solid #ffad82; outline-offset:3px; }
.rent-page .rent-game::before { background:radial-gradient(circle at 100% 0,rgba(255,100,45,.14),transparent 48%),repeating-linear-gradient(135deg,transparent 0 24px,rgba(255,255,255,.012) 25px 26px); }
.rent-page .rent-hero h1 { line-height:1.15; padding-bottom:.1em; }
.rent-page .rent-hero { padding-top:142px; }
.rent-page .rent-hero-card::after { content:none; }
.rent-catalog-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-bottom:24px; }
.rent-search { display:flex; align-items:center; gap:12px; flex:1; min-width:220px; max-width:570px; min-height:54px; margin:0; padding:0 16px; border:1px solid var(--border); border-radius:13px; background:var(--surface); }
.rent-search:focus-within { border-color:var(--flame-2); box-shadow:0 0 0 3px rgba(255,90,30,.08); }
.rent-search input { flex:1; width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:13px; }
.rent-page .rent-search input:focus-visible { outline:none; box-shadow:none; }
.rent-search input::-webkit-search-cancel-button { display:none; }
.rent-search button { border:0; background:transparent; color:var(--text-mute); font-size:22px; cursor:pointer; }
.rent-available-filter { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:10px 14px; border:1px solid var(--border-strong); border-radius:12px; color:var(--text-mute); background:var(--surface); font-size:12px; font-weight:600; cursor:pointer; transition:background .2s,border-color .2s,color .2s; }
.rent-available-filter > input { position:absolute; width:1px; height:1px; opacity:0; }
.rent-filter-check { display:grid; place-items:center; flex:none; width:19px; height:19px; border:1px solid var(--border-strong); border-radius:6px; background:var(--surface-2); color:var(--bg); transition:background .2s,border-color .2s; }
.rent-filter-check .ic { width:12px; height:12px; opacity:0; transform:scale(.7); transition:opacity .2s,transform .2s; }
.rent-available-filter:hover { color:var(--text); border-color:var(--accent-line); }
.rent-available-filter:has(input:checked) { color:var(--text); border-color:var(--accent-line); background:var(--grad-fire-soft); }
.rent-available-filter > input:checked + .rent-filter-check { background:var(--flame-3); border-color:var(--flame-3); }
.rent-available-filter > input:checked + .rent-filter-check .ic { opacity:1; transform:none; }
.rent-available-filter > input:focus-visible + .rent-filter-check { outline:2px solid var(--flame-3); outline-offset:4px; }
.rent-catalog-toolbar .catalog-count { margin-left:auto; color:var(--text-dim); font-size:12px; }
.rent-page .rent-games > .rent-empty { grid-column:1 / -1; }
.rent-modal { width:100%; max-width:none; height:100dvh; max-height:none; margin:0; border:0; background:transparent; color:var(--text); }
.rent-modal:not([open]) { display:none; }
.rent-modal::backdrop { background:rgba(7,3,6,.8); backdrop-filter:blur(10px); }
.rent-modal-backdrop { background:none; backdrop-filter:none; }
.rent-page .rent-topup-link { width:100%; padding:10px; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.03); cursor:pointer; }
.rent-auth-link { padding:0; border:0; background:none; color:var(--flame-3); cursor:pointer; font:inherit; }
@media(max-width:560px) { .rent-page .rent-hero { padding-top:112px; } .rent-search { flex-basis:100%; max-width:none; } }
@media(prefers-reduced-motion:reduce) { .rent-page .rent-game,.rent-page .rent-modal-window,.rent-page .rent-order { animation:none; transition:none; } }
.account-checkout-dialog { width:min(520px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:0; margin:auto; border:1px solid var(--border); border-radius:20px; background:var(--surface); color:var(--text); overflow:auto; }
.account-checkout-dialog::backdrop { background:rgba(7,3,6,.8); backdrop-filter:blur(10px); }
.account-checkout-panel { position:relative; width:100%; padding:32px; background:var(--bg-elev); }
.account-checkout-panel .modal-close { top:16px; right:16px; width:32px; height:32px; border-radius:10px; border-color:var(--border); background:var(--surface); box-shadow:none; }
.account-checkout-panel > p { color:var(--text-mute); font-size:13px; margin-bottom:24px; }
.account-checkout-panel .eyebrow { display:block; padding-right:28px; font-size:10px; }
.account-checkout-dialog h2 { margin:14px 0; font-size:25px; line-height:1.25; }
.account-checkout-dialog label { display:grid; gap:9px; font-size:12px; color:var(--text-mute); }
.account-checkout-note { color:var(--text-mute); font-size:12px; line-height:1.6; margin:16px 0; }
.account-checkout-error { color:#ffb19d; margin-top:14px; font-size:12px; }
.catalog-modal-open { overflow:hidden; }
.accounts-page .accounts-hero { padding-top:66px; }
.rent-page .rent-hero { padding-top:66px; }
.rent-page :is(.rent-step b,.rent-section-head h2,.rent-game h3,.rent-game-price,.rent-order strong,.rent-selected-game span,.rent-selected-game strong,.rent-hours input,.rent-total strong,.rent-hero-points b) { font-family:'Inter',sans-serif; }
.rent-page .rent-hero-card { counter-reset:rental-step; }
.rent-page .rent-step { padding-left:40px; }
.rent-page .rent-step::before { counter-increment:rental-step; content:'0' counter(rental-step); position:absolute; left:0; top:18px; display:grid; place-items:center; width:26px; height:26px; border:1px solid var(--border); border-radius:7px; background:var(--grad-fire-soft); color:var(--flame-3); font:600 10px 'Inter',sans-serif; }
@media(max-width:560px) { .accounts-page .accounts-hero,.rent-page .rent-hero { padding-top:42px; } .account-checkout-panel { padding:28px 20px 22px; } }

/* Platforms and their offers are two views of the same page. */
.accounts-page .account-products { min-height:calc(100dvh - 76px); padding:38px 0 80px; }
.account-catalog-back { display:inline-flex; align-items:center; gap:9px; margin-bottom:32px; padding:9px 0; border:0; background:none; color:var(--text-mute); font:500 12px 'Inter',sans-serif; cursor:pointer; transition:color .2s; }
.account-catalog-back > span { display:flex; }
.account-catalog-back svg { transition:transform .2s; }
.account-catalog-back:hover { color:var(--flame-3); }
.account-catalog-back:hover svg { transform:translateX(-3px); }
.account-catalog-header { display:flex; align-items:center; gap:24px; margin-bottom:32px; }
.account-catalog-icon { display:grid; place-items:center; flex:none; width:80px; height:80px; border:1px solid var(--border-strong); border-radius:20px; background:var(--grad-fire-soft); color:var(--flame-3); }
.account-catalog-heading { min-width:0; }
.account-catalog-heading .eyebrow { margin-bottom:9px; font-size:10px; letter-spacing:.13em; }
.accounts-page .account-catalog-heading h1 { font-size:clamp(32px,4vw,52px); line-height:1.2; padding-bottom:.08em; overflow-wrap:anywhere; }
.account-catalog-heading h1:focus { outline:none; }
.account-catalog-heading .catalog-section-note { margin-top:6px; max-width:600px; line-height:1.65; }
.accounts-page .product-toolbar { justify-content:space-between; gap:14px 24px; padding:22px 0; margin-bottom:26px; border-block:1px solid var(--border); }
.accounts-page .product-search { width:min(520px,100%); max-width:100%; }
.accounts-page .product-search input { width:100%; min-width:0; height:48px; padding-right:42px; font-size:13px; transition:border-color .2s,background .2s; }
.accounts-page .product-search input::-webkit-search-cancel-button { display:none; }
.accounts-page .product-search > button { position:absolute; right:9px; display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:7px; color:var(--text-mute); background:none; font-size:21px; cursor:pointer; }
.accounts-page .product-search > button:hover { color:var(--text); background:var(--surface-2); }
.account-product-count { flex:none; color:var(--text-mute); font-size:12px; }
.account-catalog-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; min-height:300px; padding:38px 22px; border:1px solid var(--border); border-radius:18px; background:var(--surface); text-align:center; }
.account-catalog-empty > span { display:grid; place-items:center; width:52px; height:52px; margin-bottom:4px; border:1px solid var(--border); border-radius:14px; color:var(--flame-3); background:var(--grad-fire-soft); }
.account-catalog-empty h2 { font-size:20px; line-height:1.4; }
.account-catalog-empty p { max-width:380px; color:var(--text-mute); font-size:13px; line-height:1.7; }
.account-catalog-empty button { margin-top:4px; padding:10px 16px; border:1px solid var(--border-strong); border-radius:9px; background:var(--surface-2); color:var(--text); font:500 12px 'Inter',sans-serif; cursor:pointer; }
.accounts-page :is(.account-catalog-back,.product-search > button,.account-catalog-empty button):focus-visible { outline:2px solid var(--flame-2); outline-offset:4px; }
@media(max-width:560px) {
  .accounts-page .account-products { padding:24px 0 52px; }
  .account-catalog-back { margin-bottom:23px; }
  .account-catalog-header { align-items:flex-start; gap:15px; margin-bottom:24px; }
  .account-catalog-icon { width:52px; height:52px; border-radius:14px; }
  .account-catalog-icon svg { width:27px; height:27px; }
  .account-catalog-heading .eyebrow { margin-bottom:6px; font-size:8px; }
  .accounts-page .account-catalog-heading h1 { font-size:clamp(28px,7vw,36px); }
  .account-catalog-heading .catalog-section-note { font-size:12px; }
  .accounts-page .product-toolbar { padding:18px 0; margin-bottom:20px; }
  .account-product-count { align-self:flex-start; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) {
  .account-catalog-back,.account-catalog-back svg { transition:none; }
}

.rent-stock-time { display:block; margin-top:4px; font-size:10px; white-space:nowrap; }

.rent-game-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
