/* 页面级样式：首页 / 日历 / 规划 / 个人中心 / 游戏工作区 */

/* =========================
   首页
   ========================= */
.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 22px;
}

.home-head h1 {
  margin-top: 12px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.home-head h1 .accent {
  color: var(--coral);
}

.home-head-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(292px, 0.72fr);
  align-items: center;
  gap: 28px;
  padding: 32px 34px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(253, 253, 248, 0.66)),
    radial-gradient(600px 300px at 90% 10%, rgba(216, 180, 106, 0.15), transparent 60%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(37, 99, 235, 0.16) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(115deg, transparent 42%, #000 96%);
  -webkit-mask-image: linear-gradient(115deg, transparent 42%, #000 96%);
  opacity: 0.55;
}

.hero-art {
  position: absolute;
  top: -88px;
  right: -48px;
  z-index: -1;
  width: 460px;
  color: var(--primary);
  opacity: 0.42;
  pointer-events: none;
}

.hero-main {
  position: relative;
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-eyebrow .sep {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.032em;
  font-weight: 600;
  color: var(--ink);
}

.hero-title .accent {
  color: var(--coral);
}

.hero-sub {
  max-width: 490px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.hero-sub strong {
  color: var(--ink-2);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-login-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--faint);
}

.hero-login-note button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
}

.hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 5px 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px -38px rgba(22, 50, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 0;
}

.hero-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.hero-metric:last-child {
  border-bottom: none;
}

.hero-metric-label {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-metric-value {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-metric-value small {
  margin-left: 3px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--faint);
}

.hero-metric-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--faint);
  min-width: 0;
}

.hero-metric-note .ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-metric-note .up {
  color: var(--primary);
  font-weight: 600;
}

.hero-mini-bar {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: 5px;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

.hero-mini-bar i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.5s var(--ease);
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.game-card-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.game-card-main:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: -3px;
  border-radius: 24px;
}

.game-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 17px 13px;
  border-top: 1px solid var(--line);
}

.game-card-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.quick-setup {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  padding: 0 8px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.quick-setup svg {
  width: 12px;
  height: 12px;
}

.quick-setup:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--primary-tint);
}

.quick-setup:disabled {
  opacity: 0.72;
  cursor: default;
}

.game-go {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-dim);
  color: var(--muted);
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease);
}

.game-go svg {
  width: 13px;
  height: 13px;
}

.game-cover {
  position: relative;
  height: 152px;
  flex: none;
  overflow: hidden;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px 18px 17px;
}

.game-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.game-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.game-publisher {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.game-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 2.4em;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.game-meta {
  display: none;
}

.game-users {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  color: var(--faint);
}

.game-users svg {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.7;
}

.game-users strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.02em;
}

@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-md);
  }

  .game-card:hover .game-go {
    background: var(--primary);
    color: #fff;
    transform: translateX(2px);
  }

  .game-card:hover .cover-art > svg,
  .game-card:hover .cover-art > img {
    transform: scale(1.045);
  }
}

/* Procedural cover art */
.cover-art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 78% 12%, var(--c2, #d8b46a) 0%, transparent 52%),
    linear-gradient(145deg, var(--c1, #2e7e78) 0%, color-mix(in srgb, var(--c1, #2e7e78) 55%, #101715) 100%);
}

.cover-art > svg,
.cover-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.cover-art > img {
  object-position: center;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 16, 13, 0.18) 0%, transparent 34%, rgba(9, 15, 12, 0.52) 100%),
    linear-gradient(90deg, rgba(9, 16, 13, 0.22), transparent 58%);
  pointer-events: none;
}

.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}

.cover-top {
  position: absolute;
  top: 13px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.cover-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cover-code::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c2, #d8b46a);
}

