/* ==========================================================================
   1. 基本配色 & タイポグラフィ
   ========================================================================== */
:root {

  --spring-easing: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --smooth-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);

  --bg-system: #000000;
  --bg-secondary: #1c1c1e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-separator: #2c2c2e;

  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-link: #2997ff;
  --color-error: #ff453a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
a.btn,
a.nav-link {
  transition: transform 0.2s var(--spring-bouncy), background-color 0.2s, color 0.2s;
}

button:active,
a.btn:active,
a.nav-link:active {
  transform: scale(0.94);
}

body {
  /* Vibrant background for refraction */
  background-color: #0a0a0f;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(85, 30, 110, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(30, 80, 110, 0.3) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
}

.container,
.header-inner,
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 28px 0 16px 0;
  /* Seamless with body */
  background: transparent;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   3. メインコンテンツ & フォーム
   ========================================================================== */
.container {
  margin-top: 12px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -4px;
  margin-bottom: 12px;
}

.notice-section {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  /* Liquid Glass Surface */
  background: rgba(44, 44, 46, 0.4);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.notice-section strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.notice-section p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.list-container {
  list-style: none;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  /* Liquid Glass Surface */
  backdrop-filter: blur(24px) saturate(150%) url(#liquid-glass-filter);
  -webkit-backdrop-filter: blur(24px) saturate(150%) url(#liquid-glass-filter);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.board-rules-list {
  padding-left: 18px;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.board-rules-list li {
  margin-bottom: 8px;
}

.board-rules-list li:last-child {
  margin-bottom: 0;
}

.board-form-accordion {
  background: rgba(28, 28, 30, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
}

.form-accordion-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--card-bg, #1c1c1e);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-primary, #ffffff);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-radius 0.2s ease;
}

.board-form-accordion.open .form-accordion-summary {
  background: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.board-form-accordion {
  background: var(--card-bg, #1c1c1e);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-icon {
  color: var(--text-secondary);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.board-form-accordion.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.board-form-accordion.open .accordion-content-wrapper {
  grid-template-rows: 1fr;
}

.accordion-content-inner {
  overflow: hidden;
}

.board-form-card {
  padding: 20px;
  border-top: none;
  border-radius: 16px;
  /* Liquid Glass Surface */
  background: rgba(28, 28, 30, 0.4);
  backdrop-filter: blur(24px) saturate(150%) url(#liquid-glass-filter);
  -webkit-backdrop-filter: blur(24px) saturate(150%) url(#liquid-glass-filter);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.rule-box {
  background-color: transparent;
  padding: 0;
  margin-bottom: 16px;
  border: none;
}

.rule-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.rule-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.rule-example-container {
  margin-top: 10px;
  background-color: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  padding: 10px 14px;
}

.rule-example-label {
  display: block;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  opacity: 0.8;
}

.rule-example {
  font-size: 0.8rem;
  font-family: inherit;
  color: #8e8e93;
  white-space: pre-wrap;
  line-height: 1.5;
  border: none;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text-link);
  background-color: rgba(255, 255, 255, 0.09);
}

.form-submit-btn {
  width: 100%;
  background-color: var(--text-link);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
  margin-top: 6px;
}

.form-submit-btn:active {
  opacity: 0.75;
}

.board-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.board-header-row .section-title {
  margin: 0;
}

.search-box {
  flex: 1;
  max-width: 280px;
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-primary);
  font-size: 0.825rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") no-repeat center;
  background-size: 10px;
  cursor: pointer;
}

.search-input:focus {
  border-color: var(--text-link);
  background-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   4. 投稿一覧リスト & リキッドグラスカードデザイン
   ========================================================================== */
.content-section {
  margin-bottom: 24px;
}
#board-list,
#admin-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0 0 24px 0;
  list-style: none;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.board-post-card {
  padding: 16px 20px;
  list-style: none;
  position: relative;
  border-radius: 16px;
  /* Liquid Glass Surface */
  background: rgba(44, 44, 46, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s var(--spring-bouncy), border-color 0.2s, box-shadow 0.2s;
}

.board-post-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.post-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-time {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.post-body {
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.post-btn-edit,
.post-btn-delete {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s var(--spring-bouncy), background-color 0.15s, border-color 0.15s, color 0.15s;
}

.post-btn-edit {
  color: var(--text-link);
}

.post-btn-delete {
  color: var(--color-error);
}

.post-btn-edit:hover {
  background: rgba(41, 151, 255, 0.15);
  border-color: rgba(41, 151, 255, 0.3);
}

.post-btn-delete:hover {
  background: rgba(255, 69, 58, 0.15);
  border-color: rgba(255, 69, 58, 0.3);
}

.post-btn-edit:active,
.post-btn-delete:active {
  transform: scale(0.92);
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.page-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}

.page-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   5. 資料ライブラリ用リスト
   ========================================================================== */
.list-container:not(#board-list) {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--border-subtle);
}

.list-item {
  position: relative;
}

/* 区切り線の基本位置（左右20pxを空ける） */
.list-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 0.5px;
  background-color: var(--border-separator);
  z-index: 2;
  pointer-events: none;
}

/* 電車アイコン（.card-img-wrapper）があるリストのみアイコン直下を避けて左88pxから開始 */
.list-item:has(.card-img-wrapper):not(:last-child)::after {
  left: 88px;
}

.btn-link,
.report-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-primary);
  background-color: transparent;
  transition: background-color 150ms ease;
  user-select: none;
}

/* 全録シリーズ・バナー画像付きカード用リンクスタイル */
.btn-link-card {
  display: block;
  width: 100%;
  padding: 12px 20px 16px 20px;
  /* パディングを既存リスト（.btn-link）と完全一致 */
  text-decoration: none;
  color: var(--text-primary);
  background-color: transparent;
  transition: background-color 150ms ease;
  user-select: none;
}

.btn-link:hover,
.report-btn:hover,
.btn-link-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.btn-link:active,
.report-btn:active,
.btn-link-card:active {
  background-color: #2c2c2e !important;
}

.item-left-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.train-icon {
  height: 28px;
  width: auto;
  image-rendering: pixelated;
}

.sl-composition {
  gap: 4px;
}

.sl-composition .train-icon {
  height: 24px;
}

.item-text-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.card-tag,
.file-info {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.size-badge {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.item-right-block {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.status-badge {
  font-size: 0.85rem;
  color: var(--color-error);
  font-weight: 600;
}

.chevron-right::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #545456;
  border-right: 2px solid #545456;
  transform: rotate(45deg);
}

/* バナー画像カード内部レイアウト */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-banner-wrapper {
  width: 100%;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.card-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 正誤表・誌面訂正PDFリンク（カード内サブボタン） */
.card-errata-wrapper {
  padding-bottom: 16px;
}

.btn-link-card + .card-errata-wrapper {
  margin-top: -6px; /* バナー画像との隙間微調整 */
}

.card-errata-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px;
  padding: 10px 14px;
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.3);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  user-select: none;
}

.card-errata-link:hover {
  background-color: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.5);
}

.card-errata-link:active {
  transform: scale(0.98);
  background-color: rgba(255, 69, 58, 0.25);
}

.errata-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.errata-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--color-error);
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.errata-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff8580;
}

.card-errata-link .chevron-right::after {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   6. スライド＆ナビゲーション
   ========================================================================== */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.app-view-slider {
  transition: height 0.3s var(--spring-smooth);
  overflow-y: hidden;
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: flex-start;
}

.app-view-slider::-webkit-scrollbar {
  display: none;
}

.view-panel {
  min-height: calc(100vh - 90px);
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-bottom: 110px;
}

.floating-tab-bar {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 4px;
  width: max-content;
  background: rgba(25, 25, 28, 0.75);
  backdrop-filter: blur(24px) saturate(180%) url(#liquid-glass-filter);
  -webkit-backdrop-filter: blur(24px) saturate(180%) url(#liquid-glass-filter);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  user-select: none;
  touch-action: none;
}

.tab-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 100px;
  background: rgba(255, 255, 255, 0.2);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), width 250ms ease;
  pointer-events: none;
  z-index: 1;
}

.tab-btn {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none;
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
  color: var(--text-primary);
}

/* ==========================================================================
   7. モーダル & フッター
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.site-footer {
  background: transparent;
  padding: 48px 0 32px 0;
  text-align: center;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* reCAPTCHA バッジ非表示 */
.grecaptcha-badge {
  visibility: hidden;
}

/* Staggered Fade Up Animations */
.fade-up-enter {
  opacity: 0;
  transform: translateY(20px);
}

.fade-up-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--smooth-easing), transform 0.6s var(--spring-easing);
}

/* Button Micro-interactions */
button {
  transition: transform 0.15s var(--smooth-easing), background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
}

button:active:not(:disabled) {
  transform: scale(0.95);
}

/* ==========================================================================
   Portal Styles (migrated from index.html)
   ========================================================================== */
.portal-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: calc(100vh - 120px);
      padding: 20px;
    }

    .portal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      width: 100%;
      max-width: 900px;
      margin-top: 40px;
    }

    .portal-card {
      background: rgba(28, 28, 30, 0.4);
      backdrop-filter: blur(24px) saturate(150%);
      -webkit-backdrop-filter: blur(24px) saturate(150%);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 16px;
      padding: 24px;
      text-decoration: none;
      color: var(--text-primary);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.08);
      transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .portal-card:hover {
      transform: translateY(-4px);
      background: rgba(255, 255, 255, 0.08);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    }

    .portal-card h2 {
      margin: 16px 0 8px 0;
      font-size: 1.25rem;
      color: var(--text-primary);
    }

    .portal-card p {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.5;
      margin: 0;
    }

    .portal-icon {
      font-size: 2.5rem;
      margin-bottom: 8px;
    }

    .hero-title {
      font-size: 2.5rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-subtitle {
      text-align: center;
      color: var(--text-secondary);
      font-size: 1.1rem;
    }
