/* Componentes reutilizáveis (docs/08). */

/* ---- Botões ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: 800 0.95rem var(--font-display); letter-spacing: 0.01em;
    transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* ---- NEXO ---- */
.btn--primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 22px -10px rgba(150, 190, 0, 0.8); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: 0 10px 26px -10px rgba(150, 190, 0, 0.9); }
.btn--ghost { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-active); }
.btn--danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.35); color: #b91c1c; }
.btn--danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.3); }
.btn--text { background: none; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn--xl { padding: 16px 28px; font-size: 1.05rem; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); }
.icon-btn:hover { background: var(--bg-active); color: var(--text); }
.icon-btn--sm { width: 30px; height: 30px; }

/* ---- Chips e recompensas ---- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font: 700 0.68rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-active); color: var(--text-muted); }
.chip--main { background: rgba(124, 58, 237, 0.1); color: #6d28d9; }
.chip--daily { background: rgba(14, 143, 176, 0.12); color: #0e7490; }
.chip--secondary { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.chip--muted { background: var(--bg-active); }

.chip-btn { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn--accent { border-color: var(--ink); color: var(--text); }
.rewards { display: inline-flex; gap: var(--space-3); white-space: nowrap; }
.reward { display: inline-flex; align-items: center; gap: 3px; font: 700 0.85rem var(--font-display); letter-spacing: 0.04em; }
.reward--xp { padding: 1px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-text); }
.reward--coin { color: var(--yellow); }
.reward--hp { color: var(--hp-color); }
.reward--lg { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); font-size: 1.15rem; }

/* ---- Barras ---- */
.bar__head { display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: 4px; font: 700 0.7rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.bar__track { height: 10px; border-radius: 999px; background: var(--bg-active); overflow: hidden; }
.bar__fill { height: 100%; min-width: 4px; border-radius: 999px; transition: width 0.5s var(--ease); }
.bar__fill--hp { background: var(--hp-color); }
.bar__fill--xp { background: var(--xp-color); }
.bar__fill--purple { background: var(--purple); }
.bar__fill--cyan { background: #22b8e0; }
.bar__fill--pink { background: var(--pink); }
.bar__fill--green { background: var(--green); }

/* ---- Avatar e balão de fala ---- */
.avatar { --c: #9ca3af; display: inline-grid; place-items: center; flex: none; border-radius: 32%; background: color-mix(in srgb, var(--c) 16%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 70%, #fff); color: color-mix(in srgb, var(--c) 85%, #14171a); }
.avatar--sm { width: 28px; height: 28px; font-size: 0.85rem; }
.avatar--md { width: 42px; height: 42px; font-size: 1.1rem; }
.avatar--lg { width: 54px; height: 54px; font-size: 1.4rem; }
.avatar--xl { width: 72px; height: 72px; font-size: 1.9rem; }

.bubble { --c: #9ca3af; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-card); text-align: left; }
.bubble__name { display: block; margin-bottom: 2px; font: 800 0.72rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 80%, #14171a); }
.bubble__body p { font-size: 0.92rem; }
.bubble--compact { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
.bubble--compact .bubble__body p { font-size: 0.86rem; }
.bubble-link { width: 100%; padding: 0; border: 0; background: none; text-align: left; }

/* ---- Vazio / aviso ---- */
.empty { display: grid; place-items: center; gap: var(--space-2); padding: var(--space-8) var(--space-4); text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); }
.empty .ms { font-size: 2.2rem; color: var(--ink); }
.empty strong { color: var(--text); }
.notice { display: flex; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: 0.85rem; background: rgba(14, 143, 176, 0.08); border: 1px solid rgba(14, 143, 176, 0.25); color: #0e7490; }
/* ---- Cartão de missão ---- */
.mission-card { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-card); transition: transform var(--duration-fast) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); cursor: pointer; }
.mission-card:hover { transform: translateY(-1px); border-color: rgba(20, 23, 26, 0.3); box-shadow: 0 14px 34px -18px rgba(20, 23, 26, 0.35); }
.mission-card--main { border-color: rgba(20, 23, 26, 0.28); }
.mission-card__top { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.mission-card__title { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.mission-card__micro { display: flex; gap: 6px; font-size: 0.82rem; color: #0e7490; }
/* ---- Formulários ---- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { padding: 0; font: 700 0.72rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea, .inline-form input, #giveup-input {
    width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-base); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus, #giveup-input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.field__hint { color: var(--text-muted); font-size: 0.78rem; }
.field__error { min-height: 0; color: #dc2626; font-size: 0.8rem; font-style: normal; }
.radios { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.radios--col { flex-direction: column; }
.radio { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.radio-card { flex: 1; min-width: 140px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: grid; place-items: center; gap: 4px; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); }
.radio-card input:checked + span { border-color: var(--ink); background: var(--accent-soft); }
.radio-card input:focus-visible + span { outline: 2px solid var(--cyan); }
.radios--cards { display: flex; gap: var(--space-3); }

.toggle { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; }
.toggle small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.toggle input { position: absolute; opacity: 0; }
.toggle__ui { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--bg-active); border: 1px solid var(--border); position: relative; transition: background var(--duration) var(--ease); }
.toggle__ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 23, 26, 0.3); transition: transform var(--duration) var(--ease), background var(--duration) var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--accent); border-color: var(--ink); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); background: var(--ink); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--cyan); }

/* ---- Camadas: sheet (Campo), painel lateral (Central) e modal ---- */
.layer { position: fixed; inset: 0; z-index: 300; display: flex; pointer-events: none; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(20, 23, 26, 0.45); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--duration) var(--ease); }
.layer__panel { position: relative; display: flex; flex-direction: column; max-height: 100dvh; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-pop); pointer-events: auto; transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.layer.is-open { pointer-events: auto; }
.layer.is-open .layer__backdrop { opacity: 1; }
.layer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: 1px solid var(--border); }
.layer__head h2 { font: 800 1.2rem var(--font-display); letter-spacing: -0.01em; }
.layer__body { padding: var(--space-4); overflow-y: auto; padding-bottom: max(var(--space-6), env(safe-area-inset-bottom)); }

.layer--sheet { align-items: flex-end; justify-content: center; }
.layer--sheet .layer__panel { width: min(100%, 520px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); max-height: 92dvh; }
.layer--sheet.is-open .layer__panel { transform: none; }
.layer--panel { justify-content: flex-end; }
.layer--panel .layer__panel { width: min(100%, 460px); height: 100dvh; border-radius: var(--radius-lg) 0 0 var(--radius-lg); transform: translateX(100%); }
.layer--panel.is-open .layer__panel { transform: none; }
.layer--modal { align-items: center; justify-content: center; padding: var(--space-4); }
.layer--modal .layer__panel { width: min(100%, 440px); border-radius: var(--radius-lg); opacity: 0; transform: scale(0.95); }
.layer--modal.is-open .layer__panel { opacity: 1; transform: none; }
.layer__panel.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---- Toast e fala flutuante ---- */
.toast { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; z-index: 500; display: flex; align-items: center; gap: 8px; max-width: min(92vw, 460px); padding: 11px 18px; border: 1px solid transparent; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); font-size: 0.88rem; font-weight: 600; transform: translate(-50%, -140%); opacity: 0; pointer-events: none; transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast[data-type="error"] { background: #b91c1c; }
.toast[data-type="warn"] { background: #b45309; }
.toast[data-type="success"] { background: var(--ink); border-color: var(--accent); }
.voice { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 250; width: min(92vw, 480px); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.voice.is-visible { transform: translate(-50%, 0); opacity: 1; }
.voice .bubble { box-shadow: var(--shadow-pop); background: var(--bg-card); }
body[data-layout="central"] .voice { left: auto; right: 24px; bottom: 24px; transform: translateY(24px); }
body[data-layout="central"] .voice.is-visible { transform: none; }

/* ---- Overlays de tela cheia ---- */
.fullscreen { position: fixed; inset: 0; z-index: 350; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-6); text-align: center; background: rgba(245, 246, 248, 0.97); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s var(--ease); overflow-y: auto; }
.fullscreen.is-open { opacity: 1; }
.fullscreen__icon { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 32px; border: 2px solid var(--ink); background: var(--accent); color: var(--ink); font-size: 3rem; box-shadow: 0 22px 46px -18px rgba(150, 190, 0, 0.9); animation: float 2.4s ease-in-out infinite; }
.fullscreen__icon .ms { font-size: 3.6rem; }
.fullscreen__icon--gold { border-color: #b45309; background: #fff3d6; color: #b45309; box-shadow: 0 22px 46px -18px rgba(245, 158, 11, 0.8); }
.fullscreen__icon--danger { border-color: #ef4444; background: #fee2e2; color: #dc2626; box-shadow: 0 22px 46px -18px rgba(239, 68, 68, 0.7); animation: none; }
.fullscreen__title { font: 800 clamp(1.9rem, 6vw, 2.9rem) var(--font-display); letter-spacing: -0.02em; }
.fullscreen__title--danger { color: #dc2626; }
.fullscreen__sub { max-width: 40ch; color: var(--text-muted); }
.fullscreen__rewards { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.fullscreen__voice { width: min(100%, 460px); }
.fullscreen__note { display: flex; gap: 6px; align-items: center; color: #0e7490; font-size: 0.9rem; }
.fullscreen--fail { background: rgba(254, 242, 242, 0.97); }
.fullscreen__btn { margin-top: var(--space-2); min-width: min(100%, 280px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Select do sistema (docs/17): botão + lista no mesmo visual dos inputs ---- */
.select { position: relative; }
.select__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select__btn {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); width: 100%; min-height: 48px;
    padding: 11px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-base); color: var(--text);
    text-align: left; transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.select__btn:hover { border-color: rgba(20, 23, 26, 0.4); background: var(--bg-card); }
.select__btn:focus-visible, .select.is-open .select__btn { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__chev { flex: none; color: var(--text-muted); transition: transform var(--duration) var(--ease); }
.select.is-open .select__chev { transform: rotate(180deg); }

.select__list {
    position: fixed; z-index: 600; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
    box-shadow: var(--shadow-pop);
    animation: select-in var(--duration-fast) var(--ease);
}
.select__list[hidden] { display: none; }
@keyframes select-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.select__opt {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 42px; padding: 9px 12px;
    border-radius: 10px; color: var(--text); font-size: 0.92rem; cursor: pointer; transition: background var(--duration-fast) var(--ease);
}
.select__opt + .select__opt { margin-top: 2px; }
.select__opt.is-active, .select__opt:hover { background: var(--bg-active); }
.select__opt.is-selected { color: var(--ink); font-weight: 800; background: var(--accent-soft); }
/* seletor mais específico que `html.icons-ready .ms` (senão todos os ✓ aparecem) */
html .select__opt:not(.is-selected) .select__check { visibility: hidden; }
.select__check { flex: none; color: var(--ink); }
.field--narrow { max-width: 380px; }
.form__row > * { min-width: 0; }
.select__list::-webkit-scrollbar { width: 6px; }
.select__list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

/* ---- F2–F5: contexto, relâmpago, formulários e componentes novos ---- */
.chip--bonus { background: #fff3d6; color: #92400e; }
.avail { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.avail strong { display: block; font-size: 0.95rem; }
.avail p { color: var(--text-muted); font-size: 0.82rem; }
.avail > div { flex: 1; min-width: 0; }
.avail__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-active); }
.avail--on { border-color: rgba(5, 150, 105, 0.4); }
.avail--on .avail__icon { color: var(--green); background: rgba(6, 214, 160, 0.12); }
.avail--off { border-color: rgba(255, 183, 3, 0.4); }
.avail--off .avail__icon { color: var(--yellow); background: rgba(255, 183, 3, 0.12); }
.avail--compact { padding: var(--space-2) var(--space-3); }

.hint-card { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-4); margin-bottom: var(--space-4); border: 1px dashed rgba(20, 23, 26, 0.3); border-radius: var(--radius-md); background: var(--accent-soft); }
.hint-card p { color: var(--text-muted); font-size: 0.85rem; }
.row-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.mission-card.is-offer { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.mission-card.is-off-context { opacity: 0.62; }
.mission-card__where { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--text-muted); }
.mission-card__where.is-warn { color: var(--yellow); }
.flash-card { border-color: rgba(245, 158, 11, 0.55); background: linear-gradient(135deg, #fff8e6, #ffffff); cursor: default; }
.flash-card__timer { display: flex; align-items: center; gap: 6px; color: #b45309; font-size: 0.85rem; }
.flash-card__timer b { font: 700 1.1rem var(--font-display); font-variant-numeric: tabular-nums; }
.section__title--flash { color: var(--yellow); }
.section__title--offer { color: var(--cyan); }

.form__row--3 { grid-template-columns: repeat(3, 1fr); }
.field input[type="time"], .field input[type="date"] { color-scheme: light; }
.chips-check { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-check { cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-surface); color: var(--text-muted); font-size: 0.85rem; font-weight: 600; transition: all var(--duration-fast) var(--ease); }
.chip-check input:checked + span { background: var(--accent); border-color: var(--ink); color: var(--ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--cyan); }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch input:checked + .toggle__ui { background: var(--accent); border-color: var(--ink); }
.switch input:checked + .toggle__ui::after { transform: translateX(18px); background: var(--ink); }
.icon-pick { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.icon-pick__opt input { position: absolute; opacity: 0; }
.icon-pick__opt span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-surface); cursor: pointer; font-size: 1.2rem; }
.icon-pick__opt input:checked + span { border-color: var(--ink); background: var(--accent); color: var(--ink); }
.gen-bar { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.gen-results { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); }
.gen-results[hidden] { display: none; }
.idea { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); text-align: left; }
.idea:hover { border-color: var(--ink); }
.idea small { color: var(--text-muted); }
.streak { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid rgba(255, 140, 60, 0.45); border-radius: 14px; background: rgba(255, 140, 60, 0.14); color: #ff9a4a; font: 800 0.95rem var(--font-display); }
.head-stats { display: flex; align-items: center; gap: var(--space-2); }
.coins--lg { font-size: 1.4rem; padding: 8px 16px; }
.fullscreen__note--gold { color: #b45309; font: 800 1.2rem var(--font-display); letter-spacing: 0.1em; }

/* Horário e data no visual do sistema */
.pick { display: flex; align-items: center; gap: 6px; }
.pick .select { flex: 1; min-width: 0; }
.pick__sep { font: 700 1.1rem var(--font-display); color: var(--text-muted); }
.pick .select__btn { padding-inline: 10px; gap: 2px; }
.pick .select__value { overflow: visible; text-overflow: clip; }
.pick .select__chev { font-size: 1.1rem; }

/* Entrada / cadastro */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-active); }
.tabs__tab { padding: 10px; border-radius: 999px; font: 800 0.85rem var(--font-display); color: var(--text-muted); }
.tabs__tab.is-on { background: var(--ink); color: #fff; }
.auth input[type="email"], .auth input[type="password"] { width: 100%; }
.tabs__tab { background: transparent; border: 0; cursor: pointer; }
.tabs__tab:not(.is-on):hover { color: var(--text); }

/* ---- Sede e fome, presentes ---- */
.bar__fill--thirst { background: var(--sede-color); }
.bar__fill--hunger { background: var(--fome-color); }
.vitals { display: grid; gap: var(--space-3); margin-bottom: var(--space-4); }
.vital { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.vital.is-empty { border-color: rgba(251, 146, 60, 0.4); }
.btn--sm { padding: 8px 14px; font-size: 0.85rem; min-height: 40px; }
.vital .btn { justify-self: start; }
.vital-config { display: grid; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.gift-banner { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); border: 1px solid rgba(245, 158, 11, 0.6); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff3d6, #ffffff); text-align: left; animation: gift-pulse 2.2s ease-in-out infinite; }
.gift-banner > .ms { color: #d97706; font-size: 1.8rem; }
.gift-banner small { display: block; color: var(--text-muted); }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.gift-card { display: grid; justify-items: center; gap: 4px; padding: var(--space-4); border: 1px solid rgba(245, 158, 11, 0.5); border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff3d6, #ffffff); box-shadow: var(--shadow-card); }
.gift-card > .ms { color: var(--yellow); font-size: 2.2rem; }
.gift-card small { color: var(--text-muted); }
.gift-box { animation: gift-shake 0.9s ease-in-out infinite; }
.gift-reveal { animation: gift-pop 0.7s var(--ease) both; }
.gift-reveal--rare { box-shadow: 0 0 60px -10px var(--cyan); }
.gift-reveal--epic { box-shadow: 0 0 70px -6px var(--pink); }
@keyframes gift-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(5deg); } }
@keyframes gift-pop { 0% { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes gift-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.35); } 50% { box-shadow: 0 0 24px 0 rgba(255, 183, 3, 0.25); } }
body[data-reduce-motion="true"] .gift-box, body[data-reduce-motion="true"] .gift-banner, body[data-reduce-motion="true"] .gift-reveal { animation: none; }
@media (prefers-reduced-motion: reduce) { .gift-box, .gift-banner, .gift-reveal { animation: none; } }