.cover-publisher {
  opacity: 0.75;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-bottom {
  position: absolute;
  left: 17px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.cover-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cover-en {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-serial {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.48);
}

.cover-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.cover-hairline {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 66px;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent);
}

/* =========================
   游戏工作区
   ========================= */
.game-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 16px;
  font-size: 11.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.game-back:hover {
  color: var(--primary);
}

.game-back svg {
  width: 14px;
  height: 14px;
}

.game-hero {
  position: relative;
  min-height: 286px;
  display: flex;
  align-items: flex-end;
  padding: 30px 32px;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}

.game-hero > .cover-art {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 14, 0.72) 0%, rgba(9, 17, 14, 0.3) 56%, rgba(9, 17, 14, 0.06) 100%),
    linear-gradient(180deg, transparent 42%, rgba(9, 16, 13, 0.52) 100%);
  pointer-events: none;
}

.game-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  width: 100%;
}

.game-hero-main {
  min-width: 0;
  max-width: 640px;
}

.game-hero .kicker {
  color: rgba(255, 255, 255, 0.66);
}

.game-hero-title {
  margin-top: 16px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.game-hero-en {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.game-hero-desc {
  max-width: 520px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12.5px;
  line-height: 1.75;
}

.game-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag--glass {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.game-hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: none;
}

.game-hero-users {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #fff;
}

.game-hero-users strong {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.game-hero-users span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
}

.game-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.game-section {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  padding: 20px 21px;
}

.game-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.game-section-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
}

.game-section-title .count {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
}

.game-section-sub {
  font-size: 10.5px;
  color: var(--faint);
}

.game-today-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 6px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 14px;
  background: var(--primary-soft);
}

.game-today-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--primary-deep);
}

.game-today-copy {
  flex: 1;
  min-width: 0;
}

.game-today-copy strong {
  display: block;
  font-size: 11.5px;
  color: var(--primary-deep);
}

.game-today-copy span {
  font-size: 10px;
  color: rgba(30, 64, 175, 0.6);
}

.game-today-bar {
  width: 92px;
  flex: none;
}

.game-today-bar .bar {
  background: rgba(37, 99, 235, 0.16);
}

.game-today-bar small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(30, 64, 175, 0.6);
  text-align: right;
}

.game-empty {
  padding: 24px 10px 16px;
}

/* shared task row */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.16s var(--ease);
}

.task-row:hover {
  background: var(--surface-soft);
}

.task-row-main {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  word-break: break-word;
}

.task-row.is-done .task-title {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(152, 161, 155, 0.7);
}

.task-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--faint);
  line-height: 1.5;
}

.task-meta .game-dot {
  width: 5px;
  height: 5px;
  flex: none;
}

.game-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--primary));
}

.task-edit {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: 1px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.16s, background 0.16s, color 0.16s;
}

.task-edit svg {
  width: 13px;
  height: 13px;
}

.task-row:hover .task-edit {
  opacity: 1;
}

.task-edit:hover {
  background: var(--surface-dim);
  color: var(--ink-2);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--surface-soft);
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.event-item:hover {
  border-color: var(--line);
  background: #fff;
  transform: translateY(-1px);
}

.event-date-block {
  width: 43px;
  flex: none;
  padding-top: 1px;
  text-align: center;
}

.event-date-block strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.event-date-block span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.event-item-main {
  flex: 1;
  min-width: 0;
}

.event-item-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--faint);
}

.event-item-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--faint);
}

.event-item-arrow svg {
  width: 12px;
  height: 12px;
}

/* =========================
   日历
   ========================= */
.calendar-panel {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  padding: 22px 23px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.calendar-toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.calendar-month {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.calendar-month-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}

.calendar-toolbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-right: 4px;
  font-size: 10px;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.legend-dot--event {
  background: var(--coral);
}

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

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0 3px;
  margin-bottom: 6px;
}

.weekday-cell {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.weekday-cell.is-weekend {
  color: #b18b83;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 126px;
  padding: 9px 9px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease),
    background 0.24s var(--ease);
  overflow: hidden;
}

.cal-cell:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.cal-cell.is-out {
  opacity: 0.42;
  background: rgba(250, 251, 247, 0.4);
}

.cal-cell.is-weekend {
  background: rgba(250, 249, 244, 0.72);
}

.cal-cell.is-today {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.78), rgba(255, 255, 255, 0.7));
}

.cal-cell.is-selected {
  z-index: 3;
  border-color: rgba(37, 99, 235, 0.5);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14), 0 24px 46px -34px rgba(17, 52, 43, 0.5);
  transform: scale(1.035);
}

