@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Sora:wght@300;400;600;700&display=swap");

@font-face {
  font-family: "No Free Font";
  src: url("/fonts/no-free-font.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090f;
  --bg-2: #090f1f;
  --blue-1: #1c3cff;
  --blue-2: #00b3ff;
  --blue-3: #2a6cff;
  --season-1: #1c3cff;
  --season-2: #00b3ff;
  --season-3: #2a6cff;
  --ink: #eef5ff;
  --muted: #b0c1de;
  --card: rgba(11, 18, 34, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --glow: 0 0 50px rgba(0, 179, 255, 0.35);
  --font-body: "Sora", sans-serif;
  --font-heading-display: "No Free Font", "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-heading-soft: "M PLUS Rounded 1c", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-heading-current: var(--font-heading-display);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  cursor: url("/cursor/icecream.png") 8 2, auto;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--season-1) 45%, transparent), transparent 45%),
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--season-2) 35%, transparent), transparent 35%),
    linear-gradient(135deg, #02040b 0%, #050b1a 45%, #000 100%);
  min-height: 100vh;
}

body[data-font-theme="soft"] {
  --font-heading-current: var(--font-heading-soft);
}

body[data-event="on"] {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 217, 0.35), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(0, 179, 255, 0.32), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(255, 217, 61, 0.22), transparent 42%),
    linear-gradient(140deg, #120426 0%, #0a1f3f 45%, #13050c 100%);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: linear-gradient(145deg, rgba(2, 6, 20, 0.98), rgba(5, 10, 25, 0.98));
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid rgba(0, 179, 255, 0.2);
  border-top-color: rgba(0, 179, 255, 0.9);
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 24px rgba(0, 179, 255, 0.35);
}

.loader-text {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--muted);
}

h1, h2, h3 {
  font-family: var(--font-heading-current);
  margin: 0 0 16px;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--season-2) 55%, transparent), transparent 38%),
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--season-1) 55%, transparent), transparent 32%),
    radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--season-3) 45%, transparent), transparent 40%);
  opacity: 1;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 18px 24px;
  width: min(100%, calc(100% - 32px));
  border-radius: 28px;
  /* Always keep header readable with black text */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.10);
  transition: background-color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

/* User preference: keep header bar text black */
.site-header {
  color: #0f1115;
}

body[data-event="on"] .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 20, 0.75);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  max-width: 420px;
  margin: 16vh auto 0;
  padding: 24px;
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.95);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.modal-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-text {
  color: var(--muted);
  margin: 0 0 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.modal-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

.logo {
  font-family: var(--font-heading-current);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: inherit;
}

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

.nav-link {
  color: inherit;
  position: relative;
  padding-bottom: 4px;
  opacity: 0.78;
}

.nav-link.active,
.nav-link:hover {
  opacity: 1;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  background-size: 200% 100%;
  animation: navGlow 2.5s linear infinite;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}

.lang-switcher-btn {
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(133, 190, 255, 0.35);
  background: rgba(5, 12, 28, 0.82);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.lang-switcher-btn.is-active {
  color: var(--ink);
  border-color: rgba(0, 179, 255, 0.7);
  background: rgba(18, 42, 92, 0.92);
}

main {
  position: relative;
  z-index: 1;
  padding: 40px 8vw 100px;
}

.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 32px;
}

.invite-text {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  min-height: 70vh;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 42rem;
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  font-family: var(--font-body);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn.primary {
  background: linear-gradient(120deg, var(--blue-1), var(--blue-2));
  box-shadow: var(--glow);
}

.btn.ghost {
  border: 1px solid rgba(133, 190, 255, 0.45);
  background: linear-gradient(180deg, rgba(20, 34, 68, 0.96), rgba(10, 18, 38, 0.96));
  color: #f4f8ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn.ghost:hover {
  border-color: rgba(155, 212, 255, 0.75);
  background: linear-gradient(180deg, rgba(28, 48, 92, 0.98), rgba(12, 22, 48, 0.98));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32), 0 0 20px rgba(0, 179, 255, 0.12);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
  will-change: transform;
}

body[data-event="on"] .hero-card,
body[data-event="on"] .tile,
body[data-event="on"] .section-block,
body[data-event="on"] .contact-card {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

body[data-event="on"] .btn.primary {
  background: linear-gradient(120deg, #ff4d4f, #ffcf4f, #00b3ff);
  box-shadow: 0 0 35px rgba(255, 129, 84, 0.45);
}

body[data-event="on"] h1,
body[data-event="on"] h2 {
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero-card:hover,
.tile:hover,
.command-card:hover,
.log-card:hover,
.stat:hover {
  transform: perspective(800px) rotateX(-2deg) rotateY(2deg);
}

.card-title {
  font-family: var(--font-heading-current);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.card-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.pulse {
  position: absolute;
  inset: auto 20px 20px auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 179, 255, 0.6), transparent 70%);
  filter: blur(2px);
  animation: pulse 4s ease-in-out infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.tile {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: transform 0.2s ease, border 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 179, 255, 0.4);
}

.showcase {
  margin-top: 80px;
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--blue-1) 12%, var(--card)) 0%,
    var(--card) 70%
  );
  border: 1px solid var(--line);
}

