.play-calendar { --pc-bg: var(--panel-color, var(--card, #fff)); --pc-text: var(--text-color, var(--text, #182338)); --pc-muted: var(--muted-color, var(--muted, #64748b)); --pc-border: var(--border-color, var(--border, #e2e8f0)); --pc-accent: var(--accent-color, var(--secondary, #2563eb)); color: var(--pc-text); padding: 24px; width: 100%; min-width: 0; box-sizing: border-box; }
.play-calendar * { box-sizing: border-box; }
.play-calendar button { font: inherit; color: inherit; background: var(--pc-bg); border: 1px solid var(--pc-border); border-radius: 9px; cursor: pointer; padding: 8px 13px; min-height: 36px; }
.play-calendar button:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }
.play-calendar button:hover { border-color: var(--pc-accent); }
.pc-toolbar, .pc-month-nav, .pc-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-month-nav h3 { font-size: 19px; margin: 0; min-width: 138px; text-align: center; }
.pc-month-nav button { font-size: 23px; padding: 0 13px; }
.pc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.play-calendar .pc-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }
.pc-boss { --pc-event: var(--pc-boss-color, #a78bfa); }
.pc-td { --pc-event: #22b8a2; }
.pc-siege { --pc-event: #f07884; }
.pc-burning { --pc-event: #efa63f; }
.pc-filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-event); }
.play-calendar .pc-filter[aria-pressed=true] { border-color: var(--pc-event); }
.play-calendar .pc-filter[aria-pressed=false] { opacity: .5; }
.pc-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 22px; align-items: start; }
.pc-month { min-width: 0; }
.play-calendar .pc-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--pc-bg); }
.play-calendar .pc-table th { text-align: center; font-size: 12px; padding: 10px 0; color: var(--pc-muted); border: 1px solid var(--pc-border); }
.play-calendar .pc-table th:first-child { color: #ed7888; }
.play-calendar .pc-table th:last-child { color: #69a1ee; }
.play-calendar .pc-table td { padding: 0; border: 1px solid var(--pc-border); vertical-align: top; }
.play-calendar .pc-table button { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; min-height: 125px; border: 2px solid transparent; border-radius: 0; padding: 7px 4px; text-align: left; background: transparent; }
.play-calendar .pc-table button[aria-pressed=true] { border-color: var(--pc-accent); background: color-mix(in srgb, var(--pc-accent) 8%, transparent); }
.pc-day-number { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; margin: 0 3px 6px; font-size: 13px; line-height: 18px; }
.pc-day-number small { font-size: 9px; color: var(--pc-accent); }
.pc-today .pc-day-number { color: var(--pc-accent); font-weight: bold; }
.pc-sun .pc-day-number { color: #e25b68; }
.pc-sat .pc-day-number { color: #4d8fe6; }
.pc-other .pc-day-number { opacity: .45; }
.pc-badges { display: flex; flex-direction: column; gap: 3px; }
.pc-badge { display: block; border-left: 3px solid var(--pc-event); border-radius: 3px; font-size: 10px; padding: 2px 3px; line-height: 1.3; background: color-mix(in srgb, var(--pc-event) 14%, transparent); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-badge.pc-burning { white-space: normal; overflow: visible; }
.pc-duration { white-space: nowrap; font-weight: 600; }
.pc-agenda { background: var(--pc-bg); border: 1px solid var(--pc-border); border-radius: 13px; padding: 14px 20px 20px; }
.pc-agenda-actions { display: flex; justify-content: flex-end; min-height: 0; margin: -4px 0 6px; }
.pc-agenda-actions button { font-size: 11px; white-space: nowrap; }
.pc-boss-timeline { position: relative; height: 54px; margin: 0 5px; isolation: isolate; }
.pc-timeline-line, .pc-timeline-elapsed { position: absolute; top: 35px; left: 0; height: 4px; border-radius: 4px; }
.pc-timeline-line { width: 100%; background: linear-gradient(90deg, #38bdf8, #a78bfa, #f472b6); }
.pc-timeline-elapsed { background: #8793a4; }
.pc-boss-mark { position: absolute; top: 30px; height: 14px; min-width: 3px; border-radius: 3px; background: color-mix(in srgb, var(--pc-event) 30%, transparent); }
.pc-boss-mark i { position: absolute; left: 0; top: -2px; width: 3px; height: 18px; border-radius: 2px; background: var(--pc-event); }
.pc-clock-marker { position: absolute; top: 26px; height: 23px; width: 2px; z-index: 2; background: #fbbf24; box-shadow: 0 0 8px #fbbf24; animation: pc-clock-pulse 1.6s ease-in-out infinite; }
.pc-clock-marker[hidden] { display: none; }
.pc-clock-marker::after { content: ''; position: absolute; left: -3px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.pc-clock-marker > span { position: absolute; bottom: 29px; left: 1px; transform: translateX(-50%); border-radius: 5px; padding: 2px 5px; background: #fbbf24; color: #30220b; font-size: 10px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-clock-marker.pc-clock-left > span { transform: none; }
.pc-clock-marker.pc-clock-right > span { transform: translateX(-100%); }
.pc-ruler { display: flex; justify-content: space-between; color: var(--pc-muted); font-size: 10px; margin-bottom: 12px; }
.pc-events { list-style: none; padding: 0; margin: 0; }
.pc-event { display: grid; grid-template-columns: 6px auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 11px 3px; border-bottom: 1px solid var(--pc-border); color: var(--pc-text); }
.pc-event:last-child { border-bottom: 0; }
.pc-event time { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--pc-event); }
.pc-event-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pc-event); align-self: center; }
.pc-state { font-size: 10px; color: var(--pc-muted); white-space: nowrap; }
.pc-event strong { font-size: 13px; overflow-wrap: anywhere; }
.pc-event strong small { font-size: 11px; color: var(--pc-event); white-space: nowrap; }
.pc-event.pc-current { border-radius: 5px; background: color-mix(in srgb, var(--pc-event) 12%, transparent); }
.pc-current .pc-state { color: var(--pc-event); font-weight: bold; }
.pc-event.pc-current time, .pc-event.pc-current strong, .pc-boss-mark.pc-current { animation: pc-event-pulse 1.6s ease-in-out infinite; }
.pc-event.pc-past, .pc-boss-mark.pc-past { --pc-event: #8793a4; color: #8793a4; }
.pc-event.pc-past .pc-state { color: #8793a4; }
@keyframes pc-clock-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 3px #fbbf24; } 50% { opacity: .6; box-shadow: 0 0 12px #fbbf24; } }
@keyframes pc-event-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .pc-clock-marker, .pc-event.pc-current time, .pc-event.pc-current strong, .pc-boss-mark.pc-current { animation: none; } }
.pc-empty { color: var(--pc-muted); padding: 30px 0; text-align: center; font-size: 13px; }
body.view-calendar .app-body { display: block; overflow-y: auto; }
body.view-calendar #calendar-section { max-width: 1500px; margin: auto; }
@media (max-width: 1100px) { .pc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .play-calendar { padding: 14px 8px; }
  .pc-toolbar, .pc-month-nav, .pc-actions { gap: 5px; }
  .pc-month-nav h3 { min-width: 114px; font-size: 17px; }
  .play-calendar button { padding: 7px 9px; }
  .play-calendar .pc-table button { min-height: 114px; padding: 5px 1px; }
  .pc-badge { font-size: 9px; padding: 2px 1px; border-left-width: 2px; }
  .pc-day-number { margin: 0 2px 6px; font-size: 12px; }
  .pc-agenda { padding: 16px; }
}

@media (max-width: 768px) { .header-switches { overflow-x: auto; max-width: 100%; scrollbar-width: thin; } }