.cal-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.cal-day-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.cal-cell.is-today .cal-day-num {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, 0.7);
}

.cal-day-count {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
  white-space: nowrap;
}

.cal-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.cal-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.07);
  font-size: 9.5px;
  line-height: 1.45;
  color: #4f655b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip .dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
}

.cal-chip.is-event {
  background: rgba(217, 120, 86, 0.08);
  color: #8a5a48;
}

.cal-chip.is-event .dot {
  background: var(--coral);
}

.cal-more {
  padding-left: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--faint);
}

.cal-cell-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 8.5px;
  color: var(--faint);
  white-space: nowrap;
}

.cal-empty {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(152, 161, 155, 0.6);
}

.cal-dots {
  display: none;
  align-items: center;
  gap: 3px;
}

.cal-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: block;
}

.cal-dots i.is-task {
  background: var(--primary);
}

.cal-dots i.is-event {
  background: var(--coral);
}

.cal-skeleton {
  min-height: 126px;
  border-radius: 15px;
}

.calendar-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 4px 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--faint);
}

.calendar-hint .mono {
  font-size: 9px;
  letter-spacing: 0.06em;
}

/* Day panel */
.day-panel {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  padding: 22px 24px 24px;
  animation: day-expand 0.34s var(--ease);
  transform-origin: top center;
  scroll-margin-bottom: 100px;
}

@keyframes day-expand {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.day-panel-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.day-date-text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.day-week {
  font-size: 11.5px;
  color: var(--muted);
}

.day-panel-sub {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--faint);
}

.day-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.day-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  padding-top: 16px;
}

.day-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.day-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.day-section-title .count {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--faint);
}

.day-section-note {
  font-size: 9.5px;
  color: var(--faint);
}

.day-tasks {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.day-event {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-soft);
  text-align: left;
  transition: background 0.18s, border-color 0.18s;
}

.day-event:hover {
  background: #fff;
  border-color: var(--line);
}

.day-event-time {
  width: 40px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--faint);
}

.day-event-main {
  flex: 1;
  min-width: 0;
}

.day-event-title {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.day-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--faint);
}

.day-event-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  align-self: flex-start;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(217, 120, 86, 0.08);
  font-family: var(--font-mono);
  font-size: 9px;
  color: #a9634e;
}

.day-event-like svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  stroke: none;
}

.day-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  margin-top: 5px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  font-size: 10.5px;
  color: var(--muted);
}

.day-placeholder {
  padding: 12px 0;
  font-size: 10.5px;
  color: var(--faint);
}

/* =========================
   规划
   ========================= */
.planner-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background:
    radial-gradient(520px 260px at 92% 10%, rgba(216, 180, 106, 0.18), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(240, 246, 241, 0.62));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.progress-ring {
  position: relative;
  width: 96px;
  height: 96px;
  flex: none;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(37, 99, 235, 0.1);
  stroke-width: 7;
}

.ring-fg {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease);
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.ring-label strong {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}

.ring-label span {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.planner-summary-main {
  flex: 1;
  min-width: 0;
}

.planner-summary-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.planner-summary-sub {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.planner-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.planner-stat {
  min-width: 74px;
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--line);
}

.planner-stat:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.planner-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.planner-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--faint);
}

.planner-types {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 168px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.type-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  color: var(--muted);
}

.type-row .type-label {
  width: 53px;
  flex: none;
}

.type-row .type-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.09);
  overflow: hidden;
}

.type-row .type-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.type-row .type-track i.is-event {
  background: var(--coral);
}

.type-row .type-track i.is-custom {
  background: #7c8ca8;
}

.type-row em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8.5px;
  color: var(--faint);
  width: 30px;
  text-align: right;
}

.planner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 2px 12px;
  flex-wrap: wrap;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-range {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.week-range small {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.planner-toolbar-note {
  font-size: 10px;
  color: var(--faint);
}

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.week-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  padding: 10px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.2s, background 0.2s;
}

.week-col.is-today {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.86), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.045);
}

.week-col-head {
  padding: 2px 4px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 7px;
}

