:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bg: #0a0d16; --bg2: #11162a; --panel: rgba(20, 26, 46, .78); --line: #2a3150; --line2: #4a3f22;
  --text: #e9e6dc; --dim: #adb5c8; --gold: #e9c46a; --gold2: #c8963e;
  --rift: #5ad1e6; --pvp: #ff5d73; --boss: #c084fc; --event: #f5c451; --reset: #9aa7bd; --live: #4ade80;
  --elyos: #7cc7ff; --asmo: #b67cff; --abyss: #3dd6b5;
  --display: 'Marcellus', Georgia, serif; --ui: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(16px, 2.5vw, 64px); --section-gap: clamp(16px, 1.25vw, 24px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; scrollbar-gutter: stable; scrollbar-color: var(--dim) var(--bg); }
::selection { color: var(--bg); background: var(--gold); }
input, textarea { caret-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--dim); opacity: 1; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 var(--ui);
  background: linear-gradient(var(--bg), var(--bg2)) fixed;
}
h2 { font: 600 16px/1.3 var(--ui); letter-spacing: -.01em; color: var(--gold); margin: 0; }
#timers-view h2 { font: 400 24px/1.2 var(--display); letter-spacing: .01em; text-wrap: balance; }
.hint { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Header */
.skip { position: absolute; left: 16px; top: -40px; z-index: 10; padding: 8px 12px; background: var(--gold); color: #1b1405; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left)); background: rgba(10, 13, 22, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--gold); text-decoration: none; flex-shrink: 0; }
.brand svg { width: 46px; flex-shrink: 0; }
.brand span { font: 400 clamp(28px, 2.2vw, 36px) var(--display); letter-spacing: .015em; white-space: nowrap; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 100%; }
.select { display: flex; flex-direction: column; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
select, input[name="name"] { min-height: 40px; font: 500 14px var(--ui); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
select:hover, input[name="name"]:hover { border-color: var(--gold2); }
.toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { width: 40px; height: 24px; flex-shrink: 0; border-radius: 99px; background: var(--line); position: relative; transition: background .24s, transform .24s var(--ease); }
.toggle i::after { content: ''; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: transform .3s var(--ease), background .2s; }
.toggle input:checked + i { background: var(--gold2); }
.toggle input:checked + i::after { transform: translateX(16px); background: #fff3c4; }
.toggle input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }

main { margin: 0 auto; padding: var(--section-gap) max(var(--gutter), env(safe-area-inset-right)) var(--section-gap) max(var(--gutter), env(safe-area-inset-left)); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); }
main > * { min-width: 0; }
.timer-overview, .timer-activity { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--section-gap); }
.timer-jumps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.timer-jumps a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-size: 13px; text-underline-offset: 4px; }
.panel { position: relative; padding: 22px 0 6px; border-top: 1px solid var(--line2); }
.panel::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--gold2); transform: rotate(45deg); }
.panel.lead { border-top-color: var(--gold2); background: linear-gradient(rgba(233, 196, 106, .07), transparent 140px); padding-inline: 16px; }
.panel.lead::before { left: 16px; background: var(--gold); }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.head .hint { margin: 0; }

/* Ornate frame */
.frame { position: relative; border: 1px solid var(--gold2); border-radius: 4px; padding: 26px 20px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(233, 196, 106, .14), transparent 70%), linear-gradient(#141a30, #0d1222);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line2); }
.frame::before, .frame::after { content: '◆'; position: absolute; top: -9px; color: var(--gold); font-size: 14px; }
.frame::before { left: 50%; transform: translateX(-50%); }
.frame::after { top: auto; bottom: -9px; left: 50%; transform: translateX(-50%); }
.hero h1 { font: 400 clamp(24px, 5vw, 38px)/1.2 var(--display); margin: 0 0 2px; letter-spacing: -.01em; text-wrap: balance; }
.hero .big { font: 500 clamp(44px, 12vw, 84px)/1.05 var(--ui); font-variant-numeric: tabular-nums; letter-spacing: 0; margin: 6px 0; color: var(--gold); }
.hero .when { color: var(--dim); }
.hero .major { margin: 14px 0 0; color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 99px; background: #ffffff12; overflow: hidden; max-width: 460px; margin: 14px auto 0; }
.bar > i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--gold); }
.livechips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }

