﻿:root {
  color-scheme: light;
  --bg: #f1efe6;
  --bg-accent: #e7dbcd;
  --ink: #1e1b16;
  --muted: #5a534a;
  --card: #fff7ee;
  --stroke: #dac8b4;
  --accent: #c86f46;
  --accent-dark: #8e4b2b;
  --shadow: rgba(30, 27, 22, 0.12);
  --grid-gap: 24px;
  font-family: "Work Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 15%, #fff4e8 0%, transparent 50%),
    radial-gradient(circle at 90% 25%, #f5e6d8 0%, transparent 45%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-accent) 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: 0 24px 40px var(--shadow);
  animation: floatIn 700ms ease-out;
}

.hero-copy h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 6px 0 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  margin: 0;
  font-weight: 600;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  margin: 0;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed var(--stroke);
}

.label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.value {
  margin: 0;
  font-weight: 600;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.controls > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls .status {
  flex: 1 1 240px;
  justify-content: flex-end;
}

.controls label {
  font-weight: 600;
  margin-right: 8px;
}

select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-family: inherit;
}

.status {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
  gap: var(--grid-gap);
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px 22px 24px;
  box-shadow: 0 20px 30px var(--shadow);
  animation: riseIn 650ms ease-out;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-header h2 {
  margin: 0 0 6px;
  font-family: "Fraunces", "Times New Roman", serif;
}

.subtext {
  margin: 0;
  color: var(--muted);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #fff;
  max-width: 100%;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.95rem;
  vertical-align: top;
}

th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
}

tbody tr:hover {
  background: #fff0e3;
}

.calendar {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  min-width: 820px;
  width: max(100%, 820px);
}

.calendar-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.calendar-header {
  align-items: center;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

#monthLabel {
  font-weight: 600;
}

.day {
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  padding: 10px;
  background: #fffdf9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day.muted {
  color: #b2a49a;
  background: #f8efe5;
}

.day strong {
  font-size: 0.9rem;
}

.badge {
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: var(--accent);
  color: #fff;
}

.event-title {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 6px;
  background: #efe3d8;
  color: #5b3a2b;
}

.tag-betting {
  background: #ffd8b2;
  color: #8a4b1f;
}

.tag-instant-combat {
  background: #f7d7ff;
  color: #6a2a83;
}

.tag-time-space {
  background: #c9f0ff;
  color: #1f5e75;
}

.tag-nosmall {
  background: #ffe6c7;
  color: #875021;
}

.tag-happy-hour {
  background: #ffd9a8;
  color: #7a4a1a;
}

.tag-discount {
  background: #e2f6d8;
  color: #2f6b2f;
}

.tag-partner-skill-event {
  background: #fdd7e4;
  color: #7a2c45;
}

.tag-partner-fusion {
  background: #ffe0f2;
  color: #7a2f55;
}

.tag-fairy-upgrade {
  background: #ffe1f1;
  color: #8a2f63;
}

.tag-fairy-exp {
  background: #d9f3ff;
  color: #2a5a80;
}

.tag-tattoo {
  background: #e6ddff;
  color: #4a3a8a;
}

.tag-tattoo-upgrade {
  background: #dcd3ff;
  color: #3c2a7a;
}

.tag-rune-upgrade {
  background: #d8f7e3;
  color: #2b6b44;
}

.tag-specialist-upgrade {
  background: #ffe6da;
  color: #8a4b2c;
}

.tag-perfection-upgrade {
  background: #ffe9c6;
  color: #8a5a2c;
}

.tag-shell-upgrade {
  background: #e8f1ff;
  color: #2c4f7a;
}

.tag-double-drop {
  background: #ffe0d6;
  color: #8a3f2c;
}

.tag-gold-boost {
  background: #fff4c2;
  color: #7a5a1d;
}

.tag-auctions {
  background: #d8e9ff;
  color: #2a4b7a;
}

.tag-exp-boost {
  background: #d6f0ff;
  color: #2c5a88;
}

.tag-job-boost {
  background: #ffe2b8;
  color: #7a4a1a;
}

.tag-land-of-life {
  background: #dff3ff;
  color: #2b5f7a;
}

.tag-drop-rate {
  background: #ffe0d6;
  color: #8a3f2c;
}

.tag-upgrade-equipment {
  background: #d5ecff;
  color: #2c5a88;
}

.tag-raid {
  background: #ffe3b0;
  color: #8a5b1a;
}

.tag-pvp {
  background: #f6c4c4;
  color: #7e2b2b;
}

.tag-seasonal {
  background: #d8f3da;
  color: #2e6c3b;
}

.tag-maintenance {
  background: #e1e1e1;
  color: #4a4a4a;
}

.tag-shop {
  background: #f4c7ff;
  color: #6b2b7e;
}

.tag-event {
  background: #ffe9c6;
  color: #8a5a2c;
}

.tag-general {
  background: #efe3d8;
  color: #5b3a2b;
}

.ghost {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}

.ghost:hover {
  transform: translateY(-1px);
  background: #f8e2d5;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer code {
  background: #fff0e3;
  padding: 2px 6px;
  border-radius: 6px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 20px;
  }

  .hero-panel {
    width: 100%;
  }

  .calendar {
    grid-template-columns: repeat(7, 1fr);
  }
}