.week-col-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.week-day-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--faint);
  text-transform: uppercase;
}

.week-day-count {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--faint);
}

.week-col.is-today .week-day-label {
  color: var(--primary);
}

.week-day-num-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}

.week-day-num {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.week-day-month {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.week-col.is-today .week-day-num {
  color: var(--primary-deep);
}

.week-day-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.week-mini-track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.1);
  overflow: hidden;
}

.week-mini-track i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.35s var(--ease);
}

.week-progress-text {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--faint);
  white-space: nowrap;
}

.planner-tasks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.planner-groups {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.game-group {
  border: 1px solid rgba(30, 45, 70, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition: border-color 0.18s, background 0.18s;
}

.game-group:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.game-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 7px 8px 8px;
  border: 0;
  border-left: 2px solid var(--group-accent, var(--primary));
  background: transparent;
  text-align: left;
}

.game-group-emblem {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--group-accent, var(--primary)) 12%, #fff);
  color: var(--group-accent, var(--primary));
  font-size: 10px;
  font-weight: 600;
}

.game-group-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.game-group-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
}

.game-group-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.game-group-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--group-accent, var(--primary));
  opacity: 0.72;
}

.game-group-num small {
  font-size: 8px;
  font-weight: 400;
  color: var(--faint);
}

.game-group-chevron {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--faint);
  transition: transform 0.2s var(--ease);
}

.game-group-chevron svg {
  width: 11px;
  height: 11px;
}

.game-group-chevron.is-open {
  transform: rotate(180deg);
  color: var(--group-accent, var(--primary));
}

.game-group-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 3px 5px 6px;
  border-top: 1px dashed var(--line);
}

.game-group-body .planner-task {
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.82);
}

.planner-task {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 7px 8px;
  border: 1px solid rgba(30, 45, 70, 0.05);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  transition: background 0.16s, border-color 0.16s;
}

.planner-task:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.planner-task .task-check {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-width: 1.3px;
}

.planner-task .task-check svg {
  width: 9px;
  height: 9px;
}

.planner-task-main {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
}

.planner-task-title {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}

.planner-task.is-done {
  background: rgba(242, 246, 255, 0.65);
  border-color: transparent;
}

.planner-task.is-done .planner-task-title {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.planner-task-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--faint);
}

.planner-task-meta .type-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex: none;
  background: var(--primary);
}

.planner-task-meta .type-dot.is-event {
  background: var(--coral);
}

.planner-task-meta .type-dot.is-custom {
  background: #7c8ca8;
}

.planner-task-game {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.week-empty {
  padding: 20px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: rgba(152, 161, 155, 0.6);
}

.week-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 29px;
  margin-top: auto;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  font-size: 9.5px;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.week-add:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(238, 244, 255, 0.5);
  color: var(--primary);
}

.week-add svg {
  width: 11px;
  height: 11px;
}

.planner-guest {
  margin-top: 18px;
}

/* =========================
   个人中心
   ========================= */
.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background:
    radial-gradient(480px 240px at 88% 0%, rgba(216, 180, 106, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(235, 244, 238, 0.58));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  isolation: isolate;
}

.profile-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -20px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 0 34px rgba(37, 99, 235, 0.04), 0 0 0 68px rgba(37, 99, 235, 0.025);
  pointer-events: none;
  z-index: -1;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.profile-person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-dim);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.source-pill.is-hyshota {
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: var(--hyshota-soft);
  color: var(--primary-deep);
}

.source-pill img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  object-fit: cover;
}

.streamer-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fdf4df;
  color: #91691d;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.streamer-pill .icon {
  width: 11px;
  height: 11px;
  color: var(--gold);
}

.profile-account-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 9.5px;
  color: var(--faint);
}

.profile-signature {
  max-width: 420px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.profile-sync {
  font-size: 9px;
  line-height: 1.6;
  color: var(--primary);
}

.profile-sync.is-warn {
  color: #a06b1f;
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.profile-joined {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted);
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.profile-stat {
  min-width: 88px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--line);
}

.profile-stat:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.profile-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.profile-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  color: var(--faint);
  white-space: nowrap;
}

