:root {
  --bg: #141b5c;
  --bg-2: #1c2571;
  --panel: rgba(22, 30, 97, 0.92);
  --panel-2: rgba(35, 45, 128, 0.82);
  --line: rgba(196, 211, 255, 0.26);
  --line-soft: rgba(196, 211, 255, 0.14);
  --text: #fffdf7;
  --muted: #c9d4ff;
  --gold: #f6d586;
  --purple: #714fbd;
  --purple-2: #8b6be2;
  --green: #386c54;
  --danger: #ff435e;
  --card: rgba(47, 58, 139, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --hour-height: 40px;
  --time-col: 78px;
  --critter-col: minmax(86px, 96px);
  --slot-colour: #8b6be2;
  --slot-colour-dark: #714fbd;
  --top-offset: 83px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-wrap: pretty;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #18236f;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(122, 91, 214, 0.65),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(31, 137, 210, 0.28),
      transparent 30%
    ),
    linear-gradient(180deg, #11184f 0%, #18236f 45%, #202778 100%);
  overflow-x: hidden;
}

body::after {
  top: auto;
  height: 180px;
  background:
    radial-gradient(
      ellipse at bottom,
      rgba(19, 9, 61, 0.82),
      transparent 72%
    ),
    linear-gradient(to top, rgba(7, 11, 47, 0.85), transparent);
  opacity: 1;
}

button {
  font: inherit;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1540px, 100% - 28px);
  margin: 0 auto;
  padding: 28px 0 14px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  min-width: 42px;
  padding: 9px 15px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.about-button:hover {
  color: #fff;
  border-color: rgba(246, 213, 134, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.about-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-menu {
  position: relative;
}

.site-menu-button {
  font-size: 22px;
  line-height: 1;
}

.attention-target {
  position: relative;
}

.attention-alert {
  position: absolute;
  right: calc(100% - 26px);
  bottom: calc(100% + 7px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 13px;
  padding: 2px 4px;
  color: #2b2250;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3), 0 0 16px rgba(246, 213, 134, 0.35);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.attention-alert::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  width: 0;
  height: 0;
  border-top: 7px solid var(--gold);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  display: none;
  width: min(250px, calc(100vw - 36px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(13, 19, 74, 0.97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.site-menu.open .site-menu-panel {
  display: grid;
  gap: 3px;
}

.site-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.site-menu-link:hover,
.site-menu-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.schedule-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-filter-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 17, 68, 0.45);
}

.schedule-filter-toggle-button {
  padding: 8px 16px;
  color: var(--muted);
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
}

.schedule-filter-toggle-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.schedule-filter-toggle-button.active {
  color: #fff;
  background: linear-gradient(
    180deg,
    var(--purple-2),
    var(--purple)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 5px 14px rgba(0, 0, 0, 0.2);
}

.schedule-filter-select {
  display: grid;
  gap: 4px;
  min-width: min(240px, 45%);
}

.schedule-filter-select select {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--purple-2), var(--purple));
}

.schedule-filter-select option {
  color: #111;
  background: #fff;
}

.day-nav-row {
  margin-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 27px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.96;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.26);
}

.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(106px, 1fr);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 17, 68, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.day-tab {
  min-height: 62px;
  padding: 10px 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.day-tab:last-child {
  border-right: 0;
}

.day-tab:hover {
  background: rgba(255, 255, 255, 0.07);
}

.day-tab.active {
  color: #fff;
  background: linear-gradient(180deg, var(--purple-2), var(--purple));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 22px rgba(139, 107, 226, 0.36);
}

.day-name {
  display: block;
}

.today-label {
  display: block;
  margin-top: 2px;
  color: #fff2c6;
  font-size: 12px;
}

.schedule-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid rgba(201, 212, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(24, 32, 101, 0.92),
    rgba(14, 22, 76, 0.88)
  );
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-scroll {
  position: relative;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.schedule-grid {
  position: relative;
  display: grid;
  grid-template-rows:
    auto
    auto
    calc(var(--hour-height) * 24)
    auto;
  
  &:has(.empty-state) {
    grid-template-columns: var(--time-col) repeat(1, auto) !important;
  }
}

.time-spacer {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  left: 0;
  z-index: 35;
  background: rgba(13, 19, 74, 0.96);
  border-right: 1px solid var(--line);
}

.area-header,
.location-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: left;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(18, 26, 82, 0.96);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.location-header.location-header-bottom {
  grid-row: 4;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.header-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(246, 213, 134, 0.25));
  line-height: 1;
}

.header-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.header-label {
  min-width: 0;
}

.area-header {
  grid-row: 1;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.01em;
  justify-content: start;
}

.location-header {
  grid-row: 2;
  font-size: 13px;
  line-height: 1.15;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;

  & .header-label {
    text-align: center;
  }
}

.location-header .header-icon {
  width: 16px;
  height: 16px;
  opacity: 0.82;
}

.day-body {
  position: relative;
  grid-row: 3;
  min-height: calc(var(--hour-height) * 24);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--hour-height) - 1px),
      var(--line-soft) calc(var(--hour-height) - 1px),
      var(--line-soft) var(--hour-height)
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(255, 255, 255, 0.06) calc(100% - 1px),
      rgba(255, 255, 255, 0.06) 100%
    );
}

.time-axis {
  position: absolute;
  top: 0px;
  left: 0;
  z-index: 60;
  width: var(--time-col);
  min-height: calc(var(--hour-height) * 24);
  background: rgba(13, 19, 74, 0.96);
  border-right: 1px solid var(--line);
  pointer-events: none;
  will-change: transform;
}

.time-label {
  position: absolute;
  right: 12px;
  transform: translateY(-50%);
  color: #fff8df;
  font-size: 13px;
  white-space: nowrap;

  &:first-child {
    top: 11px !important;
  }

  &:last-child {
    top: calc(100% - 11px) !important;
  }
}

.column-lane {
  grid-row: 3;
  position: relative;
  min-height: calc(var(--hour-height) * 24);
  border-right: 1px solid var(--line);
}

.critter-slot {
  position: absolute;
  left: 4px;
  right: 4px;
  min-height: 66px;
  border-radius: 11px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--slot-colour) 88%, rgba(0, 0, 0, 0.1) 12%),
    color-mix(
      in srgb,
      var(--slot-colour-dark) 92%,
      rgba(0, 0, 0, 0.1) 100%
    )
  );
  border: 1px solid color-mix(in srgb, var(--slot-colour) 58%, white 42%);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px color-mix(in srgb, var(--slot-colour) 32%, transparent);
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.critter-slot.fed::after {
  content: "✓ Fed";
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  padding: 2px 5px;
  color: var(--purple);
  border-radius: 999px;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}