.section-block {
  margin-top: 80px;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: background-color 280ms ease, border-color 280ms ease;
}

.secret-actions {
  display: flex;
  gap: 12px;
}

.auth-actions {
  display: flex;
  gap: 12px;
}

.secret-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.section-head {
  margin-bottom: 20px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 16px;
}

.step-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

.step-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-2);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.faq-list details,
.faq-page details {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 20, 0.7);
}

.faq-list summary,
.faq-page summary {
  cursor: pointer;
  font-weight: 600;
}


.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stat {
  padding: 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.page-hero {
  max-width: 760px;
  margin: 40px 0 60px;
}

.timeline {
  display: grid;
  gap: 26px;
  max-width: 720px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--blue-1), var(--blue-2));
  margin-top: 8px;
  box-shadow: var(--glow);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.command-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: background-color 280ms ease, border-color 280ms ease;
}

.command {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-2);
}

.guide-steps {
  display: grid;
  gap: 16px;
}

.guide-step {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}

.faq-page {
  display: grid;
  gap: 12px;
}

.policy-block {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}

.contact-card {
  max-width: 640px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 18, 34, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.app-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 860px) {
  .app-grid {
    grid-template-columns: minmax(320px, 1.2fr) 420px;
    align-items: start;
  }
}

.profile-preview {
  display: grid;
  gap: 18px;
}

.profile-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 16, 32, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.20);
}

.profile-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-card-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 7, 20, 0.85);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.preview-accent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.preview-accent-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-accent {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.muted-text {
  color: var(--muted);
}

.profile-avatar-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 4px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 20, 0.7);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.profile-avatar span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.profile-avatar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(13, 22, 40, 0.96);
  color: var(--ink);
  padding: 14px 16px;
  font-family: "Sora", sans-serif;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 179, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(0, 179, 255, 0.18);
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.form-status.success {
  color: var(--blue-2);
}
.form-status.error {
  color: #ff6b6b;
}

.log-list {
  display: grid;
  gap: 18px;
}

.log-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 26, 0.82);
}

.log-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.log-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.log-message {
  font-weight: 600;
  margin-bottom: 8px;
}

.community-post {
  display: grid;
  gap: 12px;
}

.community-author-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.community-author-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-author-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.community-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(32, 82, 168, 0.3), rgba(93, 26, 124, 0.35));
}

.community-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-author-avatar span {
  font-family: var(--font-heading-current);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.community-author-name {
  font-size: 0.88rem;
  color: var(--muted);
}

.community-verified-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 179, 255, 0.45);
  color: #cfefff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.community-title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 92, 0.55);
  color: #ffe3b3;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.community-post-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.community-post-title {
  font-family: var(--font-heading-current);
  font-size: 1.1rem;
  line-height: 1.2;
}

