/* ============================================================
   STYLE.CSS — Base glassmorphism + components
   Ported from apple-style-glassmorphism-sidebar by Juxtoposed
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: rgba(255, 255, 255, 0.9);
  --secondary-color: rgba(255, 255, 255, 0.55);
  --accent-color: #6c8aff;
  --glass-bg: rgba(15, 16, 19, 0.82);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --content-padding: 40px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--primary-color);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout Container ---------- */
.app-container {
  display: flex;
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid var(--glass-border);
  position: relative;
  transition: width var(--transition-slow), min-width var(--transition-slow);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 20px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
  overflow: hidden;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

.profile-role {
  font-size: 12px;
  color: var(--secondary-color);
  white-space: nowrap;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.menu-list {
  position: relative;
}

/* Liquid highlight (sliding active indicator) */
.menu-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.2s ease, height 0.2s ease, opacity 0.15s ease;
}

.menu-list:hover .menu-highlight {
  opacity: 1;
}

.menu-item {
  position: relative;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.menu-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.menu-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-link:hover {
  color: var(--primary-color);
}

.menu-item.active .menu-link {
  color: var(--primary-color);
}

/* Active bar indicator */
.menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 8px 4px;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.sidebar-signature {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  white-space: nowrap;
}

/* ---------- Content Area ---------- */
.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--content-padding);
  position: relative;
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Content Header */
.content-header {
  margin-bottom: 32px;
}

.content-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.content-header .subtitle {
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 400;
}

/* ---------- Filter Toolbar ---------- */
.filter-toolbar {
  margin-bottom: 28px;
}

.filter-search {
  position: relative;
  margin-bottom: 16px;
}

.filter-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 13px;
  pointer-events: none;
}

.filter-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.filter-search input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.filter-search input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
}

.filter-chip.active {
  background: rgba(108, 138, 255, 0.15);
  border-color: rgba(108, 138, 255, 0.3);
  color: var(--accent-color);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.filter-sort {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--secondary-color);
  font-family: var(--font-family);
  font-size: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-sort option {
  background: #1a1a2e;
  color: #fff;
}

.filter-clear {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--secondary-color);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-clear:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
}

/* ---------- Project Cards Grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition-normal), background var(--transition-fast);

}

.project-card.is-visible { opacity: 1; }

.project-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-card-inner {
  transform-style: preserve-3d;
}

.project-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.project-oneliner {
  font-size: 13px;
  color: var(--secondary-color);
  margin-bottom: 14px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.project-tag.domain {
  border-color: rgba(108, 138, 255, 0.15);
  color: rgba(108, 138, 255, 0.8);
}

.project-tag.language {
  border-color: rgba(130, 200, 130, 0.15);
  color: rgba(130, 200, 130, 0.8);
}


.project-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-status,
.project-year {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.project-status.completed {
  border-color: rgba(130, 200, 130, 0.22);
  color: rgba(130, 200, 130, 0.9);
}

.project-status.planned {
  border-color: rgba(108, 138, 255, 0.22);
  color: rgba(108, 138, 255, 0.95);
}

.project-stack,
.project-types {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 8px;
}

.project-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary-color);
  transition: all var(--transition-fast);
}

.project-action:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

.project-action.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.project-action i {
  font-size: 12px;
}

/* No results message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary-color);
  font-size: 14px;
}

/* ---------- Placeholder Cards ---------- */
.placeholder-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
}

.placeholder-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.placeholder-card p {
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.6;
  margin-bottom: 16px;
}

.placeholder-card .btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.placeholder-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

/* ---------- Contact Card ---------- */
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 540px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.contact-row + .contact-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.contact-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.contact-footer .signature {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}


.demo-mega-card {
  background: rgba(23, 24, 30, 0.78);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-pill {
  border: 1px solid rgba(160, 160, 160, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

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

.game-demo,
.score-demo,
.news-demo {
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  position: relative;
}

.target-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.cert-card-link {
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cert-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.cert-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
/* ---------- Focus / Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

/* Tablet: collapsed sidebar */
@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
    padding: 20px 10px;
    align-items: center;
  }

  .brand-name,
  .profile-info,
  .menu-link span,
  .sidebar-signature,
  .sidebar-gooey {
    display: none;
  }

  .sidebar-header {
    justify-content: center;
    padding: 6px 0 20px;
  }

  .profile-section {
    justify-content: center;
    padding: 12px 0;
  }

  .menu-link {
    justify-content: center;
    padding: 10px;
  }

  .menu-link i {
    font-size: 18px;
  }

  .menu-item.active::before {
    display: none;
  }

  .content {
    padding: 28px;
  }
}

/* Mobile: hide sidebar, show mobile menu */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 72px 20px 20px;
  }

  .content-header h1 {
    font-size: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .filter-groups {
    flex-direction: column;
    gap: 14px;
  }

  .filter-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .content {
    padding: 68px 16px 16px;
  }

  .project-card {
    padding: 18px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .project-card {
    transform: none !important;
    opacity: 1;
  }

  .menu-highlight {
    transition: none;
  }
}

/* ---------- Liquid Hover Sparkle ---------- */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-fade 0.6s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.mt-wrapper {
  gap: 0;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0.92), rgba(232, 232, 232, 0.88));
  border-color: rgba(255, 255, 255, 0.2);
  color: #141414;
}