.profile-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}

.profile-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.profile-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.profile-tab:hover {
  color: var(--ink-2);
}

.profile-tab.is-active {
  background: #fff;
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(20, 45, 37, 0.09);
}

.profile-tab .tab-count {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--faint);
}

.profile-tab .tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.profile-tabs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.message-list {
  display: flex;
  flex-direction: column;
}

.message-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: background 0.16s;
}

.message-item:last-child {
  border-bottom: 0;
}

.message-item:hover {
  background: var(--surface-soft);
}

.message-item.is-unread {
  background: rgba(37, 99, 235, 0.032);
}

.message-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.message-icon--dynamic {
  background: var(--coral-soft);
  color: var(--coral);
}

.message-icon svg {
  width: 17px;
  height: 17px;
}

.message-main {
  flex: 1;
  min-width: 0;
}

.message-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.message-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.message-unread-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
}

.message-body {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-word;
}

.message-time {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.profile-panel-head h3 {
  font-size: 14px;
  font-weight: 600;
}

.profile-panel-head p {
  margin-top: 2px;
  font-size: 10px;
  color: var(--faint);
}

.profile-panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-panel-tools .unread-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--coral);
}

.managed-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.managed-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 0.18s, background 0.18s;
}

.managed-event:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.managed-cover {
  width: 78px;
  height: 62px;
  flex: none;
  border-radius: 11px;
  overflow: hidden;
}

.managed-cover .cover-emblem,
.managed-cover .cover-top,
.managed-cover .cover-bottom,
.managed-cover .cover-hairline {
  display: none;
}

.managed-main {
  flex: 1;
  min-width: 0;
}

.managed-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.managed-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.managed-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--faint);
}

.managed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  flex: none;
}

.managed-actions .btn {
  white-space: nowrap;
}

.profile-guest {
  padding: 34px;
}

/* =========================
   活动详情 / 表单
   ========================= */
.event-detail-banner {
  position: relative;
  height: 104px;
  margin: 0 28px;
  border-radius: 16px;
  overflow: hidden;
}

.event-detail-banner .cover-art {
  border-radius: 16px;
}

.event-detail-banner .cover-top,
.event-detail-banner .cover-bottom,
.event-detail-banner .cover-hairline {
  display: none;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.event-meta-box {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.event-meta-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.event-meta-box strong {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.event-description {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.event-summary-line {
  margin-top: 16px;
  padding: 10px 13px;
  border-left: 2px solid var(--primary-tint);
  border-radius: 0 9px 9px 0;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 12px;
  line-height: 1.7;
}

.event-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.event-offline-note {
  padding: 9px 12px;
  border: 1px solid rgba(199, 164, 95, 0.3);
  border-radius: 10px;
  background: #fcf7ec;
  color: #8b6b28;
  font-size: 10.5px;
  line-height: 1.6;
}

.game-facts {
  display: flex;
  flex-direction: column;
}

.game-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
}

.game-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.game-fact span {
  flex: none;
  color: var(--faint);
}

.game-fact strong {
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(199, 164, 95, 0.3);
  border-radius: 13px;
  background: #fcf7ec;
}

.event-reward-main {
  flex: 1;
  min-width: 0;
}

.event-reward span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #9a7939;
}

.event-reward code {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6f5320;
  word-break: break-all;
}

.event-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.event-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.18s;
}

.event-like-btn svg {
  width: 14px;
  height: 14px;
}

.event-like-btn.is-liked {
  border-color: rgba(217, 120, 86, 0.35);
  background: var(--coral-soft);
  color: #a85138;
}

.event-like-btn.is-liked svg {
  fill: currentColor;
}

.event-like-btn:hover {
  border-color: rgba(217, 120, 86, 0.4);
  color: #a85138;
}

.event-edit-log {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.event-edit-log-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.edit-log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.edit-log-item {
  position: relative;
  padding: 0 0 14px 16px;
  border-left: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.edit-log-item:last-child {
  padding-bottom: 0;
}

.edit-log-item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-tint);
  box-shadow: 0 0 0 2px #fff;
}

.edit-log-item time {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--faint);
}