.critter-slot.fed {
  filter: grayscale(0.55);
}

.critter-slot.obtained {
  filter: grayscale(0.8);
}

.critter-slot.obtained::after {
  content: "✓ Obtained";
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  padding: 2px 5px;
  color: #fff;
  border-radius: 999px;
  background: rgba(10, 17, 68, 0.78);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}

.critter-slot.obtained .critter-card {
  opacity: 0.6;
}

.critter-slot.obtained.fed .critter-card {
  opacity: 0.4;
}

.critter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  gap: 3px;
  width: 100%;
  padding: 6px 0px;
  color: #fff;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(var(--sticky-y, 0px));
  will-change: transform;
}

.critter-img {
  width: 52px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(0, 0, 0, 0.34));

  .critter-slot & {
    margin-left:10px;
  }
}

.critter-name {
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.06;
  text-align: center;
  transition: color 0.15s ease;
  padding: 3px 5px 0 5px;
}

.critter-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  color: #fffbe9;
  font-size: 9px;
  line-height: 1.08;
  text-align: center;
  width: 100%;
}

.critter-card:hover .critter-name {
  color: var(--gold);
}

.method {
  width: 100%;
  background: #ffffff80;
  color: var(--purple);
  font-style: italic;
  text-transform: uppercase;
  padding: 2px 0;
  font-size: 9px;
}