.mt-masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(20, 20, 20, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.mt-tag {
  display: inline-flex;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.65);
}

.mt-meta {
  text-align: right;
}

.mt-title {
  margin: 12px 0 4px;
  text-align: center;
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1;
}

.mt-subtitle {
  margin: 0 0 12px;
  text-align: center;
  color: rgba(20, 20, 20, 0.7);
  font-size: 13px;
}

.mt-rule {
  border-bottom: 3px solid rgba(20, 20, 20, 0.95);
  margin: 10px 0 12px;
}

.mt-rule-thin {
  border-bottom-width: 1px;
}

.mt-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-bottom: 8px;
}

.mt-nav-btn {
  appearance: none;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.7);
  color: #101010;
  font-size: 12px;
  cursor: pointer;
}

.mt-nav-btn.is-active {
  border-color: rgba(20, 20, 20, 0.7);
  background: rgba(255, 255, 255, 0.98);
}

.mt-stories {
  column-count: 4;
  column-gap: 28px;
  column-rule: 1px solid rgba(20, 20, 20, 0.25);
}

.mt-story {
  break-inside: avoid;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.mt-kicker,
.mt-byline {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: rgba(20, 20, 20, 0.64);
}

.mt-story-title {
  margin: 0 0 10px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 20px;
  line-height: 1.15;
}

.mt-deck,
.mt-paragraph {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.6;
}

.mt-footer {
  margin: 12px 0 0;
  color: rgba(20, 20, 20, 0.62);
  font-size: 12px;
}

.mt-sentinel {
  height: 1px;
}

@media (max-width: 1180px) {
  .mt-stories { column-count: 3; }
}

@media (max-width: 900px) {
  .mt-stories { column-count: 2; }
}

@media (max-width: 600px) {
  .mt-stories { column-count: 1; }
  .mt-masthead-top { flex-direction: column; align-items: flex-start; }
  .mt-meta { text-align: left; }
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.game-card {
  min-height: 100%;
}

.wordle {
  display: grid;
  gap: 12px;
}

.wordle-board {
  display: grid;
  gap: 8px;
}

.wordle-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 52px));
  gap: 8px;
}

.wordle-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.wordle-tile.filled {
  border-color: rgba(255, 255, 255, 0.45);
}

.wordle-tile.correct { background: #36d399; color: #052216; }
.wordle-tile.present { background: #fbbf24; color: #231805; }
.wordle-tile.absent { background: #4b5563; color: #fff; }

.wordle-kb {
  display: grid;
  gap: 8px;
}

.wordle-kb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wordle-key {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 34px;
  font-size: 11px;
}

.wordle-key.wide { min-width: 62px; }
.wordle-key.correct { background: #36d399; color: #052216; }
.wordle-key.present { background: #fbbf24; color: #231805; }
.wordle-key.absent { background: #4b5563; color: #fff; }

.mt-wrapper {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.mt-title {
  font-family: "Old English Text MT", "Goudy Text MT", Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.mt-story-title {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.mt-title {
  font-family: "UnifrakturMaguntia", "Old English Text MT", "Goudy Text MT", serif;
  letter-spacing: 0.01em;
}

.mt-game-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 12px;
  padding: 12px;
}

.mini-wordle-row {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  margin: 8px 0;
}

.mini-w-tile {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 20, 20, 0.32);
  border-radius: 6px;
  font-weight: 700;
}

.mini-w-tile.ok { background: #7fd39f; }
.mini-w-tile.near { background: #eed482; }
.mini-w-tile.off { background: #d0d0d0; }

.mini-input {
  width: 120px;
  text-transform: uppercase;
  padding: 7px 8px;
  margin-right: 6px;
}

.mini-sudoku {
  display: grid;
  grid-template-columns: repeat(9, 24px);
  gap: 3px;
  margin: 8px 0;
}

.s-cell {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  text-align: center;
  font-size: 12px;
}

.s-cell:disabled {
  background: rgba(20, 20, 20, 0.08);
  color: #111;
}

.mini-ttt {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 5px;
  margin: 8px 0;
}

.t-cell {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 700;
}
