/* Retention layer: notification bell, daily-bonus streak, free refill, onboarding + welcome case,
   the phone tab bar / games sheet, case-page trust signals (RTP, recent drops) and the "hot right now" row. */

:root { --tabbar-h: 60px; }

/* ------------------------------------------------------------------ header: notification bell */
.notif { position: relative; flex: none; }
.notif-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line2); color: var(--muted); cursor: pointer;
  transition: color .15s, border-color .15s;
}
.notif-btn:hover, .notif-btn[aria-expanded="true"], .notif-btn.has-unread { color: var(--text); }
.notif-btn:hover, .notif-btn[aria-expanded="true"] { border-color: var(--dim); }
.notif-btn.has-unread svg { transform-origin: 50% 8%; animation: rtBell 3.2s ease-in-out infinite; }
@keyframes rtBell {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(14deg); }
  90% { transform: rotate(-12deg); }
  94% { transform: rotate(7deg); }
}
.notif-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; pointer-events: none;
}
.notif-badge[hidden] { display: none; }
/* the bell needs room: between the full nav (1181px+) and 1400px the account chip shows only the avatar */
@media (min-width: 1181px) and (max-width: 1400px) {
  .userchip .uname { display: none; }
  .topbar-inner { gap: 18px; }
  .nav > a, .nav-trigger { padding-left: 11px; padding-right: 11px; }
}
/* phones / small tablets: icon-only logo leaves room for balance, bell and account */
@media (max-width: 780px) {
  .logo span { display: none; }
}
@media (max-width: 480px) {
  .topbar-inner { gap: 8px; }
  .topbar-right { gap: 6px; }
  .userchip { gap: 6px; padding: 0 6px 0 4px; }
  .userchip .chev { display: none; }
}

