    /* Reserves the home-indicator/notch inset under the fixed mobile purchase
       bar so it doesn't sit flush against (or under) the device's safe area. */
    .safe-bottom {
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }
    /* For Tailwind scrollbar-thin utilities, add if not enabled */
    .scrollbar-thin {
      scrollbar-width: thin;
    }
    .scrollbar-thumb-yellow-400::-webkit-scrollbar-thumb {
      background-color: #facc15; /* yellow-400 */
      border-radius: 4px;
    }
    .scrollbar-track-gray-900::-webkit-scrollbar-track {
      background-color: #111827; /* gray-900 */
    }
    /* Hide scrollbar for WebKit browsers */
    .hide-scrollbar::-webkit-scrollbar {
      display: none;
    }
    
    /* Hide scrollbar for Firefox */
    .hide-scrollbar {
      scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar for IE, Edge */
    .hide-scrollbar {
      -ms-overflow-style: none; 
    }
    @keyframes spin-slow {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .animate-spin-slow {
      animation: spin-slow 2s linear infinite;
    }
    /* Hide number input arrows */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    input[type="number"] {
      -moz-appearance: textfield; /* Firefox */
    }
    @keyframes flash {
      0% { background-color: white; }
      50% { background-color: #ffe400; }
      100% { background-color: white; }
    }
    .flash-on-reveal {
      animation: flash 0.4s ease-in-out;
    }
    @keyframes pulse-soft {
      0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
      }
      70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
      }
      100% {
        transform: scale(1);
      }
    }
    
    .animate-pulse-soft {
      animation: pulse-soft 1.5s infinite;
    }
    .lottery-hero-card {
      position: relative;
      overflow: hidden;
    }
    .lottery-hero-frame {
      position: relative;
      z-index: 1;
      background: var(--paper-2);
      border: 1px solid var(--rule);
      box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    }
    .countdown-card {
      position: relative;
      background: var(--paper);
      border: 1px solid rgba(251, 191, 36, 0.35);
      box-shadow: 0 0 20px rgba(251,191,36,0.06), 0 4px 16px rgba(0,0,0,0.06);
      overflow: hidden;
    }
    .countdown-card > * {
      position: relative;
      z-index: 1;
    }
    .ticket-machine-shell {
      position: relative;
      overflow: hidden;
      background: var(--paper);
      border: 1px solid var(--rule);
      box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
    }
    .ticket-machine-frame {
      position: relative;
      z-index: 1;
      background: var(--paper);
    }
    .status-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0.35rem 0.6rem;
      border-radius: 999px;
      background: var(--paper-2);
      border: 1px solid var(--rule);
      color: var(--ink);
      font-weight: 700;
      letter-spacing: 0.01em;
      max-width: 100%;
    }
    .status-chip > span:last-child {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      min-width: 0;
    }
    .meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      background: var(--paper-2);
      border: 1px solid var(--rule);
      font-size: 12px;
      color: var(--ink-2);
    }
    .state-card {
      position: relative;
      overflow: hidden;
      background: var(--paper-2);
      border: 1px solid var(--rule);
      border-radius: 1rem;
    }
    .state-card > * {
      position: relative;
      z-index: 1;
    }
    .ed-carousel-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2rem;
      height: 2rem;
      border-radius: 999px;
      flex-shrink: 0;
      background: var(--paper-2);
      border: 1px solid var(--rule);
      color: var(--ink-soft);
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .ed-carousel-btn:hover {
      background: var(--paper);
      color: var(--ink);
      border-color: var(--ink-soft);
    }
    @keyframes glow-pulse {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }
    .draw-action-btn {
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
    }
    @keyframes ball-pop {
      0%   { transform: scale(0.4) translateY(6px); opacity: 0; }
      65%  { transform: scale(1.12) translateY(-2px); opacity: 1; }
      100% { transform: scale(1) translateY(0); opacity: 1; }
    }
    .ticket-preview-ball {
      animation: ball-pop 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
    }
    /* ── Premium Utility Classes ───────────────────────────────────────── */

    /* Micro-label: fintech-style secondary labels */
    .micro-label {
      font-size: 10px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.14em !important;
      font-weight: 700 !important;
      color: var(--ink-soft) !important;
    }

    /* Amber text gradient for hero headings — dark amber visible on both light/dark */
    .heading-gradient {
      background: linear-gradient(135deg, #92400e 0%, #b45309 30%, #d97706 65%, #f59e0b 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Prize card glassmorphism */
    .prize-card-glass {
      background: rgba(255, 255, 255, 0.03) !important;
      backdrop-filter: blur(20px) !important;
      -webkit-backdrop-filter: blur(20px) !important;
    }

    /* Modal — editorial */
    .modal-glass {
      background: var(--paper) !important;
      border: 1px solid var(--rule) !important;
      box-shadow: 0 30px 60px -20px rgba(0,0,0,0.18), 0 0 0 1px var(--rule) !important;
    }

    /* Tactile primary button (inner highlight + depth) */
    .btn-tactile {
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 6px 24px rgba(251,191,36,0.28) !important;
    }
    .btn-tactile:hover {
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 8px 30px rgba(251,191,36,0.38) !important;
    }
    .btn-tactile:active {
      transform: scale(0.95) !important;
      box-shadow: inset 0 2px 5px rgba(0,0,0,0.22) !important;
    }

    /* ── Draw Animation ──────────────────────────────────────────────────── */
    @keyframes drum-roll {
      0%   { transform: translateY(0)    rotate(0deg); }
      25%  { transform: translateY(-8px) rotate(8deg); }
      50%  { transform: translateY(0)    rotate(0deg); }
      75%  { transform: translateY(-5px) rotate(-6deg); }
      100% { transform: translateY(0)    rotate(0deg); }
    }
    .ball-drum { animation: drum-roll 0.7s ease-in-out infinite; }

    @keyframes ball-reveal {
      0%   { opacity: 0; transform: scale(0.3) translateY(30px) rotate(-20deg); }
      60%  { transform: scale(1.15) translateY(-4px) rotate(4deg); opacity: 1; }
      100% { transform: scale(1)    translateY(0)    rotate(0deg);  opacity: 1; }
    }
    .ball-reveal-anim { animation: ball-reveal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

    @keyframes scanner-sweep {
      0%   { transform: scaleX(0); opacity: 1; }
      80%  { transform: scaleX(1); opacity: 0.8; }
      100% { transform: scaleX(1); opacity: 0; }
    }

    @keyframes pending-pulse {
      0%, 100% { opacity: 0.5; transform: scale(0.95); }
      50%       { opacity: 1;   transform: scale(1.05); }
    }
    .pending-ball { animation: pending-pulse 1.2s ease-in-out infinite; }

    /* ── Live Purchase Ticker ─────────────────────────────────────────────── */
    @keyframes ticker-slide-in {
      from { opacity: 0; transform: translateY(-12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .ticker-item { animation: ticker-slide-in 0.4s ease-out both; }

    /* RTL helpers (match bids.php) */
    [dir="rtl"] .rtl-flex-row-reverse { flex-direction: row-reverse; }
    [dir="rtl"] .rtl-ml-2 { margin-left: 0; margin-right: 0.5rem; }
    [dir="rtl"] .rtl-ml-1 { margin-left: 0; margin-right: 0.25rem; }
    [dir="rtl"] .rtl-ml-0 { margin-left: 0; }
    [dir="rtl"] .rtl-mr-2 { margin-right: 0.5rem; }
    [dir="rtl"] .rtl-mr-0 { margin-right: 0; }
    [dir="rtl"] .rtl-text-right { text-align: right; }
    [dir="rtl"] .rtl-text-left { text-align: left; }
    [dir="rtl"] .rtl-flip { transform: scaleX(-1); }

    /* ── Lottery Draw Machine Overlay ─────────────────────────── */
    @keyframes mball-a {
      0%   { transform: translate(0px,   0px)  rotate(0deg); }
      20%  { transform: translate(52px, -30px) rotate(72deg); }
      40%  { transform: translate(68px,  26px) rotate(144deg); }
      60%  { transform: translate(28px,  54px) rotate(216deg); }
      80%  { transform: translate(-20px, 18px) rotate(288deg); }
      100% { transform: translate(0px,   0px)  rotate(360deg); }
    }
    @keyframes mball-b {
      0%   { transform: translate(0px,   0px)   rotate(0deg); }
      25%  { transform: translate(-42px, 32px)  rotate(-90deg); }
      50%  { transform: translate(-64px, -20px) rotate(-180deg); }
      75%  { transform: translate(-10px, -44px) rotate(-270deg); }
      100% { transform: translate(0px,   0px)   rotate(-360deg); }
    }
    @keyframes mball-c {
      0%   { transform: translate(0px,   0px)  rotate(0deg); }
      33%  { transform: translate(34px,  46px) rotate(120deg); }
      66%  { transform: translate(-34px, 20px) rotate(240deg); }
      100% { transform: translate(0px,   0px)  rotate(360deg); }
    }
    @keyframes mball-d {
      0%   { transform: translate(0px,   0px)   rotate(0deg); }
      20%  { transform: translate(-50px, -22px) rotate(-72deg); }
      40%  { transform: translate(-32px, 42px)  rotate(-144deg); }
      60%  { transform: translate(22px,  30px)  rotate(-216deg); }
      80%  { transform: translate(44px,  -10px) rotate(-288deg); }
      100% { transform: translate(0px,   0px)   rotate(-360deg); }
    }
    @keyframes mball-e {
      0%   { transform: translate(0px,   0px)   rotate(0deg); }
      16%  { transform: translate(26px,  -46px) rotate(60deg); }
      33%  { transform: translate(60px,  0px)   rotate(120deg); }
      50%  { transform: translate(26px,  46px)  rotate(180deg); }
      66%  { transform: translate(-26px, 30px)  rotate(240deg); }
      83%  { transform: translate(-46px, -18px) rotate(300deg); }
      100% { transform: translate(0px,   0px)   rotate(360deg); }
    }
    @keyframes draw-overlay-in {
      from { opacity: 0; transform: scale(0.94) translateY(16px); }
      to   { opacity: 1; transform: scale(1)    translateY(0); }
    }
    @keyframes confetti-fall {
      0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
      80%  { opacity: 1; }
      100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
    }
    @keyframes draw-slot-bounce {
      0%   { transform: scale(0.25) translateY(-18px) rotate(-30deg); opacity: 0; }
      65%  { transform: scale(1.2)  translateY(2px)   rotate(8deg);  opacity: 1; }
      100% { transform: scale(1)    translateY(0)      rotate(0deg);  opacity: 1; }
    }
    @keyframes machine-spin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    .mball-tumble-a { animation: mball-a var(--mdur,2.8s) ease-in-out infinite; }
    .mball-tumble-b { animation: mball-b var(--mdur,3.2s) ease-in-out infinite; }
    .mball-tumble-c { animation: mball-c var(--mdur,2.4s) ease-in-out infinite; }
    .mball-tumble-d { animation: mball-d var(--mdur,3.6s) ease-in-out infinite; }
    .mball-tumble-e { animation: mball-e var(--mdur,2.1s) ease-in-out infinite; }
    .draw-overlay-content { animation: draw-overlay-in 0.45s cubic-bezier(0.34,1.3,0.64,1) both; }
    .draw-slot-pop { animation: draw-slot-bounce 0.55s cubic-bezier(0.34,1.56,0.64,1) both; }
    #lotteryDrawOverlay { perspective: 800px; }
    .drum-cage-spin { animation: machine-spin 12s linear infinite; transform-origin: center; }

    @keyframes suspense-bar-fill {
      from { width: 0%; }
      to   { width: 100%; }
    }
    @keyframes winner-card-in {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes locked-flash {
      0%,100% { opacity: 1; }
      50%     { opacity: 0.4; }
    }
    .locked-flash { animation: locked-flash 0.25s ease-in-out 3; }

    /* ── Winner Cards ─────────────────────────────────────────────────── */
    .sw-section-header {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      margin: 16px 0 10px; padding: 9px 16px;
      background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(251,191,36,0.03));
      border: 1px solid rgba(251,191,36,0.15); border-radius: 12px;
    }
    .sw-section-trophy { font-size: 16px; line-height: 1; }
    .sw-section-label {
      font-size: 10px; font-weight: 800; text-transform: uppercase;
      letter-spacing: 0.14em; color: rgba(251,191,36,0.85);
    }
    .sw-section-count {
      font-size: 10px; font-weight: 600; color: var(--ink-soft);
      padding-left: 6px; border-left: 1px solid var(--rule);
    }
    .sw-winner-card {
      position: relative; display: flex; flex-direction: column;
      border-radius: 14px; padding: 11px 13px 11px 17px; overflow: hidden;
      border: 1px solid var(--rule); background: var(--paper-2);
    }
    .sw-winner-card::before {
      content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
      width: 3px; border-radius: 0 3px 3px 0;
    }
    .sw-winner-card.rank-gold {
      background: linear-gradient(135deg, rgba(251,191,36,0.10) 0%, rgba(0,0,0,0) 65%);
      border-color: rgba(251,191,36,0.22);
      box-shadow: 0 2px 18px rgba(251,191,36,0.08), inset 0 1px 0 rgba(251,191,36,0.10);
    }
    .sw-winner-card.rank-gold::before  { background: linear-gradient(180deg, #fbbf24, #d97706); }
    .sw-winner-card.rank-silver {
      background: linear-gradient(135deg, rgba(148,163,184,0.09) 0%, rgba(0,0,0,0) 65%);
      border-color: rgba(148,163,184,0.18);
    }
    .sw-winner-card.rank-silver::before { background: linear-gradient(180deg, #e2e8f0, #94a3b8); }
    .sw-winner-card.rank-bronze {
      background: linear-gradient(135deg, rgba(205,124,63,0.09) 0%, rgba(0,0,0,0) 65%);
      border-color: rgba(205,124,63,0.18);
    }
    .sw-winner-card.rank-bronze::before { background: linear-gradient(180deg, #fb923c, #92400e); }
    .sw-winner-card.rank-badge::before  { background: linear-gradient(180deg, #818cf8, #4f46e5); }
    .sw-winner-top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
    .sw-avatar-wrap { position: relative; flex-shrink: 0; }
    .sw-avatar, .sw-avatar-initials { width: 42px; height: 42px; border-radius: 50%; }
    .sw-avatar { object-fit: cover; display: block; }
    .sw-avatar-initials {
      display: flex; align-items: center; justify-content: center;
      font-weight: 900; font-size: 17px;
    }
    .rank-gold  .sw-avatar { border: 2px solid rgba(251,191,36,0.6); box-shadow: 0 0 8px rgba(251,191,36,0.25); }
    .rank-gold  .sw-avatar-initials { background: linear-gradient(135deg,#fde68a,#d97706); color: #000; border: 2px solid rgba(251,191,36,0.55); }
    .rank-silver .sw-avatar { border: 2px solid rgba(148,163,184,0.5); }
    .rank-silver .sw-avatar-initials { background: linear-gradient(135deg,#e2e8f0,#94a3b8); color: #1e293b; border: 2px solid rgba(148,163,184,0.45); }
    .rank-bronze .sw-avatar { border: 2px solid rgba(251,146,60,0.5); }
    .rank-bronze .sw-avatar-initials { background: linear-gradient(135deg,#fed7aa,#b45309); color: #fff; border: 2px solid rgba(251,146,60,0.45); }
    .rank-badge  .sw-avatar { border: 2px solid rgba(129,140,248,0.4); }
    .rank-badge  .sw-avatar-initials { background: linear-gradient(135deg,#a5b4fc,#6366f1); color: #fff; border: 2px solid rgba(129,140,248,0.4); }
    .sw-rank-badge {
      position: absolute; bottom: -2px; right: -4px; width: 17px; height: 17px;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      font-size: 9px; font-weight: 900; border: 1.5px solid rgba(8,8,18,0.85); line-height: 1;
    }
    .rank-gold   .sw-rank-badge { background: linear-gradient(135deg,#fbbf24,#d97706); color: #000; }
    .rank-silver .sw-rank-badge { background: linear-gradient(135deg,#e2e8f0,#94a3b8); color: #000; }
    .rank-bronze .sw-rank-badge { background: linear-gradient(135deg,#fb923c,#92400e); color: #fff; }
    .rank-badge  .sw-rank-badge { background: linear-gradient(135deg,#818cf8,#4f46e5); color: #fff; }
    .sw-winner-info { min-width: 0; flex: 1; text-align: start; }
    .sw-winner-name {
      font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--ink);
      overflow-wrap: anywhere; letter-spacing: -0.01em;
    }
    .sw-prize-pill {
      display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
      padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 700; line-height: 1.4;
      max-width: 100%; overflow-wrap: anywhere;
    }
    .rank-gold   .sw-prize-pill { background: rgba(251,191,36,0.16); color: #92400e; border: 1px solid rgba(251,191,36,0.35); }
    .rank-silver .sw-prize-pill { background: rgba(100,116,139,0.14); color: #475569; border: 1px solid rgba(100,116,139,0.30); }
    .rank-bronze .sw-prize-pill { background: rgba(251,146,60,0.16); color: #9a3412; border: 1px solid rgba(251,146,60,0.35); }
    .rank-badge  .sw-prize-pill { background: rgba(129,140,248,0.16); color: #4338ca; border: 1px solid rgba(129,140,248,0.35); }
    html.dark .rank-gold   .sw-prize-pill { background: rgba(251,191,36,0.13); color: #fbbf24; border-color: rgba(251,191,36,0.22); }
    html.dark .rank-silver .sw-prize-pill { background: rgba(148,163,184,0.12); color: #cbd5e1; border-color: rgba(148,163,184,0.22); }
    html.dark .rank-bronze .sw-prize-pill { background: rgba(251,146,60,0.12); color: #fed7aa; border-color: rgba(251,146,60,0.22); }
    html.dark .rank-badge  .sw-prize-pill { background: rgba(129,140,248,0.12); color: #a5b4fc; border-color: rgba(129,140,248,0.22); }
    .sw-balls-section { padding-top: 9px; border-top: 1px solid var(--rule); }
    .sw-balls-label {
      font-size: 9px; color: var(--ink-soft); text-transform: uppercase;
      letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 600;
    }
    /* The whole ticket, wrapping rather than scrolling, under the winner. */
    .sw-balls-row { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 10px; margin-top: 10px; border-top: 1px dashed var(--rule); }
    .sw-ball-matched  { transform: scale(1.06); }
    .sw-ball-unmatched { opacity: 0.4; filter: grayscale(80%); }
    .sw-winner-card .sw-winner-top { margin-bottom: 0; }
    .sw-place { font-size: 22px; line-height: 1; width: 28px; text-align: center; flex-shrink: 0; }
    .rank-badge .sw-place { font-size: 16px; color: #6366f1; }
    .sw-match-count { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; color: var(--ink); }
    .sw-match-num { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
    .sw-match-num b { font-size: 20px; font-weight: 800; color: var(--ink); }
    .sw-match-count small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
    @media (max-width: 420px) {
      .sw-place { width: 22px; font-size: 18px; }
      .sw-avatar, .sw-avatar-initials { width: 36px; height: 36px; }
    }
    .sw-show-more-btn {
      margin-top: 8px; width: 100%; padding: 9px 0; border-radius: 12px;
      font-size: 11px; font-weight: 700; color: #fbbf24;
      border: 1px solid rgba(251,191,36,0.2); cursor: pointer;
      background: rgba(251,191,36,0.04); transition: background 0.2s, border-color 0.2s;
      letter-spacing: 0.06em; text-transform: uppercase;
    }
    .sw-show-more-btn:hover { background: rgba(251,191,36,0.10); border-color: rgba(251,191,36,0.32); }

/* ── Page layout ──────────────────────────────────────────────────────────
   The hero across the top; then the purchase panel, the prize ladder and
   "how it works". Phones stack them in that order; from 1024px the ladder
   and "how it works" sit in a column beside the purchase panel. The blocks
   are found by their hooks (lot-hero, lot-buy, lot-prizes, lot-how), so a
   theme's own components only need to keep those classes. */
.lot-page { display: flex; flex-direction: column; }
.lot-page > .lot-hero   { order: 1; }
.lot-page > .lot-buy    { order: 2; }
.lot-page > .lot-prizes { order: 3; }
.lot-page > .lot-how    { order: 4; }
.lot-prizes { margin-top: 1rem; }
@media (min-width: 1024px) {
  .lot-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    /* The purchase panel spans rows 2-3; the last row takes its spare
       height, so "how it works" sits right under the ladder. */
    grid-template-rows: auto auto 1fr;
    column-gap: 1.5rem;
    align-content: start;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .lot-page > * { grid-column: 1 / -1; }
  .lot-page > .lot-hero   { grid-column: 1 / -1; grid-row: 1; }
  .lot-page > .lot-buy    { grid-column: 1; grid-row: 2 / span 2; }
  .lot-page > .lot-prizes { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; }
  .lot-page > .lot-how    { grid-column: 2; grid-row: 3; align-self: start; margin-top: 1rem; }
  .lot-page > .lot-hero, .lot-page > .lot-buy, .lot-page > .lot-prizes, .lot-page > .lot-how { padding-left: 0; padding-right: 0; }
  .lot-page .ticket-machine-shell, .lot-page > .lot-how > * { max-width: none; }
  /* "How it works" is a narrow column here: its steps stack. */
  .lot-page > .lot-how > * > div { flex-direction: column; }
  .lot-page > .lot-how > * > div > * + * { border-left-width: 0 !important; border-right-width: 0 !important; border-top-width: 1px !important; }
}

/* ── Hero ── */
.lh-frame { display: grid; gap: 1.25rem; padding: 1rem; }
@media (min-width: 640px) { .lh-frame { padding: 1.25rem; } }
@media (min-width: 768px) { .lh-frame.lh-has-image { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: center; } }
.lh-media { border-radius: 1.25rem; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); border: 1px solid var(--rule); }
.lh-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .lh-frame .lh-media { aspect-ratio: 1 / 1; } }
.lh-body { min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.lh-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lh-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .25rem .7rem; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink);
}
.lh-chip-soft { color: var(--ink-soft); font-weight: 600; }
.lh-dot { width: .45rem; height: .45rem; border-radius: 50%; flex-shrink: 0; }
.lh-dot-live { animation: lh-pulse 1.8s ease-in-out infinite; }
@keyframes lh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.lh-title { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.lh-desc { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.lh-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .25rem; }
@media (min-width: 640px) { .lh-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lh-fact {
  display: flex; flex-direction: column; gap: .2rem; min-width: 0;
  padding: .6rem .75rem; border-radius: .9rem;
  background: var(--paper); border: 1px solid var(--rule);
}
.lh-fact-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.lh-fact-value { display: flex; align-items: center; gap: .3rem; font-size: 1.05rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.lh-fact-countdown .lh-fact-value { color: inherit; }
.lh-coin { width: 1em; height: 1em; flex-shrink: 0; }
.lh-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; font-size: 12px; color: var(--ink-soft); }
.lh-progress { flex: 1 1 120px; min-width: 80px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--rule); }
.lh-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* ── Prize ladder ── */
.pl-card {
  max-width: 48rem; margin: 0 auto; padding: 1.1rem;
  border-radius: 1.5rem; background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
}
@media (min-width: 1024px) { .lot-page .pl-card { max-width: none; } }
.pl-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.pl-head-icon { width: 1.9rem; height: 1.9rem; flex-shrink: 0; }
.pl-title { font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.pl-sub { font-size: .8rem; color: var(--ink-soft); }
.pl-list { display: flex; flex-direction: column; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.pl-row {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .75rem; border-radius: .9rem;
  background: var(--paper-2); border: 1px solid var(--rule);
}
.pl-row-top { border-color: rgba(251, 191, 36, .55); background: color-mix(in srgb, #fbbf24 9%, var(--paper-2)); }
.pl-place { width: 1.8rem; flex-shrink: 0; text-align: center; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); }
.pl-thumb { width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: .6rem; object-fit: cover; background: var(--paper); }
.pl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.pl-name { font-size: .9rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pl-match { font-size: .75rem; color: var(--ink-soft); }
.pl-value { display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0; font-size: .95rem; font-weight: 800; color: #b45309; }
html.dark .pl-value { color: #fbbf24; }
.pl-coin { width: 1em; height: 1em; }
.pl-empty { padding: .5rem 0; font-size: .85rem; color: var(--ink-soft); }

/* ── Login gate: a light veil, the panel still visible beneath ── */
.lg-veil {
  align-items: flex-start; padding: 6rem 1.5rem 1.5rem;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lg-card {
  position: sticky; top: 6rem; width: 100%; max-width: 24rem;
  padding: 1.5rem; border-radius: 1.25rem; text-align: center;
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .25);
}
.lg-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: .6rem; border-radius: 999px;
  background: color-mix(in srgb, #fbbf24 18%, var(--paper));
}
.lg-title { font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.lg-desc { margin: .35rem 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.lg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lg-btn {
  flex: 1 1 9rem; display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1rem; border-radius: .8rem; font-size: .9rem; font-weight: 700;
}
.lg-btn-primary { background: linear-gradient(90deg, #facc15, #f59e0b); color: #111; }
.lg-btn-ghost { background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); }
.lg-note { margin-top: .9rem; font-size: .75rem; color: var(--ink-soft); }