.community-post-message {
  white-space: pre-wrap;
  line-height: 1.7;
}

.community-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  white-space: nowrap;
}

.community-category.category-free {
  background: rgba(120, 142, 170, 0.16);
}

.community-category.category-question {
  background: rgba(255, 196, 66, 0.16);
}

.community-category.category-share {
  background: rgba(0, 179, 255, 0.16);
}

.community-category.category-update {
  background: rgba(46, 160, 67, 0.18);
}

.community-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.community-vote.is-active,
.community-follow.is-active {
  border-color: rgba(255, 122, 217, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 122, 217, 0.18) inset;
}

.community-vote.positive.is-active {
  border-color: rgba(67, 197, 112, 0.55);
  box-shadow: 0 0 0 1px rgba(67, 197, 112, 0.18) inset;
}

.community-vote.negative.is-active {
  border-color: rgba(233, 92, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(233, 92, 92, 0.18) inset;
}

.community-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.community-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.community-image-preview {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.community-image-preview img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.community-image-preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.community-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.03em;
}

.community-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.community-composer {
  border-radius: 24px;
  border: 1px solid rgba(120, 184, 255, 0.26);
  background:
    linear-gradient(160deg, rgba(18, 30, 55, 0.94), rgba(9, 16, 32, 0.96)),
    radial-gradient(circle at 20% 10%, rgba(0, 179, 255, 0.14), transparent 40%);
}

.community-side {
  display: grid;
  gap: 14px;
}

.community-info-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 184, 255, 0.24);
  background: rgba(10, 18, 36, 0.88);
}

.community-info-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.community-feed {
  margin-top: 28px;
}

.community-feed-toolbar {
  max-width: none;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 184, 255, 0.2);
}

.community-feed-list {
  gap: 16px;
}

.community-feed-list .community-post {
  border-radius: 18px;
  border: 1px solid rgba(130, 196, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(7, 14, 29, 0.92), rgba(10, 18, 37, 0.94)),
    radial-gradient(circle at 100% 0, rgba(0, 179, 255, 0.08), transparent 45%);
}

.community-feed-list .community-post .community-actions {
  padding-top: 10px;
  border-top: 1px dashed rgba(120, 184, 255, 0.24);
}

.community-feed-list .community-post .community-author-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(0, 179, 255, 0.36);
}

.community-feed-list .community-post .community-category {
  border-color: rgba(120, 184, 255, 0.3);
  font-weight: 600;
}

@media (max-width: 980px) {
  .community-shell {
    grid-template-columns: 1fr;
  }
}

.log-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.log-file {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 179, 255, 0.4);
  font-size: 0.8rem;
  color: var(--ink);
}

.log-empty {
  padding: 24px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 30px 8vw 60px;
  color: rgba(220, 230, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(220, 230, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--blue-2);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


@keyframes headerGlow {
  0%, 100% {
    background-position: 0% 50%;
    box-shadow: 0 0 0 rgba(0, 179, 255, 0.0);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 8px 30px rgba(0, 179, 255, 0.12);
  }
}

@keyframes navGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(0, 179, 255, 0.2);
  }
  100% {
    background-position: 100% 50%;
    box-shadow: 0 0 14px rgba(0, 179, 255, 0.45);
  }
}

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

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 72px;
    right: 8vw;
    background: rgba(2, 6, 20, 0.95);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .invite-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 開発時カウントダウンオーバーレイ */
.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(7, 9, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Sora", sans-serif;
}
.countdown-label {
  color: var(--muted);
  font-size: 0.95rem;
}
.countdown-num {
  font-size: 4rem;
  font-weight: 700;
  color: var(--blue-2);
  line-height: 1;
  transition: transform 0.2s ease;
}
.countdown-num.pop {
  transform: scale(1.2);
}