.slot-badges {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: flex;
  gap: 3px;
  pointer-events: none;
}

.slot-badge {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 17, 68, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.requirement-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.requirement-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.current-line {
  position: absolute;
  left: var(--time-col);
  width: calc(var(--schedule-width, 100%) - var(--time-col));
  height: 2px;
  background: var(--danger);
  z-index: 55;
  box-shadow: 0 0 12px rgba(255, 67, 94, 0.7);
  pointer-events: none;
}

.current-line-label {
  position: absolute;
  left: 8px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  transform: translateY(-11px);
  padding: 0 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--danger);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  will-change: transform;
}

.empty-state {
  padding: 80px 28px;
  text-align: center;
  color: var(--muted);

  & b {
    text-transform: capitalize;
    color: var(--purple-2);
  }
}

.hidden-button,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, var(--purple-2), var(--purple));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.note {
  flex: 0 0 auto;
  margin: 1em;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0px;
  background: rgba(3, 8, 36, 0.62);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    180deg,
    rgba(44, 53, 134, 0.98),
    rgba(17, 24, 83, 0.98)
  );
  box-shadow: var(--shadow);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(36, 45, 122, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.modal-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-size: 26px;
  line-height: 1.1;
}

.close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding-bottom: 5px;
}

.modal-body {
  padding: 10px;

  & > p:first-child {
  margin-top:0;
  }
}

.about-content {
  display: grid;
  gap: 16px;
  padding: 12px;
  color: var(--text);
  line-height: 1.65;
}

.about-content p {
  margin: 0;
}

.about-introduction {
  color: #fff;
  font-size: 16px;
}

.about-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 14px 34px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.about-signoff {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.about-disclaimer {
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.critter-detail {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 20px;
  align-items: start;
}

.detail-image-wrap {
  display: grid;
  place-items: center;
  min-height: 148px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 1em;

  & div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    width: 100%;
    text-align: center;
  }
}

.detail-image {
  width: 100px;
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
  margin-bottom:1em;
}

.detail-list {
  display: grid;
  gap: 10px;
  color: #fff;
}

.detail-row {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
  display: grid;
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 12px;
  gap: 3px;
  justify-content: left;
  text-align: left;
  margin:0;

  & + & {
    border-top:1px solid rgba(255, 255, 255, 0.13);
    padding-top: 0.75em;
  }
}

.detail-value {
  display: flex;
  flex-direction:column;
  gap: 1em;
  font-weight: normal;
  color: #fff;
  font-size: 12px;

  & i {
    opacity: 0.5;
    display: block;
  }
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hidden-list {
  display: grid;
  gap: 12px;
}

.hidden-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.hidden-group[open] {
  background: rgba(255, 255, 255, 0.06);
}

.hidden-group-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.hidden-group-summary::-webkit-details-marker {
  display: none;
}

.hidden-group-summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hidden-group-heading {
  min-width: 0;
}

.hidden-group-title {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden-group-progress {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.hidden-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 27px;
  padding: 4px 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hidden-group-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.hidden-group[open] .hidden-group-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.hidden-group-body {
  padding: 10px;
}

.hidden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 9px;
}

.hidden-critter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 5px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  text-align: center;
}

.hidden-critter:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(246, 213, 134, 0.34);
}

.hidden-critter:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hidden-critter-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.3));
}

