  /* Slypee tokens — single committed look (illustrated world), so no dark variant */
  :root {
    --red: #DB2417;
    --red-deep: #A3180D;
    --sun: #FACC3E;
    --sun-deep: #B98208;
    --ink: #221A16;
    --paper: #FFFBF4;
    --paper-2: #F4E6CF;
    --muted: #7B604F;
    --leaf: #2FA846;
    --lift: 0 8px 22px rgba(28, 72, 120, .18);
    --lift-lg: 0 12px 32px rgba(28, 72, 120, .24);
    --glass: rgba(255, 255, 255, .74);
    --glass-strong: rgba(255, 255, 255, .86);
    --glass-solid: rgba(255, 255, 255, .9); /* repeated cards: no backdrop blur, it makes fast scrolling checkerboard */
    --glass-line: rgba(255, 255, 255, .95);
    --blur: blur(16px) saturate(1.4);
    --display: "Lilita One", var(--script, "Baloo 2"), "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
    --body: "Baloo 2", var(--script, "Nunito"), "Nunito", "Segoe UI", system-ui, sans-serif;
    --nav-h: 64px;
    --gutter: 30px;
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: #7CC4F2;
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button, input { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

  /* ---------- World background (static painting) ---------- */
  .world {
    position: fixed; inset: -4% 0; z-index: -1;
    transform: translate3d(0, var(--para, 0px), 0); will-change: transform;
    background: #7CC4F2 url("/assets/bg-mobile.jpg") center top / cover no-repeat;
  }
  .world::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(34,26,22,.25) 0%, rgba(34,26,22,0) 20%, rgba(34,26,22,0) 70%, rgba(34,26,22,.2) 100%);
  }
  /* Desktop (or any landscape screen) → landscape painting; mobile → portrait */
  @media (min-width: 960px), (min-aspect-ratio: 1/1) {
    .world { background-image: url("/assets/bg-desktop.jpg"); background-position: center; }
  }

  /* ---------- Continue playing shortcut ---------- */
  .resume {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 7px;
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--glass-line); border-radius: 18px; box-shadow: var(--lift);
  }
  .resume img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
  .resume .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .resume small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); line-height: 1.2; }
  .resume b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .resume .bar { height: 6px; margin-top: 3px; max-width: 160px; }
  .resume .btn-play { font-size: 13px; padding: 9px 13px 7px; border-radius: 999px; }

  /* ---------- Header ---------- */
  .top {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: rgba(34, 26, 22, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: background-color .25s, box-shadow .25s;
  }
  .top.scrolled { background: rgba(34, 26, 22, .88); box-shadow: 0 4px 16px rgba(34,26,22,.25); }
  .top-in {
    max-width: 1080px; margin: 0 auto;
    padding-inline: var(--gutter); height: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .brand img { height: 42px; width: auto; margin-inline-start: -10px; transition: height .25s; animation: drop-in .7s cubic-bezier(.34,1.56,.64,1) both; }
  .top.scrolled .brand img { height: 36px; }
  .partner {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 12px 8px 11px; border-radius: 999px;
    background: rgba(255,247,232,.1);
    color: var(--paper); font-family: var(--display); font-size: 14px; letter-spacing: .01em;
    white-space: nowrap;
  }
  .partner small { font-family: var(--body); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
  .partner b { color: var(--sun); font-weight: 400; }
  .partner img { height: 13px; width: auto; }
  .desk-nav { display: none; }

  /* ---------- Layout ---------- */
  main {
    max-width: 1080px; margin: 0 auto;
    padding-inline: var(--gutter);
    padding-block: 18px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px));
  }
  .view { display: flex; flex-direction: column; gap: 40px; }
  section { display: flex; flex-direction: column; gap: 14px; }
  .hero { display: flex; flex-direction: column; gap: 12px; }
  .two { display: flex; flex-direction: column; gap: 40px; }
  .two.tight { gap: 16px; }
  .narrow { width: 100%; max-width: 520px; }
  .centered { align-items: center; text-align: center; }
  .centered .head { justify-content: center; }
  /* centred column, but the card's own content stays left-aligned (form, perks) */
  .center-col { align-items: center; }
  .center-col .head { justify-content: center; }

  .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .title {
    margin: 0; font-family: var(--display); font-weight: 400;
    font-size: clamp(21px, 6vw, 30px); line-height: 1.05; letter-spacing: .01em; color: #fff;
    /* even outline all the way round the letters: stroke painted behind the fill, plus a chunky drop */
    -webkit-text-stroke: 5px var(--ink);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 var(--ink), 0 5px 12px rgba(34,26,22,.35);
    text-wrap: balance;
  }
  .title .hot { color: var(--sun); }
  .more {
    font-family: var(--display); font-size: 13px; color: var(--ink);
    background: var(--sun); border: 0; border-radius: 999px;
    padding: 6px 13px 5px; box-shadow: inset 0 -2px 0 var(--sun-deep), var(--lift); white-space: nowrap; cursor: pointer;
  }
  .more:active { transform: translateY(1px); }

  /* ---------- Search ---------- */
  .search { position: relative; display: block; }
  .search input {
    width: 100%; height: 46px; border-radius: 14px; border: 0;
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    outline: 1.5px solid var(--glass-line); outline-offset: -1.5px;
    padding-block: 0; padding-inline: 44px 14px; font-size: 16px; font-weight: 600;
    box-shadow: var(--lift);
  }
  .search input::placeholder { color: var(--muted); font-weight: 500; }
  .search input:focus { background: #fff; box-shadow: 0 0 0 3px var(--sun), var(--lift); }
  .search svg { position: absolute; z-index: 1; inset-inline-start: 13px; top: 12px; width: 22px; height: 22px; pointer-events: none; }

  /* ---------- Trending carousel ---------- */
  .live {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11px;
    letter-spacing: .1em; text-transform: uppercase; color: #fff;
    background: var(--red); border-radius: 999px; padding: 3px 10px 2px;
    box-shadow: 0 3px 10px rgba(219,36,23,.4); white-space: nowrap;
  }
  .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: blink 1.2s infinite; }
  @keyframes blink { 50% { opacity: .25; } }
  .track {
    position: relative;
    display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
    scroll-padding-inline: var(--gutter);
  }
  .track::-webkit-scrollbar { display: none; }
  .tcard {
    flex: 0 0 88%; scroll-snap-align: center;
    background: var(--glass-solid);
    border: 1.5px solid var(--glass-line); border-radius: 22px; padding: 6px;
    box-shadow: var(--lift-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), opacity .4s;
  }
  .tcard:not(.on) { transform: scale(.94); opacity: .78; }
  .tcard .banner { position: relative; aspect-ratio: 2.2 / 1; background: var(--paper-2); border-radius: 16px; overflow: hidden; }
  .tcard .banner img { width: 100%; height: 100%; object-fit: cover; }
  .rank {
    position: absolute; inset-inline-start: 10px; top: 10px;
    font-family: var(--display); font-size: 14px; line-height: 1;
    background: var(--sun); color: var(--ink); border-radius: 9px;
    padding: 5px 8px 3px; box-shadow: 0 3px 8px rgba(34,26,22,.3);
  }
  .tinfo { display: flex; align-items: center; gap: 10px; padding: 9px 6px 5px; }
  .tinfo .ico { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: none; background: var(--paper-2); box-shadow: 0 2px 6px rgba(34,26,22,.2); }
  .tinfo .txt { min-width: 0; flex: 1; }
  .tinfo h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(15px, 4.2vw, 18px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tinfo p { margin: 3px 0 0; font-size: clamp(11.5px, 3.2vw, 13px); line-height: 1.25; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; font-variant-numeric: tabular-nums; }
  .tinfo p .star { color: var(--sun-deep); font-weight: 800; }
  .tinfo .btn-play { font-size: 14px; padding: 10px 14px 8px; border-radius: 999px; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
  .dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,.75); box-shadow: 0 1px 4px rgba(34,26,22,.3); transition: width .25s, background .25s;
  }
  .dots button[aria-current="true"] { width: 24px; background: var(--sun); }

  /* ---------- Buttons ---------- */
  .btn-play {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1;
    color: #fff; background: var(--red); border: 0; border-radius: 10px;
    box-shadow: inset 0 -3px 0 var(--red-deep), 0 4px 10px rgba(219,36,23,.3);
    padding: 9px 14px 8px; font-size: 15px; white-space: nowrap; cursor: pointer;
    transition: transform .08s, box-shadow .08s;
  }
  .btn-play:hover { background: #E83424; }
  .btn-play:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--red-deep), 0 2px 4px rgba(219,36,23,.3); }
  .btn-play svg { width: 10px; height: 10px; flex: none; }

  /* ---------- Category selector ---------- */
  .cats {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px;
    scroll-padding-inline: var(--gutter);
  }
  .cats::-webkit-scrollbar { display: none; }
  .cats.sticky {
    position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 10;
    padding-top: 8px; margin-top: -8px;
    transition: background-color .2s, box-shadow .2s;
  }
  .cats.sticky.stuck {
    background: rgba(255,255,255,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 16px rgba(28,72,120,.14);
  }
  .cat {
    flex: 1 0 70px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 6px 7px; border: 0; border-radius: 16px; cursor: pointer;
    background: var(--glass-solid);
    outline: 1.5px solid var(--glass-line); outline-offset: -1.5px; box-shadow: var(--lift);
    font-weight: 700; font-size: 12px; line-height: 1.1; color: var(--muted); white-space: nowrap;
    transition: transform .1s, box-shadow .1s, background-color .1s, color .1s;
  }
  .cat svg { width: 32px; height: 32px; transition: transform .15s; }
  .cat svg .dim { opacity: .75; }
  .cat[aria-selected="true"] {
    background: var(--red); color: #fff; outline-color: rgba(255,255,255,.5);
    box-shadow: inset 0 -3px 0 var(--red-deep), 0 8px 16px rgba(219,36,23,.35);
    transform: translateY(-2px);
  }
  .cat[aria-selected="true"] svg { transform: scale(1.08) rotate(-6deg); }
  .cat[aria-selected="true"] svg .dim { opacity: 1; }
  .cat:active { transform: translateY(1px); }

  /* ---------- Game grid: 4 per row ---------- */
  /* Phones: 2 per row; 4 per row from 600px */
  .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .gcard {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--glass-solid);
    border: 1.5px solid var(--glass-line); border-radius: 18px; padding: 5px;
    box-shadow: var(--lift);
    transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s;
  }
  .thumb { position: relative; display: block; aspect-ratio: 1; background: var(--paper-2); border-radius: 13px; overflow: hidden; }
  .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .3s; }
  img.fade { transition: opacity .3s; }
  img.fade:not(.ld) { opacity: 0; }
  /* Skeleton: pulsing block behind an image until it has loaded (same look as Tailwind animate-pulse) */
  .thumb::before, .tcard .banner::before, .dmedia::before {
    content: ""; position: absolute; inset: 0; background: #E6D6BC;
    animation: sk-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  }
  .thumb:has(img.ld)::before, .tcard .banner:has(img.ld)::before, .dmedia:has(.ready)::before { display: none; }
  .thumb img, .thumb video, .tcard .banner img, .dbanner { position: relative; }
  @keyframes sk-pulse { 50% { opacity: .45; } }
  .thumb .rk {
    position: absolute; inset-inline-start: 5px; top: 5px; min-width: 22px; text-align: center;
    font-family: var(--display); font-size: 12px; line-height: 1; padding: 4px 4px 2px;
    background: var(--sun); border-radius: 7px; box-shadow: 0 2px 5px rgba(34,26,22,.35);
  }
  .gbody { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 9px 5px 3px; }
  .gcard .btn-play { margin-top: auto; }
  .gmeta { margin-bottom: 8px; }
  .gname {
    margin: 0; font-weight: 800; font-size: 15px; line-height: 1.15;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    overflow-wrap: anywhere;
  }
  .gname a { color: inherit; }
  .gmeta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 12.5px; line-height: 1.25; font-weight: 700; color: #5E4A3E; font-variant-numeric: tabular-nums; }
  .gmeta .star { color: var(--sun-deep); font-weight: 800; }
  .gmeta .short { display: none; }
  .gcard .btn-play {
    margin-top: auto; width: 100%;
    font-size: 15px; padding: 11px 4px 9px; border-radius: 999px;
    box-shadow: inset 0 -2px 0 var(--red-deep), 0 3px 8px rgba(219,36,23,.28);
  }
  .panel { display: flex; flex-direction: column; gap: 14px; }
  .show-all { align-self: center; }
  .empty { background: var(--glass-strong); border-radius: 14px; padding: 16px; margin: 0; font-weight: 600; box-shadow: var(--lift); }

  /* ---------- Library & profile ---------- */
  .card-panel { background: var(--glass-strong); border: 1.5px solid var(--glass-line); border-radius: 22px; box-shadow: var(--lift-lg); padding: 16px; }
  .note { font-size: 12px; font-weight: 600; color: var(--paper); background: rgba(34,26,22,.6); border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin: 0; }
  .cont { display: flex; flex-direction: column; gap: 10px; }
  .crow { display: flex; align-items: center; gap: 12px; }
  .crow img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
  .crow .txt { flex: 1; min-width: 0; }
  .crow h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .crow small { font-size: 12px; font-weight: 600; color: var(--muted); }
  .crow .btn-play { font-size: 13px; padding: 9px 11px 8px; }
  .bar { height: 7px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin-top: 4px; }
  .bar i { display: block; height: 100%; background: var(--leaf); border-radius: 999px; }
  .crow + .crow { border-top: 1px solid var(--paper-2); padding-top: 10px; }

  .who { display: flex; align-items: center; gap: 14px; }
  .avatar { width: 62px; height: 62px; border-radius: 18px; background: var(--sun); display: grid; place-items: center; flex: none; }
  .avatar svg { width: 44px; height: 44px; }
  .who h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
  .who p { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .stats div { background: rgba(255,255,255,.7); border-radius: 12px; padding: 8px 6px; text-align: center; }
  .stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .stats span { font-size: 11px; font-weight: 700; color: var(--muted); }
  .sub h2 { margin: 0 0 2px; font-family: var(--display); font-weight: 400; font-size: 20px; }
  .sub p { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); max-width: 44ch; }
  .sub label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
  .sub .row { display: flex; gap: 8px; flex-wrap: wrap; }
  .sub input { flex: 1 1 180px; min-width: 0; height: 46px; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff; padding: 0 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .sub input:focus { outline: none; border-color: var(--sun); }
  .sub .btn-play { height: 46px; padding-inline: 18px; flex: 1 1 auto; }

  .lockup {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    align-self: center; padding: 6px 18px; border-radius: 999px;
    background: rgba(34,26,22,.82); color: var(--paper);
    font-family: var(--display); font-size: 15px;
  }
  .lockup img { height: 30px; width: auto; }
  .lockup img.gn { height: 18px; }
  .lockup .x { color: var(--sun); font-size: 13px; }
  .lockup b { font-weight: 400; color: var(--sun); }

  /* ---------- Bottom nav ---------- */
  .bottom {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }
  .bottom nav {
    pointer-events: auto; max-width: 520px; margin: 0 auto; height: var(--nav-h);
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--glass-line); border-radius: 24px;
    box-shadow: 0 10px 30px rgba(28,72,120,.28);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0;
    background: none; border: 0; cursor: pointer; color: #6F5A4C;
    font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  }
  .tab .ic { width: 44px; height: 28px; border-radius: 999px; display: grid; place-items: center; transition: background-color .12s; }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--red); }
  .tab[aria-current="page"] .ic { background: var(--red); color: #fff; }

  .toast {
    position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--ink); color: var(--paper); font-weight: 700; font-size: 13px;
    padding: 9px 16px; border-radius: 999px; transition: opacity .25s, transform .4s cubic-bezier(.34,1.56,.64,1); max-width: calc(100% - 32px); text-align: center;
  }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }

  /* ---------- Small phones ---------- */
  @media (max-width: 374px) {
    :root { --gutter: 24px; }
    .view { gap: 34px; }
    .grid { gap: 14px; }
    .partner small { display: none; }
    .tinfo .btn-play svg { display: none; }
  }

  /* ---------- Tablet & up ---------- */
  @media (min-width: 600px) {
    :root { --gutter: 38px; }
    .tcard { flex-basis: 62%; }
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
    .gname { font-size: clamp(13px, 1.9vw, 16px); }
    .gmeta { font-size: clamp(11px, 1.5vw, 13px); }
    .gcard .btn-play { font-size: clamp(12.5px, 1.6vw, 14px); }
    .gcard { padding: 7px; border-radius: 20px; }
    .gbody { gap: 5px; padding: 9px 4px 3px; }
    .gcard .btn-play { padding: 10px 4px 8px; }
    .cat { flex: 1 0 90px; font-size: 13px; }
    .cat svg { width: 36px; height: 36px; }
  }
  @media (min-width: 960px) {
    .top-in { height: 66px; }
    .cats.sticky { top: 66px; overflow: visible; margin-inline: 0; padding-inline: 0; }
    .cats.sticky.stuck { border-radius: 0 0 20px 20px; padding-inline: 12px; margin-inline: -12px; }
    .resume { max-width: 520px; }
    .brand img { height: 50px; }
    .top.scrolled .brand img { height: 42px; }
    .desk-nav { display: flex; gap: 6px; }
    .desk-nav .tab { color: rgba(255,247,232,.7); flex-direction: row; gap: 4px; font-size: 14px; padding: 0 6px 0 0; border-radius: 999px; }
    .desk-nav .tab .ic { width: 40px; height: 34px; }
    .desk-nav .tab[aria-current="page"] { color: var(--sun); }
    .bottom { display: none; }
    main { padding-block: 28px 64px; }
    .view { gap: 56px; }
    .tcard:not(.on) { transform: none; opacity: 1; }
    .to-top { bottom: 24px; }
    .tcard { flex-basis: calc(50% - 6px); scroll-snap-align: start; }
    .grid { gap: 28px; }
    .cats { overflow: visible; }

    /* compact top bar: search + guest/continue side by side, one line tall */
    .hero { flex-direction: row; align-items: stretch; gap: 14px; }
    .hero > .search-btn { flex: 1 1 auto; height: auto; min-height: 56px; border-radius: 16px; }
    .hero > .resume, .hero > .guest { flex: 0 1 430px; max-width: 430px; margin: 0; }
    .hero > .resume + .guest { display: none; }
    .guest small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .guest .txt { gap: 1px; }

    /* trending as the hero: one big slide, the next one peeking */
    .tcard { flex-basis: 76%; scroll-snap-align: start; border-radius: 28px; padding: 8px; }
    .tcard .banner { aspect-ratio: 2.7 / 1; border-radius: 22px; }
    .tinfo { padding: 14px 10px 8px; gap: 14px; }
    .tinfo .ico { width: 60px; height: 60px; border-radius: 15px; }
    .tinfo h3 { font-size: 26px; }
    .tinfo p { font-size: 14px; margin-top: 5px; }
    .tinfo .btn-play { font-size: 18px; padding: 14px 24px 12px; }
    .rank { font-size: 18px; padding: 7px 11px 5px; inset-inline-start: 16px; top: 16px; }

    /* category chips: solid instead of washed-out glass */
    .cat {
      background: rgba(255,255,255,.94); color: var(--ink); outline-color: #fff;
      box-shadow: 0 6px 16px rgba(28,72,120,.2), inset 0 -3px 0 var(--paper-2);
    }
    .cat:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28,72,120,.26), inset 0 -3px 0 var(--sun); }
    .cat[aria-selected="true"]:hover { background: var(--red); }
    .two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
  }
  /* wide desktop: roomier page, 6 cards per row */
  @media (min-width: 1200px) {
    .top-in, main { max-width: 1280px; }
    .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
    .detail .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .gname { font-size: 15px; }
    .gmeta { font-size: 12.5px; }
    .gcard .btn-play { font-size: 14px; }
    .tcard { flex-basis: 72%; }
  }

  /* inline icons sitting on a line of text */
  .with-ico { display: inline-flex; align-items: center; gap: 6px; }
  .with-ico svg, .dplayed svg { width: 17px; height: 17px; flex: none; }
  .dplayed span { display: inline-flex; align-items: center; gap: 5px; }
  .chip .flame, .chips svg { width: 20px; height: 20px; }
  .im-ico svg { width: 26px; height: 26px; }

  /* ---------- Edit profile ---------- */
  .avatar svg { width: 44px; height: 44px; }
  .icon-round {
    width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; background: var(--paper-2); color: var(--ink);
    transition: background-color .15s, transform .1s;
  }
  .icon-round:hover { background: var(--sun); }
  .icon-round:active { transform: scale(.94); }
  .icon-round svg { width: 20px; height: 20px; }
  .edit-profile { margin-top: 16px; animation: step-in .35s cubic-bezier(.2,.7,.2,1); }
  .edit-profile label, .edit-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
  .edit-profile input {
    width: 100%; height: 46px; border-radius: 12px; border: 2px solid var(--paper-2); background: #fff;
    padding: 0 12px; font-size: 16px; font-weight: 700;
  }
  .edit-profile input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(250,204,62,.3); }
  .edit-label { margin-top: 16px; }
  .avatar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .avatar-opt {
    aspect-ratio: 1; border: 0; border-radius: 16px; cursor: pointer; padding: 6px;
    box-shadow: inset 0 0 0 2px rgba(34,26,22,.12); transition: transform .12s, box-shadow .12s;
  }
  .avatar-opt svg { width: 100%; height: 100%; }
  .avatar-opt:hover { transform: translateY(-2px); }
  .avatar-opt.on { box-shadow: inset 0 0 0 3px var(--red), 0 6px 14px rgba(219,36,23,.3); transform: translateY(-2px); }
  .edit-actions { display: flex; gap: 10px; margin-top: 18px; }
  .edit-actions .chip { flex: 0 0 auto; padding: 12px 18px; font-size: 15px; }
  .edit-actions .btn-play { flex: 1; font-size: 16px; padding: 13px 16px 11px; border-radius: 14px; }

  /* ---------- Help & info ---------- */
  .info-menu h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 20px; }
  .info-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .info-menu a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
    background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1.5px var(--paper-2);
    font-weight: 800; font-size: 15px; transition: box-shadow .12s, transform .1s, background-color .12s;
  }
  .info-menu a:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--sun); }
  .info-menu a:active { transform: scale(.98); }
  .im-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); flex: none; }
  .im-label { flex: 1; min-width: 0; }
  .im-chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
  [dir="rtl"] .flip-svg { transform: scaleX(-1); }
  .info-menu .logout-row { text-align: center; margin: 14px 0 0; }
  .agree { margin: 14px 0 0 !important; font-size: 12.5px !important; font-weight: 600; color: var(--muted); text-align: center; max-width: none !important; }
  .agree a { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

  .info .back-link { margin-bottom: -22px; }
  .info-card { max-width: 760px; width: 100%; margin-inline: auto; padding: 22px 22px 26px; }
  .info-card h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; }
  .info-meta { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .info-intro { margin: 14px 0 6px; font-size: 15.5px; font-weight: 600; color: #5E4A3E; line-height: 1.55; }
  .info-sec { gap: 6px; margin-top: 18px; }
  .info-sec h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; }
  .info-sec ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
  .info-sec li { font-size: 14.5px; font-weight: 600; color: #5E4A3E; line-height: 1.55; }
  .info-sec li::marker { color: var(--red); }
  .faq { display: grid; gap: 8px; margin-top: 14px; }
  .faq details { background: rgba(255,255,255,.8); border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--paper-2); overflow: hidden; }
  .faq details[open] { box-shadow: inset 0 0 0 2px var(--sun); }
  .faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; font-weight: 800; font-size: 15px;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+"; width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--paper-2); font-size: 18px; font-weight: 800; transition: transform .2s, background-color .2s;
  }
  .faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); }
  .faq details p { margin: 0; padding: 0 16px 16px; font-size: 14.5px; font-weight: 600; color: #5E4A3E; line-height: 1.55; animation: step-in .3s ease; }
  .info-cta { margin-top: 22px; width: 100%; padding: 13px 16px 11px; border-radius: 14px; font-size: 16px; }
  .info-cta.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red), 0 3px 8px rgba(219,36,23,.15); }
  .info-cta.danger:hover { background: #FFF1EF; }

  /* ---------- Carousel arrows ---------- */
  .scroll-row { position: relative; }
  .nav-arrow {
    position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -31px;
    display: none; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
    background: #fff; color: var(--ink);
    box-shadow: 0 8px 20px rgba(28,72,120,.28), inset 0 -3px 0 var(--paper-2);
    transition: transform .15s, opacity .2s, background-color .15s;
  }
  .nav-arrow svg { width: 22px; height: 22px; }
  .nav-arrow.prev { inset-inline-start: -18px; }
  .nav-arrow.next { inset-inline-end: -18px; }
  .nav-arrow:dir(rtl) svg { transform: scaleX(-1); }
  .nav-arrow:hover { background: var(--sun); transform: scale(1.08); }
  .nav-arrow:active { transform: scale(.95); }
  .nav-arrow:disabled { opacity: 0; pointer-events: none; }
  .track:focus-visible, .rp-track:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; border-radius: 16px; }
  /* mouse/trackpad screens get arrows; touch screens keep swiping */
  @media (hover: hover) and (pointer: fine) {
    .nav-arrow { display: grid; }
  }

  /* ---------- Guest banner (home, logged out) ---------- */
  .guest {
    display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px;
    background: linear-gradient(120deg, rgba(255,255,255,.92), rgba(255,240,205,.9));
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--glass-line); border-radius: 18px; box-shadow: var(--lift);
  }
  .guest .gi { width: 44px; height: 44px; border-radius: 13px; background: var(--sun); display: grid; place-items: center; flex: none; }
  .guest .gi svg { width: 32px; height: 32px; }
  .guest .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .guest b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.15; }
  .guest small { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.25; }
  .guest .btn-play { font-size: 13px; padding: 9px 14px 7px; border-radius: 999px; }

  /* ---------- Instant-play banner (HTML5) ---------- */
  .instant {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
    background: linear-gradient(120deg, rgba(255,255,255,.92), rgba(255,240,205,.9));
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--glass-line); border-radius: 18px; box-shadow: var(--lift);
  }
  .instant .bolt {
    width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center;
    background: var(--sun); box-shadow: inset 0 -3px 0 var(--sun-deep);
  }
  .dtag svg { width: 15px; height: 15px; }
  .instant .bolt svg { width: 26px; height: 26px; animation: zap 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
  @keyframes zap {
    0%, 82%, 100% { transform: none; }
    86% { transform: rotate(-12deg) scale(1.15); }
    90% { transform: rotate(10deg) scale(1.15); }
    94% { transform: rotate(-4deg) scale(1.05); }
  }
  .instant .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .instant b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.15; }
  .instant small { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.3; }
  .instant .tags { display: none; gap: 6px; flex: none; }
  .instant .tags span {
    font-size: 12px; font-weight: 800; color: #1D7A30; white-space: nowrap;
    background: rgba(47,168,70,.13); border-radius: 999px; padding: 4px 10px 3px;
  }
  .instant .tags span::before { content: "✓ "; }
  @media (min-width: 760px) { .instant .tags { display: flex; } }

  /* ---------- Game detail ---------- */
  .back-link {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-bottom: -22px;
    border: 0; cursor: pointer; padding: 7px 14px 6px 8px; border-radius: 999px;
    background: rgba(34,26,22,.72); color: var(--paper); font-weight: 800; font-size: 14px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--lift);
  }
  .back-link svg { width: 18px; height: 18px; }
  .dcard {
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--glass-line); border-radius: 26px; box-shadow: var(--lift-lg);
    padding: 7px; display: flex; flex-direction: column; overflow: hidden;
  }
  .dmedia {
    position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
    background: var(--paper-2); display: grid; place-items: center;
  }
  .dbanner { width: 100%; height: 100%; object-fit: cover; }
  .dblur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) saturate(1.3); transform: scale(1.1); opacity: .85; }
  .dhero {
    position: relative; width: 46%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover;
    border-radius: 24%; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(34,26,22,.4);
  }
  .dbanner, .dhero { opacity: 0; transform: scale(.94); transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1); }
  .dbanner.ready, .dhero.ready { opacity: 1; transform: none; }
  .dtag {
    display: inline-flex; align-items: center; gap: 5px;
    position: absolute; inset-inline-start: 10px; top: 10px; font-weight: 800; font-size: 12px; color: var(--ink);
    background: var(--sun); border-radius: 999px; padding: 4px 10px 3px; box-shadow: 0 3px 8px rgba(34,26,22,.3);
  }
  .dinfo { display: flex; flex-direction: column; gap: 14px; padding: 14px 9px 10px; }
  .dhead { display: flex; align-items: center; gap: 12px; }
  .dico { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; box-shadow: 0 4px 12px rgba(34,26,22,.25); margin-top: -40px; border: 3px solid #fff; }
  .dtitle { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
  .dtitle h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 7vw, 36px); line-height: 1.05; text-wrap: balance; }
  .dchips { display: flex; flex-wrap: wrap; gap: 6px; }
  .dchip { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px 2px; background: var(--paper-2); color: #5E4A3E; }
  .dchip.h5 { background: var(--leaf); color: #fff; }
  .dchip.app { background: var(--ink); color: var(--paper); }
  .dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
  .dstats div { background: rgba(255,255,255,.75); border-radius: 14px; padding: 8px 4px 7px; text-align: center; min-width: 0; }
  .dstats dt { font-size: 11px; font-weight: 700; color: var(--muted); }
  .dstats dd { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .dstats .star { color: var(--sun-deep); }
  .dactions { display: flex; gap: 8px; }
  .dplay { flex: 1; font-size: 20px; padding: 15px 16px 13px; border-radius: 16px; animation: glow 2.4s ease-in-out infinite; }
  .dplay svg { width: 14px; height: 14px; }
  @keyframes glow {
    0%, 100% { box-shadow: inset 0 -3px 0 var(--red-deep), 0 4px 10px rgba(219,36,23,.3); }
    50% { box-shadow: inset 0 -3px 0 var(--red-deep), 0 6px 22px rgba(219,36,23,.55); }
  }
  .dicon {
    width: 54px; flex: none; border: 0; cursor: pointer; border-radius: 16px; display: grid; place-items: center;
    background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--paper-2), inset 0 -3px 0 var(--paper-2);
    transition: transform .1s;
  }
  .dicon:active { transform: scale(.94); }
  .dicon svg { width: 24px; height: 24px; }
  .dicon.on svg { animation: beat .35s ease-out; }
  @keyframes beat { 50% { transform: scale(1.3); } }
  .dnote { margin: -6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }
  .dabout h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 20px; }
  .dabout p { margin: 0; font-size: 14.5px; font-weight: 600; color: #5E4A3E; line-height: 1.5; }
  .steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
  .steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #5E4A3E; }
  .steps li::before {
    content: counter(s); width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--sun); color: var(--ink); font-family: var(--display); font-size: 14px; box-shadow: inset 0 -2px 0 var(--sun-deep);
  }
  .detail .two { gap: 16px; }
  .saved-empty { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
  @media (min-width: 760px) {
    .dcard { flex-direction: row; align-items: stretch; }
    .dmedia { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
    .dinfo { flex: 1; justify-content: center; padding: 18px 20px; }
    .dico { margin-top: 0; }
  }

  /* ---------- Play history ---------- */
  .resume .rmeta { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.2; }
  .rp-track {
    display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .rp-track::-webkit-scrollbar { display: none; }
  .rp-card {
    flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 8px;
    background: var(--glass-solid);
    border: 1.5px solid var(--glass-line); border-radius: 18px; box-shadow: var(--lift);
    transition: transform .15s;
  }
  .rp-card:active { transform: scale(.96); }
  .rp-card img { width: 100%; aspect-ratio: 1; height: auto; border-radius: 13px; object-fit: cover; margin-bottom: 3px; }
  .rp-card b { font-size: 13px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rp-card small { font-size: 11px; font-weight: 700; color: var(--muted); }
  .crow h3 a { color: inherit; }
  .dplayed { margin: -4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .dplayed span { font-size: 12px; font-weight: 800; color: #1D7A30; background: rgba(47,168,70,.12); border-radius: 999px; padding: 3px 9px 2px; }
  .welcome {
    position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: -16px;
    padding: 14px; border-radius: 22px; color: var(--paper);
    background: linear-gradient(135deg, #2FA846, #1D7A30); box-shadow: 0 12px 30px rgba(29,122,48,.35);
    border: 1.5px solid rgba(255,255,255,.35);
  }
  .welcome-x { position: absolute; inset-inline-end: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; font-weight: 800; }
  .welcome-top { display: flex; align-items: center; gap: 12px; padding-inline-end: 30px; }
  .welcome-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--sun); display: grid; place-items: center; flex: none; animation: pop-in .5s cubic-bezier(.2,1.6,.4,1) both; }
  .welcome-ico svg { width: 30px; height: 30px; }
  @keyframes pop-in { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
  .welcome-top b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
  .welcome-top small { font-size: 13.5px; font-weight: 600; opacity: .92; }
  .welcome-top strong { font-weight: 800; }
  .welcome-rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,0,0,.14); border-radius: 14px; padding: 6px 8px 6px 12px; font-weight: 800; font-size: 14px; }
  .rate { display: flex; }
  .rate button { border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; padding: 2px 3px; color: rgba(255,255,255,.4); transition: transform .12s, color .12s; }
  .rate button.on { color: var(--sun); }
  .rate button:hover { transform: scale(1.2); }
  .welcome-next { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 14px; padding: 6px 6px 6px 6px; }
  .welcome-next img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
  .welcome-next > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .welcome-next small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); }
  .welcome-next b { font-family: var(--display); font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .welcome-next .btn-play { font-size: 13px; padding: 8px 13px 7px; border-radius: 999px; }
  @media (min-width: 760px) {
    .welcome { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .welcome-top { flex: 1 1 260px; }
    .welcome-next { flex: 0 1 280px; }
  }

  /* ---------- Empty state & auth ---------- */
  .empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px; }
  .empty-state .gi { width: 64px; height: 64px; border-radius: 20px; background: var(--sun); display: grid; place-items: center; margin-bottom: 6px; }
  .empty-state .gi svg { width: 40px; height: 40px; }
  .empty-state h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
  .empty-state p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); max-width: 34ch; }
  .perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
  .perks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
  .perks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--leaf); color: #fff; font-size: 12px; font-weight: 800; }
  .hint, .sub .hint { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 800; color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
  /* login: step dots, OTP boxes, inline errors */
  .login { position: relative; }
  .steps-dots { position: absolute; inset-inline-end: 16px; top: 18px; display: flex; gap: 5px; }
  .steps-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--paper-2); transition: width .3s, background-color .3s; }
  .steps-dots i.on { width: 20px; background: var(--red); }
  .login-step { animation: step-in .4s cubic-bezier(.2,.7,.2,1); }
  @keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
  .sub input.err { border-color: var(--red); }
  /* country code + number, drawn as one field */
  .phone-field {
    flex: 1 1 220px; min-width: 0; display: flex; align-items: stretch; height: 46px;
    border: 2px solid var(--paper-2); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
  }
  .phone-field:focus-within { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(250,204,62,.3); }
  .phone-field.err { border-color: var(--red); }
  .sub .phone-field input { flex: 1; height: auto; border: 0; border-radius: 0 10px 10px 0; padding: 0 12px 0 10px; background: none; }
  .cc {
    position: relative; display: flex !important; align-items: center; gap: 5px; flex: none; margin: 0 !important;
    padding: 0 8px 0 11px; border-right: 2px solid var(--paper-2); border-radius: 10px 0 0 10px; cursor: pointer;
    font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; font-weight: 800 !important;
  }
  .cc:hover { background: #FFF8EA; }
  .cc-dial { font-size: 15px; font-variant-numeric: tabular-nums; }
  .cc svg { width: 12px; height: 12px; color: var(--muted); }
  .cc select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
  .field-err { margin: 8px 0 0 !important; color: var(--red) !important; font-size: 13px !important; font-weight: 800 !important; }
  .demo-code {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px;
    padding: 8px 8px 8px 12px; border-radius: 12px; background: rgba(250,204,62,.25); border: 1.5px dashed var(--sun-deep);
    font-size: 13.5px; font-weight: 700;
  }
  .demo-code b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .12em; }
  .demo-code .chip { padding: 6px 12px 5px; font-size: 13px; flex: none; }
  .otp { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .sub .otp-input {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1;
    border: 0; padding: 0; font-size: 16px; caret-color: transparent; cursor: text;
  }
  .otp-box {
    height: 60px; border-radius: 14px; border: 2px solid var(--paper-2); background: #fff;
    display: grid; place-items: center; font-family: var(--display); font-size: 28px; color: var(--ink);
    transition: border-color .15s, transform .15s, box-shadow .15s;
  }
  .otp-box.filled { border-color: var(--sun-deep); animation: digit-pop .25s cubic-bezier(.34,1.56,.64,1); }
  @keyframes digit-pop { from { transform: scale(.8); } }
  .otp-input:focus ~ .otp-box.active { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(250,204,62,.45); }
  .otp-input:focus ~ .otp-box.active:not(.filled)::after { content: ""; width: 2px; height: 26px; background: var(--ink); animation: caret 1s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .otp.err .otp-box { border-color: var(--red); }
  .sub .login-btn { width: 100%; margin-top: 14px; }
  .login-btn:disabled { opacity: .5; cursor: not-allowed; }
  .login-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .sub .active-pass { display: flex; align-items: center; gap: 8px; background: rgba(47,168,70,.12); color: #1D7A30; border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: 14px; }
  .who { justify-content: flex-start; }
  .who .grow { flex: 1; min-width: 0; }
  .logout { font-size: 13px; }
  .sub .logout-row { text-align: center; margin-top: 16px; max-width: none; }

  /* ---------- Plans & subscription ---------- */
  .plans .back-link { margin-bottom: -22px; }
  .plans .login-btn { width: 100%; margin-top: 14px; }
  /* fine print closing a card: fills the card and stays centred, rather than hugging
     the 44ch reading column that .sub p sets for body copy */
  .sub .fine-print { max-width: none; margin-inline: auto; text-align: center; }
  .offer { text-align: center; }
  .offer .perks, .offer .sum { text-align: start; }
  .offer-ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; background: var(--sun); display: grid; place-items: center; }
  .offer-ico svg { width: 44px; height: 44px; }
  .offer p { margin-inline: auto; }

  /* what you're agreeing to, before anything is charged */
  .sum { margin: 0 0 14px; }
  .sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-2); }
  .sum-row:last-child { border-bottom: 0; }
  .sum dt { font-size: 12.5px; font-weight: 800; color: var(--muted); }
  .sum dd { margin: 0; font-size: 14px; font-weight: 700; text-align: end; }
  .sum dd b { font-family: var(--display); font-weight: 400; font-size: 17px; }
  .done { text-align: center; }
  .done-ico { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 20px; background: var(--sun); display: grid; place-items: center; }
  .done-ico svg { width: 44px; height: 44px; }
  .done p { margin-inline: auto; }
  .done .perks { text-align: start; margin-top: 4px; }
  .done .edit-actions { margin-top: 4px; }

  /* the plan you're on */
  .status-pill {
    flex: none; align-self: flex-start; padding: 4px 11px 3px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; background: rgba(47,168,70,.16); color: #1D7A30; white-space: nowrap;
  }
  .status-pill.trial { background: rgba(250,204,62,.32); color: #7A5A05; }
  .status-pill.stopped, .status-pill.ended { background: rgba(219,36,23,.12); color: var(--red-deep); }
  .plan-state .who { margin-bottom: 14px; }
  .plan-state .avatar svg { width: 40px; height: 40px; }
  .pass-ico { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
  .pass-ico svg { width: 24px; height: 24px; }
  .sub .active-pass.ending { background: rgba(219,36,23,.1); color: var(--red-deep); }
  .plan-queued, .plan-warn {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin: 0 0 12px !important; padding: 10px 12px; border-radius: 12px;
    font-size: 13.5px !important; font-weight: 700 !important; max-width: none !important;
  }
  .plan-queued { background: rgba(124,196,242,.25); color: #1B5C87; }
  .plan-warn { background: rgba(219,36,23,.1); color: var(--red-deep); }
  .cancel-box {
    padding: 14px; border-radius: 16px; background: rgba(219,36,23,.07);
    box-shadow: inset 0 0 0 1.5px rgba(219,36,23,.25); animation: step-in .3s cubic-bezier(.2,.7,.2,1);
  }
  .cancel-box b { font-family: var(--display); font-weight: 400; font-size: 18px; }
  .cancel-box p { margin: 2px 0 10px !important; }
  .perks.small { margin-bottom: 0; }
  .perks.small li { font-size: 13px; }
  .perks.small li::before { width: 18px; height: 18px; font-size: 10px; }
  .btn-play.danger { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red), 0 3px 8px rgba(219,36,23,.15); }
  .btn-play.danger:hover { background: #FFF1EF; }
  .cancel-link { font-size: 13px; margin-inline-start: auto; align-self: center; }
  /* ---------- Subscribe band (home) ---------- */
  .sub-band {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(255,226,170,.92));
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1.5px solid var(--glass-line); border-radius: 20px; box-shadow: var(--lift);
  }
  .sb-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--sun); display: grid; place-items: center; box-shadow: inset 0 -3px 0 var(--sun-deep); }
  .sb-ico svg { width: 34px; height: 34px; }
  .sub-band .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .sub-band b { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.15; }
  .sub-band small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
  /* see plans on the start side, subscribe on the end side */
  .sb-actions { flex: none; display: flex; align-items: center; gap: 8px; }
  .sub-band .btn-play { font-size: 14px; padding: 10px 16px 8px; border-radius: 999px; }
  /* secondary action: outline only, same red family as Subscribe */
  .sub-band .chip {
    padding: 9px 14px 8px; font-size: 13px; border-radius: 999px; white-space: nowrap;
    background: transparent; color: var(--red); font-weight: 800;
    box-shadow: inset 0 0 0 2px var(--red);
  }
  .sub-band .chip:hover { background: rgba(219,36,23,.08); box-shadow: inset 0 0 0 2.5px var(--red); }
  @media (max-width: 559px) {
    .sub-band { flex-wrap: wrap; }
    .sub-band .txt { flex: 1 1 60%; }
    .sb-actions { flex: 1 1 100%; }
    .sub-band .chip, .sub-band .btn-play { flex: 1; justify-content: center; }
  }
  @media (min-width: 960px) {
    .sub-band { padding: 14px 16px; }
    .sub-band b { font-size: 20px; }
    .sub-band small { font-size: 13.5px; }
    .sub-band .btn-play { font-size: 16px; padding: 12px 22px 10px; }
    .sub-band .chip { font-size: 14px; padding: 11px 18px 10px; }
  }

  /* rows that aren't links: a toggle, or an action like stopping the subscription */
  .info-menu .im-row {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px;
    background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1.5px var(--paper-2); cursor: pointer;
    font-weight: 800; font-size: 15px; text-align: start; letter-spacing: 0; text-transform: none; margin: 0;
    transition: box-shadow .12s, transform .1s, background-color .12s;
  }
  .info-menu .im-row:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--sun); }
  .info-menu .im-row:active { transform: scale(.98); }
  .im-label small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
  .im-value { flex: none; font-size: 12.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
  .danger-row { color: var(--red); }
  .danger-row:hover { box-shadow: inset 0 0 0 2px var(--red) !important; background: #FFF6F5 !important; }
  .danger-row .im-chev { color: var(--red); }

  /* switch, drawn from a real checkbox so it stays keyboard-reachable */
  .info-menu .switch { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
  .switch-track {
    flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--paper-2);
    box-shadow: inset 0 0 0 1.5px rgba(34,26,22,.1); display: flex; align-items: center; padding: 3px;
    transition: background-color .2s;
  }
  .switch-track i { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(34,26,22,.3); transition: transform .2s cubic-bezier(.34,1.3,.64,1); }
  .switch:checked ~ .switch-track { background: var(--leaf); }
  .switch:checked ~ .switch-track i { transform: translateX(18px); }
  [dir="rtl"] .switch:checked ~ .switch-track i { transform: translateX(-18px); }
  .switch:focus-visible ~ .switch-track { outline: 3px solid var(--sun); outline-offset: 2px; }
  .info-menu li:has(.switch) { position: relative; }

  /* renewal reminder wears the same band, in a calmer colour */
  .sub-band.renewing { background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(124,196,242,.4)); }
  .sub-band.renewing .sb-ico { background: #7CC4F2; box-shadow: inset 0 -3px 0 #4E9FD1; }
  /* back from the subscription window without a subscription */
  .sub-band.waiting { background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(124,196,242,.4)); }
  .sub-band.waiting .sb-ico { background: #7CC4F2; box-shadow: inset 0 -3px 0 #4E9FD1; }
  .sub-band.missed { background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(246,165,160,.55)); }
  .sub-band.missed .sb-ico { background: #F6A5A0; box-shadow: inset 0 -3px 0 #C9635C; }
  .sub-band { position: relative; }
  .sb-x {
    position: absolute; top: 6px; inset-inline-end: 8px; width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: rgba(34,26,22,.08); color: var(--ink); font-size: 11px; line-height: 1; cursor: pointer;
  }
  .sb-x:hover { background: rgba(34,26,22,.16); }

  /* ---------- Subscribe pop-up ---------- */
  .modal {
    position: fixed; z-index: 51; inset-inline: 0; bottom: 0; margin-inline: auto;
    width: min(460px, 100%); max-height: 92vh; overflow: auto;
    padding: 30px 24px calc(26px + env(safe-area-inset-bottom, 0px));
    background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: var(--lift-lg);
    text-align: center; animation: sheet-in .3s cubic-bezier(.2,.7,.2,1) both;
  }
  @media (min-width: 600px) {
    .modal {
      bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 28px;
      padding: 34px 32px 30px; animation: pop-in .3s cubic-bezier(.34,1.3,.64,1) both;
    }
    @keyframes pop-in { from { opacity: 0; transform: translateY(calc(-50% + 18px)) scale(.96); } }
  }
  .modal-x {
    position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--paper-2); color: var(--ink); font-size: 14px; cursor: pointer; line-height: 1;
  }
  .modal-x:hover { background: var(--sun); }
  .modal-ico { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 20px; background: var(--sun); display: grid; place-items: center; }
  .modal-ico svg { width: 42px; height: 42px; }
  .modal h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.2; }
  .modal-sub { margin: 8px 0 22px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--muted); }
  .methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .method {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: start; cursor: pointer;
    padding: 16px; border: 0; border-radius: 18px; background: #fff;
    box-shadow: inset 0 0 0 2px var(--paper-2); transition: box-shadow .15s, transform .1s;
  }
  .method:hover { box-shadow: inset 0 0 0 2.5px var(--red), 0 6px 16px rgba(219,36,23,.15); }
  .method:active { transform: scale(.99); }
  .method-logo { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; }
  .method-logo svg { width: 30px; height: 30px; }
  .method-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .method-txt b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.2; }
  .method-txt small { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--muted); }
  .method-chev { width: 18px; height: 18px; flex: none; color: var(--muted); }
  /* the fine print gets room of its own, and a rule to sit under rather than crowd the method */
  .modal-fine {
    margin: 22px 0 0; padding-top: 18px; border-top: 1.5px solid var(--paper-2);
    font-size: 12.5px; font-weight: 600; line-height: 1.6; color: var(--muted); text-align: center;
  }
  .modal-cancel { margin-top: 20px; font-size: 14px; }
  .subscribe-btn svg { width: 22px; height: 22px; }

  /* app games on the detail page: covered by the plan, or not yet */
  .plan-gate {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px;
    padding: 10px 12px; border-radius: 14px; background: rgba(250,204,62,.2); box-shadow: inset 0 0 0 1.5px var(--sun);
  }
  .pg-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; }
  .pg-ico svg { width: 30px; height: 30px; }
  .pg-txt { flex: 1; min-width: 150px; font-size: 13.5px; font-weight: 800; }
  .plan-gate .btn-play { font-size: 13px; padding: 9px 13px 7px; border-radius: 999px; }
  .plan-ok { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; font-size: 13.5px; font-weight: 800; color: #1D7A30; }
  .plan-ok svg { width: 22px; height: 22px; flex: none; }

  /* ---------- Back to top ---------- */
  .to-top {
    position: fixed; inset-inline-end: 16px; z-index: 25;
    bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom, 0px));
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center;
    background: var(--sun); color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--sun-deep), var(--lift-lg);
    opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none;
    transition: opacity .25s, transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .to-top.on { opacity: 1; transform: none; pointer-events: auto; }
  .to-top svg { width: 22px; height: 22px; }

  /* ---------- Scroll reveal ---------- */
  .reveal:not([data-in]) { opacity: 0; }
  .reveal[data-in] { animation: rise .7s cubic-bezier(.34,1.3,.64,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.95); } }

  @media (hover: hover) {
    .gcard:hover { transform: translateY(-5px); box-shadow: var(--lift-lg); }
    .gcard:hover .thumb img { transform: scale(1.07); }
    .tcard:hover .banner img { transform: scale(1.04); }
    .tcard .banner img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  }

  /* ---------- Search trigger ---------- */
  .icon-btn {
    width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(255,247,232,.14); color: var(--paper);
    transition: background-color .15s, transform .1s;
  }
  .icon-btn:hover { background: rgba(255,247,232,.24); }
  .icon-btn:active { transform: scale(.94); }
  .icon-btn svg { width: 22px; height: 22px; }
  .search-btn {
    width: 100%; height: 46px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 8px; padding-block: 0; padding-inline: 44px 12px;
    background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    outline: 1.5px solid var(--glass-line); outline-offset: -1.5px; box-shadow: var(--lift);
    font-size: 16px; font-weight: 500; color: var(--muted);
    transition: box-shadow .15s, background-color .15s;
  }
  .search-btn svg { top: 50%; transform: translateY(-50%); }
  .search-btn:hover { background: #fff; box-shadow: 0 0 0 3px var(--sun), var(--lift); }
  .search-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  kbd {
    display: none; font: 800 12px/1 var(--body); color: var(--muted);
    border: 1.5px solid var(--paper-2); border-bottom-width: 3px; border-radius: 7px; padding: 4px 7px 2px; background: #fff;
  }

  /* ---------- Search sheet ---------- */
  .sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(34,26,22,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s both; }
  .sheet {
    position: fixed; inset: 0; z-index: 51; display: flex; flex-direction: column;
    background: var(--paper); animation: sheet-in .3s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes fade { from { opacity: 0; } }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
  .sheet-bar {
    display: flex; align-items: center; gap: 8px; flex: none;
    padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 10px 10px;
    background: var(--ink);
  }
  .sheet-bar .search { flex: 1; min-width: 0; }
  .sheet-bar .search input { background: #fff; box-shadow: none; outline: 0; padding-inline-end: 42px; }
  .sheet-bar .search input::-webkit-search-cancel-button { display: none; }
  .clear-btn {
    position: absolute; inset-inline-end: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: var(--paper-2); font-size: 12px; font-weight: 800;
  }
  .sheet-body {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 26px;
  }
  .sheet-sec { display: flex; flex-direction: column; gap: 10px; }
  .sheet-sec h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sheet-sec h3 .link-btn { font-family: var(--body); font-size: 13px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
    padding: 8px 13px 7px; border-radius: 999px; background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--paper-2), 0 2px 6px rgba(34,26,22,.06);
    font-weight: 700; font-size: 14px; line-height: 1.1; color: var(--ink);
    transition: box-shadow .12s, transform .1s, background-color .12s;
  }
  .chip:hover { box-shadow: inset 0 0 0 2px var(--sun), 0 3px 10px rgba(34,26,22,.1); }
  .chip:active { transform: scale(.96); }
  .chip svg { width: 22px; height: 22px; margin: -3px 0; }
  .filters { display: flex; gap: 8px; position: sticky; top: -18px; z-index: 1; margin: -18px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) 10px; background: var(--paper); }
  .filter .count { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
  .filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
  .filters + .sheet-sec { margin-top: -14px; }
  .sheet-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
  .recent { list-style: none; margin: 0; padding: 0; }
  .recent li { display: flex; align-items: center; }
  .recent li + li { border-top: 1px solid var(--paper-2); }
  .recent-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 2px; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 15px; text-align: left; }
  .recent-go svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
  .recent-x { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 800; border-radius: 50%; }
  .recent-x:hover { background: var(--paper-2); }
  .slist { list-style: none; margin: 0; padding: 0; }
  .srow { display: flex; align-items: center; gap: 10px; padding: 9px 0; animation: sheet-in .32s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 25ms); }
  .srow + .srow { border-top: 1px solid var(--paper-2); }
  .srow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border-radius: 12px; }
  .srow img { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; flex: none; background: var(--paper-2); box-shadow: 0 2px 6px rgba(34,26,22,.15); }
  .srow .txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .srow b { font-weight: 800; font-size: 15.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .srow mark { background: rgba(250,204,62,.6); color: inherit; border-radius: 4px; padding: 0 1px; }
  .srow small { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .srow .star { color: var(--sun-deep); font-weight: 800; }
  .badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--leaf); border-radius: 6px; padding: 2px 6px 1px; }
  .srow .btn-play { font-size: 13px; padding: 9px 13px 8px; border-radius: 999px; }
  .no-hits { align-items: center; text-align: center; padding-top: 24px; }
  .no-hits .gi { width: 60px; height: 60px; border-radius: 18px; background: var(--paper-2); display: grid; place-items: center; }
  .no-hits .gi svg { width: 30px; height: 30px; }
  .no-hits p { margin: 0; font-weight: 600; color: var(--muted); }
  .no-hits .chips { justify-content: center; }
  @media (hover: hover) {
    .srow-main:hover b { color: var(--red); }
    .srow-main:hover img { transform: scale(1.05); }
    .srow img { transition: transform .2s; }
  }
  @media (min-width: 960px) {
    kbd { display: inline-block; }
    .sheet {
      inset: 84px 0 auto; margin-inline: auto; width: min(720px, calc(100% - 48px));
      max-height: calc(100vh - 120px); border-radius: 24px; overflow: hidden;
      box-shadow: 0 24px 60px rgba(34,26,22,.35);
    }
    .sheet-bar { padding: 12px 14px; }
  }

  /* ---------- Motion layer ---------- */
  @keyframes drop-in { from { opacity: 0; transform: translateY(-18px) scale(.8); } }
  .brand:hover img { animation: wiggle .5s ease; }
  @keyframes wiggle { 25% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }

  /* page switch */
  .view:not([hidden]) { animation: view-in .5s cubic-bezier(.2,.7,.2,1); }
  @keyframes view-in { from { opacity: 0; transform: translateY(16px); } }

  /* falling petals over the painting */
  .petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .petals i {
    position: absolute; top: -40px; left: var(--x);
    animation: fall var(--d) linear var(--delay) infinite;
  }
  .petals i::before {
    content: ""; display: block; width: var(--s); height: calc(var(--s) * .8);
    background: linear-gradient(135deg, #FFC2BD, #F07F86);
    border-radius: 80% 0 80% 0; opacity: .85; box-shadow: 0 2px 4px rgba(160,40,60,.15);
    animation: sway calc(var(--d) / 3) ease-in-out var(--delay) infinite alternate;
  }
  @keyframes fall { to { transform: translate3d(var(--drift), 110vh, 0); } }
  @keyframes sway { from { transform: translateX(-18px) rotate(-30deg); } to { transform: translateX(18px) rotate(160deg); } }

  /* tactile press */
  .gcard:active, .rp-card:active, .resume:active, .guest:active, .srow:active { transform: scale(.97); transition-duration: .08s; }

  /* shine sweep on play buttons */
  .btn-play { position: relative; overflow: hidden; isolation: isolate; }
  .btn-play::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
    transform: translateX(-130%);
  }
  .btn-play:hover::after { animation: shine .75s ease; }
  .dplay::after, .resume .btn-play::after, .tcard.on .btn-play::after { animation: shine 3.2s ease-in-out 1s infinite; }
  @keyframes shine { 0% { transform: translateX(-130%); } 25%, 100% { transform: translateX(130%); } }

  /* nav + category selection pops */
  .tab[aria-current="page"] .ic { animation: tab-pop .5s cubic-bezier(.34,1.56,.64,1); }
  .tab[aria-current="page"] svg { animation: wiggle .5s ease .15s; }
  @keyframes tab-pop { from { transform: scale(.5); } }
  .cat[aria-selected="true"] { animation: cat-pop .45s cubic-bezier(.34,1.56,.64,1); }
  @keyframes cat-pop { 0% { transform: scale(.9); } 60% { transform: translateY(-5px) scale(1.05); } 100% { transform: translateY(-2px); } }

  /* trending: slow zoom + badge pop on the active slide */
  .tcard.on .banner img { animation: kenburns 7s ease-out both; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
  .tcard.on .rank { animation: badge-pop .55s cubic-bezier(.34,1.56,.64,1); }
  @keyframes badge-pop { 0% { transform: scale(.4) rotate(-20deg); } }
  .live { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 3px 16px rgba(219,36,23,.6); } }

  /* section titles: the highlighted word bounces in */
  .title .hot { display: inline-block; }
  .head[data-in] .hot { animation: hot-pop .7s cubic-bezier(.34,1.56,.64,1) .15s backwards; }
  @keyframes hot-pop { from { opacity: 0; transform: translateY(12px) scale(.6) rotate(-8deg); } }

  /* little characters that move */
  .guest .gi svg, .avatar svg { animation: bob 2.6s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
  .empty-state .gi { animation: bob 3s ease-in-out infinite; }

  /* rotating search hint */
  .search-btn .hint-text { animation: hint-in .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes hint-in { from { opacity: 0; transform: translateY(10px); } }

  /* welcome-back confetti */
  .welcome { overflow: hidden; }
  .confetti { position: absolute; inset: 0; pointer-events: none; }
  .confetti i {
    position: absolute; left: 40px; top: 36px; width: 8px; height: 12px; border-radius: 2px;
    background: var(--c); opacity: 0;
    animation: burst 1.3s cubic-bezier(.2,.7,.3,1) var(--delay) forwards;
  }
  @keyframes burst {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); }
  }

  /* ---------- Language ---------- */
  .top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .lang { position: relative; flex: none; }
  .lang-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px;
    border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,247,232,.14); color: var(--paper);
    font: 800 12.5px/1 var(--body); letter-spacing: .04em; transition: background-color .15s, transform .1s;
  }
  .lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,247,232,.26); }
  .lang-btn:active { transform: scale(.95); }
  .lang-btn .chev { width: 12px; height: 12px; opacity: .8; transition: transform .2s; }
  .lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); background: var(--paper-2); }
  .lang-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
    width: 280px; max-height: min(440px, 70vh); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 10px; list-style: none; display: grid; gap: 4px; scroll-padding-block: 10px;
    background: var(--paper); border-radius: 16px; box-shadow: 0 16px 40px rgba(34,26,22,.35), 0 0 0 1px rgba(34,26,22,.06);
    transform-origin: top right; animation: menu-in .18s cubic-bezier(.2,.7,.2,1);
  }
  [dir="rtl"] .lang-menu { transform-origin: top left; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
  .lang-opt {
    width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 0; border-radius: 12px;
    background: none; cursor: pointer; text-align: start; color: var(--ink);
  }
  .lang-opt:hover { background: var(--paper-2); }
  [aria-selected="true"] > .lang-opt { background: #FFE9E6; }
  .lang-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .lang-names b { font-size: 14.5px; font-weight: 800; line-height: 1.25; }
  .lang-names small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .lang-check { width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
  /* on the narrowest phones the partner lockup gives way to the Subscribe button */
  @media (max-width: 479px) { .partner { display: none; } }
  /* phones: the wider gutter leaves less header room, so the language button shows just the flag */
  @media (max-width: 599px) {
    .lang-btn { padding: 0 9px; gap: 0; }
    .lang-btn > span, .lang-btn .chev { display: none; }
    .partner small { display: none; }
    .partner { padding-inline: 10px; }
  }

  /* right-to-left scripts (Arabic, Urdu, Persian) */
  [dir="rtl"] .flip svg, [dir="rtl"] .icon-btn.flip svg { transform: scaleX(-1); }
  [dir="rtl"] .to-top { inset-inline-end: 16px; }
  [dir="rtl"] .title { letter-spacing: 0; }

  @media (prefers-reduced-motion: reduce) {
    .petals { display: none; }
    .reveal:not([data-in]) { opacity: 1; }
    .world { transform: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