/* Rifts and hourly */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); gap: 8px; }
.chip { display: grid; gap: 2px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff05; transition: border-color .3s, opacity .3s; }
.chip b { font: 600 15px var(--ui); font-variant-numeric: tabular-nums; }
.chip small { color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chip.past { color: var(--dim); border-color: transparent; background: none; }
.chip.past b { font-weight: 500; }
.chip.live { border-color: var(--live); }
.chip.live small { color: var(--live); }
.chip.next { border-color: var(--rift); }
.chip.next small { color: var(--rift); }
.hourly { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 12px; }
.hourly .card { --c: var(--event); }

/* Clocks: one quiet strip; the server clock appears only when it differs */
.first-run { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0; padding: 10px 14px; color: var(--dim); font-size: 14px; border: 1px dashed var(--line2); border-radius: 6px; }
.first-run b { color: var(--text); font-weight: 600; }
.first-run .badge { vertical-align: 1px; }
.clocks { display: flex; flex-wrap: wrap; gap: 8px 0; padding: 4px 0; border-block: 1px solid var(--line); }
.clocks div { flex: 1 1 150px; min-width: 0; padding: 4px 16px; border-left: 1px solid var(--line); }
.clocks div:first-child { border-left: 0; padding-left: 4px; }
.clocks small { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.clocks b { font: 500 20px var(--ui); font-variant-numeric: tabular-nums; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.tabs button { min-height: 36px; min-width: 44px; font: 600 13px var(--ui); color: var(--dim); background: none; border: 0; border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button:focus-visible { outline-offset: -2px; }

/* Timeline */
.timeline { position: relative; height: 112px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.timeline .tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid #ffffff08; font-size: 12px; color: var(--dim); }
.timeline .tick.major { border-left-color: #ffffff18; }
.timeline .tick:not(:empty) { padding: 0 0 0 4px; display: flex; align-items: flex-end; padding-bottom: 4px; }
.timeline .ev { position: absolute; height: 12px; border-radius: 99px; background: var(--c); opacity: .75; transform-origin: left; transition: opacity .2s, transform .2s; }
.timeline .ev.on { opacity: 1; }
.timeline .ev:hover { opacity: 1; transform: scaleY(1.4); }
.timeline .ev.grow { animation: grow .7s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
.timeline .now { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.timeline .now b { position: absolute; left: 6px; bottom: 4px; font: 700 12px var(--ui); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--dim); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 99px; background: var(--c); margin-right: 5px; vertical-align: -1px; }

/* Artwork: per-event image (--art) or the category illustration (--art-cat), dissolving into the panel */
.card[data-cat="rift"], .hero[data-cat="rift"] { --art-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23dffaff' stop-opacity='.95'/%3E%3Cstop offset='.45' stop-color='%235ad1e6' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%235ad1e6' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='100' cy='100' rx='58' ry='92' fill='url(%23g)'/%3E%3Cellipse cx='100' cy='100' rx='34' ry='66' fill='none' stroke='%23eafcff' stroke-width='2.5' opacity='.9'/%3E%3Cellipse cx='100' cy='100' rx='52' ry='86' fill='none' stroke='%235ad1e6' stroke-width='1.2' opacity='.7'/%3E%3Cellipse cx='100' cy='100' rx='72' ry='104' fill='none' stroke='%235ad1e6' stroke-width='.8' opacity='.35'/%3E%3Cpath d='M100 6v28M100 166v28M28 100h24M148 100h24' stroke='%23bff3ff' stroke-width='2' opacity='.6'/%3E%3C/svg%3E"); }
.card[data-cat="pvp"], .hero[data-cat="pvp"] { --art-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23ff5d73' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%23ff5d73' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='90' fill='url(%23g)'/%3E%3Cpath d='M44 156 L148 52' stroke='%23ffd9de' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M44 156 L148 52' stroke='%23ff5d73' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M156 156 L52 52' stroke='%23ffd9de' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M156 156 L52 52' stroke='%23ff8b9b' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M36 164l18-6-12-12zM164 164l-18-6 12-12z' fill='%23ffd9de'/%3E%3Cpath d='M140 40l20 2-2 20M60 40l-20 2 2 20' fill='none' stroke='%23ffd9de' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.card[data-cat="boss"], .hero[data-cat="boss"] { --art-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23c084fc' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23c084fc' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='92' fill='url(%23g)'/%3E%3Cpath d='M56 70C30 50 26 22 40 14c2 24 14 38 30 44zM144 70c26-20 30-48 16-56-2 24-14 38-30 44z' fill='%23e9d5ff' opacity='.9'/%3E%3Cpath d='M100 44c-30 0-50 22-50 50 0 18 8 30 18 38v22a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-22c10-8 18-20 18-38 0-28-20-50-50-50z' fill='%23e9d5ff'/%3E%3Cellipse cx='80' cy='98' rx='12' ry='14' fill='%231a0b2e'/%3E%3Cellipse cx='120' cy='98' rx='12' ry='14' fill='%231a0b2e'/%3E%3Cpath d='M94 118l6 12 6-12z' fill='%231a0b2e'/%3E%3Cpath d='M82 142v16M94 142v18M106 142v18M118 142v16' stroke='%231a0b2e' stroke-width='3'/%3E%3C/svg%3E"); }
.card[data-cat="event"], .hero[data-cat="event"] { --art-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff1bf' stop-opacity='.95'/%3E%3Cstop offset='.35' stop-color='%23f5c451' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%23f5c451' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='90' fill='url(%23g)'/%3E%3Cg stroke='%23ffe9a8' stroke-width='3' stroke-linecap='round' opacity='.85'%3E%3Cpath d='M100 18v30M100 152v30M18 100h30M152 100h30M42 42l21 21M137 137l21 21M158 42l-21 21M63 137l-21 21'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='26' fill='%23fff6d6'/%3E%3Ccircle cx='100' cy='100' r='16' fill='%23f5c451'/%3E%3C/svg%3E"); }
.card[data-cat="reset"], .hero[data-cat="reset"] { --art-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%239aa7bd' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%239aa7bd' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='90' fill='url(%23g)'/%3E%3Cpath d='M60 36h80M60 164h80' stroke='%23dfe5f0' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M68 40c0 40 28 52 32 60-4 8-32 20-32 60M132 40c0 40-28 52-32 60 4 8 32 20 32 60' fill='none' stroke='%23dfe5f0' stroke-width='5'/%3E%3Cpath d='M80 56c6 18 14 26 20 32 6-6 14-14 20-32z' fill='%23dfe5f0' opacity='.9'/%3E%3Cpath d='M84 150c4-14 10-20 16-24 6 4 12 10 16 24z' fill='%23dfe5f0' opacity='.6'/%3E%3C/svg%3E"); }
.art { position: absolute; inset: 0 -8% 0 auto; width: 58%; pointer-events: none; background: var(--art, var(--art-cat)) right center / cover no-repeat; opacity: .15;
  -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 90%); mask-image: linear-gradient(90deg, transparent 12%, #000 90%); }
.card > :not(.art) { position: relative; }
.hero .art { inset: 0; width: 100%; opacity: .24; background-size: auto 150%; background-position: right -10% center;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%); }

/* Event cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.card { isolation: isolate; transition: border-color .25s; position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 16px; background: linear-gradient(135deg, #ffffff08, transparent); overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 1px; background: var(--c); }
.card .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.card .ico { color: var(--c); font-size: 16px; width: 18px; text-align: center; }
.card .cd { font: 500 24px var(--ui); font-variant-numeric: tabular-nums; margin: 6px 0 0; }
.card .meta { color: var(--dim); font-size: 13px; }
.card .bar { visibility: hidden; margin: 10px 0 0; height: 3px; }
.card.live .bar { visibility: visible; }
.card .badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-right: 12px; vertical-align: middle; }
.card .badges:empty { display: none; }
.event-notes { display: inline-block; vertical-align: middle; }
.event-notes[open] { display: block; }
.event-notes summary { display: list-item; width: fit-content; padding: 8px 0; color: var(--dim); font-size: 12px; cursor: pointer; }
.event-notes .note { margin: 4px 0 0; }
.card .bar > i { background: var(--live); }
.card.live { border-color: color-mix(in srgb, var(--live) 60%, transparent); }
.card.live .cd { color: var(--live); }

.badge { display: inline-block; font: 600 12px var(--ui); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); }
.badge.pending { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 25%, var(--line)); }
.badge.live { color: var(--live); border-color: color-mix(in srgb, var(--live) 60%, transparent); background: rgba(74, 222, 128, .08); }

/* Bosses */
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.boss { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, #ffffff06, transparent); }
.boss.up { border-color: var(--f); }
.ring { width: 46px; height: 46px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: #ffffff14; }
.ring .fg { stroke: var(--f); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px var(--ui); color: var(--dim); }
.boss .info { flex: 1; min-width: 0; }
.boss .bn { font-weight: 600; overflow-wrap: anywhere; }
.boss .meta { color: var(--dim); font-size: 12.5px; }
.boss .cd { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--f); }
.boss .acts { display: flex; flex-direction: column; gap: 4px; }

.btn { min-height: 40px; min-width: 40px; font: 600 13px var(--ui); border-radius: 8px; padding: 8px 14px; cursor: pointer; color: var(--text); background: #1a2135; border: 1px solid #394360; box-shadow: inset 0 1px 0 #ffffff08, 0 3px 7px #0003; }
.btn.gold { color: #1b1405; background: var(--gold); border-color: var(--gold2); }
.btn.ghost { background: none; border-color: transparent; color: var(--dim); padding: 2px 8px; }
.btn.ghost:hover { color: var(--pvp); }

/* Checklist */
form { display: flex; flex-wrap: wrap; gap: 8px; }
form input { flex: 1; min-width: 160px; }
ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff05; }
li label { flex: 1; min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
li .t { min-width: 0; overflow-wrap: anywhere; }
li input { appearance: none; width: 18px; height: 18px; margin: 0; transform: rotate(45deg); border: 1.5px solid var(--gold2); border-radius: 3px; cursor: pointer; flex: none; }
li input:checked { background: var(--gold); }
li.done .t { color: var(--dim); text-decoration: line-through; }
.empty { color: var(--dim); font-size: 13px; text-align: center; padding: 14px; border: 1px dashed var(--line); border-radius: 8px; }

footer { text-align: center; color: var(--dim); font-size: 12px; padding: 10px 16px 32px; letter-spacing: .04em; }

/* Motion */
.tabs { position: relative; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; }
.tabs button { position: relative; z-index: 1; }
.tabs button[aria-pressed="true"] { color: var(--bg); background: none; }
.tabs .pill { position: absolute; top: 0; left: 0; border-radius: 6px; background: var(--gold);
  transition: transform .35s var(--ease), width .35s var(--ease), height .35s var(--ease), background .35s; }
.boss:not(.tracking) [data-act="clear"] { visibility: hidden; }
.tabs .pill[data-k="Elyos"] { background: var(--elyos); }
.tabs .pill[data-k="Asmodian"] { background: var(--asmo); }
.tabs .pill[data-k="Abyss"] { background: var(--abyss); }

/* Consistent, interruptible feedback: lift on hover, settle into the press. */
.btn, .tabs button, .watch-button, .site-nav a, .market-nav a, .item-name {
  transition: transform .24s var(--ease), background-color .24s, border-color .24s, color .24s, box-shadow .24s;
  touch-action: manipulation;
}
select, input[name="name"] { transition: border-color .2s, background-color .2s; }
@media (hover: hover) {
  .btn:not(:disabled):hover { transform: translateY(-2px); background: #252e46; border-color: var(--gold2); box-shadow: inset 0 1px 0 #ffffff0c, 0 6px 12px #0004; }
  .btn.gold:not(:disabled):hover { background: #f4d487; }
  .tabs button:hover, .site-nav a:hover { transform: translateY(-1px); }
  .tabs button:not([aria-pressed="true"]):hover, .site-nav a:not([aria-current="page"]):hover { background: #ffffff09; }
  .watch-button:hover { transform: translateY(-2px) rotate(-8deg); color: var(--gold); }
  .toggle:hover i { background: #424e6b; }
  .toggle:hover input:checked + i { background: var(--gold); }
}
.btn:not(:disabled):active, .tabs button:active, .watch-button:active, .site-nav a:active { transform: translateY(1px) scale(.97); transition-duration: .1s; }
.btn:not(:disabled):active { box-shadow: inset 0 2px 4px #0003; }
.toggle:active i { transform: scale(.94); transition-duration: .1s; }
.btn:disabled, select:disabled { cursor: not-allowed; box-shadow: none; color: var(--dim); }

.digits > span { display: inline-block; white-space: pre; }
.hero > :not(.art) { position: relative; }
.bar > i { transition: width 1s linear; }

.enter { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }
main > * { animation: rise .7s var(--ease) both; }
main > :nth-child(2) { animation-delay: .08s; } main > :nth-child(3) { animation-delay: .16s; }
main > :nth-child(4) { animation-delay: .24s; } main > :nth-child(5) { animation-delay: .32s; } main > :nth-child(6) { animation-delay: .4s; } main > :nth-child(7) { animation-delay: .48s; }

.card:hover, .boss:hover { border-color: color-mix(in srgb, var(--c, var(--f)) 50%, var(--line)); }
.boss { position: relative; transition: border-color .3s, box-shadow .3s; }
.boss::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 30px 50%, color-mix(in srgb, var(--f) 45%, transparent), transparent 70%); }
.boss.flash::after { animation: flash .9s var(--ease); }
@keyframes flash { 15% { opacity: 1; } }
li input { transition: background .2s, box-shadow .2s; }
li.done .t { transition: color .3s; }

/* Sources and dialogs */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.toggle small { display: block; font-size: 13px; color: var(--dim); }
.note { font-size: 13px; line-height: 1.6; color: var(--dim); margin: 10px 0 0; }
summary { cursor: pointer; color: var(--gold); font-size: 13px; padding: 10px 0; }
a { color: var(--gold); text-underline-offset: .2em; }
.sources li { border: 0; padding: 0; background: none; }
.sources a, .progress-market-link { display: inline-flex; align-items: center; min-height: 44px; }
.untracked .bosses { margin-top: 6px; }
#bosses:empty { display: none; }
dialog { width: min(92vw, 460px); max-height: 90vh; border: 1px solid var(--gold2); border-radius: 12px; padding: 26px; color: var(--text); background: var(--bg2); box-shadow: 0 20px 60px #000c; }
dialog::backdrop { background: #05070eb3; backdrop-filter: blur(4px); }
dialog .close { position: absolute; top: 8px; right: 8px; }
dialog form { display: grid; }
dialog label { display: grid; gap: 6px; font-size: 13px; }
dialog input, dialog select, dialog textarea { width: 100%; min-width: 0; font: 14px var(--ui); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px; }
dialog .msg { min-height: 1.5em; color: var(--pvp); font-size: 13px; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 10px; pointer-events: auto;
  background: rgba(20, 26, 46, .96); border: 1px solid var(--line2); box-shadow: 0 10px 30px #000a, 0 0 20px rgba(233, 196, 106, .08); font-size: 14px; }
.toast.in { animation: toast-in .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* View transitions: crossfade on faction and category changes */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

@media (min-width: 1280px) {
  #timers-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timer-schedule, #progress-panel { grid-column: 1 / -1; }
  .timer-overview { grid-template-rows: minmax(0, 1fr) auto; }
  .timer-overview .hero { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
  #boss-panel, .timer-checklist { align-self: start; }
}
@media (max-width: 640px) {
  .clocks div, .clocks div:first-child { flex-basis: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-left: 0; padding: 4px; }
  .clocks small { letter-spacing: .06em; }
  .frame { padding: 22px 14px; }
  .grid { gap: 8px; }
  .card { padding: 10px 10px 10px 13px; }
  .card .name { font-size: 14px; align-items: flex-start; }
  .head { gap: 8px; }
  .bosses { gap: 6px; }
  .chip { padding: 6px 8px; }
  .panel.lead { padding-inline: 12px; }
  .panel.lead::before { left: 12px; }
  .chip b { font-size: 13.5px; }
  .boss { padding: 8px 10px; gap: 10px; }
  .boss .acts { flex-direction: column; align-items: stretch; }
}
@media (pointer: coarse), (max-width: 760px) {
  .brand, .btn, .tabs button, .toggle, select, input:not([type="checkbox"]):not([type="file"]), li label, summary { min-height: 44px; }
  .btn { min-width: 44px; }
  select, input[name="name"], dialog input, dialog textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
