/* life_ui.css: eat / drink / party sheet + tipsy HUD chip (Island Luxe tokens from design.css) */
#nl-life { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 14, 34, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: nlLfade .18s ease-out; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
#nl-life[hidden] { display: none; }
@keyframes nlLfade { from { opacity: 0; } }
@keyframes nlLrise { from { transform: translateY(24px); opacity: 0; } }
.nlife-sheet { width: min(100%, 620px); max-height: min(92dvh, 860px); display: flex; flex-direction: column; background: var(--nl-bg, #F3F6FB); color: var(--nl-ink, #0B1430); border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 -14px 50px rgba(0, 0, 0, .35); animation: nlLrise .24s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 700px) { #nl-life { align-items: center; } .nlife-sheet { border-radius: 26px; max-height: min(88dvh, 820px); } }
.nlife-hero { position: relative; padding: 16px 18px 14px; color: #fff; background: var(--nl-grad-sunrise); }
.nlife-hero.k-club, .nlife-hero.k-party { background: linear-gradient(150deg, #2A1B63 0%, #0B1430 60%, #E8336D 150%); }
.nlife-hero.k-shack { background: var(--nl-grad-lagoon); }
.nlife-hero.k-fine { background: linear-gradient(135deg, #1B2A5C 0%, #0B1430 60%, #C9A24A 150%); }
.nlife-hero.k-bar { background: linear-gradient(135deg, #FF9E3D 0%, #E8336D 100%); }
.nlife-hero.k-home { background: var(--nl-f-homes, linear-gradient(135deg, #FFD3B0, #FF7FA8)); color: var(--nl-ink, #0B1430); }
.nlife-hero.k-rush { background: var(--nl-grad-junkanoo); }
.nlife-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.nlife-hero h2 { margin: 3px 0 2px; font-family: var(--nl-font-display, 'Bricolage Grotesque', system-ui, sans-serif); font-weight: 800; font-size: 25px; letter-spacing: -.02em; line-height: 1.05; padding-right: 48px; }
.nlife-hero p { margin: 0; font-size: 13px; opacity: .92; }
.nlife-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.nlife-x:focus-visible, .nlife-tab:focus-visible, .nlife-buy:focus-visible, .nlife-act:focus-visible { outline: 3px solid var(--nl-gold, #FFC72C); outline-offset: 2px; }
.nlife-meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.nlife-m { background: rgba(255, 255, 255, .2); border-radius: 12px; padding: 6px 8px 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.nlife-m b { display: block; height: 6px; margin-top: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.nlife-m i { display: block; height: 100%; border-radius: 4px; background: #fff; transition: width .5s; }
.nlife-m.tip i { background: var(--nl-gold, #FFC72C); }
.nlife-m.low i { background: #FF6F59; }
.nlife-tabs { display: flex; gap: 8px; padding: 12px 14px 4px; }
.nlife-tab { flex: 1; min-height: 44px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 14px; background: var(--nl-surface, #fff); color: var(--nl-ink-2, #3A4566); box-shadow: inset 0 0 0 1px var(--nl-line, rgba(11, 20, 48, .08)); cursor: pointer; }
.nlife-tab[aria-selected="true"] { background: var(--nl-ink, #0B1430); color: #fff; box-shadow: none; }
.nlife-body { overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); flex: 1; }
.nlife-msg { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--nl-tint-seaglass, #CDEFE6); font-size: 13px; font-weight: 600; line-height: 1.35; }
.nlife-msg.warn { background: var(--nl-tint-apricot, #FCE3C2); }
.nlife-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.nlife-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: var(--nl-surface, #fff); box-shadow: 0 1px 0 var(--nl-line, rgba(11, 20, 48, .08)), 0 8px 22px -14px rgba(11, 20, 48, .35); }
.nlife-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--nl-tint-sand, #EEDFC6); }
.nlife-card .ic svg { width: 40px; height: 40px; }
.nlife-card h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.15; }
.nlife-card .ds { margin: 0; font-size: 12px; color: var(--nl-ink-3, #7A84A3); line-height: 1.3; flex: 1; }
.nlife-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.nlife-chip { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: var(--nl-tint-ice, #DCEFFB); color: var(--nl-ink-2, #3A4566); }
.nlife-chip.h { background: #FFE0D6; color: #A8381E; } .nlife-chip.f { background: #E3DDF5; color: #4C3FA8; } .nlife-chip.s { background: #D7EBD2; color: #256B35; } .nlife-chip.e { background: #F6E6B0; color: #7A5A00; } .nlife-chip.t { background: #FAD9E0; color: #A3174A; }
.nlife-buy { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 14px; color: #fff; background: var(--nl-ink, #0B1430); cursor: pointer; }
.nlife-buy .pr { font-variant-numeric: tabular-nums; color: var(--nl-gold, #FFC72C); }
.nlife-buy:disabled { opacity: .45; cursor: not-allowed; }
.nlife-eating { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 18px; background: var(--nl-surface, #fff); box-shadow: 0 0 0 2px var(--nl-aqua, #00C2C7) inset; }
.nlife-eating .ic svg { width: 40px; height: 40px; animation: nlLbob .7s ease-in-out infinite; }
@keyframes nlLbob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.nlife-eating .tx { flex: 1; font-size: 13px; font-weight: 700; }
.nlife-eating .tx small { display: block; font-weight: 600; color: var(--nl-ink-3, #7A84A3); }
.nlife-prog { height: 6px; margin-top: 6px; background: var(--nl-line, rgba(11, 20, 48, .1)); border-radius: 4px; overflow: hidden; } .nlife-prog i { display: block; height: 100%; width: 0; background: var(--nl-grad-lagoon); }
.nlife-pinfo { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nlife-vibe { height: 12px; border-radius: 8px; background: var(--nl-line, rgba(11, 20, 48, .1)); overflow: hidden; margin: 4px 0 12px; } .nlife-vibe i { display: block; height: 100%; background: var(--nl-grad-junkanoo); transition: width .5s; }
.nlife-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nlife-act { min-height: 74px; padding: 10px 12px; border: 0; border-radius: 18px; text-align: left; font: inherit; cursor: pointer; background: var(--nl-surface, #fff); color: var(--nl-ink, #0B1430); box-shadow: 0 1px 0 var(--nl-line, rgba(11, 20, 48, .08)), 0 8px 22px -14px rgba(11, 20, 48, .35); display: flex; flex-direction: column; gap: 3px; }
.nlife-act b { font-size: 15px; } .nlife-act span { font-size: 12px; color: var(--nl-ink-3, #7A84A3); line-height: 1.25; }
.nlife-act.main { background: linear-gradient(135deg, #E8336D, #8B7CF6); color: #fff; } .nlife-act.main span { color: rgba(255, 255, 255, .85); }
.nlife-act.leave { grid-column: 1 / -1; min-height: 52px; background: var(--nl-ink, #0B1430); color: #fff; align-items: center; justify-content: center; } 
.nlife-act:disabled { opacity: .5; }
.nlife-note { margin: 12px 2px 0; font-size: 11.5px; color: var(--nl-ink-3, #7A84A3); line-height: 1.35; }
/* HUD chip */
#nl-lifechip { position: fixed; z-index: 21; left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 206px); display: flex; align-items: center; gap: 8px; min-height: 36px; max-width: calc(100vw - 24px); padding: 4px 12px 4px 6px; border: 0; border-radius: 999px; font: 700 12px/1.1 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, rgba(232, 51, 109, .92), rgba(139, 124, 246, .92)); box-shadow: 0 6px 18px -6px rgba(11, 20, 48, .6); cursor: pointer; }
#nl-lifechip[hidden] { display: none; }
#nl-lifechip svg { width: 26px; height: 26px; flex: none; }
#nl-lifechip .b { width: 46px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; display: block; margin-top: 3px; } #nl-lifechip .b i { display: block; height: 100%; background: var(--nl-gold, #FFC72C); }
#nl-lifechip.eat { background: linear-gradient(135deg, rgba(0, 166, 147, .95), rgba(10, 111, 184, .95)); }
.nl-lifedrunk { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .6s; box-shadow: inset 0 0 90px 24px rgba(139, 124, 246, .5); }
@media (max-width: 520px) { .nlife-hero h2 { font-size: 22px; } .nlife-meters { gap: 6px; } .nlife-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .nlife-card { padding: 10px; } }
@media (max-height: 460px) and (orientation: landscape) { .nlife-sheet { max-height: 100dvh; border-radius: 0; } .nlife-hero { padding: 8px 14px; } .nlife-meters { margin-top: 6px; } #nl-lifechip { bottom: 70px; left: auto; right: 12px; } }
@media (prefers-reduced-motion: reduce) { #nl-life, .nlife-sheet, .nlife-eating .ic svg { animation: none; } }
/* tipsy bands: 1 buzzed, 2 tipsy (32+), 3 drunk (60+), 4 blackout risk (90+) */
#nl-lifechip[data-band="1"] { background: linear-gradient(135deg, rgba(0, 166, 147, .95), rgba(43, 182, 115, .95)); }
#nl-lifechip[data-band="2"] { background: linear-gradient(135deg, rgba(255, 158, 61, .96), rgba(255, 199, 44, .96)); color: #2b1a00; }
#nl-lifechip[data-band="3"] { background: linear-gradient(135deg, rgba(255, 92, 62, .96), rgba(232, 51, 109, .96)); }
#nl-lifechip[data-band="4"] { background: linear-gradient(135deg, #B3122E, #FF3B30); animation: nlLpulse .9s ease-in-out infinite; }
@keyframes nlLpulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(255, 59, 48, .3); } }
.nl-lifeblack { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; --r: 70%; transition: opacity .5s linear; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) var(--r), rgba(0, 0, 0, .96) calc(var(--r) + 28%)); }
.nl-lifeblack.full { background: #000; }
.nl-lifehaze { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: rgba(255, 236, 205, .35); backdrop-filter: blur(1.3px) saturate(.65); -webkit-backdrop-filter: blur(1.3px) saturate(.65); transition: opacity 1s; }
@media (prefers-reduced-motion: reduce) { #nl-lifechip[data-band="4"] { animation: none; } }
