/* Lyfeer — clean, modern, clear */

:root {
  --bg: #e9ecf4;
  --dot: rgba(40, 48, 80, .09);
  --app: #f6f7fb;
  --card: #ffffff;
  --card-2: #eff1f7;
  --text: #12141c;
  --muted: #6a7085;
  --line: #e3e6ef;
  --accent: #6d5efc;
  --accent-2: #9a8cff;
  --accent-soft: rgba(109, 94, 252, .12);
  --on-accent: #ffffff;
  --good: #16a34a;
  --good-soft: rgba(22, 163, 74, .12);
  --bad: #e11d48;
  --bad-soft: rgba(225, 29, 72, .1);
  --warn: #f59e0b;
  --milestone: #7c3aed;
  --shadow: 0 1px 2px rgba(18, 20, 28, .04), 0 8px 24px rgba(18, 20, 28, .06);
  --shadow-lg: 0 24px 60px rgba(18, 20, 28, .18);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --toast-up: #4ade80;
  --toast-down: #fb7185;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #05060a;
  --dot: rgba(255, 255, 255, .05);
  --app: #0d0f15;
  --card: #151821;
  --card-2: #1c202b;
  --text: #eceef5;
  --muted: #8b91a6;
  --line: #242836;
  --accent: #8577ff;
  --accent-2: #b1a7ff;
  --accent-soft: rgba(133, 119, 255, .16);
  --good: #22c55e;
  --good-soft: rgba(34, 197, 94, .14);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, .13);
  --milestone: #a78bfa;
  --toast-up: #15803d;
  --toast-down: #be123c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05060a;
    --dot: rgba(255, 255, 255, .05);
    --app: #0d0f15;
    --card: #151821;
    --card-2: #1c202b;
    --text: #eceef5;
    --muted: #8b91a6;
    --line: #242836;
    --accent: #8577ff;
    --accent-2: #b1a7ff;
    --accent-soft: rgba(133, 119, 255, .16);
    --good: #22c55e;
    --good-soft: rgba(34, 197, 94, .14);
    --bad: #fb7185;
    --bad-soft: rgba(251, 113, 133, .13);
    --milestone: #a78bfa;
  --toast-up: #15803d;
  --toast-down: #be123c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- app frame ---------- */
.app {
  position: relative;
  max-width: 460px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--app);
  overflow: hidden;
}
@media (min-width: 560px) and (min-height: 700px) {
  .app {
    height: min(920px, calc(100dvh - 48px));
    margin-top: max(24px, calc((100dvh - 920px) / 2));
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
  }
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: 14px;
  background: var(--card); color: var(--text);
  font-weight: 600; font-size: 15px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .12s ease, background .15s ease, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px var(--accent-soft); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--card-2); }
.btn-danger { color: var(--bad); }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn small { font-weight: 500; opacity: .8; font-size: 12px; }
#btn-continue { flex-direction: column; gap: 0; }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; color: var(--muted);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--card-2); color: var(--text); }
.icon-btn-spacer { width: 40px; }

/* ---------- start ---------- */
.screen-start { justify-content: space-between; padding: 48px 24px calc(24px + env(safe-area-inset-bottom)); }
.start-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pixel-heart { width: 84px; height: 72px; fill: var(--accent); stroke: none; margin-bottom: 28px; animation: beat 1.6s ease-in-out infinite; filter: drop-shadow(0 10px 24px var(--accent-soft)); }
.pixel-heart .shine { fill: rgba(255, 255, 255, .55); }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(1); } 36% { transform: scale(1.06); } 48% { transform: scale(1); } }
.logo { font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -1.5px; margin: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); margin: 18px 0 0; font-size: 15px; }
.start-actions { display: grid; gap: 10px; }
.start-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0 0; }

/* ---------- new life form ---------- */
.subbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; padding-top: calc(14px + env(safe-area-inset-top)); }
.subbar h2 { font-size: 17px; margin: 0; }
.form { flex: 1; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.form > .field { flex: none; }
.field-row { display: flex; gap: 12px; }
.field input, .field select {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); outline: none; font-size: 16px; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--card-2); border-radius: 14px; }
.segmented button { height: 40px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s; }
.segmented button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.form-actions { margin-top: auto; display: grid; gap: 8px; }

