/* Infinity - PayNow store template */

:root {
    --primary: #1fa2ff;
    --bg: #0d1420;
    --content: #172131;
    --content-light: #223047;
    --text: #d7deea;
    --muted: #9fb0c8;
    --green: #4ade80;
    --red: #ef4444;
    --radius: 16px;
    --width: 1280px;
    --font-title: "Minecraft Title", "Minecraftia", sans-serif;
    --font-body: "Minecraftia", system-ui, sans-serif;
    --text-shadow: 3px 3px 0 #00000040;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: normal;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

.text-primary { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }

#pixels { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 24px; }
.main { flex: 1; padding-top: 28px; padding-bottom: 72px; }
.panel { background: var(--content); border: 1px solid #ffffff0d; border-radius: var(--radius); padding: 32px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary); color: #fff;
    border-radius: 12px; padding: 12px 18px;
    font-family: var(--font-title); font-size: 16px; text-transform: uppercase; text-shadow: var(--text-shadow);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { opacity: 1; transform: translateY(-2px); box-shadow: inset 0 -5px 0 #00000052; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn.alt { background: var(--content-light); }
.btn.discord { background: #5865f2; }
.btn--lg { width: 100%; padding: 15px 18px; font-size: 18px; }
.btn--trial { background: #22c55e; }

/* ---------- Header ---------- */

/* --logo-h comes from the Logo Height setting. The logo floats over the box (out of the layout),
   so its size never moves the side buttons; it sits high enough to leave room for the IP badge. */
.hero { --logo-h: var(--logo-setting, 200px); margin-top: calc(var(--logo-h) - 74px); }
.hero-box {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    height: 132px; padding: 20px; margin-bottom: 22px;
    background: var(--content);
    border: 2px solid #ffffff0f; border-radius: var(--radius);
    box-shadow: 0 25px 50px #00000060;
}
.hero-side { display: flex; gap: 14px; position: relative; z-index: 2; }
.hero-side.right { justify-content: flex-end; }

.hero-pill { flex: 1; min-width: 0; }

.hero-pill {
    display: flex; align-items: center; gap: 18px;
    height: 88px; padding: 0 20px 0 12px;
    background: var(--content-light); border-radius: var(--radius);
    text-align: left;
    transition: transform .2s ease, opacity .2s ease;
}
button.hero-pill:hover { transform: scale(1.03); opacity: .85; }
.sq {
    width: 64px; height: 64px; flex: none;
    display: grid; place-items: center;
    border-radius: var(--radius); background: var(--primary); color: #fff;
    font-size: 28px; text-shadow: var(--text-shadow); box-shadow: 0 10px 25px #00000060;
}
.sq.avatar { object-fit: cover; image-rendering: pixelated; background: var(--content); }
.pill-text { min-width: 0; }
.pill-text small { display: block; font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.pill-title { display: block; font-family: var(--font-title); font-size: 30px; line-height: 1; color: #fff; text-transform: uppercase; text-shadow: var(--text-shadow); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-action { margin-left: auto; width: 40px; height: 40px; flex: none; border-radius: 10px; color: var(--muted); }
.pill-action:hover { background: var(--content); color: #fff; }
.hero-pill.account { gap: 14px; padding-right: 8px; }
.hero-pill.account .pill-title { font-size: 22px; }

.hero-logo { position: absolute; left: 50%; bottom: 30px; z-index: 1; transform: translateX(-50%); }
.hero-logo a { display: block; }
.hero-logo img { height: var(--logo-h); width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 10px 20px #00000080); transform-origin: 50% 60%; animation: bob 6s ease-in-out infinite; }
/* Floats up and down, growing slightly at the top of the rise */
@keyframes bob { 50% { transform: translateY(-6px) scale(1.035); } }

/* Server IP: white box straddling the bottom edge of the header box, centred */
.ip-badge {
    position: absolute; left: 50%; bottom: 0; z-index: 3; transform: translate(-50%, 50%);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 30px; border-radius: 10px; background: #fff; color: #0d1420;
    font-family: var(--font-title); font-size: 15px; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 8px 20px #00000055;
    transition: transform .15s ease;
}
.ip-badge:hover { transform: translate(-50%, 50%) translateY(-2px); }
.ip-badge i { font-size: 11px; color: var(--primary); }
.ip-badge .ip-badge-copy { color: #8a96ab; }

.cart-btn {
    position: relative;
    width: 88px; height: 88px; border-radius: var(--radius);
    background: var(--primary); color: #fff; font-size: 32px;
    display: grid; place-items: center;
    text-shadow: var(--text-shadow); box-shadow: 0 10px 25px #00000060;
    transition: transform .2s ease;
}
.cart-btn:hover { transform: scale(1.03); }
.cart-count {
    position: absolute; top: -10px; right: -10px;
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px;
    background: #fff; color: var(--primary);
    font-family: var(--font-title); font-size: 16px; line-height: 30px; text-shadow: none;
    box-shadow: 0 6px 14px #00000050;
}
.hero-mobile { display: none; }

/* ---------- Notices ---------- */

.flash {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px; padding: 14px 18px; border-radius: 12px;
    background: #ef444422; border: 1px solid #ef444466; color: #fecaca;
}
.flash span { flex: 1; }
.notice { margin: 16px 0; padding: 12px 16px; border-radius: 12px; }
.notice--error { background: #ef444422; color: #fca5a5; }

.toasts { position: fixed; top: 16px; right: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast {
    padding: 12px 18px; border-radius: 12px; color: #fff; font-size: 13px;
    background: #3b82f6; box-shadow: 0 10px 30px #00000060;
    animation: toast-in .2s ease-out;
}
.toast--success { background: #16a34a; }
.toast--error { background: #dc2626; }
.toast--warning { background: #d97706; }
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } }

/* ---------- Home tiles ---------- */

.tiles { display: flex; flex-direction: column; gap: 16px; }
.tiles-cols { display: flex; gap: 16px; }
.tiles-col { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tiles-row { flex: 1; display: flex; gap: 16px; }

.tile {
    position: relative; display: flex; min-height: 182px;
    border-radius: var(--radius); background: var(--c); color: #fff;
    box-shadow: 0 0 0 var(--d);
    transition: transform .12s ease, box-shadow .12s ease;
}
a.tile:hover { opacity: 1; transform: translateY(-6px); box-shadow: 0 10px 0 var(--d); }
.tile-text { position: relative; z-index: 3; margin-top: auto; padding: 40px; }
.tile-title { font-size: 52px; max-width: 320px; text-shadow: var(--text-shadow); }
.tile-sub { margin-top: 10px; font-size: 16px; line-height: 1.5; text-transform: uppercase; text-shadow: var(--text-shadow); }
.tile-art { position: absolute; inset: 0; pointer-events: none; }
.tile-art img { position: absolute; z-index: 2; max-width: none; filter: drop-shadow(0 8px 0 #00000030); transition: transform .12s ease; }
a.tile:hover .tile-art img { transform: scale(1.05); }

.tile--wide { min-height: 300px; }
/* Standard seasonal tile: soft stripes and a warm glow behind the chests, so it isn't a flat colour */
.tile--wide:not(.tile--christmas):not(.tile--halloween) {
    background:
        radial-gradient(ellipse at 66% 70%, #ffc85c66, transparent 50%),
        repeating-linear-gradient(135deg, #ffffff10 0 26px, transparent 26px 52px),
        var(--c);
}
/* Wide festive scene fills the middle of the tile; the countdown sits top-right, clear of it */
.tile--wide .tile-art img { height: 335px; right: 105px; bottom: 4px; }
.tile--wide .countdown { top: 24px; bottom: auto; }
/* Standard-theme chests are wider than the gift pile: sit them clear of the countdown */
.tile--wide:not(.tile--christmas):not(.tile--halloween) .tile-art img { height: 250px; right: 200px; bottom: 6px; }
.tile--tall { flex: 1; }
.tile--tall .tile-art img { height: 205px; right: -24px; bottom: -4px; }
.tile--mid .tile-art img { height: 190px; right: -10px; bottom: -14px; }
/* Tags poke out above the tile, like the bundles and the bed */
.tile--ranks .tile-art img { height: 192px; right: 4px; top: -14px; }
.tile--small { flex: 1; }
.tile--small .tile-title { font-size: 40px; }
.tile--small .tile-art img { height: 140px; right: -12px; top: -26px; }

/* Icon stand-in for tiles without art (Crate Keys until it gets a render) */
.tile-icon {
    position: absolute; right: 22px; bottom: 14px; z-index: 2;
    font-size: 96px; color: #ffd84a; transform: rotate(-30deg);
    filter: drop-shadow(5px 5px 0 #00000045); transition: transform .12s ease;
}
a.tile:hover .tile-icon { transform: rotate(-30deg) scale(1.08); }
.tile--soon { cursor: default; }
.tile--soon .tile-title { color: #ffffff70; }
.tile--soon .tile-sub { color: #ffffff55; text-shadow: none; }
.tile-lock { position: absolute; top: 30px; right: 34px; z-index: 3; font-size: 40px; color: #ffffff30; }

/* Christmas decoration (Home Tile 1 "Decoration" setting) */
.tile-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.tile--christmas .tile-fx {
    background:
        repeating-linear-gradient(135deg, #ffffff12 0 26px, transparent 26px 52px),
        radial-gradient(ellipse at 30% 40%, #ffffff14, transparent 60%);
}
.tile-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile-lights { position: absolute; top: 0; left: 0; right: 0; height: 44px; }
.tile-lights::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: #0b3d1e; box-shadow: 0 1px 0 #ffffff20; }
.bulb {
    position: absolute; top: 11px; width: 10px; height: 14px;
    background: var(--bulb); box-shadow: 0 0 12px 3px var(--bulb);
    animation: twinkle 2.4s steps(2, jump-none) infinite;
}
.bulb::before { content: ""; position: absolute; top: -3px; left: 2px; width: 6px; height: 4px; background: #2b2b2b; }
@keyframes twinkle { 50% { opacity: .35; box-shadow: 0 0 4px 1px var(--bulb); } }
.tile-drift {
    position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
    background:
        linear-gradient(#f2f8ff, #f2f8ff) bottom / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, #f2f8ff 0 24px, transparent 24px 40px, #f2f8ff 40px 56px, transparent 56px 88px) bottom 12px left / 100% 8px no-repeat,
        repeating-linear-gradient(90deg, transparent 0 8px, #f2f8ff 8px 16px, transparent 16px 64px) bottom 20px left / 100% 4px no-repeat;
    filter: drop-shadow(0 -3px 0 #00000018);
}
.tile--christmas .tile-text { padding-top: 56px; }
.tile--christmas .countdown { top: 34px; }

/* Christmas tile: title and subtitle stay white; the reward list gets festive colours on a dark panel */
.tile--christmas .rewards-label { color: #ffd84a; text-shadow: 2px 2px 0 #0b3d1e; }
.tile--christmas .tile-rewards { background: #0b3d1ecc; }
.tile--christmas .reward-list li { text-shadow: 2px 2px 0 #0b3d1e; }
.tile--christmas .reward-list li:nth-child(3n + 1) { color: #ff7a7a; }
.tile--christmas .reward-list li:nth-child(3n + 2) { color: #ffd84a; }
.tile--christmas .reward-list li:nth-child(3n) { color: #ffffff; }
.tile--christmas .reward-list i { color: inherit; opacity: .8; }
.tile--christmas .countdown { background: #c62828; border: 3px solid #ffd84a; color: #fff; text-shadow: 2px 2px 0 #00000040; }

/* Halloween tile: cobwebs, a dangling spider, rising embers, low fog */
.tile--halloween .tile-fx {
    background:
        repeating-linear-gradient(135deg, #00000018 0 26px, transparent 26px 52px),
        radial-gradient(ellipse at 72% 85%, #ff7a1a40, transparent 55%);
}
.web { position: absolute; top: 0; width: 120px; height: 120px; }
.web--tl { left: 0; }
.web--tr { right: 0; transform: scaleX(-1); }
.spider { position: absolute; top: 0; left: 26%; z-index: 1; display: flex; flex-direction: column; align-items: center; animation: spider-drop 7s ease-in-out infinite; }
.spider-thread { width: 2px; height: 70px; background: #ffffff80; }
.spider svg { width: 26px; height: 23px; margin-top: -2px; filter: drop-shadow(0 0 4px #ff7a1a80); }
@keyframes spider-drop { 0%, 100% { transform: translateY(-46px); } 45%, 60% { transform: translateY(0); } }
.tile-fog {
    position: absolute; left: -10%; right: -10%; bottom: -30px; height: 90px;
    background: radial-gradient(ellipse at 30% 60%, #b98cff40, transparent 60%), radial-gradient(ellipse at 75% 70%, #b98cff33, transparent 60%);
    filter: blur(6px); animation: fog-drift 14s ease-in-out infinite alternate;
}
@keyframes fog-drift { to { transform: translateX(6%); } }
.tile--halloween .tile-text { padding-top: 56px; }
.tile--halloween .countdown { top: 34px; background: #ff7a1a; border: 3px solid #2a0f3d; color: #fff; text-shadow: 2px 2px 0 #00000040; }
.tile--halloween .tile-rewards { background: #1d0a2bcc; }
.tile--halloween .rewards-label { color: #ff9a3c; text-shadow: 2px 2px 0 #1d0a2b; }
.tile--halloween .reward-list li { text-shadow: 2px 2px 0 #1d0a2b; }
.tile--halloween .reward-list li:nth-child(3n + 1) { color: #ff9a3c; }
.tile--halloween .reward-list li:nth-child(3n + 2) { color: #b8ff5c; }
.tile--halloween .reward-list li:nth-child(3n) { color: #e2c8ff; }
.tile--halloween .reward-list i { color: inherit; opacity: .8; }
.tile--halloween .rewards-more { color: #3b1557; }
.tile--wide.tile--halloween .tile-art img { height: 245px; right: 150px; bottom: 4px; }

/* Reward list: two columns between the tile text and its art */
.tile-rewards {
    position: absolute; left: 316px; bottom: 44px; z-index: 4;
    padding: 10px 14px 18px; border-radius: 12px; background: #00000040; border: 2px solid #ffffff1f; box-shadow: 0 8px 20px #00000040;
}
.rewards-label { display: block; margin-bottom: 7px; font-family: var(--font-title); font-size: 17px; text-transform: uppercase; color: #fff; text-shadow: var(--text-shadow); }
.reward-list { list-style: none; columns: 2; column-gap: 14px; }
.reward-list li { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 11px; color: #fff; text-shadow: 2px 2px 0 #00000050; white-space: nowrap; break-inside: avoid; }
.reward-list i { font-size: 10px; color: #cfeeff; }
/* "and more" pill straddling the bottom edge of the rewards panel */
.rewards-more {
    position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
    padding: 4px 14px; border-radius: 8px; background: #fff; color: #0b3d1e;
    font-family: var(--font-title); font-size: 13px; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 4px 10px #00000040;
}

/* Small tile with the text at the top and the art in the bottom-right corner (Lucky Box),
   plus a smaller copy of the art tilted beside it */
.tile--text-top .tile-text,
.tile--keys .tile-text { margin-top: 0; margin-bottom: auto; }
.tile--keys .tile-art img { top: auto; bottom: -8px; right: -8px; height: 180px; }
.tile--text-top .tile-art img { top: auto; bottom: -14px; right: -12px; height: 150px; }
.tile--text-top .tile-art img.art-mini { right: 146px; bottom: -6px; height: 82px; rotate: -12deg; }

.countdown {
    position: absolute; right: 28px; bottom: 26px; z-index: 4;
    display: flex; flex-direction: column; align-items: center; line-height: 1.05;
    padding: 9px 16px 10px; border-radius: 12px; background: #00000040;
    font-family: var(--font-title); font-size: 26px; color: #fff;
}
.countdown small { font-family: var(--font-body); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }

/* ---------- PayNow modules strip (home) ---------- */

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.module { padding: 22px 24px; border-radius: var(--radius); background: var(--content); border: 1px solid #ffffff0d; }
.module-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 20px; }
.module-title i { color: var(--primary); font-size: 16px; }
.module-sub { color: var(--muted); font-size: 12px; margin: -8px 0 12px; }
.module-sub b { color: #fff; }
.module-empty { color: var(--muted); font-size: 12px; }
.module-error { color: #fca5a5; font-size: 12px; margin-top: 10px; }
.module-body { color: var(--muted); font-size: 13px; line-height: 1.8; }

.payments { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.payment { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--content-light); }
.payment-head { width: 34px; height: 34px; border-radius: 8px; image-rendering: pixelated; flex: none; }
.payment-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.payment-text b { color: #fff; font-weight: normal; font-size: 13px; }
.payment-text small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-price { font-family: var(--font-title); color: var(--green); font-size: 15px; }

.goal-bar { height: 22px; border-radius: 8px; background: var(--content-light); overflow: hidden; border: 2px solid #ffffff12; }
.goal-bar span {
    display: block; height: 100%; border-radius: 6px;
    background: repeating-linear-gradient(135deg, var(--primary) 0 12px, #4cc0ff 12px 24px);
}
.goal-bar--animated span { background-size: 34px 34px; animation: goal-slide 1.2s linear infinite; }
@keyframes goal-slide { to { background-position: 34px 0; } }
.goal-numbers { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.goal-numbers b { font-family: var(--font-title); font-weight: normal; font-size: 26px; color: #fff; }
.goal-numbers span { color: var(--muted); font-size: 12px; }

.top-player { display: flex; align-items: center; gap: 16px; }
.top-head { width: 64px; height: 64px; border-radius: 14px; image-rendering: pixelated; box-shadow: 0 0 0 3px #ffd84a; }
.top-player b { display: block; font-family: var(--font-title); font-weight: normal; font-size: 24px; color: #ffd84a; text-shadow: var(--text-shadow); }
.top-player small { color: var(--muted); font-size: 11px; }

.giftcard-form { display: flex; gap: 8px; }
.giftcard-form input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; background: var(--content-light); border: 1px solid #ffffff15; color: #fff; font-size: 12px; outline: none; }
.giftcard-form input:focus { border-color: var(--primary); }

.featured { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border-radius: 12px; background: var(--content-light); text-align: left; }
.featured img { width: 56px; height: 56px; object-fit: contain; }
.featured b { display: block; color: #fff; font-weight: normal; }

/* ---------- Inner pages ---------- */

.page-bar { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-bar-text { flex: 1; min-width: 0; }
.page-bar h1 { font-size: 44px; text-shadow: var(--text-shadow); }
.page-bar p { color: var(--muted); font-size: 13px; }

.empty { text-align: center; padding: 64px 24px; }
.empty > i { font-size: 56px; color: var(--muted); margin-bottom: 16px; }
.empty h2 { font-size: 30px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }
.empty .btn { width: auto; }

.price { font-family: var(--font-title); font-size: 18px; color: var(--green); }
.price s { margin-left: 6px; font-size: 12px; color: var(--muted); }
.price--lg { font-size: 26px; }

.badge { position: absolute; z-index: 2; padding: 3px 9px; border-radius: 999px; font-size: 10px; text-transform: uppercase; color: #fff; }
.badge--sale { top: 10px; left: 10px; background: var(--red); }

/* Product grid */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prod {
    position: relative; overflow: hidden; cursor: pointer;
    background: var(--content); border-radius: var(--radius);
    box-shadow: 0 0 0 var(--d);
    transition: transform .15s ease, box-shadow .15s ease;
}
.prod:hover { transform: translateY(-6px); box-shadow: 0 8px 0 var(--d); }
/* Flex + max sizes (not width/height 100%) so wide art like the rank tags scales down and stays centred */
.prod-media { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--c); overflow: hidden; }
.prod-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .2s ease; }
.prod:hover .prod-media img { transform: scale(1.06); }
.prod-placeholder {
    max-width: 85%; padding: 10px 16px; border-radius: 12px; background: #00000030;
    font-family: var(--font-title); font-size: 24px; line-height: 1.1; color: #fff; text-align: center; text-transform: uppercase; text-shadow: var(--text-shadow);
}
.prod-chat {
    position: relative; z-index: 1; max-width: 88%;
    padding: 8px 12px; background: #000000a6;
    font-family: var(--font-body); font-size: 16px; line-height: 1.3; color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prod-chat--cmd::after { content: "_"; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.prod-body { padding: 16px; }
.prod-body h3 { font-size: 20px; margin-bottom: 4px; }
.prod-body .btn { width: 100%; margin-top: 12px; }
.prod--oos .prod-media { filter: grayscale(.8) brightness(.6); }
.prod--oos .prod-placeholder, .prod--oos .prod-chat { visibility: hidden; }
.prod-oos { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; font-family: var(--font-title); font-size: 20px; color: #fca5a5; text-transform: uppercase; }

/* Rank comparison */
.ranks-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 10px 8px; margin: 0 -10px; width: calc(100% + 20px); }
.ranks-label-col { width: 13rem; }
.ranks-table th { vertical-align: bottom; }
.rank-head {
    position: relative; width: 100%; overflow: hidden;
    background: var(--content); border-radius: 14px;
    transition: transform .2s ease;
}
.rank-head:hover { transform: translateY(-4px); }
.rank-media { height: 120px; display: grid; place-items: center; background: var(--content-light); }
.rank-media img { width: 92%; height: 100%; object-fit: contain; }
.rank-media i { font-size: 36px; color: var(--primary); }
.rank-name { display: block; padding: 12px 6px 14px; font-family: var(--font-title); font-size: 22px; letter-spacing: 1px; color: #fff; text-transform: uppercase; text-shadow: var(--text-shadow); }
.popular-pill {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    padding: 4px 9px; border-radius: 999px; background: var(--primary); color: #fff;
    font-family: var(--font-body); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; box-shadow: 0 4px 10px #00000050;
}
th.is-popular .rank-head { outline: 3px solid var(--primary); outline-offset: -3px; }
.ranks-table td > div { padding: 15px 10px; border-radius: 12px; text-align: center; color: #fff; font-size: 13px; }
.ranks-table td.ranks-label > div { text-align: left; padding-left: 16px; }
.ranks-table tbody tr:nth-child(odd) td > div { background: var(--content); }
.ranks-table tbody tr:nth-child(even) td > div { background: var(--content-light); }
.ranks-table td.is-popular > div { box-shadow: inset 3px 0 0 var(--primary), inset -3px 0 0 var(--primary); }
.ranks-table tr.ranks-buy td { padding-top: 6px; text-align: center; vertical-align: top; }
.ranks-table tr.ranks-buy td > div { padding: 0; background: none !important; box-shadow: none !important; }
.ranks-table .ranks-buy .price { margin-bottom: 8px; font-size: 20px; color: var(--green); }
.ranks-buy .btn { width: 100%; }
.yes { color: var(--green); font-size: 17px; }
.no { color: var(--red); font-size: 17px; }
.val { font-family: var(--font-title); font-size: 15px; }

.rank-cards { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rank-card { overflow: hidden; border-radius: var(--radius); background: var(--content); }
.rank-card.is-popular { outline: 3px solid var(--primary); outline-offset: -3px; }
.rank-card .rank-media { position: relative; width: 100%; height: 150px; }
.rank-card .popular-pill { left: 10px; right: auto; }
.rank-card-body { padding: 18px; }
.rank-card-body h3 { font-size: 24px; }
.rank-perks { list-style: none; margin: 14px 0; }
.rank-perks li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #ffffff0d; font-size: 12px; }
.rank-card-body .btn { width: 100%; }

/* Crate cards (Crate Categories setting) */
.crates { display: flex; flex-direction: column; gap: 20px; }
.crate-card { display: grid; grid-template-columns: 38% 1fr; overflow: hidden; border-radius: 22px; background: #1b1e28; border: 1px solid #ffffff0d; }
.crate-media { position: relative; min-height: 380px; display: grid; place-items: center; background: #262a38; overflow: hidden; }
.crate-media img { width: 86%; max-height: 330px; object-fit: contain; filter: drop-shadow(0 18px 24px #00000070); }
/* Stack count in the style of Minecraft's inventory numbers: thin pixel font, hard grey shadow, tilted */
.crate-qty {
    position: absolute; right: 30px; bottom: 30px;
    font-family: var(--font-body); font-size: 76px; line-height: 1; color: #fff;
    -webkit-text-stroke: 2px #fff; /* thickens the thin pixel strokes a little */
    text-shadow: 6px 6px 0 #3f3f3f;
    transform: rotate(-12deg);
}
.crate-info { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; }
.crate-title { font-size: 46px; text-align: center; }
.crate-price { font-family: var(--font-title); font-size: 28px; color: #22d36b; margin-bottom: 18px; }
.crate-options { display: flex; gap: 16px; width: 100%; }
.crate-options > * { flex: 1 1 0; min-width: 0; }
.crate-option {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 102px; border-radius: 16px; background: #262a38;
    transition: background .15s ease, transform .15s ease;
}
.crate-option:hover { transform: translateY(-2px); background: #2e3344; }
.crate-option:disabled { opacity: .4; pointer-events: none; }
.crate-option.active { background: #0a84ff; }
.crate-option-qty { font-family: var(--font-title); font-size: 28px; color: #8f97ad; }
.crate-option-price { font-family: var(--font-title); font-size: 12px; color: #8f97ad; }
.crate-option.active .crate-option-qty, .crate-option.active .crate-option-price { color: #fff; }
.crate-option.active .crate-option-price { opacity: .85; }
.crate-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 3px 10px; border-radius: 999px; background: #1ec45a; color: #fff;
    font-size: 11px; white-space: nowrap; text-transform: uppercase;
}
.crate-buy {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; margin-top: 18px; padding: 24px; border-radius: 16px;
    background: #a63dff; color: #fff;
    font-family: var(--font-title); font-size: 24px; text-transform: uppercase; text-shadow: var(--text-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.crate-buy:hover { transform: translateY(-2px); box-shadow: inset 0 -6px 0 #00000040; }
.crate-buy:disabled { opacity: .45; pointer-events: none; }
.crate-buy small { font-size: 14px; opacity: .85; }
.crate-group { display: flex; flex-direction: column; gap: 20px; }
.crate-desc { padding: 32px 32px 36px; border-radius: 22px; background: #1b1e28; border: 1px solid #ffffff0d; }
.crate-desc-title { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 20px; }
.crate-desc-title::after { content: ""; flex: 1; height: 1px; margin-left: 10px; background: #ffffff1a; }
.crate-desc-qty { color: #a63dff; }
.crate-desc-body { font-size: 13px; line-height: 1.75; color: #b7bfd3; }
.crate-desc-body p { margin: 0 0 6px; }
.crate-desc-body p:empty { display: none; }
.crate-desc-body ul, .crate-desc-body ol { margin: 0 0 8px; padding-left: 20px; }
.crate-desc-body strong, .crate-desc-body b { color: #fff; }
.crate-desc-body h1, .crate-desc-body h2, .crate-desc-body h3, .crate-desc-body h4 { margin: 12px 0 4px; font-size: 16px; color: #fff; }

/* Rank upgrades */
.rank-views { display: flex; gap: 10px; margin-bottom: 18px; }
.rank-views button {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
    background: var(--content); border: 2px solid #ffffff10; color: var(--muted);
    font-family: var(--font-title); font-size: 17px; text-transform: uppercase;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.rank-views button:hover { transform: translateY(-2px); color: #fff; }
.rank-views button.active { background: var(--primary); border-color: var(--primary); color: #fff; text-shadow: var(--text-shadow); }
/* Rank upgrade ladder */
.ladder-head { margin-bottom: 18px; }
.ladder-head h2 { font-size: 30px; text-shadow: var(--text-shadow); }
.ladder-head p { color: var(--muted); font-size: 13px; }
.ladder-steps { list-style: none; position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 58px; }
/* the rail the step numbers sit on, fading from the first rank's colour to the last */
.ladder-steps::before {
    content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; width: 6px; border-radius: 3px;
    background: linear-gradient(#3fcf4f, #2b5cff, #8a3dff, #e03ee0, #f5b40f, #1fb2ff);
    opacity: .55;
}
.step { position: relative; cursor: pointer; }
.step-num {
    position: absolute; left: -58px; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--rank); color: #fff; font-family: var(--font-title); font-size: 22px;
    text-shadow: var(--text-shadow); box-shadow: 0 0 0 5px var(--bg), 0 6px 16px #00000060;
}
.step-card {
    display: grid; grid-template-columns: 330px 1fr auto; align-items: center; gap: 26px;
    padding: 16px 22px 16px 16px; border-radius: var(--radius);
    background: linear-gradient(90deg, color-mix(in srgb, var(--rank) 28%, var(--content)) 0%, var(--content) 55%);
    border: 2px solid color-mix(in srgb, var(--rank) 35%, transparent);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.step:hover .step-card { transform: translateX(6px); border-color: var(--rank); box-shadow: 0 10px 30px #00000050; }
.step-tags { display: flex; align-items: center; gap: 10px; }
.step-tags img { min-width: 0; object-fit: contain; filter: drop-shadow(0 5px 0 #00000035); }
.step-from { width: 38%; opacity: .55; filter: grayscale(.35) drop-shadow(0 5px 0 #00000035) !important; }
.step-to { width: 54%; transition: transform .15s ease; }
.step:hover .step-to { transform: scale(1.06) rotate(-2deg); }
.step-arrow { flex: none; font-size: 20px; color: var(--rank); text-shadow: 2px 2px 0 #00000050; }
.step-text h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-text h3 i { font-size: 14px; color: var(--muted); }
.step-to-name { color: var(--rank); text-shadow: var(--text-shadow); }
.step-text p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.step-text p i { font-size: 10px; margin-right: 4px; }
.step-buy { display: flex; align-items: center; gap: 18px; }
.step-btn { min-width: 150px; background: var(--rank); }
.step--oos { opacity: .55; }

/* Product page */
.product-page { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; }
.product-page-media { display: flex; align-items: center; justify-content: center; min-height: 260px; border-radius: 14px; background: var(--content-light); padding: 20px; }
.product-page-media img { max-width: 100%; max-height: 340px; width: auto; height: auto; object-fit: contain; }
.product-page-info { display: flex; flex-direction: column; gap: 12px; }
.product-page-info .btn { margin-top: 8px; }

/* Cart page */
.cart-page { display: flex; flex-direction: column; gap: 12px; }
.cart-page .line { padding: 20px; }
.cart-summary .drawer-total { margin-bottom: 16px; }
.cart-summary-actions { display: flex; gap: 12px; justify-content: flex-end; }
.cart-summary-actions .btn--lg { width: auto; }

.complete { text-align: center; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.complete-icon { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: #22c55e33; color: var(--green); font-size: 32px; }
.complete-kicker { color: var(--green); text-transform: uppercase; font-size: 12px; }
.complete h1 { font-size: 44px; }
.complete .btn { width: auto; margin-top: 12px; }

.auth-page { display: grid; place-items: center; min-height: 50vh; }
.auth-card { width: 100%; max-width: 480px; }

.prose { line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { margin: 18px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; }

/* ---------- Modal ---------- */

.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: #000000e0; overflow-y: auto; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 18px; background: var(--content); box-shadow: 0 30px 80px #000; }
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 36px; height: 36px; border-radius: 10px; color: #9ca3af; font-size: 20px; }
.modal-close:hover { color: #fff; background: #ffffff10; }
.modal-pad { padding: 28px; }
.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head h2 { font-size: 30px; margin-bottom: 6px; }
.modal-icon { width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; }

.login-form { display: flex; flex-direction: column; gap: 16px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.platforms button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; border-radius: 12px; border: 2px solid transparent;
    background: var(--content-light); font-family: var(--font-title); font-size: 18px; text-transform: uppercase;
}
.platforms button.active { border-color: var(--primary); color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; color: var(--muted); }
.field input, .field select {
    width: 100%; padding: 13px 14px; border-radius: 12px; outline: none;
    background: var(--content-light); border: 1px solid #ffffff15; color: #fff; font-size: 13px;
}
.field input:focus, .field select:focus { border-color: var(--primary); }

.menu { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.menu-group { border-radius: 14px; background: var(--content-light); overflow: hidden; }
.menu-item-row { display: flex; align-items: center; padding-right: 10px; }
.menu-item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--content-light); color: var(--text); }
.menu-group .menu-item { border-radius: 0; }
.menu-item:hover { opacity: 1; background: var(--primary); color: #fff; }
.menu-item.is-current { outline: 2px solid var(--primary); outline-offset: -2px; }
.menu-item b { display: block; font-family: var(--font-title); font-weight: normal; font-size: 17px; color: #fff; text-transform: uppercase; }
.menu-item small { color: var(--muted); font-size: 11px; }
.menu-item:hover small { color: #ffffffcc; }
.menu-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--content); color: var(--primary); font-size: 18px; overflow: hidden; }
.menu-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.menu-toggle { width: 34px; height: 34px; border-radius: 999px; background: #ffffff10; }
.menu-children { display: flex; flex-direction: column; border-top: 1px solid #ffffff10; }
.menu-child { padding: 10px 18px; color: var(--text); font-size: 13px; }
.menu-child:hover { background: #ffffff10; opacity: 1; }

.product-modal { --c: var(--primary); }
.product-media { position: relative; height: 200px; display: flex; align-items: center; justify-content: center; padding: 22px 34px; background: var(--c); }
.product-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-title { font-size: 34px; text-shadow: var(--text-shadow); padding-right: 30px; }
.product-desc { margin: 16px 0; font-size: 13px; line-height: 1.8; color: #cbd5e1; }
.product-desc ul, .product-desc ol { padding-left: 20px; }
.product-desc p { margin-bottom: 8px; }
.product-desc a { text-decoration: underline; }
.product-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 16px; border-radius: 14px; background: var(--content-light); }
.product-options .field input, .product-options .field select { background: var(--content); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-actions .btn { flex: 1 1 100%; }
.product-actions .btn.alt { flex: 1 1 40%; }
.gift { display: flex; flex-direction: column; gap: 12px; }
.gift-actions { display: flex; gap: 10px; }
.gift-actions .btn.alt { width: 56px; flex: none; }

/* ---------- Cart drawer ---------- */

.drawer-wrap { position: fixed; inset: 0; z-index: 70; }
.drawer-backdrop { position: absolute; inset: 0; background: #000000e0; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; display: flex; flex-direction: column; background: var(--content); box-shadow: -20px 0 60px #00000080; }
.drawer-enter { transition: transform .3s ease; }
.drawer-out { transform: translateX(100%); }
.drawer-in { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #ffffff10; }
.drawer-head h2 { font-size: 24px; display: flex; gap: 10px; align-items: center; }
.drawer-head .modal-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.drawer-empty { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.drawer-empty h3 { font-size: 24px; }
.drawer-empty .btn { width: 100%; }
.big-icon { font-size: 48px; color: var(--muted); }
.drawer-foot { padding: 20px 24px; border-top: 1px solid #ffffff10; display: flex; flex-direction: column; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-title); font-size: 20px; text-transform: uppercase; color: #fff; }
.drawer-loading { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #00000060; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #ffffff30; border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.line { padding: 14px; border-radius: 14px; background: var(--content-light); }
.line-top { display: flex; justify-content: space-between; gap: 12px; }
.line h4 { font-size: 17px; }
.line-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--content); font-size: 11px; color: var(--muted); }
.tag--green { background: #14532d; color: #86efac; }
.line-remove { width: 32px; height: 32px; flex: none; border-radius: 8px; color: #f87171; }
.line-remove:hover { background: #ef444420; }
.line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.qty { display: flex; align-items: center; gap: 10px; padding: 3px; border-radius: 10px; background: var(--content); }
.qty button { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.qty button:hover { background: var(--primary); color: #fff; }

/* ---------- Footer ---------- */

.footer { background: var(--content); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer h4 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 22px; }
.footer h4 img { width: 36px; height: 36px; object-fit: contain; }
.footer-text { font-size: 13px; line-height: 1.9; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #ffffff12; font-size: 11px; line-height: 2; color: #6f819b; }
.legal a { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
    .tile--text-top .tile-art img { height: 100px; }
    .tile--text-top .tile-art img.art-mini { right: 98px; height: 50px; bottom: -4px; }
    .tile--keys .tile-art img { height: 150px; }
    .tile-rewards { display: none; }
}

/* Too narrow for login | logo | cart: logo in the box, buttons underneath; the IP badge stays on the box edge */
@media (max-width: 860px) {
    .hero { --logo-h: min(var(--logo-setting, 200px), 170px); margin-top: calc(var(--logo-h) * .45 + 24px); }
    .hero-box { height: auto; min-height: 96px; justify-content: center; padding: 12px 12px 30px; }
    .hero-side { display: none; }
    .hero-logo { position: relative; left: auto; bottom: auto; transform: none; margin-top: calc(var(--logo-h) * -.45); }
    .hero-logo img { max-width: 80vw; }
    .ip-badge { font-size: 13px; padding: 5px 22px; }
    .hero-mobile { display: flex; gap: 8px; margin-top: 4px; }
    .hero-mobile > *, .hero-mobile form .btn { flex: 1; width: 100%; font-size: 14px; padding: 12px 10px; }
    .hero-mobile form { flex: 1; }
}

@media (max-width: 1100px) {
    .step-card { grid-template-columns: 230px 1fr auto; gap: 18px; }
    .step-text h3 { font-size: 20px; }
    .step-btn { min-width: 116px; }
    .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tile-title { font-size: 44px; }
    .tile--wide .tile-art img { height: 290px; right: 170px; }
    .tile--wide:not(.tile--christmas):not(.tile--halloween) .tile-art img { height: 230px; right: 190px; }
    .tile--wide.tile--halloween .tile-art img { height: 220px; right: 160px; }
    .ranks-table-wrap { display: none; }
    .rank-cards { display: grid; }
}

@media (max-width: 860px) {
    .container { padding: 0 16px; }
    .page-bar { flex-wrap: wrap; gap: 12px; }
    .page-bar-text { order: -1; flex-basis: 100%; }
    .page-bar h1 { font-size: 34px; }
    .store-menu-btn { margin-left: auto; }

    .tiles-cols, .tiles-row { flex-direction: column; }
    .tile-text { padding: 28px; }
    .tile-title, .tile--small .tile-title { font-size: 36px; max-width: 60%; }
    .tile--wide { min-height: 240px; }
    .tile--wide .tile-art img { height: 210px; right: 0; bottom: 0; }
    .tile--wide:not(.tile--christmas):not(.tile--halloween) .tile-art img { height: 170px; right: 10px; bottom: 6px; }
    .tile--wide.tile--halloween .tile-art img { height: 170px; right: 6px; bottom: 6px; }
    .tile--halloween .countdown { top: 34px; }
    .web { width: 80px; height: 80px; }
    .tile--wide .countdown { right: auto; left: 28px; top: 22px; bottom: auto; font-size: 20px; }
    .tile--christmas .countdown { top: 34px; }
    .tile--tall .tile-art img { height: 170px; }
    .tile--mid .tile-art img { height: 150px; }
    .tile--ranks .tile-art img { height: 165px; right: 2px; top: -12px; }
    .tile--small { min-height: 140px; }
    .tile--small .tile-art img { height: 120px; right: 8px; top: -14px; }
    .tile--text-top .tile-art img { top: auto; bottom: -8px; right: 8px; height: 125px; }
    .tile--keys .tile-art img { top: auto; bottom: -6px; right: 4px; height: 134px; }
    .tile--text-top .tile-art img.art-mini { right: 136px; bottom: -4px; height: 70px; }

    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .prod-media { height: 130px; }
    .product-page { grid-template-columns: 1fr; }
    .ladder-steps { padding-left: 0; }
    .ladder-steps::before, .step-num { display: none; }
    .step-card { grid-template-columns: 1fr; gap: 14px; }
    .step-tags { max-width: 300px; }
    .step-buy .btn { flex: 1; }
    .crate-card { grid-template-columns: 1fr; }
    .crate-media { min-height: 260px; }
    .crate-media img { max-height: 230px; width: auto; }
    .crate-qty { font-size: 58px; right: 24px; bottom: 26px; -webkit-text-stroke: 1.5px #fff; text-shadow: 5px 5px 0 #3f3f3f; }
    .crate-info { padding: 28px 20px; }
    .crate-title { font-size: 34px; }
    .crate-options { gap: 10px; }
    .crate-option { min-height: 84px; }
    .crate-option-qty { font-size: 22px; }
    .crate-buy { padding: 18px; font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
    .rank-cards { grid-template-columns: 1fr; }
    .tile-title, .tile--small .tile-title { font-size: 30px; }
    .tile-sub { font-size: 13px; }
    /* Phones: art top-right, text along the bottom so they don't overlap */
    .tile--wide { min-height: 300px; }
    .tile--wide .tile-art img { height: 150px; right: 0; top: 24px; bottom: auto; }
    .tile--wide:not(.tile--christmas):not(.tile--halloween) .tile-art img { height: 110px; right: 6px; top: auto; bottom: 10px; }
    .tile--wide.tile--halloween .tile-art img { height: 115px; right: 4px; top: auto; bottom: 10px; }
    .products { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
    .modal-pad { padding: 22px; }
    .product-actions .btn.alt { flex-basis: 100%; }
    .cart-summary-actions { flex-direction: column-reverse; }
    .cart-summary-actions .btn--lg, .cart-summary-actions .btn { width: 100%; }
}
