:root {
  color-scheme: light;
  --ink: #101b2a;
  --muted: #65758b;
  --paper: #f3f8ff;
  --panel: #ffffff;
  --line: #d9e7f6;
  --blue: #007ed2;
  --blue-deep: #003f8c;
  --blue-dark: #06162d;
  --cyan: #12c6e8;
  --red: #c94f3b;
  --gold: #f6bd3a;
  --green: #13a378;
  --gray: #8a96a8;
  --shadow: 0 22px 70px rgba(0, 54, 120, 0.24);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(18, 198, 232, 0.36), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(0, 126, 210, 0.22), transparent 28%),
    linear-gradient(135deg, #06162d 0%, #e7f5ff 48%, #0b5bb1 100%);
  color: var(--ink);
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone {
  position: relative;
  width: min(430px, 100%);
  height: min(860px, calc(100vh - 56px));
  min-height: 680px;
  overflow: hidden;
  border: 10px solid #111715;
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.splash {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  color: white;
  background:
    radial-gradient(circle at 70% 18%, rgba(34, 184, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(2, 15, 36, 0.12), rgba(2, 9, 24, 0.72) 58%, rgba(1, 6, 18, 0.98)),
    linear-gradient(135deg, rgba(0, 88, 172, 0.46), rgba(6, 22, 45, 0.9));
  transition: transform 420ms ease, opacity 420ms ease;
}

.splash.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.tournament-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.splash-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 35, 82, 0.18), rgba(0, 8, 22, 0.78) 64%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 42%, rgba(0, 42, 100, 0.38)),
    url("../assets/splash-event.png") center / cover;
  filter: saturate(0.78) contrast(1.1) brightness(0.88);
  opacity: 0.92;
}

.splash::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 9, 24, 0.82) 38%, rgba(0, 7, 18, 0.98)),
    radial-gradient(circle at 16% 82%, rgba(0, 126, 210, 0.3), transparent 34%);
}

.splash::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  pointer-events: none;
}

.stage-lights {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(72deg, transparent 5%, rgba(255, 255, 255, 0.18) 15%, transparent 28%),
    linear-gradient(112deg, transparent 16%, rgba(255, 255, 255, 0.14) 32%, transparent 44%),
    linear-gradient(148deg, transparent 36%, rgba(18, 198, 232, 0.18) 48%, transparent 62%);
}

.final-table {
  position: absolute;
  left: 50%;
  top: 230px;
  width: 300px;
  height: 132px;
  border: 10px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(3, 36, 79, 0.82);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  display: none;
}

.seat {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
  display: none;
}

.seat-a {
  left: 86px;
  top: 224px;
}

.seat-b {
  right: 80px;
  top: 236px;
}

.seat-c {
  left: 195px;
  top: 335px;
}