.notif .notif-panel { width: 360px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif .notif-panel:not(.open) { display: none; }
.notif .notif-panel.open { animation: menuIn .14s ease-out; }
.notif-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line2); }
.notif-head b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .02em; }
.notif-head .muted { font-size: 12px; }
.notif-list { list-style: none; margin: 0; padding: 6px; max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.notif-panel .notif-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border-radius: 10px;
  color: var(--text); font-weight: 400; text-align: left;
}
.notif-panel a.notif-item:hover, .notif-panel a.notif-item:focus-visible { background: var(--panel3); color: var(--text); }
.notif-item.unread { background: rgba(239, 59, 59, .07); }
.notif-icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px;
  background: var(--bg2); border: 1px solid var(--line2);
}
.notif-item.unread .notif-icon { border-color: rgba(239, 59, 59, .4); }
.notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.notif-text b { font-weight: 700; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.notif-text > span { font-size: 12.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.notif-text small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.notif-new {
  padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; line-height: 16px;
}
.notif-amt { flex: none; align-self: center; font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.notif-amt.up { color: var(--gold); }
.notif-empty { padding: 26px 18px 28px; text-align: center; color: var(--muted); font-size: 13.5px; }
.notif-empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ------------------------------------------------------------------ header: daily bonus button */
.bonus-btn:not(.ready) { filter: saturate(.5) brightness(.82); }
.bonus-btn:not(.ready):hover { filter: saturate(.8) brightness(.95); }
.bonus-btn.ready { animation: rtBonusGlow 2.4s ease-in-out infinite; }
@keyframes rtBonusGlow { 50% { box-shadow: 0 0 0 3px rgba(228, 174, 57, .22), 0 0 16px rgba(228, 174, 57, .55); } }
.bonus-streak { display: inline-flex; align-items: center; gap: 1px; margin-left: 1px; font-weight: 800; font-size: 11.5px; }
.bonus-streak[hidden] { display: none; }
.bonus-streak svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ daily bonus dialog: streak strip */
.modal.bonus-dlg { max-width: 560px; }
.bonus-claimed {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 12px 0 2px; padding: 12px;
  border-radius: 12px; text-align: center; border: 1px solid rgba(228, 174, 57, .4);
  background: radial-gradient(90% 120% at 50% 0%, rgba(228, 174, 57, .22), transparent 70%), var(--bg2);
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.4);
}
.bonus-claimed b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--gold); }
.bonus-claimed span { font-size: 13px; color: var(--muted); }
.streak-status { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; }
.streak-flame { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--panel3); color: var(--dim); }
.streak-flame svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.streak-flame.hot {
  color: #fb923c; background: linear-gradient(180deg, rgba(249, 115, 22, .3), rgba(239, 59, 59, .12));
  box-shadow: 0 0 20px -4px rgba(249, 115, 22, .6);
}
.streak-status b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.streak-status small { display: block; font-size: 12.5px; color: var(--muted); }
.streak-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak-day {
  position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px;
  border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); text-align: center;
}
.sd-day { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sd-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); color: var(--dim); }
.sd-amt { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-mult { font-size: 11px; font-weight: 700; color: var(--dim); }
.streak-day:last-child .sd-mult { color: var(--gold); }
.streak-day.done { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .06); }
.streak-day.done .sd-icon { background: rgba(52, 211, 153, .18); color: var(--green); }
.streak-day.today {
  border-color: var(--gold); background: rgba(228, 174, 57, .1);
  box-shadow: 0 0 0 1px rgba(228, 174, 57, .4), 0 8px 22px -12px rgba(228, 174, 57, .8);
}
.streak-day.today .sd-icon { background: linear-gradient(180deg, #f3c55a, var(--gold)); color: #231703; }
.streak-day.today .sd-mult { color: var(--gold); }
.streak-day.pop .sd-icon { animation: rtPop .6s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes rtPop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bonus-foot { display: flex; justify-content: center; margin-top: 14px; }
.bonus-foot .btn { width: 100%; }
.bonus-next { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.bonus-next b { color: var(--text); font-variant-numeric: tabular-nums; }
.bonus-rules { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ free refill (bar under the header + card in the bonus dialog) */
.refillbar {
  border-bottom: 1px solid rgba(228, 174, 57, .3);
  background: linear-gradient(90deg, rgba(228, 174, 57, .15), rgba(239, 59, 59, .07) 60%, transparent), var(--bg2);
}
.refill-card { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.refillbar .refill-card { min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.refill-icon { flex: none; display: grid; }
.refill-icon .coin { width: 26px; height: 26px; filter: drop-shadow(0 3px 8px rgba(228, 174, 57, .45)); }
.refill-text { flex: 1 1 220px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.refill-text b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--gold); }
.refill-text span { font-size: 13.5px; color: var(--muted); }
.refill-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.refill-wait { font-size: 13px; color: var(--muted); }
.refill-wait b { color: var(--text); font-variant-numeric: tabular-nums; }
.bonus-body .refill-card { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(228, 174, 57, .08); border: 1px solid rgba(228, 174, 57, .3); }

/* ------------------------------------------------------------------ onboarding tour + welcome case */
.modal.onb-dlg { max-width: 600px; }
.onb-head { text-align: center; margin-bottom: 14px; }
.onb-kicker {
  display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 99px; background: rgba(228, 174, 57, .14);
  color: var(--gold); font: 11px/1.6 var(--display); letter-spacing: .2em; text-transform: uppercase;
}
.onb-head h2 { font-size: 23px; margin: 0 28px 6px; overflow-wrap: anywhere; }
.onb-head p { margin: 0; font-size: 14px; }
.onb-head p .coin { vertical-align: -0.14em; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onb-step {
  display: flex; gap: 12px; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2);
  transition: border-color .2s, background .2s, opacity .2s;
}
.onb-step.current { border-color: rgba(239, 59, 59, .45); background: linear-gradient(180deg, rgba(239, 59, 59, .07), transparent 70%), var(--bg2); }
.onb-step:not(.current):not(.done) { opacity: .78; }
.onb-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 14px; background: var(--panel3); color: var(--muted);
}
.onb-num svg { display: none; }
.onb-step.current .onb-num { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(239, 59, 59, .18); }
.onb-step.done .onb-num { background: rgba(52, 211, 153, .18); color: var(--green); }
.onb-step.done .onb-num span { display: none; }
.onb-step.done .onb-num svg { display: block; }
.onb-body { flex: 1; min-width: 0; }
.onb-body h3 { font-size: 16px; margin: 4px 0 2px; }
.onb-body p { margin: 0; font-size: 13.5px; }
[data-onb-reel] { margin-top: 10px; }
.onb-result { display: flex; justify-content: center; margin-top: 10px; }
.onb-result:empty { display: none; }
.onb-result .item { width: 180px; animation: pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.onb-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.onb-actions:empty { display: none; }
.onb-done { color: var(--green); font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.onb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.onb-guest {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; background: rgba(228, 174, 57, .08); border: 1px solid rgba(228, 174, 57, .3);
}
.onb-guest span { flex: 1 1 220px; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ------------------------------------------------------------------ cases page: welcome card + hot right now */
.welcome-card {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 22px; padding: 14px 18px; border-radius: 14px;
  border: 1px solid rgba(228, 174, 57, .45); box-shadow: 0 10px 30px -18px rgba(228, 174, 57, .7);
  background: radial-gradient(420px 150px at 0% 50%, rgba(228, 174, 57, .2), transparent 70%), linear-gradient(120deg, #2a1e0b, #16100f 70%);
}
.wc-gift { font-size: 32px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(228, 174, 57, .5)); animation: rtFloat 3s ease-in-out infinite; }
@keyframes rtFloat { 50% { transform: translateY(-4px) rotate(-4deg); } }
.wc-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wc-text b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--gold); }
.wc-text span { font-size: 13.5px; color: var(--muted); }

.hot-flame { display: inline-flex; color: #fb923c; }
.hot-flame svg { width: 20px; height: 20px; }
.hot-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 12px;
  overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.hot-row .case-card { min-width: 0; scroll-snap-align: start; padding-top: 38px; } /* room for the badge above the picture */
.hot-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap;
  color: #fdba74; background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .35);
}
.hot-badge.top { color: #fff; background: linear-gradient(90deg, #f97316, var(--accent)); border-color: transparent; }
.hot-badge svg { width: 12px; height: 12px; flex: none; }

/* ------------------------------------------------------------------ case page: RTP badge + recent drops */
.rtp-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; cursor: help;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--green); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3);
}
.rtp-badge.plus { color: var(--gold); background: rgba(228, 174, 57, .14); border-color: rgba(228, 174, 57, .4); }
.case-recent { margin-bottom: 6px; }
.case-recent .section-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.case-recent .live-dot { margin: 0; }
.recent-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px;
  overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.recent-strip:has(> .rd-empty) { display: block; }
.rd-drop {
  --c: #b0c3d9; position: relative; overflow: hidden; min-width: 0; padding: 10px 10px 9px; border-radius: 12px;
  border: 1px solid var(--line); scroll-snap-align: start;
  background: var(--panel);
  background: radial-gradient(110% 80% at 50% 100%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%), var(--panel);
}
.rd-drop::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.rd-drop.fresh { animation: rtDropIn .5s cubic-bezier(.2, .9, .3, 1.3) backwards; }
@keyframes rtDropIn { from { transform: translateX(-24px) scale(.9); opacity: 0; } }
.rd-tag { position: absolute; top: 7px; left: 9px; font-size: 10px; font-weight: 700; color: var(--muted); }
.rd-tag.st { color: #cf6a32; }
.rd-ago { position: absolute; top: 7px; right: 9px; font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.rd-img { aspect-ratio: 4 / 3; display: grid; place-items: center; margin: 8px 0 4px; }
.rd-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.rd-weapon, .rd-skin { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-weapon { font-size: 11.5px; color: var(--muted); }
.rd-skin { font-size: 13px; font-weight: 600; }
.rd-price { margin-top: 4px; font-size: 14px; }
.rd-user { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; font-size: 12px; }
.rd-user .avatar { width: 20px; height: 20px; min-width: 20px; font-size: 10px; }
.rd-user a { min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-user a:hover { color: var(--accent-hi); }
.rd-empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }

/* ------------------------------------------------------------------ keyboard focus */
.notif-btn:focus-visible, .tabbar a:focus-visible, .tabbar button:focus-visible, .sheet-grid a:focus-visible,
.rd-user a:focus-visible, .notif-panel .notif-item:focus-visible {
  outline: 2px solid var(--accent-hi); outline-offset: 2px;
}

/* ------------------------------------------------------------------ phones: bottom tab bar + games sheet */
.tabbar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: rgba(17, 13, 14, .94); border-top: 1px solid var(--line2);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
  }
  .tabbar > a, .tabbar > button {
    position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 6px 2px; border: 0; background: none; color: var(--muted); cursor: pointer;
    font: 600 11px/1.1 var(--font); letter-spacing: .01em; -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg {
    width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .15s;
  }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar > a:hover, .tabbar > button:hover { color: var(--text); }
  .tabbar .active { color: var(--accent-hi); }
  .tabbar .active::before {
    content: ''; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--accent); box-shadow: 0 0 12px var(--accent);
  }
  .tabbar > :active svg { transform: scale(.88); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline-offset: -4px; border-radius: 12px; }

  /* keyboard open (text field focused) or chat panel open: the bar steps aside */
  body.kb-open, body.chat-open { padding-bottom: 0; }
  body.kb-open .tabbar, body.chat-open .tabbar { display: none; }

  /* the burger menu keeps only what the tab bar doesn't have */
  .nav > a[data-nav="cases"], .nav > a[data-nav="battles"], .nav > a[data-nav="rewards"], .nav-group[data-group="games"] { display: none; }

  /* other fixed bottom UI sits above the bar */
  #toasts { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
  .chat-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
  .contracts-mbar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  body.kb-open #toasts { bottom: 12px; }
  body.kb-open .chat-fab { bottom: 14px; }
  body.kb-open .contracts-mbar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

.modal-back.sheet-back { place-items: end center; padding: 0; }
.modal.sheet {
  max-width: 720px; max-height: 85vh; border-radius: 20px 20px 0 0; border-bottom: 0;
  padding: 24px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  animation: rtSheetUp .28s cubic-bezier(.2, .9, .3, 1);
}
.modal.sheet::before {
  content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line2);
}
@keyframes rtSheetUp { from { transform: translateY(100%); } }
.sheet-title { font-size: 19px; margin-bottom: 12px; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sheet-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 86px;
  padding: 12px 6px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2);
  color: var(--text); font-weight: 600; font-size: 13.5px; text-align: center; overflow-wrap: anywhere;
}
.sheet-grid a:hover { border-color: var(--dim); color: var(--text); }
.sheet-grid a.active { border-color: var(--accent); background: rgba(239, 59, 59, .1); color: var(--accent-hi); }
.sheet-grid svg {
  width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent-hi);
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 640px) {
  .bonus-streak { display: none !important; }
  .hot-row { grid-auto-columns: 142px; gap: 10px; }
  .recent-strip { grid-auto-columns: 132px; }
}
@media (max-width: 560px) {
  /* the bell panel spans the screen instead of hanging off its left edge */
  .notif .notif-panel { position: fixed; top: 70px; left: 8px; right: 8px; width: auto; max-width: none; }
}
@media (max-width: 480px) {
  .modal.bonus-dlg, .modal.onb-dlg { padding: 22px 14px 18px; }
  .streak-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .onb-step { padding: 10px; gap: 10px; }
  .onb-head h2 { font-size: 20px; }
  .onb-foot .btn { flex: 1 1 100%; }
  .onb-result .item { width: 150px; }
  .welcome-card { padding: 14px; }
  .welcome-card .btn { width: 100%; }
}
@media (max-width: 400px) {
  .notif-btn { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-btn.ready, .notif-btn.has-unread svg, .wc-gift, .streak-day.pop .sd-icon, .rd-drop.fresh,
  .bonus-claimed, .modal.sheet, .notif .notif-panel.open { animation: none !important; }
  .tabbar svg { transition: none; }
}