/* ---------- game header ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--card); border-bottom: 1px solid var(--line);
}
.avatar { width: 48px; height: 48px; flex: none; border-radius: 16px; background: var(--card-2); display: grid; place-items: center; font-size: 28px; }
.who { flex: 1; min-width: 0; }
.who .name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.bank { text-align: right; }
.bank-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.bank-value { font-weight: 700; font-size: 16px; color: var(--good); font-variant-numeric: tabular-nums; }
.bank-value.zero { color: var(--muted); }

/* ---------- feed ---------- */
.feed { flex: 1; overflow-y: auto; padding: 16px 16px 8px; scroll-behavior: smooth; }
.year { margin-bottom: 18px; }
.year-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.age-chip { font-weight: 700; font-size: 13px; color: var(--accent); }
.year-num { font-size: 12px; color: var(--muted); }
.year ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.year li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; }
.year li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--line); }
.year li.good::before { background: var(--good); }
.year li.bad::before { background: var(--bad); }
.year li.milestone { font-weight: 600; }
.year li.milestone::before { background: var(--milestone); }
.year.latest { background: var(--card); border-radius: var(--radius); padding: 14px 14px 14px 12px; box-shadow: var(--shadow); animation: rise .3s ease; }
.year.empty li { color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 12px 16px; background: var(--card); border-top: 1px solid var(--line); }
.stat-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.stat-top span:first-child { color: var(--muted); }
.stat-top b { font-variant-numeric: tabular-nums; }
.bar { height: 7px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--good); transition: width .5s cubic-bezier(.2, .8, .2, 1), background .3s; }
.bar > i.mid { background: var(--warn); }
.bar > i.low { background: var(--bad); }
.bar > i.accent { background: var(--accent); }
.stat.bump b { animation: pop .5s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* ---------- dock ---------- */
.dock {
  display: grid; grid-template-columns: 1fr 1fr 88px 1fr 1fr; align-items: end;
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.dock-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 4px; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 12px; transition: color .15s; }
.dock-btn:hover { color: var(--text); }
.dock-btn:disabled { opacity: .35; }
.age-btn {
  justify-self: center; width: 70px; height: 70px; margin-top: -26px;
  border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: var(--on-accent); font-weight: 700; font-size: 12px;
  box-shadow: 0 10px 24px var(--accent-soft), 0 0 0 5px var(--card);
  transition: transform .12s ease;
}
.age-btn svg { width: 28px; height: 28px; stroke-width: 2.6; }
.age-btn:active:not(:disabled) { transform: scale(.93); }
.age-btn:disabled { filter: grayscale(1); opacity: .5; }

/* ---------- sheet ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .45); animation: fade .2s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%;
  display: flex; flex-direction: column;
  background: var(--app); border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-lg);
  animation: slideup .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 16px; }
.sheet-head h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; }
#sheet-back:not([hidden]) + h3 { margin-left: -4px; }
.sheet-body { overflow-y: auto; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- content blocks ---------- */
.section-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 20px 4px 8px; }
.section-title:first-child { margin-top: 8px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 10px; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 24px; flex: none; }
.card-title { font-weight: 700; font-size: 16px; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kv div { background: var(--card-2); border-radius: 12px; padding: 10px 12px; }
.kv span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kv b { display: block; font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.meter { margin-top: 14px; }
.meter .stat-top { font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1 1 auto; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 4px 0; line-height: 1.45; }

.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
button.row:hover:not(:disabled) { background: var(--card-2); }
.row:disabled { opacity: 1; }
.row-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row-end { flex: none; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.row-end svg { width: 18px; height: 18px; }
.row.locked .row-title, .row.locked .row-icon { opacity: .5; }
.row .mini-bar { margin-top: 6px; height: 5px; }
.lock { font-size: 12px; color: var(--muted); font-weight: 500; text-align: right; max-width: 130px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--card-2); color: var(--muted); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-align: left;
  transition: transform .12s ease;
}
.tile:active:not(:disabled) { transform: scale(.97); }
.tile:disabled { opacity: .45; }
.tile .t-icon { font-size: 24px; }
.tile .t-label { font-weight: 700; font-size: 15px; }
.tile .t-desc { font-size: 12px; color: var(--muted); line-height: 1.35; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--card-2); border-radius: 12px; margin-bottom: 12px; }
.tabs button { flex: 1; height: 34px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.person-head { text-align: center; padding: 8px 0 4px; }
.person-head .big-avatar { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 24px; background: var(--card-2); display: grid; place-items: center; font-size: 42px; }
.person-head h4 { margin: 0; font-size: 20px; }

/* ---------- time budget ---------- */
.timebar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--card); border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.timebar .tb-dots { display: flex; gap: 4px; flex: 1; }
.timebar .tb-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--card-2); }
.timebar .tb-dots i.on { background: var(--accent); }
.timebar .tb-num { font-variant-numeric: tabular-nums; color: var(--text); }
.timebar.empty .tb-label { color: var(--bad); }
.rival { display: flex; gap: 10px; align-items: flex-start; background: var(--bad-soft); border-radius: 12px; padding: 10px 12px; margin-top: 14px; }
.rival > span { font-size: 20px; }
.rival b { display: block; font-size: 14px; }
.rival small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.4; }