.hidden-critter-name {
  overflow: hidden;
  display:none;
  width: 100%;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.hidden-critter.unobtained {
  opacity: 0.3;
  filter: grayscale(0.7);
}

.hidden-critter.unobtained:hover,
.hidden-critter.unobtained:focus-visible {
  opacity: 0.75;
  filter: grayscale(0.2);
}

.hidden-critter.obtained {
  opacity: 1;
}

/*
 * Places the critter details above the still-open Obtained Critters modal.
 */
#critterModal.secondary-modal {
  z-index: 110;
}

.header-icon.image-icon {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.header-icon.image-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(2);
}

.food {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  padding-top: 3px;
  color:#ffffff80;
}

.food-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;

  .critter-slot & {
    display: block;
    position: absolute;
    top: 32px;
    left: 2px;
    object-position: bottom;
  }
}


.critter-slot .food-item:has(+ .food-separator) .food-img {
  top:12px;
}

.detail-food {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;

  & .food-item {
    display:flex;
    gap:0.5em;
    text-align: left;
  }
}

.detail-food .food-img {
  width: 16px;
  height: 16px;
}

.unlocked-list {
  display: grid;
  gap: 12px;
}

.unlocked-group {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.unlocked-group[open] {
  background: rgba(255, 255, 255, 0.06);
}

.unlocked-group-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--gold);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.unlocked-group-summary::-webkit-details-marker {
  display: none;
}

.unlocked-group-summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.unlocked-group-heading {
  min-width: 0;
}

.unlocked-group-title {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlocked-group-progress {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

.unlocked-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 27px;
  padding: 4px 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.unlocked-group-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.unlocked-group[open] .unlocked-group-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.unlocked-group-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.unlocked-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;

  &:has(input[type="checkbox"]:checked) {
    background:color-mix(in srgb, var(--purple-2) 50%, transparent 100%);
    color: var(--purple-2);
    font-style: italic;
  }
}

.unlocked-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.unlocked-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--purple-2);
}

.unlocked-row-content {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12px;
}

.unlocked-row-content .header-icon {
  width: 20px;
  height: 20px;
}

.weekly-schedule-list {
  display: grid;
  gap: 0.45rem;
}

.weekly-schedule-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(5rem, 1fr) minmax(8rem, 1.4fr);
  align-items: center;
  gap: 0.75rem;
}

.weekly-schedule-row.today {
  background: rgba(56, 108, 84, 0.1);
  border-radius: 0.75rem;
  padding: 0.45rem 0.6rem;
}

.schedule-bar {
  position: relative;
  display: block;
  height: 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--purple-2) 50%, transparent 100%);
  overflow: hidden;
}

.schedule-bar-slot {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--slot-colour, #386c54);
}

.app {
  padding-bottom: 118px;
}