.event-modal-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-game-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  transition: all 0.16s;
}

.event-game-choice.is-active {
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 600;
}

/* Auth */
.auth-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-mark {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--primary);
}

.sso-card {
  position: relative;
  overflow: hidden;
  padding: 19px 19px 17px;
  margin-bottom: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(120% 100% at 88% -10%, rgba(255, 255, 255, 0.32), transparent 52%),
    linear-gradient(135deg, #1e40af 0%, #2563eb 48%, #60a5fa 100%);
  box-shadow: 0 18px 38px -26px rgba(30, 64, 175, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sso-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.6px, transparent 0.6px);
  background-size: 11px 11px;
  mask-image: linear-gradient(120deg, transparent 42%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 42%, #000 100%);
  opacity: 0.55;
  pointer-events: none;
}

.sso-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sso-logo {
  width: auto;
  height: 28px;
  filter: drop-shadow(0 6px 12px rgba(15, 38, 90, 0.25));
}

.sso-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.sso-title {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sso-copy {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.sso-entry {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.58);
}

.sso-entry code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.82);
  word-break: break-all;
}

.sso-mock {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sso-mock > span {
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.sso-mock button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s;
}

.sso-mock button:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.5);
}

.sso-mock button:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-footnote {
  margin-top: 14px;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--faint);
  text-align: center;
}

.auth-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-dim);
}

.auth-tabs button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.18s;
}

.auth-tabs button.is-active {
  background: #fff;
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(20, 45, 37, 0.1);
}

.auth-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
}

.auth-demo-copy {
  font-size: 10px;
  line-height: 1.6;
  color: var(--faint);
}

.auth-demo-copy code {
  font-family: var(--font-mono);
  color: var(--ink-2);
  font-size: 10px;
}

.auth-demo .btn {
  height: 27px;
  padding: 0 10px;
  font-size: 10px;
}

.auth-error {
  margin-top: 12px;
}

/* Toast above mobile nav handled in responsive.css */



/* =========================
   Hyshota × AOZORA 迭代新增
   ========================= */
.source-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.source-chip.is-official {
  border: 1px solid rgba(224, 165, 44, 0.22);
  background: #fdf4df;
  color: #9a7429;
}

.source-chip.is-community {
  background: #edf4f6;
  color: #4e7c8c;
}

.page-head-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.page-head-note .icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.streamer-gate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 8px;
  background: var(--hyshota-soft);
  color: var(--primary-deep);
  font-size: 9.5px;
  white-space: nowrap;
}

.streamer-gate .icon {
  width: 13px;
  height: 13px;
}

/* 日历：仅活动，两行文本 */
.calendar-scope {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-dim);
}

.calendar-scope button {
  height: 26px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.calendar-scope button.is-active {
  background: #fff;
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(25, 50, 100, 0.08);
}

.cal-day-flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cal-official {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.cal-official svg {
  width: 10px;
  height: 10px;
}

.cal-count {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--primary-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--primary-deep);
}

.cal-event-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  margin-top: 2px;
}

.cal-event-game {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
}

.cal-event-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}

.cal-event-lines.is-empty .cal-event-desc {
  color: var(--faint);
}

.cal-cell.has-bookmark {
  border-color: rgba(224, 165, 44, 0.24);
}

.cal-bookmark {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.cal-cell {
  min-height: 120px;
}

/* 当天活动弹窗 */
.day-activity-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.day-activity {
  padding: 15px 16px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 15px;
  background: #fff;
}

.day-activity.is-official {
  border-left-color: var(--gold);
  background: #fffdf7;
}

.day-activity-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.day-activity-game {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.day-activity-title {
  margin-top: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.day-activity-meta {
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--faint);
}

.day-activity-summary {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.day-activity-desc {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.day-activity-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(224, 165, 44, 0.25);
  border-radius: 9px;
  background: #fcf7ec;
}

.day-activity-reward > span {
  font-size: 8.5px;
  color: #9a7939;
}

.day-activity-reward code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #6f5320;
  word-break: break-all;
}

.day-activity-reward .btn {
  height: 25px;
}

.day-activity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.day-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--muted);
}