/* ---------- careers & business ---------- */
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn-grid .btn { width: 100%; }
.row.rung .row-icon { font-size: 14px; font-weight: 700; color: var(--muted); }
.row.rung.past .row-title { color: var(--muted); }
.row.rung.past .row-icon { background: var(--good-soft); color: var(--good); }
.row.rung.current { background: var(--accent-soft); }
.row.rung.current .row-title { color: var(--accent); }
.row.rung.future .row-title { opacity: .75; }
.row-end .btn + .btn { margin-left: 2px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 16px; }
.bars i { flex: 1; min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--good); opacity: .85; }
.bars i.neg { background: var(--bad); }
.bars-cap { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: right; }
.tabs button:disabled { opacity: .5; }

/* ---------- personality, goals, news ---------- */
.year li.news { color: var(--muted); font-style: italic; }
.year li.news::before { background: var(--accent-2); }
.year li.achievement { font-weight: 700; color: var(--warn); }
.year li.achievement::before { background: var(--warn); }
.traits { display: grid; gap: 8px; margin-top: 14px; }
.trait { display: flex; gap: 10px; align-items: center; background: var(--card-2); border-radius: 12px; padding: 10px 12px; }
.trait > span { font-size: 22px; }
.trait b { display: block; font-size: 14px; }
.trait small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.tchip { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.trait-pick { display: flex; align-items: center; gap: 8px; }
.trait-pick .tchips { justify-content: flex-start; margin: 0; flex: 1; }
.card.goal.done { box-shadow: inset 0 0 0 2px var(--good), var(--shadow); }

/* ---------- defining moments ---------- */
.moments { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.moments li { font-size: 13px; line-height: 1.4; padding-left: 14px; position: relative; color: var(--muted); }
.moments li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--line); }
.moments li.good { color: var(--text); } .moments li.good::before { background: var(--good); }
.moments li.bad { color: var(--text); } .moments li.bad::before { background: var(--bad); }

/* ---------- modal ---------- */
.modal-wrap { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .55); animation: fade .2s ease; }
.modal {
  position: relative; width: 100%; max-width: 360px;
  background: var(--card); border-radius: 24px; padding: 24px 20px 20px;
  box-shadow: var(--shadow-lg); text-align: center;
  animation: popin .25s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes popin { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.modal .m-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.modal h3 { margin: 0 0 8px; font-size: 19px; }
.modal p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.modal .choices { display: grid; gap: 8px; margin-top: 20px; }
.modal .choices .btn { width: 100%; }
.modal .result { color: var(--text); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--card-2); color: var(--muted); }
.chip.up { background: var(--good-soft); color: var(--good); }
.chip.down { background: var(--bad-soft); color: var(--bad); }

/* ---------- toast ---------- */
.toast {
  position: absolute; left: 16px; right: 16px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--text); color: var(--app); border-radius: 16px; padding: 12px 14px;
  font-size: 14px; font-weight: 500; line-height: 1.4; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast .chips { justify-content: flex-start; margin-top: 8px; }
.toast .chip { background: rgba(127, 127, 127, .2); color: inherit; }
.toast .chip.up { color: var(--toast-up); }
.toast .chip.down { color: var(--toast-down); }

/* ---------- death ---------- */
.screen-death { overflow-y: auto; padding: 40px 20px calc(24px + env(safe-area-inset-bottom)); display: block; }
.tomb { text-align: center; margin-bottom: 20px; animation: rise .5s ease; }
.tomb .stone { font-size: 64px; }
.tomb h2 { margin: 10px 0 4px; font-size: 24px; }
.tomb .dates { color: var(--muted); font-size: 14px; }
.tomb .cause { margin-top: 10px; font-size: 15px; }
.ribbon { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); box-shadow: 0 12px 30px var(--accent-soft); }
.ribbon .r-icon { font-size: 34px; }
.ribbon .r-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; font-weight: 700; }
.ribbon .r-name { font-size: 20px; font-weight: 800; }
.ribbon .r-text { font-size: 13px; opacity: .9; }
.death-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- hall of fame ---------- */
.hof-rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); font-size: 14px; flex: none; }
.hof-rank.top { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