.spotlight {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 210px;
  height: 260px;
  background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.splash-copy {
  position: relative;
  z-index: 3;
  max-width: none;
  padding: 0 0 78px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
}

.splash-copy p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.splash-copy h1 {
  margin-bottom: 0;
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(92deg, #ffffff 0%, #d7efff 45%, #9ed8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.54));
}

.splash-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(213, 236, 255, 0.82);
  background: rgba(2, 15, 36, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  backdrop-filter: blur(8px);
}

.skip-btn {
  position: absolute;
  z-index: 3;
  right: 18px;
  top: 20px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: white;
  background: rgba(3, 18, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.splash-progress {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 38px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.splash-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #ffffff);
  animation: splashLoad 3s linear forwards;
  transform-origin: left;
}

@keyframes splashLoad {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 12px;
}

.user-topbar {
  min-height: 96px;
}

.user-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 22px rgba(0, 70, 150, 0.18);
  font-weight: 900;
}

.user-avatar::after {
  content: "牌";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.user-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.user-copy h1 {
  margin-bottom: 3px;
  font-size: 22px;
  letter-spacing: 0;
}

.user-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #06162d;
  box-shadow: 0 10px 22px rgba(0, 70, 150, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.eyebrow,
.hero-copy p,
.tag {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.brand-copy h1 {
  margin-bottom: 0;
  font-size: 26px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-copy h1 span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.icon-btn span {
  display: block;
  width: 15px;
  height: 15px;
  margin: 11px auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
  position: relative;
}

.icon-btn span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -7px;
  bottom: -4px;
  background: var(--blue);
  transform: rotate(45deg);
}

.hero {
  position: relative;
  margin: 0 0 16px;
  min-height: 165px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(18, 198, 232, 0.38), transparent 30%),
    linear-gradient(135deg, var(--blue-deep), #007ed2 52%, var(--blue-dark));
  color: #fffaf0;
}

.recommend-slide {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform;
}

.recommend-slide-temp {
  transform: translateX(100%);
}

.recommend-cover {
  position: absolute;
  inset: 0 0 33px;
  z-index: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  filter: none;
  transition: opacity 220ms ease;
}

.recommend-cover::after {
  content: none;
}

.events-hero.has-event-cover #recommendCover,
.recommend-cover.has-cover {
  opacity: 1;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 33px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 15px 12px;
  align-content: center;
  row-gap: 1px;
  align-items: flex-start;
  padding: 3px 76px 3px 10px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.recommend-region,
#recommendRegion {
  position: absolute;
  left: 10px;
  bottom: 7px;
  max-width: 62px;
  overflow: hidden;
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-slide-out {
  animation: coverSlideLeftOut 520ms cubic-bezier(0.2, 0.72, 0.22, 1) forwards;
}

.recommend-slide-in {
  animation: coverSlideRightIn 520ms cubic-bezier(0.2, 0.72, 0.22, 1) forwards;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.hero h2 {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-time {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0 66px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-status {
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: 10px;
  bottom: 6px;
  min-height: 20px;
  margin-bottom: 0;
  padding: 0 9px;
  border-radius: 999px;
  color: #0f2a34;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.recommend-status.live {
  color: white;
  background: var(--green);
}

.recommend-status.ended {
  color: white;
  background: rgba(255, 255, 255, 0.3);
}

.recommend-dots {
  display: none;
  gap: 6px;
  min-height: 10px;
  margin-bottom: 12px;
}

.recommend-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 180ms ease, background 180ms ease;
}

.recommend-dots button.active {
  width: 20px;
  background: var(--gold);
}

@keyframes coverSlideLeftOut {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes coverSlideRightIn {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0);
  }
}

.primary-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  color: #17211f;
  background: var(--gold);
  font-weight: 800;
}

.primary-btn.full {
  width: 100%;
  margin-top: 14px;
}

.felt {
  position: absolute;
  width: 156px;
  height: 104px;
  right: -20px;
  top: 48px;
  border: 8px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(4, 44, 92, 0.82);
  transform: rotate(-18deg);
}

.poker-card {
  position: absolute;
  width: 58px;
  height: 82px;
  padding: 8px;
  border-radius: 7px;
  background: #fffdfa;
  color: #151b19;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.24);
}

.poker-card span {
  color: var(--red);
}

.card-a {
  right: 112px;
  top: 50px;
  transform: rotate(-12deg);
}

.card-k {
  right: 82px;
  top: 70px;
  transform: rotate(10deg);
}

.chip {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 6px dashed #fff8e6;
  background: var(--red);
}

.chip-one {
  right: 106px;
  bottom: 30px;
}

.chip-two {
  right: 58px;
  bottom: 22px;
  background: var(--blue-deep);
}

.content-panel {
  display: none;
  padding: 0 16px 92px;
  max-height: calc(100% - 174px);
  overflow-y: auto;
  scrollbar-width: none;
}

.content-panel.active {
  display: block;
}

.content-panel::-webkit-scrollbar {
  display: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 12px;
}

.section-head:has(h3:only-child) {
  justify-content: flex-start;
}

.section-head h3 {
  margin: 0;
  font-size: 21px;
}

.section-head button {
  color: var(--blue);
  background: transparent;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 8px;
  background: #e7f2ff;
}

.segmented button,
.filter-row button {
  min-height: 36px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.segmented button.active,
.filter-row button.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.filter-row button {
  flex: 0 0 auto;
  padding: 0 14px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.open {
  color: #007348;
  background: #dff8ee;
}

.live {
  color: #9a3c00;
  background: #fff0d1;
}

.ended {
  color: #667085;
  background: #edf1f6;
}

.event-card,
.media-card,
.lesson-wide,
.gto-card,
.post,
.profile-card,
.table-row,
.composer {
  border-radius: 8px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.event-card {
  min-height: 126px;
  margin-bottom: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: stretch;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff, #dff4ff);
}

.event-card-copy {
  min-width: 0;
}

.event-card-copy h4 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-card-side {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: end;
  gap: 8px;
}

.event-item {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.event-item:active {
  transform: scale(0.98);
}

.event-card h4,
.media-card h4,
.lesson-wide h4,
.gto-card h4,
.post h4 {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.35;
}

.event-card p,
.media-card p,
.lesson-wide p,
.gto-card p,
.post p,
.profile-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.event-card strong {
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.event-cover-thumb {
  width: 112px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 70% 20%, rgba(18, 198, 232, 0.38), transparent 30%),
    linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.event-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card {
  min-height: 132px;
  margin-bottom: 12px;
  padding: 16px;
  color: white;
  background:
    linear-gradient(rgba(0, 63, 140, 0.28), rgba(0, 63, 140, 0.28)),
    repeating-linear-gradient(90deg, #007ed2 0 18px, #079fe5 18px 36px);
}

.media-card p {
  color: rgba(255, 255, 255, 0.82);
}

.media-badge {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.news-item,
.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.news-item span,
.table-row span {
  padding-right: 12px;
  font-weight: 800;
}

.news-item b,
.table-row b {
  color: var(--blue);
  font-size: 13px;
}

.lesson-stack {
  display: grid;
  gap: 10px;
}

.lesson-wide,
.gto-card {
  padding: 16px;
}

.lesson-wide {
  min-height: 128px;
  background: linear-gradient(135deg, #ffffff, #ebf7ff);
}

.lesson-wide.compact {
  min-height: 86px;
}

.lesson-wide span,
.gto-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 900;
}

.gto-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
}

.gto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 6px;
  border-radius: 8px;
  background: #e8f4ff;
}

.gto-grid i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--blue);
}

.gto-grid i:nth-child(2n) {
  background: var(--cyan);
}

.gto-grid i:nth-child(3n) {
  background: var(--gold);
}

.composer {
  margin-bottom: 12px;
  padding: 12px;
}

.composer textarea {
  width: 100%;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.composer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.image-picker {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0;
  padding: 0 10px;
  border-radius: 8px;
  background: #e8f4ff;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.image-picker input {
  display: none;
}

.image-picker b {
  color: var(--muted);
}

.club-feed {
  padding-bottom: 88px;
}

.composer .danger,
#riskHint.danger {
  color: var(--red);
}

#riskHint.warn {
  color: #9a6a00;
}

#riskHint.ok {
  color: var(--green);
}

.post {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
}

.post-body {
  min-width: 0;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.post-meta time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.post-images.single {
  grid-template-columns: minmax(0, 1fr);
}

.post-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #e8f4ff;
}

.post-images.single img {
  aspect-ratio: 16 / 10;
}

.avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.avatar.alt {
  background: var(--blue-deep);
}

.profile-card {
  margin-bottom: 12px;
  padding: 18px 14px;
  text-align: center;
}

.profile-ip {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: -8px auto 8px;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(0, 52, 110, 0.18));
}

.table-row {
  margin-bottom: 8px;
  padding: 0 14px;
  border-bottom: 0;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 4px;
  padding: 8px 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.tabbar button {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transition: color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  z-index: 0;
}

.tabbar button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  transition: opacity 260ms ease;
}

.tabbar button.active {
  color: #fff;
  transform: translateY(-1px);
}

.tabbar button.active::before {
  opacity: 1;
}

.tabbar .featured-tab {
  min-height: 62px;
  margin-top: -18px;
  border: 4px solid #fff;
  border-radius: 18px;
  color: var(--blue);
  background: #eef7ff;
  box-shadow: 0 10px 20px rgba(0, 92, 190, 0.12);
}

.tabbar .featured-tab.active {
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 92, 190, 0.28);
}

.event-detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(3, 12, 28, 0.46);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(3, 12, 28, 0.52);
  backdrop-filter: blur(10px);
}

.auth-modal.show {
  display: grid;
}

.auth-card {
  width: min(398px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  scrollbar-width: none;
}

.auth-card::-webkit-scrollbar {
  display: none;
}

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

.auth-head .splash-kicker {
  margin-bottom: 8px;
  color: var(--blue);
  background: #e8f4ff;
  border-color: var(--line);
  text-shadow: none;
}

.auth-head h2 {
  margin-bottom: 0;
  font-size: 23px;
  letter-spacing: 0;
}

.auth-head button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f4ff;
  font-size: 22px;
  line-height: 1;
}

.auth-methods {
  grid-template-columns: repeat(3, 1fr);
}

.auth-methods button {
  padding: 0 6px;
  font-size: 12px;
}

.auth-fields,
.profile-setup {
  display: grid;
  gap: 10px;
}

.auth-fields {
  margin-bottom: 12px;
}

.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.auth-card textarea {
  min-height: 78px;
  padding-top: 10px;
  resize: none;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.code-row button {
  min-width: 94px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.guest-note {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #e8f4ff;
  font-size: 13px;
  line-height: 1.5;
}

.avatar-picker {
  display: flex;
  gap: 10px;
}

.avatar-choice {
  width: 54px;
  height: 54px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-weight: 900;
}

.avatar-choice.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 189, 58, 0.2);
}

.avatar-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-avatar {
  font-size: 20px;
}

.event-detail.show {
  display: grid;
}

.detail-card {
  width: min(390px, 100%);
  padding: 18px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.close-detail {
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f4ff;
  font-size: 22px;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 9px 12px;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f3f8ff;
}

.detail-grid span {
  color: var(--muted);
}

.detail-grid b {
  color: var(--ink);
}

.detail-card > p {
  line-height: 1.65;
  white-space: pre-wrap;
}

.article-page {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: none;
  background: var(--paper);
}

.article-page.show {
  display: block;
}

.article-top {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 58px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  padding: 0 12px;
  background: rgba(243, 248, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.article-top button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  background: #e8f4ff;
  font-size: 30px;
  line-height: 1;
}

.article-top span {
  text-align: center;
  font-weight: 900;
}

.article-body {
  height: calc(100% - 58px);
  overflow-y: auto;
  padding: 22px 18px 96px;
  scrollbar-width: none;
}

.article-body::-webkit-scrollbar {
  display: none;
}

.article-body h1 {
  margin: 8px 0 16px;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: 0;
}

.article-info {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.article-cover {
  margin-bottom: 16px;
}

.article-cover img {
  width: 100%;
  display: block;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.article-info span {
  color: var(--muted);
}

.article-info b {
  color: var(--ink);
}

.article-content {
  padding: 4px 0 8px;
  color: #1f2a3a;
}

.article-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.85;
}

.article-content img,
.article-content video {
  max-width: 100%;
  display: block;
  margin: 14px 0;
  border-radius: 8px;
}

.article-content figure {
  margin: 16px 0;
}

.article-content figcaption {
  color: var(--muted);
  font-size: 12px;
}

.article-media {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.article-media figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.article-media img,
.article-media video {
  width: 100%;
  display: block;
  max-height: 260px;
  object-fit: cover;
}

.article-media figcaption,
.article-media span {
  display: block;
  padding: 9px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.detail-media {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-media span {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--blue);
  background: #e8f4ff;
  font-size: 12px;
  font-weight: 800;
}

.detail-media figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8f4ff;
}

.detail-media img,
.detail-media video {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: cover;
}

.detail-media figcaption {
  padding: 8px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: #17211f;
  transition: 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone {
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    border: 0;
    border-radius: 0;
  }
}