/* 偽BANポップアップ */
.fake-ban-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fake-ban-modal {
  background: #1e1f22;
  border: 2px solid #ed4245;
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 40px rgba(237, 66, 69, 0.3);
}
.fake-ban-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.fake-ban-title {
  color: #ed4245;
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.fake-ban-message {
  color: var(--ink);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.fake-ban-reason {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.fake-ban-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}
.fake-ban-close {
  background: #ed4245 !important;
}

/* 管理者ログアウトボタン */
.admin-logout {
  font-size: 0.875rem;
  opacity: 0.8;
  white-space: nowrap;
}
.admin-logout:hover {
  opacity: 1;
}

/* ログインオプション */
.login-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: #333;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.google-login:hover {
  background: #f5f5f5;
  color: #333;
}
.google-login svg {
  flex-shrink: 0;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-divider span {
  padding: 0 8px;
}

.site-announcement {
  position: sticky;
  top: 0;
  z-index: 7;
  padding: 10px 16px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 40, 0.95);
  overflow: hidden;
}
.site-announcement-track {
  display: block;
  width: 100%;
  overflow: hidden;
}
.site-announcement-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  will-change: transform;
  animation: announcementMarquee 18s linear infinite;
}
.site-announcement[data-level="warn"] {
  background: rgba(120, 90, 0, 0.9);
}
.site-announcement[data-level="alert"] {
  background: rgba(120, 0, 20, 0.92);
}
.site-announcement.hidden {
  display: none;
}

.vpn-warning-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 77, 79, 0.6);
  background: rgba(50, 6, 10, 0.92);
  color: #ffd7d8;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 18, 0.94);
  backdrop-filter: blur(3px);
}
.maintenance-card {
  width: min(680px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 34, 0.95);
  padding: 24px;
  text-align: center;
}
.maintenance-card h2 {
  margin: 4px 0 10px;
}
.maintenance-card p {
  margin: 0;
  color: var(--muted);
}

body.is-adblock-locked {
  overflow: hidden;
}

.adblock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 77, 79, 0.22), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(0, 179, 255, 0.18), transparent 30%),
    rgba(3, 6, 16, 0.96);
  backdrop-filter: blur(8px);
}

.adblock-card {
  width: min(680px, 92vw);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(10, 16, 34, 0.97), rgba(7, 11, 24, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.adblock-card h2 {
  margin: 4px 0 14px;
}

.adblock-card .lead {
  margin: 0 auto;
  max-width: 34rem;
}

.adblock-card .cta-row {
  justify-content: center;
  margin-top: 24px;
}

.command-actions {
  margin-top: 12px;
}
.command-copy {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.wizard-list {
  display: grid;
  gap: 10px;
}
.wizard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 20, 0.55);
}
.wizard-summary {
  margin-top: 14px;
}

.ad-card {
  margin-top: 28px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 26, 0.82);
}

.ad-slot-placeholder {
  display: grid;
  place-items: center;
  min-height: 130px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(143, 211, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(12, 20, 42, 0.9), rgba(8, 14, 28, 0.92)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 10px,
      rgba(255, 255, 255, 0.04) 10px,
      rgba(255, 255, 255, 0.04) 20px
    );
  color: var(--muted);
  text-align: center;
}

.ad-slot-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.ad-slot-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  margin-top: 14px;
  padding: 10px 0 4px;
  overflow-x: auto;
}