.day-source-link .icon {
  width: 11px;
  height: 11px;
}

.day-calendar-added {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--primary-deep);
}

.day-calendar-added .icon {
  width: 12px;
  height: 12px;
}

/* 游戏工作区：活动置顶 */
.game-activities-top {
  margin-top: 22px;
}

.game-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.game-activities-top .event-item {
  background: var(--surface-soft);
}

.event-item.is-official {
  border-color: rgba(224, 165, 44, 0.16);
  background: #fffdf7;
}

.game-layout--tasks {
  margin-top: 16px;
}

/* 活动详情新增信息 */
.event-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.event-source-time {
  font-size: 9px;
  color: var(--faint);
}

.event-add-calendar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}

.event-add-calendar .icon {
  width: 12px;
  height: 12px;
}

.event-add-calendar:hover {
  background: var(--primary-tint);
}

.event-add-calendar:disabled {
  opacity: 0.6;
}

.event-in-calendar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--primary-deep);
}

.event-in-calendar .icon {
  width: 12px;
  height: 12px;
}

.event-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--muted);
}

.event-source-link .icon {
  width: 12px;
  height: 12px;
}

/* 个人中心账号卡 */
.profile-person { min-width: 0; }
.profile-hero .profile-stats { padding-right: 0; }
.profile-hero .profile-stat { min-width: 78px; padding-right: 18px; margin-right: 18px; }


.cal-event-game-mobile,
.cal-event-desc-mobile {
  display: none;
}

@media (max-width: 560px) {
  .cal-event-game,
  .cal-event-desc {
    display: none;
  }

  .cal-event-game-mobile {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink-2);
  }

  .cal-event-desc-mobile {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7px;
    line-height: 1.4;
    color: var(--muted);
    word-break: keep-all;
  }
}

.event-open-ended {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  cursor: pointer;
}

.event-open-ended input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: var(--primary);
  flex: none;
}

.event-open-ended > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-open-ended strong {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.event-open-ended em {
  font-style: normal;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* 日历/活动日历：加入与移出切换 */
.event-calendar-toggle,
.day-calendar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.event-calendar-toggle {
  margin-left: auto;
}

.event-calendar-toggle .icon,
.day-calendar-toggle .icon {
  width: 12px;
  height: 12px;
}

.event-calendar-toggle:hover,
.day-calendar-toggle:hover {
  background: var(--primary-tint);
}

.event-calendar-toggle.is-added,
.day-calendar-toggle.is-added {
  border-color: rgba(224, 165, 44, 0.28);
  background: #fdf8ec;
  color: #8d6a24;
}

.event-calendar-toggle.is-added:hover,
.day-calendar-toggle.is-added:hover {
  border-color: rgba(217, 120, 86, 0.3);
  background: var(--coral-soft);
  color: #a35138;
}

.event-calendar-toggle:disabled,
.day-calendar-toggle:disabled {
  opacity: 0.6;
}

.event-source-link,
.day-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.event-source-link .icon,
.day-source-link .icon {
  width: 12px;
  height: 12px;
}

.event-source-link:hover,
.day-source-link:hover {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink-2);
}

.day-calendar-toggle {
  height: 27px;
}

@media (max-width: 720px) {
  .event-calendar-toggle {
    margin-left: 0;
  }

  .event-source-time {
    font-size: 10px;
  }

  .source-chip {
    height: 20px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .event-source-link,
  .day-source-link {
    height: 28px;
    padding: 0 10px;
    font-size: 10.5px;
  }
}

@media (max-width: 560px) {
  .cal-event-game-mobile {
    font-size: 8.5px;
  }

  .cal-event-desc-mobile {
    font-size: 8.5px;
    line-height: 1.35;
  }

  .calendar-toolbar-right {
    min-width: 0;
  }

  .calendar-scope {
    flex: none;
  }

  .event-source-row {
    align-items: flex-start;
  }

  .event-calendar-toggle {
    width: 100%;
    margin-top: 1px;
  }

  .day-calendar-toggle {
    width: 100%;
  }

  .day-activity-foot {
    gap: 7px;
  }
}
