:root {
  --bg: #0a0e1a;
  --bg2: #0f1526;
  --card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --txt: #e8ecf5;
  --muted: #8b94ab;
  --accent: #22d3a5;
  --accent2: #4f8cff;
  --gold: #ffd257;
  --danger: #ff5d73;
  --violet: #c084fc;
  --wc: linear-gradient(90deg, #ffd257, #ff5d73, #c084fc, #4f8cff, #22d3a5);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(79,140,255,.16), transparent 60%),
              radial-gradient(900px 500px at -10% 100%, rgba(34,211,165,.12), transparent 55%),
              radial-gradient(700px 400px at 100% 60%, rgba(192,132,252,.10), transparent 55%),
              radial-gradient(600px 400px at 0% 30%, rgba(255,93,115,.08), transparent 55%),
              radial-gradient(800px 300px at 50% 110%, rgba(255,210,87,.07), transparent 60%),
              var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .bm-title { font-family: 'Sora', sans-serif; }

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hidden { display: none !important; }

/* ── Topbar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,26,.75); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--wc); background-size: 300% auto; animation: wcSlide 6s linear infinite;
}
@keyframes wcSlide { to { background-position: 300% center; } }
.logo {
  font-weight: 800; font-size: 1.05rem; letter-spacing: .3px;
  background: var(--wc); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wcSlide 8s linear infinite;
}
.topbar { gap: 10px; }
.logo { flex: 1; }
.lang-select {
  background: var(--card); color: var(--txt); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 10px; font-size: .85rem; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.acct-btn {
  background: var(--card); color: var(--txt); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 10px; font-size: .95rem; cursor: pointer;
  max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-btn.registered { border-color: rgba(34,211,165,.5); color: var(--accent); font-size: .8rem; font-weight: 600; }

/* ── Screens ── */
.screen { display: none; padding: 20px; max-width: 560px; margin: 0 auto; animation: fadeUp .45s ease both; }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Creation ── */
.create-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.create-card h1 { font-size: 1.7rem; background: var(--wc); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: wcSlide 8s linear infinite; }
.subtitle { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.create-card label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.create-card input, .create-card select {
  background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 14px; color: var(--txt); font-size: 1rem; outline: none; transition: border .2s;
}
.create-card input:focus, .create-card select:focus { border-color: var(--accent); }

.pos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pos-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 4px; color: var(--txt); cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 6px; font-size: 1.4rem; transition: all .2s;
}
.pos-btn span { font-size: .68rem; color: var(--muted); font-family: 'Inter', sans-serif; }
.pos-btn.selected { border-color: var(--accent); background: rgba(34,211,165,.12); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,211,165,.15); }
.pos-btn.selected span { color: var(--accent); }

/* ── Buttons ── */
.btn-primary, .btn-ghost, .btn-danger {
  border: none; border-radius: 14px; padding: 14px 20px; font-size: .95rem; font-weight: 700;
  cursor: pointer; font-family: 'Sora', sans-serif; transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-primary { background: var(--wc); background-size: 250% auto; color: #0a0e1a; box-shadow: 0 10px 26px rgba(192,132,252,.25); animation: wcSlide 5s linear infinite; }
.btn-primary:active { transform: scale(.97); }
.btn-primary.big { margin-top: 18px; padding: 16px; font-size: 1.05rem; }
.btn-ghost { background: rgba(255,255,255,.07); color: var(--txt); border: 1px solid var(--border); }
.btn-danger { background: rgba(255,93,115,.14); color: var(--danger); border: 1px solid rgba(255,93,115,.35); }
button:hover { filter: brightness(1.08); }

/* ── Player card ── */
.player-card { padding: 20px; position: relative; overflow: hidden; }
.player-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,93,115,.10), rgba(192,132,252,.08) 30%, transparent 55%, rgba(34,211,165,.10));
  pointer-events: none;
}
.player-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--wc); background-size: 300% auto; animation: wcSlide 6s linear infinite;
  border-radius: var(--radius) var(--radius) 0 0;
}
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pc-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.pc-meta { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.pc-ovr {
  min-width: 76px; text-align: center; padding: 10px 8px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,210,87,.18), rgba(255,210,87,.05));
  border: 1px solid rgba(255,210,87,.35);
}
.pc-ovr .num { font-family: 'Sora', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1; }
.pc-ovr .lbl { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.pc-ovr.pulse { animation: ovrPulse .9s ease; }
@keyframes ovrPulse { 0% { transform: scale(1); } 35% { transform: scale(1.18); box-shadow: 0 0 40px rgba(255,210,87,.5); } 100% { transform: scale(1); } }
.pc-club { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .95rem; }
.pc-club .badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: rgba(255,255,255,.08); border: 1px solid var(--border); }
.pc-club .cname { font-weight: 600; }
.pc-club .cleague { color: var(--muted); font-size: .78rem; }
.form-dots { display: flex; gap: 5px; margin-top: 14px; }
.form-dots .dot { width: 22px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); }
.form-dots .dot.w { background: var(--accent); }
.form-dots .dot.d { background: var(--gold); }
.form-dots .dot.l { background: var(--danger); }