.app-menu {
  position: fixed;
  left: 0;
  width: 100%;
  bottom: max(0px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 6px;
  padding: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(13, 19, 74, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-menu-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 68px;
  padding: 8px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.app-menu-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-menu-button:active {
  transform: scale(0.97);
}

.app-menu-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.app-menu-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--gold);
}

.app-menu-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.app-menu-count {
  position: absolute;
  top: -7px;
  left: 100%;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  color: #fff;
  border: 2px solid rgba(13, 19, 74, 0.95);
  border-radius: 999px;
  background: var(--purple-2);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.app-menu-label {
  overflow: hidden;
  max-width: 100%;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  padding-bottom: 4px;
}

.footer-link {
  padding: 4px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(201, 212, 255, 0.45);
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: #fff;
  text-decoration-color: var(--gold);
}

.footer-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.updates-modal {
  width: min(660px, calc(100% - 28px));
}

.updates-list {
  display: grid;
  gap: 0;
}

.update-entry {
  display: grid;
  grid-template-columns: minmax(100px, 130px) 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.update-entry:first-child {
  padding-top: 4px;
}

.update-entry:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.update-date {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.update-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.update-description > :first-child {
  margin-top: 0;
}

.update-description > :last-child {
  margin-bottom: 0;
}

.update-description p {
  margin: 0 0 12px;
  color:#fff;
}

.update-description h3,
.update-description h4,
.update-description h5 {
  margin: 18px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

.update-description h3 {
  font-size: 19px;
}

.update-description h4 {
  font-size: 17px;
}

.update-description h5 {
  font-size: 15px;
}

.update-description ul,
.update-description ol {
  margin: 0 0 14px;
  padding-left: 22px;

  & li::marker {
  color:var(--gold);
  }
}

.update-description li + li {
  margin-top: 5px;
}

.update-description strong,
.update-description em {
  color: var(--gold);
}

.update-description a {
  color: var(--gold);
  text-underline-offset: 3px;
}

.update-description a:hover {
  color: #fff;
}

.update-description code {
  padding: 2px 5px;
  color: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}

.updates-empty {
  margin: 0;
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}

.onboarding-steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: onboarding-step;
}

.onboarding-steps b {
  color:var(--gold);
}

.onboarding-steps li {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding-left: 3rem;
  counter-increment: onboarding-step;
}

.onboarding-steps li::before {
  content: counter(onboarding-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2rem;
  height: 1rem;
  place-items: center;
  border-radius: 50%;
  color: var(--purple-2);
  font-weight: 700;
}

.onboarding-steps strong {
  font-size: 1rem;
}

.onboarding-steps span {
  color: var(--muted);
}

@media (max-width: 560px) {
  .update-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  :root {
    --hour-height: 40px;
    --time-col: 62px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  
  .top-actions {
    justify-self: end;
  }
  
  .about-button {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .top-actions .hidden-button {
    flex: 1 1 180px;
  }

  .brand {
    gap: 12px;
  }

  .schedule-filters {
    align-items: stretch;
  }
  
  .schedule-filter-toggle,
  .schedule-filter-select {
    flex: 1 1 0;
    min-width: 0;
  }
  
  .schedule-filter-toggle-button {
    padding-inline: 10px;
  }
  
  .schedule-filter-select {
    max-width: 50%;
  }

  .app {
    padding-bottom: 108px;
  }
  
  .app-menu {
    bottom: max(0px, env(safe-area-inset-bottom));
  }
  
  .app-menu-button {
    min-height: 62px;
  }

  .eyebrow {
    font-size: 10px;
  }

  h1 {
    font-size: 31px;
  }

  .tabs {
    width: 100%;
    justify-self: stretch;
    grid-auto-columns: minmax(40px, 1fr);
    overflow-x: auto;
  }

  .day-tab {
    min-height: 54px;
    padding: 8px 10px;
  }

  .day-name {
    font-size: 13px;
  }

  .today-label {
    font-size: 10px;
  }

  .schedule-scroll {
    max-height: none;
    min-height: 560px;
  }

  .schedule-grid {
    grid-template-rows: auto auto calc(var(--hour-height) * 24);
  }

  .area-header {
    font-size: 15px;
  }

  .location-header {
    font-size: 11px;
  }

  .time-label {
    right: 7px;
    font-size: 11px;
  }

  .current-line-label {
    left: calc(var(--time-col) + 4px);
    font-size: 10px;
    padding: 0 6px;
  }

  .critter-slot {
    left: 5px;
    right: 5px;
    min-height: 66px;
  }

  .critter-img {
    width: 52px;
    height: 43px;
  }

  .critter-name {
    font-size: 11px;
  }

  .critter-meta {
    font-size: 9px;
  }

  .critter-detail {
    grid-template-columns: 1fr;
  }

  .detail-image-wrap {
    min-height: 120px;

    & div {
      flex-direction: column;
      justify-content: center;
      display: flex;
      gap: 0.5em;
      width: 100%;
      text-align: center;
    }
  }

  .detail-image {
    width: 100px;
    height: 100px;
  }

  .detail-label {
    display: grid;
    grid-template-columns: 130px auto;
    color: var(--muted);
    font-size: 12px;
    gap: 1em;
    justify-content: left;
    text-align: left;
    margin: 0;
  }

  .detail-value {
    display: flex;
    flex-direction:row;
    gap: 1em;
    font-weight: normal;
    color: #fff;
    font-size: 12px;
  }
}

/* Character Tracker */

.character-tracker {
  display: grid;
  gap: 16px;
}

.realm-card {
  overflow: hidden;
  border-radius: var(--radius);
  border:1px solid rgba(255, 255, 255, 0.1);
  padding:3px;
  background: rgba(255, 255, 255, 0.09);
}

.realm-card > .area-header {
  min-height: 50px;
  background: transparent;
  border: none;
  width: 100%;
}

section.role-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.role-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 7px;
  min-height: 0;
  padding: 3px 17px;
  color: #fff;
  background: rgba(18, 26, 82, 0.96);
  border: 1px solid var(--line-soft);
  border-radius: 99999px;
  font-size: 13px;
  line-height: 1.15;
  text-align: left;
}

.role-header .header-label {
  text-align: left;
}

.role-header .header-icon {
  width: 16px;
  height: 16px;
  opacity: 0.82;
}

.role-none-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  font-size: 10px;
}

.character-grid {
  grid-template-columns: repeat(auto-fill, 45px);
  justify-content: start;
  padding: 1em;
  height: 100%;
  flex-grow: 1;
}

.character-tile {
  position: relative;
  width: 45px;
  height: 45px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: linear-gradient(180deg, 
    color-mix(in srgb, var(--slot-colour) 88%, rgba(0, 0, 0, 0.1) 12%), 
    color-mix(in srgb, var(--slot-colour-dark) 92%, rgba(0, 0, 0, 0.1) 100%));
  border: 1px solid 
    color-mix(in srgb, var(--slot-colour) 58%, white 42%);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.character-tile:hover,
.character-tile:focus-visible {
  border-color: rgba(246, 213, 134, 0.34);
  background: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, 
color-mix(in srgb, var(--slot-colour) 88%, rgba(0, 0, 0, 0.1) 50%), 
color-mix(in srgb, var(--slot-colour-dark) 92%, rgba(0, 0, 0, 0.1) 100%));
}

.character-tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.character-tile.unobtained {
  opacity: 0.3;
  filter: grayscale(0.7);
}

.character-tile.unobtained:hover,
.character-tile.unobtained:focus-visible {
  opacity: 0.75;
  filter: grayscale(0.2);
}

.character-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tile-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(13, 19, 74, 0.92);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.38);
}

.tile-badge img {
  width: 9px;
  height: 9px;
  object-fit: contain;
}

.role-badge {
  top: 0;
  right: 0;
  border-radius: 0 0 0 50%;
  border-top: none;
  border-right: none;
  background: 
    color-mix(in srgb, var(--slot-colour) 58%, white 42%);
  border: 1px solid 
    color-mix(in srgb, var(--slot-colour) 58%, white 42%);
}

.level-badge {
  bottom: 2px;
  left: 2px;
  color: var(--gold);
  font-size: 9px;
}

.tile-badge.level-badge {
  border-radius: 0 50% 0 0;
  bottom: 0;
  left: 0;
  border-bottom: none;
  border-left: none;
  border-color: color-mix(in srgb, var(--slot-colour) 58%, white 42%);
}

.realm-empty {
  margin: 0;
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
}

#characterModal.secondary-modal {
  z-index: 110;
}

.character-detail-image {
  width: 148px;
  height: 148px;
  margin: 0;
  object-fit: cover;
  object-position: top center;
}

.character-detail-fields {
  align-content: start;
}

.character-field {
  grid-template-columns: 1fr;
}

.character-field.schedule-filter-select {
  min-width: 0;
  max-width: none;
  width: 100%;
  flex: none;
}

.character-level-toggle {
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
