/* === Feed + Shop + Gamification styles === */

/* ===== PAGE HOST + transitions ===== */
.page-host {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.page-host.pt-out { animation: pageOut 0.32s cubic-bezier(.55,0,.67,1) forwards; }
.page-host.pt-in  { animation: pageIn  0.55s cubic-bezier(.2,.7,.3,1) both; }
@keyframes pageOut {
  0%   { opacity: 1; transform: translateY(0)    scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-14px) scale(0.98); filter: blur(3px); }
}
@keyframes pageIn {
  0%   { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

/* ===== NAV PILL ===== */
.nav-pill {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 6px;
  border-radius: 999px;
  box-shadow:
    0 14px 36px -12px rgba(31, 58, 68, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.nav-tab {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-width: 110px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #5a767e;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  transition: color 0.25s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-tab svg {
  flex-shrink: 0;
  display: block;
}
.nav-tab:hover { color: #1f3a44; }
.nav-tab.active { color: #fff; }
.nav-thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 0;
  background: linear-gradient(135deg, #7BC4D4, #5fb0c2);
  border-radius: 999px;
  box-shadow: 0 6px 18px -4px rgba(123,196,212,0.7);
  z-index: 1;
  transition: left 0.45s cubic-bezier(.4, 1.4, .5, 1),
              width 0.45s cubic-bezier(.4, 1.4, .5, 1),
              opacity 0.2s ease;
}

/* ===== POINTS PILL ===== */
.points-pill {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fffbe5, #fff5d6);
  border: 2px solid #f0d168;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 12px 28px -10px rgba(180, 130, 20, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pointsBump 0.6s cubic-bezier(.34, 1.56, .64, 1);
}
.points-pill:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(180, 130, 20, 0.55); }
.points-coin {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f7c948, #d99b14);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(160,111,10,0.4);
  animation: coinSpin 4s linear infinite;
}
@keyframes coinSpin {
  0%, 88%, 100% { transform: rotateY(0); }
  92% { transform: rotateY(180deg); }
  96% { transform: rotateY(360deg); }
}
.points-value {
  font-size: 20px;
  font-weight: 900;
  color: #7a4d05;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}
.points-label {
  font-size: 10px;
  font-weight: 800;
  color: #a06f0a;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@keyframes pointsBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  60%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* Hide the old standalone .brand element — nav now handles it */
.brand { display: none; }

/* ===== TOAST RAIL ===== */
.toast-rail {
  position: fixed;
  top: 80px;
  right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 36px -12px rgba(31, 58, 68, 0.3);
  border: 2px solid #eee;
  animation: toastIn 0.5s cubic-bezier(.34,1.56,.64,1), toastOut 0.4s ease 1.8s forwards;
  white-space: nowrap;
}
.toast-gain { color: #1c8a4a; border-color: #c5edd2; background: linear-gradient(135deg, #ecfaf0, #fff); }
.toast-spend { color: #9b6310; border-color: #f5e0a8; background: linear-gradient(135deg, #fff8e1, #fff); }
.toast-redeem { color: #4ea0b3; border-color: #c5e4ec; background: linear-gradient(135deg, #ecf6f9, #fff); }
@keyframes toastIn {
  0%   { opacity: 0; transform: translateX(60px) scale(0.85); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  0%   { opacity: 1; transform: translateX(0) translateY(0); }
  100% { opacity: 0; transform: translateX(20px) translateY(-30px); }
}

/* ===== FEED PAGE ===== */
.feed-page {
  position: absolute;
  inset: 0;
}
.feed-header {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  width: 90vw;
  max-width: 760px;
  pointer-events: none;
  animation: feedHeaderIn 0.7s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes feedHeaderIn {
  0%   { opacity: 0; transform: translate(-50%, -10px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}
.feed-header h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  color: #1f3a44;
  text-shadow: 0 2px 12px rgba(255,255,255,0.7);
}
.feed-h-sub {
  font-weight: 700;
  font-size: 0.62em;
  color: #4a6770;
  margin-left: 6px;
}
.feed-filters {
  margin-top: 12px;
  display: inline-flex;
  gap: 4px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 10px 24px -12px rgba(31,58,68,0.2);
  pointer-events: auto;
}
.feed-filter {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #5a767e;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.feed-filter:hover { color: #1f3a44; }
.feed-filter.active {
  background: linear-gradient(135deg, #7BC4D4, #5fb0c2);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(123,196,212,0.6);
}

/* Altitude scale */
.altitude-scale {
  position: absolute;
  left: 18px;
  top: 180px;
  bottom: 40px;
  width: 50px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.alt-tick { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.alt-num {
  font-size: 11px; font-weight: 900; color: #1f3a44;
  background: rgba(255,255,255,0.7); padding: 2px 6px; border-radius: 6px;
}
.alt-line { width: 2px; height: 18px; background: linear-gradient(180deg, rgba(31,58,68,0.4), transparent); }
.alt-tick-bot .alt-line { background: linear-gradient(180deg, transparent, rgba(31,58,68,0.4)); }
.alt-label { font-size: 9px; font-weight: 800; color: #5a767e; letter-spacing: 0.18em; text-transform: uppercase; }

.feed-stage { position: absolute; inset: 180px 80px 40px 80px; z-index: 3; }

/* Idea cloud */
.idea-cloud-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: cloudDrift ease-in-out infinite alternate;
  will-change: transform;
  filter: drop-shadow(0 18px 30px rgba(31, 58, 68, 0.18));
}
@keyframes cloudDrift {
  0%   { transform: translate(calc(-50% - 30px), -50%); }
  100% { transform: translate(calc(-50% + 30px), -50%); }
}
.idea-cloud-bob { animation: cloudBob ease-in-out infinite; will-change: transform; }
@keyframes cloudBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.idea-cloud {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  animation: cloudIn 0.7s cubic-bezier(.34,1.56,.64,1) both;
  transition: transform 0.3s;
}
.idea-cloud:hover { transform: scale(1.04); z-index: 10; }
.idea-cloud:hover .idea-card { box-shadow: 0 24px 50px -16px rgba(31, 58, 68, 0.28), inset 0 1px 0 rgba(255,255,255,0.95); }

/* Cloud halo behind the card — large soft cloud shape */
.idea-cloud-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}
.idea-cloud-halo svg { overflow: visible; }

/* The readable card sitting on top of the cloud */
.idea-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,252,254,0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 14px 16px 12px;
  border: 1.5px solid rgba(255,255,255,0.95);
  box-shadow:
    0 14px 30px -12px rgba(31, 58, 68, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.3s;
  min-height: 120px;
}
@keyframes cloudIn {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.idea-cloud-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.idea-cloud-bg svg { width: 100%; height: 100%; overflow: visible; }
.idea-cloud-content {
  position: relative;
  z-index: 2;
  padding: 16% 14% 14%;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.idea-trophy {
  position: absolute;
  top: -16px;
  right: -10px;
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(160,111,10,0.5));
  animation: trophyShine 3s ease-in-out infinite;
  z-index: 3;
  line-height: 1;
}
@keyframes trophyShine {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.1); }
}
.idea-meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.idea-pill {
  font-size: 9px; font-weight: 900;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: #7BC4D4; color: #fff; line-height: 1.2;
}
.idea-pill-interna { background: #7BC4D4; }
.idea-pill-externa { background: #f7a04a; }
.idea-nucleo {
  font-size: 10px; font-weight: 800; color: #4a6770;
  background: rgba(255,255,255,0.7);
  padding: 3px 8px; border-radius: 999px;
}
.idea-title {
  font-size: 15px;
  font-weight: 900; color: #1f3a44; line-height: 1.25;
  margin-top: 2px;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.idea-desc {
  font-size: 12px;
  color: #4a6770; line-height: 1.4; font-weight: 600;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.idea-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(123,196,212,0.3);
}
.idea-author {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; color: #1f3a44;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #7BC4D4, #5fb0c2);
  color: #fff; font-weight: 900; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Like button */
.like-btn {
  position: relative;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid #e0eef2;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  color: #7a98a0;
  display: flex; align-items: center; gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
}
.like-btn:hover { transform: translateY(-2px); border-color: #e3576b; color: #e3576b; }
.like-btn.liked {
  background: linear-gradient(135deg, #ffe8ed, #fff);
  border-color: #e3576b; color: #e3576b;
  animation: likeHit 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes likeHit {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.like-btn.liked svg { animation: heartBeat 0.6s; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.5); }
  60%      { transform: scale(0.9); }
}
.like-count { font-variant-numeric: tabular-nums; }

.like-burst {
  position: absolute;
  left: 50%; top: 50%;
  color: #e3576b;
  pointer-events: none;
  opacity: 0;
  animation: heartBurst 0.9s cubic-bezier(.34,1.56,.64,1);
  animation-delay: var(--delay, 0ms);
}
@keyframes heartBurst {
  0%   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(0)   scale(0.3); }
  60%  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-26px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(-44px) scale(0.4); }
}

.feed-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1f3a44;
}
.feed-empty-icon { font-size: 64px; margin-bottom: 12px; }
.feed-empty h3 { font-size: 22px; font-weight: 900; }
.feed-empty p { color: #4a6770; margin-top: 6px; }

/* Birds */
.birds { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.bird {
  position: absolute;
  left: 110%;
  animation: birdFly linear infinite;
  will-change: transform;
}
.bird svg { animation: wingFlap 0.4s ease-in-out infinite; }
@keyframes birdFly {
  from { transform: translateX(0); }
  to   { transform: translateX(-130vw); }
}
@keyframes wingFlap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.6); }
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 58, 68, 0.35);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdropIn 0.3s ease;
}
@keyframes backdropIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.modal-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 36px 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 30px 80px -12px rgba(31, 58, 68, 0.35);
  position: relative;
  animation: modalPop 0.5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: #f4f9fb; border: none; border-radius: 50%;
  font-size: 22px; font-weight: 800; color: #5a767e;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { background: #e0eef2; color: #1f3a44; }
.modal-cloud-deco {
  position: absolute;
  top: -40px; right: -10px;
  width: 140px; height: 100px;
  opacity: 0.6;
  pointer-events: none;
}
.modal-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.modal-title {
  font-size: 26px; font-weight: 900; color: #1f3a44;
  text-wrap: balance; margin-bottom: 12px;
}
.modal-desc { color: #4a6770; line-height: 1.55; font-size: 16px; }
.modal-section {
  margin-top: 18px;
  padding: 14px 18px;
  background: #f4f9fb;
  border-radius: 14px;
  border-left: 4px solid #7BC4D4;
}
.modal-section-label {
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #4ea0b3;
}
.modal-section p { margin-top: 4px; color: #1f3a44; }
.modal-foot {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.like-btn.big { font-size: 16px; padding: 10px 18px; border-width: 2px; }

/* ===== SHOP PAGE ===== */
.shop-page {
  position: absolute;
  inset: 92px 0 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 32px 60px;
}
.shop-page::-webkit-scrollbar { width: 10px; }
.shop-page::-webkit-scrollbar-thumb { background: rgba(123,196,212,0.5); border-radius: 999px; }

.shop-header { text-align: center; max-width: 700px; margin: 16px auto 28px; animation: feedHeaderIn 0.6s cubic-bezier(.34,1.56,.64,1) both; }
.shop-header h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: #1f3a44; text-shadow: 0 2px 12px rgba(255,255,255,0.6); }
.shop-header p { color: #4a6770; font-size: 16px; margin-top: 6px; font-weight: 600; }

.shop-tier { margin-bottom: 36px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.shop-tier-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.shop-tier-head h2 { font-size: 18px; font-weight: 900; color: #1f3a44; }
.shop-tier-range {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #4ea0b3;
  background: rgba(255,255,255,0.7);
  padding: 4px 10px; border-radius: 999px;
}

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.shop-card {
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 18px 40px -16px rgba(31,58,68,0.2),
    inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s;
  position: relative;
  animation: cardPop 0.6s cubic-bezier(.34,1.56,.64,1) both;
}
.shop-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 26px 50px -16px rgba(31,58,68,0.28),
    inset 0 1px 0 rgba(255,255,255,0.9);
}
.shop-card.locked { opacity: 0.78; }
.shop-card.locked .shop-thumb { filter: saturate(0.7) brightness(0.95); }
.shop-card.celebrate { animation: cardCelebrate 1.6s ease; }
@keyframes cardCelebrate {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.06) rotate(-1deg); }
  40%  { transform: scale(0.98) rotate(1deg); }
  60%  { transform: scale(1.03) rotate(-0.5deg); }
  100% { transform: scale(1); }
}

.shop-thumb {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, #eaf6f9 0%, #fff 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 130px;
}
.shop-thumb svg {
  filter: drop-shadow(0 8px 16px rgba(31,58,68,0.15));
  animation: thumbFloat 4s ease-in-out infinite;
}
@keyframes thumbFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-6px) rotate(2deg); }
}

.owned-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #1c8a4a; color: #fff;
  font-size: 10px; font-weight: 900;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 4px 12px -4px rgba(28,138,74,0.5);
}

.shop-card-body { padding: 18px 20px 20px; }
.shop-card-body h3 { font-size: 17px; font-weight: 900; color: #1f3a44; margin-bottom: 6px; }
.shop-card-body p { font-size: 13px; color: #4a6770; line-height: 1.45; font-weight: 600; min-height: 56px; }

.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.shop-price {
  display: flex; align-items: center; gap: 5px;
  font-size: 18px; font-weight: 900; color: #7a4d05;
  font-variant-numeric: tabular-nums;
}
.shop-buy {
  background: linear-gradient(135deg, #7BC4D4, #5fb0c2);
  color: #fff; border: none; border-radius: 12px;
  padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 8px 18px -6px rgba(123,196,212,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.shop-buy:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 22px -6px rgba(123,196,212,0.7); }
.shop-buy:disabled { background: #d8e2ea; color: #97abb1; cursor: not-allowed; box-shadow: none; }

.shop-progress {
  margin-top: 12px;
  height: 6px;
  background: #f4f9fb;
  border-radius: 999px;
  position: relative;
  overflow: visible;
}
.shop-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7BC4D4, #5fb0c2);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.7,.05,.25,1);
}
.shop-progress span {
  position: absolute;
  top: 9px; right: 0;
  font-size: 10px; font-weight: 800;
  color: #7a98a0; letter-spacing: 0.04em;
}

.owned-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px;
  background: rgba(255,255,255,0.9);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 12px 30px -16px rgba(31,58,68,0.2);
}
.owned-section h2 {
  font-size: 18px; font-weight: 900; color: #1f3a44; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.owned-count { background: #7BC4D4; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.owned-list { display: flex; flex-wrap: wrap; gap: 10px; }
.owned-chip {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #fffbe5, #fff);
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  border: 1.5px solid #f0d168;
}
.owned-chip strong { display: block; font-size: 13px; font-weight: 900; color: #1f3a44; }
.owned-chip small { display: block; font-size: 10px; color: #7a98a0; font-weight: 700; letter-spacing: 0.04em; }

/* Confirm modal */
.modal-card.confirm { text-align: center; padding: 32px 36px 28px; max-width: 480px; }
.confirm-icon {
  margin: 0 auto 14px;
  width: 120px; height: 120px;
  background: linear-gradient(180deg, #eaf6f9, #fff);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px -10px rgba(31,58,68,0.18);
}
.modal-card.confirm h2 { font-size: 22px; font-weight: 900; color: #1f3a44; margin-bottom: 8px; }
.confirm-desc { color: #4a6770; line-height: 1.5; }
.confirm-math {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 22px 0;
  background: #f4f9fb;
  padding: 16px; border-radius: 16px;
}
.confirm-math > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.confirm-math small {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #7a98a0;
}
.confirm-math strong { font-size: 22px; font-weight: 900; color: #1f3a44; font-variant-numeric: tabular-nums; }
.confirm-math-arrow {
  font-size: 22px; color: #7BC4D4; font-weight: 900;
  animation: arrowPulse 1.4s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
.confirm-actions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.btn-back-soft {
  background: #f4f9fb;
  border: 2px solid #e0eef2;
  font-family: inherit;
  color: #5a767e;
  font-size: 14px; font-weight: 800;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.btn-back-soft:hover { background: #e0eef2; }

/* Confetti */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.confetti-piece {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 14px;
  border-radius: 2px;
  transform-origin: center;
  animation: confettiBurst 1.4s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes confettiBurst {
  0%   { transform: translate(-50%, -50%) rotate(0) scale(0.6); opacity: 1; }
  100% {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle, 0deg))
      translateX(var(--dist, 60px))
      rotate(var(--rot, 360deg))
      scale(1);
    opacity: 0;
  }
}

/* ===== Form final screen extras ===== */
.final-celebrate {
  display: flex;
  align-items: center; justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  animation: celebrateIn 0.7s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes celebrateIn {
  0%   { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}
.final-coin-burst {
  filter: drop-shadow(0 8px 18px rgba(160,111,10,0.45));
  animation: coinSpin 4s linear infinite;
}
.final-plus {
  font-size: 38px; font-weight: 900;
  background: linear-gradient(135deg, #f7c948, #d99b14);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  animation: plusPop 1.2s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes plusPop {
  0%   { opacity: 0; transform: translateY(10px) scale(0.6); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.15); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.final-cta-row {
  display: flex; gap: 12px; justify-content: center;
  margin: 14px 0 22px; flex-wrap: wrap;
}
.btn-cta-soft {
  background: #f4f9fb;
  border: 2px solid #e0eef2;
  font-family: inherit;
  color: #1f3a44;
  font-size: 14px; font-weight: 800;
  padding: 12px 20px;
  border-radius: 14px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-cta-soft:hover {
  border-color: #7BC4D4; background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(123,196,212,0.5);
  color: #4ea0b3;
}

.final-summary-details {
  margin-bottom: 22px;
  border-top: 1px dashed #d4e7ec;
  padding-top: 14px;
}
.final-summary-details summary {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #4ea0b3;
  cursor: pointer;
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.final-summary-details summary::after { content: '+'; font-size: 18px; transition: transform 0.2s; }
.final-summary-details[open] summary::after { content: '−'; }

/* ============================================================
   LOOTBOX PAGE
   ============================================================ */

.lootbox-page {
  position: absolute;
  inset: 92px 0 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 32px 80px;
  z-index: 2;
}
.lootbox-page::-webkit-scrollbar { width: 10px; }
.lootbox-page::-webkit-scrollbar-thumb { background: rgba(123,196,212,0.5); border-radius: 999px; }

.lootbox-header {
  text-align: center;
  max-width: 720px;
  margin: 16px auto 32px;
  animation: feedHeaderIn 0.6s cubic-bezier(.34,1.56,.64,1) both;
}
.lootbox-header h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  color: #1f3a44;
  text-shadow: 0 2px 16px rgba(255,255,255,0.8);
  line-height: 1.1;
}
.lh-spark {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 8px;
  background: linear-gradient(135deg, #f7c948, #d99b14);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lhSpark 2.2s ease-in-out infinite;
}
@keyframes lhSpark {
  0%, 100% { transform: scale(1) rotate(0); opacity: 0.85; }
  50%      { transform: scale(1.25) rotate(20deg); opacity: 1; }
}
.lootbox-header p {
  color: #1f3a44;
  font-size: 16px;
  margin-top: 8px;
  font-weight: 600;
  background: rgba(255,255,255,0.55);
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
}

.lootbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ----- Loot card ----- */
.loot-card {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--tier-aura) 35%, rgba(255,255,255,0.9)) 0%, rgba(255,255,255,0.96) 60%) ,
    rgba(255,255,255,0.96);
  border-radius: 26px;
  padding: 28px 22px 22px;
  border: 1.5px solid color-mix(in oklch, var(--tier-c) 40%, rgba(255,255,255,0.7));
  box-shadow:
    0 22px 50px -18px color-mix(in oklch, var(--tier-c) 60%, transparent),
    0 6px 16px -6px rgba(31,58,68,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: lootCardIn 0.6s cubic-bezier(.34,1.56,.64,1) both;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s;
}
@keyframes lootCardIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.loot-card::before {
  /* moving sheen */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 25%,
    color-mix(in oklch, var(--tier-aura) 35%, transparent) 50%,
    transparent 75%);
  background-size: 250% 100%;
  background-position: 200% 0;
  animation: sheen 5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}
@keyframes sheen {
  0% { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
.loot-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 32px 60px -16px color-mix(in oklch, var(--tier-c) 70%, transparent),
    0 10px 22px -6px rgba(31,58,68,0.15),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
.loot-card.locked { opacity: 0.78; }
.loot-card.locked .loot-art { filter: saturate(0.5) brightness(0.95); }

.loot-aura {
  position: absolute;
  left: 50%; top: 22%;
  transform: translate(-50%, -50%);
  width: 240px; height: 240px;
  background: radial-gradient(circle, color-mix(in oklch, var(--tier-aura) 70%, transparent) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(8px);
  animation: auraPulse 3.2s ease-in-out infinite;
  z-index: 0;
}
@keyframes auraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}

.loot-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  border-radius: inherit;
}
.loot-orb {
  position: absolute;
  bottom: -10px;
  background: radial-gradient(circle, #fff 0%, color-mix(in oklch, var(--tier-aura) 70%, transparent) 50%, transparent 70%);
  border-radius: 50%;
  animation: orbRise linear infinite;
  filter: blur(0.6px);
  opacity: 0.85;
}
@keyframes orbRise {
  0%   { transform: translate(0, 0)         scale(0.6); opacity: 0;   }
  20%  { opacity: 1; }
  100% { transform: translate(var(--drift), -260px) scale(1.1); opacity: 0; }
}

.loot-art {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  height: 150px;
}
.loot-art-svg {
  filter: drop-shadow(0 10px 20px color-mix(in oklch, var(--tier-c) 60%, transparent));
  animation: lootFloat 4s ease-in-out infinite;
}
@keyframes lootFloat {
  0%, 100% { transform: translateY(0)    rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

.loot-meta { position: relative; z-index: 2; }
.loot-sub {
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in oklch, var(--tier-accent) 75%, var(--tier-c));
}
.loot-meta h3 {
  font-size: 22px; font-weight: 900; color: #1f3a44;
  margin-top: 4px;
}

.loot-rarity-row {
  position: relative;
  z-index: 2;
  display: flex; align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.rarity-dot {
  display: inline-flex;
  width: 14px; height: 14px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.85);
}
.rarity-dot > span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.rarity-comum    { color: #7a98a0; }
.rarity-incomum  { color: #1c8a4a; }
.rarity-raro     { color: #3a7ddb; }
.rarity-epico    { color: #a06fdb; }
.rarity-lendario { color: #d99b14; }

.loot-rarity-text {
  font-size: 11px;
  font-weight: 800;
  color: #5a767e;
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.rarity-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: currentColor;
  color: var(--rarity-c, #7a98a0);
  position: relative;
}
.rarity-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.85);
  z-index: 0;
}
.rarity-pill > * { position: relative; z-index: 1; }
.rarity-pill {
  color: var(--rarity-c, #7a98a0);
}
.rarity-pill.rarity-comum    { --rarity-c: #7a98a0; }
.rarity-pill.rarity-incomum  { --rarity-c: #1c8a4a; }
.rarity-pill.rarity-raro     { --rarity-c: #3a7ddb; }
.rarity-pill.rarity-epico    { --rarity-c: #a06fdb; }
.rarity-pill.rarity-lendario { --rarity-c: #d99b14; }
.rarity-pill {
  background: color-mix(in oklch, var(--rarity-c) 18%, white);
  color: var(--rarity-c);
  border: 1px solid color-mix(in oklch, var(--rarity-c) 40%, transparent);
}
.rarity-pill::before { display: none; }
.rarity-pill.big {
  font-size: 13px;
  padding: 6px 14px;
  letter-spacing: 0.18em;
  box-shadow: 0 6px 20px -4px color-mix(in oklch, var(--rarity-c) 70%, transparent);
}

.loot-pool {
  position: relative;
  z-index: 2;
  text-align: left;
  background: rgba(244,249,251,0.7);
  border-radius: 14px;
  padding: 10px 14px;
}
.loot-pool summary {
  font-size: 11px; font-weight: 900;
  color: #4ea0b3; cursor: pointer;
  letter-spacing: 0.12em; text-transform: uppercase;
  list-style: none;
}
.loot-pool summary::after { content: ' +'; }
.loot-pool[open] summary::after { content: ' −'; }
.loot-pool ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loot-pool li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1f3a44;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(123,196,212,0.25);
}
.loot-pool li:last-child { border-bottom: none; }
.loot-pool-pct {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: #5a767e;
  font-weight: 800;
}

.loot-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.loot-price {
  display: flex; align-items: center; gap: 6px;
  font-size: 22px; font-weight: 900; color: #7a4d05;
  font-variant-numeric: tabular-nums;
}
.loot-open-btn {
  background: linear-gradient(135deg, var(--tier-c2), var(--tier-c));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px color-mix(in oklch, var(--tier-c) 70%, transparent);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  position: relative;
  overflow: hidden;
}
.loot-open-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px color-mix(in oklch, var(--tier-c) 80%, transparent);
  filter: brightness(1.06);
}
.loot-open-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 3.4s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 50%, 100% { transform: translateX(-100%); }
  60%           { transform: translateX(100%); }
}
.loot-open-btn:disabled {
  background: #d8e2ea; color: #97abb1;
  cursor: not-allowed; box-shadow: none;
}
.loot-open-btn:disabled::after { display: none; }

.loot-progress {
  position: relative;
  z-index: 2;
  height: 6px;
  background: rgba(244,249,251,0.7);
  border-radius: 999px;
  margin-top: 4px;
}
.loot-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--tier-c2), var(--tier-c));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.7,.05,.25,1);
}
.loot-progress span {
  position: absolute;
  top: 9px; right: 0;
  font-size: 10px; font-weight: 800;
  color: #7a98a0;
}

/* ----- Last win strip ----- */
.last-win-strip {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 16px 22px;
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e0eef2;
  box-shadow: 0 16px 36px -14px rgba(31,58,68,0.18);
  font-size: 15px;
  font-weight: 800;
  color: #1f3a44;
  flex-wrap: wrap;
  animation: feedHeaderIn 0.45s cubic-bezier(.34,1.56,.64,1) both;
}
.last-win-strip > strong {
  font-size: 17px;
  font-weight: 900;
  flex: 1 1 auto;
  min-width: 0;
}
.last-win-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a767e;
}
.last-win-tier {
  font-size: 12px;
  color: #5a767e;
  font-weight: 700;
}

/* ----- Confirm modal extras ----- */
.modal-card.loot-confirm {
  overflow: hidden;
}
.modal-card.loot-confirm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--tier-aura) 50%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.loot-confirm > * { position: relative; z-index: 1; }
.loot-confirm-art {
  display: flex; justify-content: center;
  margin-bottom: 6px;
  animation: lootFloat 4s ease-in-out infinite;
}
.loot-confirm-go {
  background: linear-gradient(135deg, var(--tier-c2), var(--tier-c)) !important;
  box-shadow: 0 12px 28px -8px color-mix(in oklch, var(--tier-c) 70%, transparent) !important;
}

/* ============================================================
   OPENING STAGE — fullscreen lootbox animation
   ============================================================ */

.loot-stage {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  animation: stageFadeIn 0.35s ease both;
}
@keyframes stageFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.loot-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in oklch, var(--tier-aura) 30%, rgba(15,23,30,0.85)) 0%, rgba(8,12,18,0.95) 70%);
  animation: bgPulse 3s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}

.loot-stage-rays {
  position: absolute;
  inset: -10% -10%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg,
      color-mix(in oklch, var(--tier-aura) 25%, transparent) 8deg,
      transparent 16deg,
      transparent 30deg,
      color-mix(in oklch, var(--tier-aura) 25%, transparent) 38deg,
      transparent 46deg,
      transparent 60deg,
      color-mix(in oklch, var(--tier-aura) 25%, transparent) 68deg,
      transparent 76deg,
      transparent 90deg,
      color-mix(in oklch, var(--tier-aura) 25%, transparent) 98deg,
      transparent 106deg
    );
  background-size: 100% 100%;
  background-repeat: repeat;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: rayRotate 18s linear infinite;
  pointer-events: none;
}
.loot-stage[data-phase="reveal"] .loot-stage-rays { opacity: 0.9; animation-duration: 6s; }
@keyframes rayRotate {
  to { transform: rotate(360deg); }
}

.loot-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  pointer-events: none;
}
/* Shake during shake phase (slow, deliberate build-up) */
.loot-stage[data-phase="shake"] .loot-center {
  animation: stageShake 0.32s ease-in-out infinite;
}
.loot-stage[data-phase="impact"] .loot-center {
  animation: stageImpact 1.2s cubic-bezier(.4,1.8,.5,1) forwards;
}
@keyframes stageShake {
  0%, 100% { transform: translate(-50%, -50%); }
  25%      { transform: translate(calc(-50% - 5px), calc(-50% + 4px)); }
  75%      { transform: translate(calc(-50% + 5px), calc(-50% - 4px)); }
}
@keyframes stageImpact {
  0%   { transform: translate(-50%, -50%) scale(1); }
  35%  { transform: translate(-50%, -50%) scale(1.22); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Aura rings */
.loot-aura-ring {
  position: absolute;
  left: 0; top: 0;
  width: 380px; height: 380px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 50%, color-mix(in oklch, var(--tier-aura) 50%, transparent) 70%, transparent 80%);
  animation: ringPulse 3.6s ease-in-out infinite;
  filter: blur(6px);
}
.loot-aura-ring.r2 {
  width: 520px; height: 520px;
  animation-delay: -1.8s;
  opacity: 0.7;
}
@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.4; }
  50%      { transform: translate(-50%, -50%) scale(1.1);  opacity: 0.9; }
}
.loot-stage[data-phase="reveal"] .loot-aura-ring {
  background: radial-gradient(circle, transparent 45%, color-mix(in oklch, var(--rarity-glow) 75%, transparent) 65%, transparent 80%);
}

/* The 3D-ish lootbox */
.loot-box-3d {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: opacity 0.4s;
}
.loot-stage[data-phase="enter"]  .loot-box-3d { animation: boxIn 0.6s cubic-bezier(.34,1.56,.64,1) both; }
.loot-stage[data-phase="shake"]  .loot-box-3d { animation: boxAnticipate 0.9s ease-in-out infinite alternate; }
.loot-stage[data-phase="impact"] .loot-box-3d { animation: boxBurst 1.2s cubic-bezier(.34,1.6,.5,1) forwards; }
.loot-stage[data-phase="reveal"] .loot-box-3d { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }

@keyframes boxIn {
  0%   { transform: translate(-50%, calc(-50% + 80px)) scale(0.4) rotate(-10deg); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}
@keyframes boxAnticipate {
  0%   { transform: translate(-50%, -50%) scale(1)    rotate(-3deg); }
  100% { transform: translate(-50%, -50%) scale(1.1)  rotate(3deg); }
}
@keyframes boxBurst {
  0%   { transform: translate(-50%, -50%) scale(1.1); filter: brightness(1); }
  45%  { transform: translate(-50%, -50%) scale(1.6); filter: brightness(1.9); }
  100% { transform: translate(-50%, calc(-50% - 60px)) scale(2) rotate(8deg); filter: brightness(2.4) opacity(0.3); }
}

/* Lid lifts off when box opens */
.loot-box-3d.open .lb-lid { animation: lidPop 1s cubic-bezier(.34,1.6,.5,1) forwards; }
@keyframes lidPop {
  0%   { transform: translateY(0)     rotate(0); }
  100% { transform: translateY(-120px) rotate(-28deg); opacity: 0.7; }
}

/* Light beam */
.loot-beam {
  position: absolute;
  left: 0; top: 0;
  width: 200px; height: 600px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 4;
  animation: beamUp 1s ease-out forwards;
}
.loot-beam-core {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 60px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in oklch, var(--rarity-glow) 80%, white) 35%,
    color-mix(in oklch, var(--rarity-glow) 60%, white) 75%,
    transparent 100%);
  filter: blur(6px);
  border-radius: 999px;
}
.loot-beam-flare {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%,
    color-mix(in oklch, var(--rarity-glow) 90%, white) 0%,
    transparent 60%);
  filter: blur(3px);
}
@keyframes beamUp {
  0%   { transform: translate(-50%, -50%) scaleY(0.1); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, -100%) scaleY(1);  opacity: 1; }
}

/* ----- Plane on reveal: lands above the prize as a mascot ----- */
.loot-plane-track {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 8;
}
.loot-plane-arm {
  position: absolute;
  left: 0; top: 0;
}
.loot-plane-img {
  position: absolute;
  width: 110px;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(31,58,68,0.4));
}

/* reveal: plane flies in from upper-left and perches above the prize card */
.loot-plane-track.phase-reveal .loot-plane-arm {
  animation: planeLand 0.9s cubic-bezier(.34,1.56,.64,1) both;
  animation-delay: 0.25s;
}
@keyframes planeLand {
  0%   { transform: translate(-220px, -350px) scale(0.6) rotate(-18deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(0, -230px) scale(1) rotate(-6deg); opacity: 1; }
}
.loot-plane-track.phase-reveal .loot-plane-img {
  animation: planePerch 2.4s ease-in-out infinite;
  animation-delay: 1.1s;
}
@keyframes planePerch {
  0%, 100% { transform: translate(-50%, -50%) rotate(-6deg); }
  50%      { transform: translate(-50%, calc(-50% - 10px)) rotate(2deg); }
}

/* Sparkles converging inward (slower, longer build-up) */
.loot-sparkles {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.loot-sparkle {
  position: absolute;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, color-mix(in oklch, var(--tier-aura) 60%, white) 60%, transparent 80%);
  box-shadow: 0 0 12px color-mix(in oklch, var(--tier-aura) 90%, white);
  transform-origin: 0 0;
  animation: sparkConverge 2.6s ease-in forwards;
}
@keyframes sparkConverge {
  0%   { transform: rotate(var(--angle)) translateX(var(--dist)) scale(0.4); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: rotate(var(--angle)) translateX(0)            scale(1.4); opacity: 0; }
}

/* Reveal card */
.loot-reveal {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  width: min(440px, 88vw);
  background: linear-gradient(180deg, #fff 0%, color-mix(in oklch, var(--rarity-glow) 25%, #fff) 100%);
  border-radius: 28px;
  padding: 32px 28px 26px;
  text-align: center;
  border: 2px solid color-mix(in oklch, var(--rarity-c) 40%, transparent);
  box-shadow:
    0 30px 80px -16px color-mix(in oklch, var(--rarity-c) 70%, transparent),
    0 0 0 6px color-mix(in oklch, var(--rarity-glow) 25%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.9);
  z-index: 8;
  pointer-events: auto;
  animation: revealIn 0.7s cubic-bezier(.34,1.56,.64,1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
@keyframes revealIn {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(0.6) rotate(-3deg); }
  60%  { opacity: 1; transform: translate(-50%, -55%) scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.loot-reveal-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, color-mix(in oklch, var(--rarity-glow) 70%, transparent) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(8px);
  animation: revealGlow 2s ease-in-out infinite;
}
@keyframes revealGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.loot-reveal-icon {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, color-mix(in oklch, var(--rarity-glow) 30%, #fff) 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 14px 30px -10px color-mix(in oklch, var(--rarity-c) 60%, transparent);
  animation: prizeBob 2.4s ease-in-out infinite;
}
@keyframes prizeBob {
  0%, 100% { transform: translateY(0)    rotate(-4deg); }
  50%      { transform: translateY(-8px) rotate(4deg); }
}
.loot-reveal h2 {
  font-size: 24px;
  font-weight: 900;
  color: #1f3a44;
  text-wrap: balance;
}
.loot-reveal p {
  color: #5a767e;
  font-size: 14px;
  font-weight: 700;
}
.loot-reveal-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Confetti burst on reveal */
.loot-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 7;
}
.loot-confetti-piece {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 2px;
  transform-origin: center;
  animation: lootConfBurst 1.8s cubic-bezier(.2,.7,.3,1) forwards;
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
}
@keyframes lootConfBurst {
  0%   { transform: translate(-50%, -50%) rotate(0)                scale(0.4); opacity: 1; }
  20%  { opacity: 1; }
  100% {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle, 0deg))
      translateX(var(--dist, 200px))
      rotate(var(--rot, 360deg))
      scale(1);
    opacity: 0;
  }
}


/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-pill {
    top: auto; bottom: 14px; left: 50%;
    transform: translateX(-50%);
    padding: 4px;
  }
  .nav-tab { padding: 8px 12px; font-size: 11px; }
  .nav-thumb { top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); }

  .points-pill { top: 14px; right: 14px; padding: 5px 12px 5px 5px; }
  .points-coin { width: 26px; height: 26px; }
  .points-coin svg { width: 18px; height: 18px; }
  .points-value { font-size: 15px; }
  .points-label { display: none; }

  .toast-rail { top: 60px; right: 14px; }
  .toast { font-size: 13px; padding: 10px 14px; }

  .feed-header { top: 60px; padding: 0 70px; }
  .feed-header h1 { font-size: 15px; }
  .feed-h-sub { display: none; }
  .feed-filters { margin-top: 8px; }
  .feed-filter { padding: 6px 10px; font-size: 10px; }
  .altitude-scale { display: none; }
  .feed-stage { inset: 130px 16px 80px 16px; }
  .idea-cloud-content { padding: 22% 16% 18%; }

  .shop-page { inset: 60px 0 64px 0; padding: 12px 16px 80px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card-body p { min-height: auto; }

  .lootbox-page { inset: 60px 0 64px 0; padding: 12px 16px 80px; }
  .lootbox-grid { grid-template-columns: 1fr; gap: 16px; }
  .loot-card { padding: 22px 18px 18px; }
  .loot-aura { width: 180px; height: 180px; }
  .loot-art { height: 130px; }
  .loot-reveal { width: 92vw; padding: 24px 20px 22px; }
  .loot-plane-img { width: 90px; }

  .modal-card { padding: 28px 22px 24px; border-radius: 22px; }
  .modal-title { font-size: 20px; }
}

/* === Auth screen === */
.auth-loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;font-family:Nunito,sans-serif;color:#1f3a44;font-weight:700;z-index:9999}
.auth-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;z-index:9998;background:linear-gradient(180deg,#bde6f0 0%,#7BC4D4 100%);font-family:Nunito,sans-serif}
.auth-card{background:#fff;border-radius:24px;padding:32px 28px;max-width:380px;width:100%;box-shadow:0 20px 60px rgba(31,58,68,.25);text-align:center}
.auth-logo{width:64px;height:64px;object-fit:contain;margin:0 auto 8px}
.auth-card h1{margin:0 0 4px;font-size:24px;color:#1f3a44}
.auth-sub{margin:0 0 20px;color:#7a98a0;font-size:14px}
.auth-google{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border:2px solid #e3ecef;border-radius:12px;background:#fff;font-weight:700;color:#1f3a44;cursor:pointer;font-family:inherit;font-size:14px}
.auth-google:hover{background:#f4f9fb}
.auth-google:disabled{opacity:.5;cursor:not-allowed}
.auth-sep{display:flex;align-items:center;gap:10px;margin:18px 0;color:#a8b8bc;font-size:12px}
.auth-sep::before,.auth-sep::after{content:'';flex:1;height:1px;background:#e3ecef}
.auth-form{display:flex;flex-direction:column;gap:10px}
.auth-form input{padding:12px 14px;border:2px solid #e3ecef;border-radius:12px;font-family:inherit;font-size:14px;outline:none}
.auth-form input:focus{border-color:#7BC4D4}
.auth-submit{padding:12px;border:none;border-radius:12px;background:#7BC4D4;color:#fff;font-weight:800;cursor:pointer;font-family:inherit;font-size:15px}
.auth-submit:hover{background:#5fb0c2}
.auth-submit:disabled{opacity:.5;cursor:not-allowed}
.auth-err{background:#fde8eb;color:#a83243;padding:8px 12px;border-radius:8px;font-size:13px;font-weight:600}
.auth-info{background:#e8f4ee;color:#1c6b3a;padding:8px 12px;border-radius:8px;font-size:13px;font-weight:600}
.auth-toggle{margin-top:14px;background:none;border:none;color:#5fb0c2;font-weight:700;cursor:pointer;font-size:13px;font-family:inherit}
.nav-logout{margin-left:auto;background:none;border:none;color:#7a98a0;font-weight:700;cursor:pointer;font-size:13px;font-family:inherit;padding:6px 10px;border-radius:8px}
.nav-logout:hover{background:#f4f9fb;color:#1f3a44}

.auth-forgot{align-self:flex-end;background:none;border:none;color:#5fb0c2;font-weight:700;cursor:pointer;font-size:12px;font-family:inherit;margin-top:-2px}
.auth-pw-field{position:relative;display:flex}
.auth-pw-field input{flex:1;padding-right:56px}
.auth-pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;color:#5fb0c2;font-weight:700;cursor:pointer;font-size:12px;font-family:inherit;padding:6px 8px}

/* === Apostas (Bets) page === */
.bets-page {
  position: absolute;
  inset: 84px 0 0 0;
  overflow-y: auto;
  padding: 12px 28px 100px;
}
.bets-page.has-slip { padding-bottom: 220px; }
.bets-page.has-slip-min { padding-bottom: 120px; }
.bets-page::-webkit-scrollbar { width: 10px; }
.bets-page::-webkit-scrollbar-thumb { background: rgba(123,196,212,0.5); border-radius: 999px; }
.bets-header { text-align: center; max-width: 700px; margin: 16px auto 28px; animation: feedHeaderIn 0.6s cubic-bezier(.34,1.56,.64,1) both; }
.bets-header h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; color: #1f3a44; text-shadow: 0 2px 12px rgba(255,255,255,0.6); }
.bets-header p { color: #4a6770; font-size: 16px; margin-top: 6px; font-weight: 600; }

.bets-section { max-width: 1200px; margin: 0 auto 36px; }
.bets-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding: 0 4px; flex-wrap: wrap; }
.bets-section-head h2 { font-size: 18px; font-weight: 900; color: #1f3a44; }
.bets-refresh { font-size: 13px; padding: 8px 14px; }
.bets-error { max-width: 480px; margin: 0 auto 16px; }
.bets-empty { text-align: center; color: #7a98a0; font-weight: 700; padding: 24px; background: rgba(255,255,255,0.6); border-radius: 16px; }
.bets-empty-note { margin-top: 6px; font-size: 12px; font-weight: 600; color: #a8b8bc; }

.bets-league-group { max-width: 1200px; margin: 0 auto 28px; }
.bets-league-title {
  font-size: 13px;
  font-weight: 800;
  color: #5a7a83;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px 4px;
}

.bets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.bet-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 24px -10px rgba(31,58,68,0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bet-card-time { font-size: 12px; font-weight: 700; color: #7a98a0; }
.bet-card-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 900; color: #1f3a44; font-size: 15px; text-align: center; }
.bet-card-teams span:first-child, .bet-card-teams span:last-child { flex: 1; }
.bet-card-vs { font-size: 11px; color: #a8b8bc; font-weight: 700; }
.bet-odds-row { display: flex; gap: 8px; }
.bet-odds-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 2px solid #e3ecef;
  border-radius: 12px;
  background: #f4f9fb;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.bet-odds-btn:hover { border-color: #7BC4D4; background: #eaf6f9; transform: translateY(-2px); }
.bet-odds-btn small { color: #7a98a0; font-weight: 700; font-size: 11px; }
.bet-odds-btn strong { color: #1f3a44; font-weight: 900; font-size: 16px; }
.bet-odds-btn.selected { border-color: #5fb0c2; background: #d8f0f5; }
.bet-odds-btn.selected small { color: #1f3a44; }

.bets-list { display: flex; flex-direction: column; gap: 10px; }
.bets-list-settled { margin-top: 12px; opacity: 0.85; }
.bet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 6px 16px -8px rgba(31,58,68,0.2);
  flex-wrap: wrap;
}
.bet-row-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
.bet-row-main strong { color: #1f3a44; font-size: 14px; }
.bet-row-main small { color: #7a98a0; font-weight: 600; font-size: 12px; }
.bet-row-nums { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #1f3a44; font-size: 13px; font-variant-numeric: tabular-nums; }
.bet-row-arrow { color: #a8b8bc; }
.bet-status-badge { font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.bet-status-pending { background: #eef4f7; color: #5a7a83; }
.bet-status-won { background: #e8f4ee; color: #1c6b3a; }
.bet-status-lost { background: #fde8eb; color: #a83243; }
.bet-status-void { background: #f4f0e8; color: #8a6d1c; }

.bet-row-legs { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.bet-row-leg { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #4a6770; font-weight: 600; }
.bet-row-leg .bet-status-badge { font-size: 10px; padding: 3px 8px; flex-shrink: 0; }

.bet-stake-input { width: 100%; margin: 12px 0; text-align: center; }

/* Floating bet slip — appears once at least one selection is picked */
.bet-slip {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 -10px 32px rgba(31,58,68,0.28), 0 4px 18px rgba(31,58,68,0.18);
  padding: 16px 18px;
  z-index: 500;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bet-slip-head { display: flex; align-items: center; justify-content: space-between; }
.bet-slip-head strong { color: #1f3a44; font-size: 14px; }
.bet-slip-head-actions { display: flex; align-items: center; gap: 10px; }
.bet-slip-minimize {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #eaf4f7; border: none; color: #4a6770; cursor: pointer;
  transition: background .15s, transform .15s;
}
.bet-slip-minimize:hover { background: #d8ebf1; transform: translateY(1px); }
.bet-slip-clear { background: none; border: none; color: #a83243; font-weight: 700; font-size: 12px; cursor: pointer; font-family: inherit; }
.bet-slip-items { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 160px; }
.bet-slip-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f4f9fb; border-radius: 10px; padding: 8px 10px; }
.bet-slip-item strong { display: block; font-size: 12px; color: #1f3a44; }
.bet-slip-item small { color: #7a98a0; font-weight: 700; font-size: 11px; }
.bet-slip-remove { background: none; border: none; color: #a8b8bc; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.bet-slip-remove:hover { color: #a83243; }
.bet-slip-foot { display: flex; flex-direction: column; gap: 6px; }
.bet-slip-math { display: flex; justify-content: space-between; font-size: 12px; color: #4a6770; font-weight: 700; }
.bet-slip-math strong { color: #1f3a44; }
.bet-slip-confirm { width: 100%; justify-content: center; }

/* Minimized slip: floating bubble, bottom-right, showing the current combined odd */
.bet-slip-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(145deg, #7bc4d4, #4a9db1);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 26px rgba(31,58,68,0.35), 0 2px 8px rgba(31,58,68,0.2);
  transition: transform .15s;
  animation: betBubbleIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
.bet-slip-bubble:hover { transform: scale(1.07); }
.bet-slip-bubble:active { transform: scale(0.96); }
.bet-slip-bubble small { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .9; line-height: 1; }
.bet-slip-bubble strong { font-size: 19px; font-weight: 900; line-height: 1.15; animation: betBubblePop .35s ease-out; }
.bet-slip-bubble-count {
  position: absolute; top: -6px; left: -6px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: #f7c948; color: #7a4d05;
  font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(31,58,68,0.25);
}
@keyframes betBubbleIn { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes betBubblePop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* On narrow screens the nav pill sits at the bottom (~64px), so keep the bubble above it */
@media (max-width: 820px) {
  .bet-slip-bubble { right: 14px; bottom: 84px; width: 68px; height: 68px; }
}

@media (max-width: 720px) {
  .bets-page { inset: 60px 0 64px 0; padding: 12px 16px 80px; }
  .bets-page.has-slip { padding-bottom: 260px; }
  .bets-grid { grid-template-columns: 1fr; }
  .bet-row { flex-direction: column; align-items: flex-start; }
  .bet-slip { bottom: 8px; width: calc(100vw - 16px); }
  .bets-page.has-slip-min { padding-bottom: 170px; }
}

/* Boot watchdog message (index.html) — shown only if the app fails to start */
.boot-error{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;font-family:Nunito,sans-serif;color:#fff;z-index:99999;background:#4a8fb8}
.boot-error strong{font-size:20px;font-weight:900}
.boot-error p{max-width:460px;font-weight:600}
.boot-error pre{max-width:min(640px,92vw);white-space:pre-wrap;word-break:break-word;text-align:left;font-size:11px;background:rgba(0,0,0,.25);padding:10px 12px;border-radius:10px}
.boot-error button{padding:10px 22px;border:none;border-radius:12px;background:#fff;color:#1f3a44;font-weight:800;font-family:inherit;cursor:pointer}
.boot-error-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