.site-event {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10003;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(120deg, rgba(28, 60, 255, 0.82), rgba(0, 179, 255, 0.78), rgba(255, 122, 46, 0.76));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.site-event-icon {
  font-size: 1rem;
}
.site-event span {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.site-event[data-theme="warn"] {
  background: linear-gradient(120deg, rgba(219, 146, 0, 0.9), rgba(255, 196, 66, 0.86), rgba(255, 116, 48, 0.84));
}
.site-event[data-theme="alert"] {
  background: linear-gradient(120deg, rgba(160, 24, 36, 0.9), rgba(255, 77, 79, 0.86), rgba(255, 154, 36, 0.84));
}
.site-event.hidden {
  display: none;
}

.site-event-confetti {
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
  overflow: hidden;
}
.site-event-confetti.hidden {
  display: none;
}
.site-event-piece {
  position: absolute;
  top: -14vh;
  left: 0;
  border-radius: 2px;
  opacity: 0.95;
  animation: siteEventConfettiFall linear infinite;
  will-change: transform;
}
.site-event-confetti[data-theme="info"] .site-event-piece:nth-child(6n + 1) { background: #ff4d4f; }
.site-event-confetti[data-theme="info"] .site-event-piece:nth-child(6n + 2) { background: #ffd93d; }
.site-event-confetti[data-theme="info"] .site-event-piece:nth-child(6n + 3) { background: #2ea043; }
.site-event-confetti[data-theme="info"] .site-event-piece:nth-child(6n + 4) { background: #00b3ff; }
.site-event-confetti[data-theme="info"] .site-event-piece:nth-child(6n + 5) { background: #8e7dff; }
.site-event-confetti[data-theme="info"] .site-event-piece:nth-child(6n + 6) { background: #ff7ad9; }
.site-event-confetti[data-theme="warn"] .site-event-piece:nth-child(4n + 1) { background: #ffd93d; }
.site-event-confetti[data-theme="warn"] .site-event-piece:nth-child(4n + 2) { background: #ff9f43; }
.site-event-confetti[data-theme="warn"] .site-event-piece:nth-child(4n + 3) { background: #ffeaa7; }
.site-event-confetti[data-theme="warn"] .site-event-piece:nth-child(4n + 4) { background: #fdcb6e; }
.site-event-confetti[data-theme="alert"] .site-event-piece:nth-child(4n + 1) { background: #ff4d4f; }
.site-event-confetti[data-theme="alert"] .site-event-piece:nth-child(4n + 2) { background: #ff9f43; }
.site-event-confetti[data-theme="alert"] .site-event-piece:nth-child(4n + 3) { background: #ff7675; }
.site-event-confetti[data-theme="alert"] .site-event-piece:nth-child(4n + 4) { background: #fab1a0; }

@keyframes siteEventConfettiFall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--drift, 0px), 118vh, 0) rotate(var(--spin, 540deg)); }
}

.sound-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10010;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(155, 212, 255, 0.45);
  background: linear-gradient(180deg, rgba(20, 34, 68, 0.92), rgba(10, 18, 38, 0.94));
  color: #f4f8ff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sound-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 230, 255, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 18px rgba(0, 179, 255, 0.14);
}

.sound-toggle[aria-pressed="false"] {
  border-color: rgba(255, 160, 160, 0.36);
  background: linear-gradient(180deg, rgba(56, 24, 38, 0.9), rgba(26, 12, 20, 0.94));
  color: rgba(255, 235, 238, 0.9);
}

@media (max-width: 640px) {
  .sound-toggle {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.76rem;
  }
}

.search-panel {
  max-width: 720px;
}

.search-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.search-form-row .field {
  flex: 1 1 280px;
  margin: 0;
}

.search-results-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px;
}

.search-results-empty {
  margin: 0;
}

.search-hit-list {
  display: grid;
  gap: 14px;
}

.search-hit {
  display: block;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.search-hit:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 179, 255, 0.4);
}

.search-hit-title {
  font-family: var(--font-heading-current);
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--blue-2);
}

.search-hit-path {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
  margin: 0 0 8px;
}

.search-hit-snippet {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.profile-public-card {
  max-width: 720px;
}

.profile-public-bio-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 20px 0 8px;
  font-weight: 600;
}

.profile-public-bio {
  margin: 0;
  line-height: 1.75;
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 1rem;
}

.profile-public-bio.is-empty {
  color: var(--muted);
  font-style: italic;
}

.profile-public-stats {
  margin-top: 24px;
}

#profile-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
