:root {
    --bg: #050505;
    --accent: #D9AE56;
    --panel: rgba(18, 18, 18, 0.98);
}

body {
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow: hidden;
}

#container {
    position: relative;
    width: 92vmin;
    height: 92vmin;
}

svg {
    width: 100%;
    height: 100%;
}

.day-tray {
    fill: #111;
    cursor: pointer;
}

.day-tray:hover {
    fill: #1a1a1a;
    stroke: #444;
}

.day-tray.selected {
    stroke: var(--accent);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px var(--accent));
    paint-order: stroke fill;
}

#hud.pinned .hud-date::after {
    content: ' ·';
    color: #555;
    font-weight: 400;
}

.reading-dot {
    transition: opacity 0.25s ease, fill 0.3s ease;
}

.hidden-dot {
    opacity: 0 !important;
}

/* Center HUD */
#hud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    text-align: center;
    pointer-events: none;
    z-index: 5;
}

.hud-week {
    font-size: 8px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-height: 12px;
    margin-bottom: 2px;
}

.hud-date {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
}

.hud-readings {
    font-size: 10px;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
    height: 70px;
    white-space: pre-line;
    overflow: hidden;
}

#year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    pointer-events: auto;
}

#year-nav button {
    background: none;
    border: 1px solid #444;
    color: var(--accent);
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
}

#year-nav button:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
}

#year-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    min-width: 40px;
    text-align: center;
}

/* Left sidebar — book toggles */
#filter-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    background: var(--panel);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.category-block {
    margin-bottom: 15px;
}

.cat-header {
    font-size: 10px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.cat-label {
    cursor: pointer;
}

.cat-label:hover {
    color: #fff;
}

.cat-label::before {
    content: '▾  ';
    font-size: 9px;
}

.category-block.collapsed .cat-label::before,
.cat-header.collapsed .cat-label::before {
    content: '▸  ';
}

.toggle-all-btn {
    font-size: 7px;
    opacity: 0.5;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

.toggle-all-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.05);
}

.category-block.collapsed .sub-item {
    display: none;
}

.season-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.season-group.collapsed {
    display: none;
}

.sub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background: #151515;
    margin-bottom: 3px;
    border: 1px solid #222;
}

.book-label {
    cursor: pointer;
    flex-grow: 1;
    padding: 4px 0;
}

.sub-item {
    cursor: default;
}

.inactive {
    color: #555 !important;
}

.book-label.inactive {
    text-decoration: line-through;
    color: #555 !important;
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    background: none;
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 1px solid #000;
    border-radius: 3px;
}

/* Right sidebar — season toggles */
#season-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--panel);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
}

.season-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.season-item:hover {
    background: #1e1e1e;
}

.season-item.season-off {
    opacity: 0.2;
    filter: grayscale(1);
}

.season-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#version-label {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #333;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 10;
}