/* ── Life card ── */
.life-card { margin-top: 14px; padding: 14px 18px; }
.life-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lb { font-size: .72rem; color: var(--muted); }
.lb .lb-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.lb .lb-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.lb .lb-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.lb-fill.energy { background: linear-gradient(90deg, #ffb020, #22d3a5); }
.lb-fill.morale { background: linear-gradient(90deg, #4f8cff, #c084fc); }
.lb-fill.rep { background: linear-gradient(90deg, #ffd257, #ff9d3c); }
.lb-fill.low { background: var(--danger) !important; }
.life-money { text-align: right; font-family: 'Sora', sans-serif; font-weight: 700; color: var(--gold); font-size: .9rem; margin-top: 8px; }
.life-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.life-actions button {
  background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 12px;
  color: var(--txt); padding: 10px 2px; font-size: .72rem; cursor: pointer; transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.life-actions button:hover:not(:disabled) { border-color: var(--accent); background: rgba(34,211,165,.08); }
.life-actions button:disabled { opacity: .35; cursor: not-allowed; }
.life-msg { margin-top: 10px; font-size: .8rem; color: var(--accent); min-height: 1em; text-align: center; animation: fadeUp .3s ease; }
.life-msg.warn { color: var(--danger); }
.status-banner {
  margin-top: 10px; padding: 9px 14px; border-radius: 12px; font-size: .84rem; text-align: center;
  background: rgba(255,93,115,.12); border: 1px solid rgba(255,93,115,.3); color: var(--danger);
}

/* ── Live match ── */
.live-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.live-min {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent);
  min-width: 54px; text-align: center; background: rgba(34,211,165,.1); border-radius: 10px; padding: 4px 8px;
}
.live-score { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.live-score .ls-num { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; }
.live-feed { display: flex; flex-direction: column-reverse; gap: 6px; max-height: 34vh; overflow-y: auto; margin-bottom: 12px; min-height: 120px; }
.feed-item {
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px 12px; font-size: .84rem;
  display: flex; gap: 10px; animation: slideIn .35s ease both;
}
.feed-item .fmin { color: var(--muted); font-weight: 700; min-width: 30px; font-family: 'Sora', sans-serif; }
.feed-item.good { border-left: 3px solid var(--accent); }
.feed-item.bad { border-left: 3px solid var(--danger); }
.decision-panel {
  border: 1px solid rgba(255,210,87,.45); border-radius: 14px; padding: 14px;
  background: rgba(255,210,87,.07); animation: popIn .35s cubic-bezier(.2,1.4,.4,1) both;
}
.decision-panel .dp-label { font-size: .66rem; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; text-align: center; animation: blink 1.2s ease infinite; }
.decision-panel .dp-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.02rem; text-align: center; margin: 8px 0 12px; }
.decision-panel .dp-choices { display: flex; flex-direction: column; gap: 8px; }
.dp-choices button {
  background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 12px;
  color: var(--txt); padding: 12px 14px; font-size: .9rem; cursor: pointer; text-align: left;
  transition: all .15s; font-family: 'Inter', sans-serif; font-weight: 600;
}
.dp-choices button:hover { border-color: var(--gold); background: rgba(255,210,87,.12); transform: translateX(3px); }
.skip-btn { width: 100%; margin-top: 4px; background: none; border: none; color: var(--muted); font-size: .78rem; cursor: pointer; padding: 8px; }
.outcome-pop {
  text-align: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem;
  padding: 14px; animation: popIn .4s cubic-bezier(.2,1.5,.4,1) both;
}
.outcome-pop.good { color: var(--accent); } .outcome-pop.bad { color: var(--danger); }

/* ── Season bar ── */
.season-bar { margin-top: 14px; padding: 14px 18px; }
.season-info { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 9px; }
.season-info span:first-child { color: var(--txt); font-weight: 600; }
.progress-track { height: 7px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 5px; background: var(--wc); background-size: 200% auto; animation: wcSlide 4s linear infinite; transition: width .5s cubic-bezier(.22,1,.36,1); }

/* ── Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.stat-box { padding: 14px 8px; text-align: center; }
.stat-box .v { font-family: 'Sora', sans-serif; font-size: 1.45rem; font-weight: 700; }
.stats-row .stat-box:nth-child(1) .v { color: var(--accent); }
.stats-row .stat-box:nth-child(2) .v { color: var(--accent2); }
.stats-row .stat-box:nth-child(3) .v { color: var(--violet); }
.stats-row .stat-box:nth-child(4) .v { color: var(--gold); }
.stat-box .k { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-top: 3px; }

/* ── Trophy shelf ── */
.trophy-shelf { margin-top: 14px; padding: 12px 16px; display: flex; gap: 16px; flex-wrap: wrap; min-height: 50px; align-items: center; }
.trophy-item { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.trophy-item b { font-family: 'Sora', sans-serif; }
.trophy-empty { color: var(--muted); font-size: .82rem; }

/* ── Actions ── */
.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions button { flex: 1; }

/* ── History ── */
.career-log { margin-top: 14px; padding: 16px 18px; }
.career-log h3 { font-size: .95rem; margin-bottom: 10px; }
.h-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .84rem; }
.h-row:last-child { border: none; }
.h-row .hy { color: var(--muted); }
.h-row .hs { color: var(--accent); }

/* ── Modals ── */
.modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(5,8,16,.72); backdrop-filter: blur(6px); z-index: 100; padding: 20px;
}
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 440px; padding: 26px 22px; animation: popIn .4s cubic-bezier(.2,1.4,.4,1) both; max-height: 86vh; overflow-y: auto; position: relative; overflow-x: hidden; }
.modal-box::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--wc); background-size: 300% auto; animation: wcSlide 6s linear infinite;
}
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }

/* Match modal */
.m-day { text-align: center; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; }
.m-score { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0; }
.m-team { flex: 1; text-align: center; font-weight: 600; font-size: .92rem; }
.m-num {
  font-family: 'Sora', sans-serif; font-size: 2.6rem; font-weight: 800;
  padding: 6px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.m-result { text-align: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.m-result.win { color: var(--accent); } .m-result.draw { color: var(--gold); } .m-result.loss { color: var(--danger); }
.m-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.m-line { display: flex; justify-content: space-between; background: rgba(255,255,255,.04); padding: 10px 14px; border-radius: 12px; font-size: .9rem; }
.m-line .val { font-weight: 700; }
.m-line.highlight { border: 1px solid rgba(255,210,87,.4); background: rgba(255,210,87,.08); animation: glowLine 1.6s ease infinite alternate; }
@keyframes glowLine { from { box-shadow: 0 0 6px rgba(255,210,87,.1); } to { box-shadow: 0 0 18px rgba(255,210,87,.35); } }
.rating-badge { display: inline-block; padding: 2px 10px; border-radius: 8px; font-weight: 700; }
.rating-badge.good { background: rgba(34,211,165,.18); color: var(--accent); }
.rating-badge.avg { background: rgba(255,210,87,.15); color: var(--gold); }
.rating-badge.bad { background: rgba(255,93,115,.15); color: var(--danger); }

/* Season modal */
.s-title { text-align: center; font-size: 1.3rem; margin-bottom: 6px; }
.s-pos { text-align: center; font-size: 2.4rem; font-family: 'Sora', sans-serif; font-weight: 800; margin: 10px 0; }
.s-pos.champ { color: var(--gold); }
.s-awards { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.s-award { display: flex; align-items: center; gap: 10px; background: rgba(255,210,87,.08); border: 1px solid rgba(255,210,87,.25); padding: 11px 14px; border-radius: 12px; font-size: .9rem; animation: slideIn .5s ease both; }
.s-award:nth-child(2) { animation-delay: .12s; } .s-award:nth-child(3) { animation-delay: .24s; } .s-award:nth-child(4) { animation-delay: .36s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.s-growth { text-align: center; font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 12px 0; }
.s-growth.up { color: var(--accent); } .s-growth.down { color: var(--danger); }

/* Transfer modal */
.t-title { text-align: center; font-size: 1.25rem; margin-bottom: 4px; }
.t-sub { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 16px; }
.offer-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); margin-bottom: 10px;
  cursor: pointer; transition: all .2s; animation: slideIn .45s ease both;
}
.offer-card:nth-child(3) { animation-delay: .1s; } .offer-card:nth-child(4) { animation-delay: .2s; } .offer-card:nth-child(5) { animation-delay: .3s; }
.offer-card:hover { border-color: var(--accent); background: rgba(34,211,165,.08); transform: translateY(-2px); }
.offer-card .badge { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.08); flex-shrink: 0; }
.offer-card .o-info { flex: 1; }
.offer-card .o-club { font-weight: 700; font-size: .98rem; }
.offer-card .o-league { color: var(--muted); font-size: .76rem; }
.offer-card .o-wage { color: var(--accent); font-size: .82rem; font-weight: 600; margin-top: 2px; }
.offer-card .stars { color: var(--gold); font-size: .75rem; letter-spacing: 1px; }
.offer-card.stay { border-style: dashed; }

/* ── Big moment overlay ── */
.big-moment {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(10,14,26,.65), rgba(5,8,16,.94));
  backdrop-filter: blur(4px);
}
.big-moment.open { display: flex; }
.bm-content { text-align: center; padding: 20px; }
.bm-emoji { font-size: 5.2rem; animation: bmEmoji 1s cubic-bezier(.2,1.6,.35,1) both; filter: drop-shadow(0 0 30px rgba(255,210,87,.55)); }
@keyframes bmEmoji { 0% { transform: scale(0) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.bm-title {
  font-size: 2.1rem; font-weight: 800; margin-top: 14px; letter-spacing: 1px;
  background: linear-gradient(90deg, #ffd257, #ff5d73, #c084fc, #4f8cff, #22d3a5, #ffd257);
  background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shineText 2.6s linear infinite, bmRise .7s .15s ease both;
}
@keyframes shineText { to { background-position: 300% center; } }
@keyframes bmRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.bm-sub { color: var(--txt); opacity: .85; margin-top: 10px; font-size: 1rem; animation: bmRise .7s .3s ease both; }
.bm-tap { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .78rem; animation: blink 1.6s ease infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ── Goal flash ── */
.goal-flash {
  position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(34,211,165,.35), transparent 70%);
}
.goal-flash.fire { animation: flash .6s ease; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ── Confetti ── */
#confettiLayer { position: fixed; inset: 0; pointer-events: none; z-index: 210; overflow: hidden; }
.confetti {
  position: absolute; top: -18px; width: 10px; height: 14px; border-radius: 2px;
  animation: confFall linear forwards;
}
@keyframes confFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: .2; }
}

/* ── Life events (encounters) ── */
.event-box { padding: 0 0 20px; overflow: hidden; }
.event-img-wrap { position: relative; height: 190px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.event-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: kenBurns 9s ease-out both;
}
@keyframes kenBurns { from { transform: scale(1.14); } to { transform: scale(1); } }
.event-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,.92), transparent 55%);
}
.event-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .64rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #0a0e1a; padding: 4px 10px; border-radius: 8px;
  background: var(--wc); background-size: 250% auto; animation: wcSlide 5s linear infinite;
}
.event-title {
  position: absolute; bottom: 10px; left: 16px; right: 16px; z-index: 2;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.2rem; text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.event-body { padding: 16px 20px 0; }
.event-text { color: var(--txt); opacity: .9; font-size: .92rem; line-height: 1.5; margin-bottom: 14px; animation: fadeUp .4s .1s ease both; }
.event-choices { display: flex; flex-direction: column; gap: 9px; }
.event-choices button {
  background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 13px;
  color: var(--txt); padding: 13px 15px; font-size: .92rem; cursor: pointer; text-align: left;
  transition: all .15s; font-family: 'Inter', sans-serif; font-weight: 600; animation: slideIn .4s ease both;
}
.event-choices button:nth-child(2) { animation-delay: .1s; }
.event-choices button:nth-child(3) { animation-delay: .2s; }
.event-choices button:hover { border-color: var(--violet); background: rgba(192,132,252,.12); transform: translateX(3px); }
.event-outcome { text-align: center; animation: popIn .4s cubic-bezier(.2,1.4,.4,1) both; }
.event-outcome .eo-txt { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; }
.event-outcome.good .eo-txt { color: var(--accent); }
.event-outcome.bad .eo-txt { color: var(--danger); }
.eff-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.eff-chip {
  padding: 5px 12px; border-radius: 20px; font-size: .82rem; font-weight: 700; font-family: 'Sora', sans-serif;
  background: rgba(255,255,255,.07); border: 1px solid var(--border); animation: popIn .35s ease both;
}
.eff-chip:nth-child(2) { animation-delay: .08s; } .eff-chip:nth-child(3) { animation-delay: .16s; }
.eff-chip:nth-child(4) { animation-delay: .24s; } .eff-chip:nth-child(5) { animation-delay: .32s; }
.eff-chip.pos { color: var(--accent); border-color: rgba(34,211,165,.4); }
.eff-chip.neg { color: var(--danger); border-color: rgba(255,93,115,.4); }

/* ── Signup nag toast ── */
.nag-toast {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 300;
  background: rgba(15,21,38,.97); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: nagUp .45s cubic-bezier(.2,1.2,.4,1) both;
  max-width: 520px; margin: 0 auto;
}
.nag-toast::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 16px 16px 0 0;
  background: var(--wc); background-size: 300% auto; animation: wcSlide 6s linear infinite;
}
@keyframes nagUp { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
.nag-txt { font-size: .86rem; line-height: 1.45; margin-bottom: 10px; }
.nag-btns { display: flex; gap: 8px; }
.nag-btns button { flex: 1; padding: 10px 12px; font-size: .84rem; }

/* ── Account modal ── */
.acct-field { margin-bottom: 10px; }
.acct-field label { display: block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.acct-field input {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; color: var(--txt); font-size: .95rem; outline: none;
}
.acct-field input:focus { border-color: var(--accent); }
.acct-note { font-size: .76rem; color: var(--muted); text-align: center; margin: 10px 0 14px; line-height: 1.5; }

/* ── Retirement ── */
.retire-card { padding: 30px 24px; text-align: center; }
.retire-badge { font-size: 4.5rem; animation: bmEmoji 1s cubic-bezier(.2,1.6,.35,1) both; }
.retire-card h1 { font-size: 1.6rem; margin-top: 10px; }
.retire-card p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.retire-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.retire-stats .rs { background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 14px; padding: 14px 6px; }
.retire-stats .rs .v { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.retire-stats .rs .k { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; }
.retire-trophies { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; font-size: .95rem; }

@media (max-width: 420px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .bm-title { font-size: 1.6rem; }
}
