:root {
  --navy: #1E2A4A;
  --navy-deep: #151E36;
  --amber: #FDB827;
  --amber-soft: #FFF6DC;
  --mint: #2E8B57;
  --mint-soft: #E8F6EE;
  --paper: #F7F9FC;
  --surface: #FFFFFF;
  --sky: #EEF5FF;
  --ink: #1E293B;
  --slate: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sheet: 0 6px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 14px 32px rgba(15, 23, 42, 0.11), 0 4px 10px rgba(15, 23, 42, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: 'Prompt', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--amber-soft);
  color: var(--navy-deep);
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
.ws-thumb-box,
.research-cover-box {
  touch-action: manipulation;
}

.nowrap {
  white-space: nowrap;
}

.loading-state {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  font-weight: 500;
}

.site-main > * {
  animation: ttwStageReveal 0.18s var(--ease-out);
}

@keyframes ttwStageReveal {
  from {
    opacity: 0.92;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: 'Mali', 'Prompt', sans-serif;
  color: var(--navy);
  line-height: 1.32;
  margin: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
}

h2 {
  font-size: clamp(1.32rem, 2vw, 1.6rem);
}

h3 {
  font-size: 1.18rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Mali', sans-serif;
  font-size: 1.18rem;
  color: var(--navy);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .site-nav {
    flex-wrap: nowrap;
  }
}

.nav-link {
  text-decoration: none;
  padding: 7px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
}

.ads-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid #f2cf72;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  user-select: none;
  margin-left: 4px;
}

.ads-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ads-toggle-track {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.ads-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.15s ease;
}

.ads-toggle input:checked + .ads-toggle-track {
  background: var(--mint);
}

.ads-toggle input:checked + .ads-toggle-track::after {
  transform: translateX(14px);
}

.site-main {
  padding-bottom: 64px;
}

.loading-state {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1E2A4A 0%, #273863 62%, #1D3557 100%);
  color: var(--surface);
  padding: 44px 0 48px;
  overflow: hidden;
  border-bottom: 4px solid var(--amber);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 184, 39, 0.16);
  color: var(--amber);
  border: 1px solid rgba(253, 184, 39, 0.45);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-title {
  color: var(--surface);
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  margin-bottom: 14px;
}

.hero-desc {
  color: #e2e8f0;
  font-size: 1rem;
  max-width: 58ch;
  margin: 0 0 22px;
}

.hero-search-form {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 6px;
  border-radius: var(--radius-md);
  max-width: 540px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.96rem;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}

.hero-search-input:focus {
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-sm {
  padding: 6px 13px;
  min-height: 36px;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-amber {
  background: var(--amber);
  color: var(--navy-deep);
}

.btn-amber:hover {
  background: #f5aa0c;
}

.btn-navy {
  background: var(--navy);
  color: var(--surface);
}

.btn-navy:hover {
  background: var(--navy-deep);
}

.btn-mint {
  background: var(--mint);
  color: var(--surface);
}

.btn-mint:hover {
  background: #257347;
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--sky);
  border-color: #bfd3f2;
}

.hero-quick-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quick-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.quick-pill:hover {
  background: rgba(253, 184, 39, 0.25);
  border-color: var(--amber);
}

/* Hero Visual Stage */
.hero-stage {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-sheets-fan {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 315px;
}

.fanned-sheet {
  position: absolute;
  width: 175px;
  aspect-ratio: 210 / 297;
  background: var(--surface);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 18px 34px rgba(10, 18, 38, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, z-index 0s;
}

.fanned-sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
}

.fanned-sheet--1 {
  left: 16px;
  top: 26px;
  transform: rotate(-7deg);
  z-index: 1;
}

.fanned-sheet--2 {
  left: 126px;
  top: 8px;
  transform: rotate(1deg);
  z-index: 2;
}

.fanned-sheet--3 {
  right: 12px;
  top: 32px;
  transform: rotate(7deg);
  z-index: 1;
}

.fanned-sheet:hover {
  transform: translateY(-8px) scale(1.04);
  z-index: 5;
}

.hero-mascot {
  position: absolute;
  right: -8px;
  bottom: -16px;
  width: 185px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
  z-index: 6;
  pointer-events: none;
}

/* AdSense Blueprint Slots */
.ad-slot-wrapper {
  margin-block: 26px;
}

.ad-slot {
  border: 2px dashed #94a3b8;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  color: var(--slate);
}

.ad-slot--leaderboard {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot--infeed {
  grid-column: 1 / -1;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-block: 6px;
}

.ad-slot--sidebar {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.ad-slot-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--navy);
  color: var(--amber);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.ad-slot-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.94rem;
}

.ad-slot-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.ads-hidden .ad-slot-wrapper,
.ads-hidden .ad-slot--infeed,
.ads-hidden .ad-slot--sidebar {
  display: none;
}

/* Filter Toolbar */
.catalog-section {
  padding-top: 12px;
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(30, 42, 74, 0.04);
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-right: 4px;
}

.chip-btn,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--slate);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 38px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.14s var(--ease-out), background-color 0.16s var(--ease-out), color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.chip-btn:hover,
.filter-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--sky);
  transform: translateY(-1px);
}

.chip-btn.active,
.filter-chip.active {
  background: var(--navy);
  color: var(--amber);
  border-color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.chip-btn.active {
  color: var(--surface);
}

.select-grade {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-height: 42px;
  background: var(--surface);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out);
}

.select-grade:focus {
  outline: none;
  border-color: var(--navy);
}

.form-field .select-grade {
  width: 100%;
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.catalog-count {
  font-size: 0.94rem;
  color: var(--slate);
}

/* Worksheet Grid & Cards */
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 22px;
}

.ws-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sheet);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.ws-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ws-thumb-box {
  position: relative;
  background: #edf2f7;
  padding: 42px 18px 14px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.ws-thumb-paper {
  position: relative;
  width: 100%;
  max-width: 196px;
  aspect-ratio: 210 / 297;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  border: 1px solid #cbd5e1;
}

.ws-thumb-paper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
}

.watermark-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.watermark-overlay span {
  transform: rotate(-28deg);
  font-family: 'Mali', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: rgba(30, 42, 74, 0.22);
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(30, 42, 74, 0.22);
  white-space: nowrap;
}

.ws-badge-free {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 3;
  background: var(--mint);
  color: var(--surface);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.ws-badge-key {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  background: var(--amber);
  color: var(--navy-deep);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.ws-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.ws-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--sky);
  color: var(--navy);
}

.tag-pill--grade {
  background: var(--amber-soft);
  color: #854d0e;
}

.ws-card-title {
  font-size: 1.08rem;
  color: var(--navy);
}

.ws-card-title a {
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-card-title a:hover {
  text-decoration: underline;
}

.ws-card-sub {
  margin: 0;
  font-size: 0.87rem;
  color: var(--slate);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-card-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.ws-card-foot .btn {
  white-space: nowrap;
  padding: 8px 13px;
  min-height: 38px;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
}

.ws-dl-count {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* VIP / Bundle Banner */
.bundle-banner {
  margin-top: 40px;
  background: linear-gradient(125deg, #FFF8E6 0%, #EEF5FF 100%);
  border: 1px solid #e5d4a1;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.bundle-mascot {
  width: 112px;
  height: auto;
  flex-shrink: 0;
}

.bundle-copy h2 {
  font-size: 1.32rem;
  margin-bottom: 6px;
}

.bundle-copy p {
  margin: 0;
  color: var(--slate);
  font-size: 0.94rem;
  max-width: 62ch;
}

/* Detail Page */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sheet);
}

.detail-header {
  margin-bottom: 18px;
}

.detail-title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 10px 0 8px;
}

.detail-subtitle {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

.detail-preview-stage {
  position: relative;
  background: #edf2f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.detail-preview-paper {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 210 / 297;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  cursor: zoom-in;
}

.detail-preview-paper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}

.preview-caption-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}

.preview-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.preview-toolbar-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.preview-status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.preview-status-pill--free {
  background: var(--mint-soft);
  color: #14532d;
  border: 1px solid #9dd6b4;
}

.preview-status-pill--pack {
  background: var(--amber-soft);
  color: #854d0e;
  border: 1px solid #f2cf72;
}

.preview-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-nav-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  min-height: 40px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}

.preview-nav-btn:hover:not(:disabled) {
  background: var(--sky);
  border-color: var(--navy);
}

.preview-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.preview-thumbs-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.preview-thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.preview-thumb-btn:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.preview-thumb-btn.active {
  border-color: var(--navy);
  background: var(--sky);
  box-shadow: 0 4px 12px rgba(30, 42, 74, 0.16);
}

.preview-thumb-imgbox {
  width: 100%;
  aspect-ratio: 210 / 297;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.preview-thumb-imgbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.preview-thumb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
}

.thumb-tag-free {
  color: #14532d;
  background: var(--mint-soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.thumb-tag-pack {
  color: #854d0e;
  background: var(--amber-soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.included-files-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.included-files-box strong {
  display: block;
  font-size: 0.86rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.included-files-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--slate);
  display: grid;
  gap: 8px;
}

.included-files-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  line-height: 1.45;
}

.included-files-box .format-badge {
  flex-shrink: 0;
  margin-right: 0;
  margin-top: 2px;
  min-width: 44px;
  text-align: center;
}

.lightbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

/* SEO Article Body */
.seo-article {
  max-width: 72ch;
}

.page-card.seo-article {
  max-width: 820px;
  margin-inline: auto;
}

.seo-article h2 {
  font-size: 1.32rem;
  margin: 26px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sky);
}

.seo-article p {
  margin: 0 0 14px;
  color: var(--ink);
}

.seo-article ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink);
}

.seo-article li {
  margin-bottom: 8px;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.step-item {
  background: var(--sky);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.step-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.teacher-tip-box {
  background: var(--amber-soft);
  border: 1px solid #f2cf72;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
}

.teacher-tip-box h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.keyword-chip {
  font-size: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--slate);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Sticky Sidebar */
.detail-sidebar {
  position: sticky;
  top: 90px;
}

.spec-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-list span {
  color: var(--muted);
}

.spec-list strong {
  color: var(--navy);
  text-align: right;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
}

.unlocked-box {
  background: var(--mint-soft);
  border: 1px solid #9dd6b4;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.unlocked-box p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #14532d;
  font-weight: 600;
}

.related-section {
  margin-top: 40px;
}

.related-section h2 {
  font-size: 1.38rem;
  margin-bottom: 16px;
}

/* Info / Legal / Architecture Pages */
.page-shell {
  padding-top: 28px;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  min-width: 0;
  max-width: 100%;
  box-shadow: var(--shadow-sheet);
}

.page-card h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.page-lead {
  color: var(--slate);
  max-width: 68ch;
  margin-bottom: 24px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 26px;
}

.pillar-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.pillar-box h3 {
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.sitemap-pre {
  background: var(--navy-deep);
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.checklist-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.checklist-table code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checklist-table th,
.checklist-table td {
  border: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.checklist-table th {
  background: var(--sky);
  color: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
}

.form-feedback {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--mint-soft);
  color: #14532d;
  border: 1px solid #9dd6b4;
  font-size: 0.9rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  position: relative;
}

.modal-preview-card {
  width: min(740px, 100%);
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--navy);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}

.offerwall-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.offerwall-badge {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.offerwall-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
  background: var(--paper);
}

.offerwall-option--primary {
  background: var(--amber-soft);
  border-color: #f2cf72;
}

.offerwall-option h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.offerwall-option p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--slate);
}

.ad-player-box {
  background: linear-gradient(135deg, #1E2A4A 0%, #273863 100%);
  color: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-top: 12px;
}

.ad-player-box h3 {
  color: var(--amber);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin: 16px 0 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  transition: width 0.25s linear;
}

.unlock-celebrate {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--mint-soft);
  border: 1px solid #9dd6b4;
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 14px 0;
}

.unlock-celebrate img {
  width: 82px;
  flex-shrink: 0;
}

/* Pagination */
.pagination-bar {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(30, 42, 74, 0.04);
}

.pagination-summary {
  font-size: 0.9rem;
  color: var(--slate);
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--sky);
  border-color: var(--navy);
}

.page-btn.active {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Research Section: หยิบวิจัยมาใช้สอน */
.research-spotlight-strip {
  margin-top: 26px;
  background: linear-gradient(135deg, #1E2A4A 0%, #24355E 100%);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  border: 1px solid rgba(253, 184, 39, 0.4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sheet);
}

.research-spotlight-emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  object-fit: cover;
  flex-shrink: 0;
}

.research-spotlight-strip h2 {
  color: var(--amber);
  font-size: 1.22rem;
  margin-bottom: 4px;
}

.research-spotlight-strip p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  max-width: 64ch;
}

.research-hero {
  background: linear-gradient(135deg, #151E36 0%, #1E2A4A 65%, #243B6B 100%);
  color: var(--surface);
  padding: 38px 0 42px;
  border-bottom: 4px solid var(--amber);
}

.research-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: 28px;
  align-items: center;
}

.research-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.research-hero-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  object-fit: cover;
}

.research-hero h1 {
  color: var(--surface);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  margin-bottom: 10px;
}

.research-hero p {
  margin: 0;
  color: #e2e8f0;
  max-width: 62ch;
}

.research-hero-mascot {
  width: 170px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sheet);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.research-cover-box {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--navy);
  overflow: hidden;
  cursor: pointer;
}

.research-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-ep-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.research-slide-frame {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1 / 1;
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  cursor: zoom-in;
}

.research-slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.research-thumbs-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.research-thumb-imgbox {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy);
}

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

.apa-citation-box {
  background: var(--mint-soft);
  border: 1px solid #9dd6b4;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 18px;
}

.apa-citation-box h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.apa-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.format-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
}

.format-badge--docx {
  background: #dbeafe;
  color: #1e40af;
}

.format-badge--pdf {
  background: var(--mint-soft);
  color: #14532d;
}

.table-scroll-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .research-spotlight-strip,
  .research-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .research-thumbs-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Classroom Tools, Games & Analytics */
.dual-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.triple-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.triple-spotlight-grid .research-spotlight-strip,
.triple-spotlight-grid .tools-spotlight-card,
.triple-spotlight-grid .games-spotlight-card {
  margin-top: 0;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px 14px;
  align-items: start;
  padding: 20px;
}

.triple-spotlight-grid .research-spotlight-strip > .btn,
.triple-spotlight-grid .tools-spotlight-card > .btn,
.triple-spotlight-grid .games-spotlight-card > .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.dual-spotlight-grid .research-spotlight-strip {
  margin-top: 0;
  height: 100%;
}

.games-spotlight-card {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid rgba(253, 184, 39, 0.4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sheet);
}

.games-spotlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.games-spotlight-card h2 {
  color: var(--amber);
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.games-spotlight-card p {
  margin: 0;
  color: #e0e7ff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.tools-spotlight-card {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid rgba(253, 184, 39, 0.4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow-sheet);
}

.tools-spotlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
}

.tools-spotlight-card h2 {
  color: var(--amber);
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.tools-spotlight-card p {
  margin: 0;
  color: #ecfdf5;
  font-size: 0.9rem;
}

.tools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tool-tab-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.14s var(--ease-out), background-color 0.16s var(--ease-out), color 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}

.tool-tab-btn:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.tool-tab-btn.active {
  background: var(--navy);
  color: var(--amber);
  border-color: var(--navy);
}

.tool-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sheet);
  animation: ttwStageReveal 0.16s var(--ease-out);
}

.tool-stage:fullscreen {
  background: #f8fafc;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 36px;
}

.tool-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.tool-stage-head h2 {
  font-size: 1.38rem;
  margin-bottom: 4px;
}

.tool-stage-head p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.tool-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.tool-config-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.tool-config-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.preset-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
  resize: vertical;
  font-size: 0.9rem;
}

.tool-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.04rem;
}

/* Gachapon */
.gacha-stage-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gachapon-globe {
  width: 100%;
  background: linear-gradient(160deg, #1E2A4A 0%, #273863 100%);
  border: 3px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  color: var(--surface);
  box-shadow: var(--shadow-hover);
}

.gachapon-globe.is-spinning .gacha-ball {
  animation: gachaTumble 0.32s infinite alternate var(--ease-out);
}

@keyframes gachaTumble {
  from { transform: translateY(-3px) rotate(-6deg); }
  to { transform: translateY(5px) rotate(6deg); }
}

.gacha-capsules-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.gacha-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy-deep);
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14);
}

.gacha-ball--1 { background: #fde047; }
.gacha-ball--2 { background: #6ee7b7; }
.gacha-ball--3 { background: #93c5fd; }
.gacha-ball--4 { background: #fda4af; }
.gacha-ball--5 { background: #d8b4fe; }

.gachapon-winner-box {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gachapon-winner-box small {
  color: var(--muted);
  font-size: 0.88rem;
}

.gachapon-winner-box strong {
  font-family: 'Mali', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: var(--navy);
  line-height: 1.2;
}

.gacha-spinning-text {
  font-family: 'Mali', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #b45309;
}

.gacha-controls-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.gacha-meta-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--slate);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.drawn-history-box {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

.drawn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.drawn-chip {
  background: var(--sky);
  color: var(--navy);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Noise Radar */
.noise-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.radar-circle {
  position: relative;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.radar-circle--green {
  background: #dcfce7;
  border: 6px solid #22c55e;
  color: #14532d;
}

.radar-circle--amber {
  background: #fef3c7;
  border: 6px solid #f59e0b;
  color: #78350f;
}

.radar-circle--red {
  background: #fee2e2;
  border: 6px solid #ef4444;
  color: #7f1d1d;
  box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.14);
}

.radar-core {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-level-num {
  font-family: 'Mali', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.radar-status-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.radar-status-hint {
  margin: 0 0 16px;
  color: var(--slate);
}

.noise-meter-bar {
  width: min(520px, 100%);
  height: 18px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.noise-meter-fill {
  height: 100%;
  transition: width 0.12s linear, background-color 0.2s ease;
}

.noise-meter-fill--green { background: #22c55e; }
.noise-meter-fill--amber { background: #f59e0b; }
.noise-meter-fill--red { background: #ef4444; }

.noise-stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.noise-stat-pill {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.noise-sim-box {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
}

.noise-slider-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
}

/* Visual Classroom Timer */
.timer-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timer-display-big {
  font-family: 'Mali', sans-serif;
  font-size: clamp(3.6rem, 9vw, 6.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  margin: 18px 0 6px;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.timer-status-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 16px;
}

.timer-progress-bar {
  width: min(620px, 100%);
  height: 22px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.timer-progress-fill {
  height: 100%;
  transition: width 0.4s linear, background-color 0.2s ease;
}

.timer-progress-fill--mint { background: var(--mint); }
.timer-progress-fill--amber { background: var(--amber); }
.timer-progress-fill--red { background: #ef4444; }

.custom-timer-form {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
}

.custom-timer-form input {
  width: 82px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Smart Groups */
.groups-notice-pill {
  background: var(--mint-soft);
  color: #14532d;
  border: 1px solid #9dd6b4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.group-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.group-card-head {
  background: var(--navy);
  color: var(--surface);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.group-card-head span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 600;
}

.group-card ul {
  margin: 0;
  padding: 10px 12px 12px 26px;
  font-size: 0.88rem;
  color: var(--ink);
}

/* Analytics Preview KPIs */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

.stats-kpi-card {
  background: var(--sky);
  border: 1px solid #d5e3f7;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.stats-kpi-card--mint {
  background: var(--mint-soft);
  border-color: #b7e4c7;
}

.stats-kpi-card--amber {
  background: var(--amber-soft);
  border-color: #f3d78a;
}

.stats-kpi-card small {
  color: var(--slate);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.stats-kpi-card strong {
  font-family: 'Mali', sans-serif;
  font-size: 1.7rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .triple-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .dual-spotlight-grid,
  .tool-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive Educational Games */
.tool-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.game-sound-toggle {
  margin-left: auto;
}

.tool-stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sheet);
  animation: ttwStageReveal 0.16s var(--ease-out);
}

.game-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.game-hud-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.game-hud-pill {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.game-hud-pill.is-hot {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.game-prompt-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
  text-align: center;
}

.game-category-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.game-word-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 6px 0 10px;
  text-align: left;
}

.game-emoji-badge {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  box-shadow: 0 4px 12px rgba(30, 42, 74, 0.08);
}

.game-target-word {
  font-family: 'Mali', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0;
}

.game-phonetic {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

.game-speech-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.game-hint-text {
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}

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

.spell-duel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.game-choice-btn:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--sky);
  transform: translateY(-1px);
}

.game-choice-btn:disabled {
  cursor: default;
}

.spell-duel-card {
  justify-content: center;
  font-size: 1.45rem;
  padding: 26px 20px;
  font-family: 'Mali', sans-serif;
}

.choice-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.game-choice-btn.is-correct {
  border-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
}

.game-choice-btn.is-correct .choice-num {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.game-choice-btn.is-wrong {
  border-color: #dc2626;
  background: #fee2e2;
  color: #7f1d1d;
}

.game-choice-btn.is-wrong .choice-num {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.game-feedback-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.game-feedback-banner.is-ok {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
}

.game-feedback-banner.is-err {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #78350f;
}

.game-feedback-banner strong {
  display: block;
  margin-bottom: 2px;
}

.game-result-card {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
}

.game-stars {
  font-size: 2.8rem;
  color: #f59e0b;
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.game-result-sub {
  color: var(--slate);
  margin-bottom: 20px;
}

.game-result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 22px;
}

.game-metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.game-metric-box small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.game-metric-box strong {
  font-size: 1.35rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.game-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Team Quiz Battle */
.team-setup-card h2 {
  margin-bottom: 6px;
}

.team-setup-head p {
  color: var(--slate);
  margin-bottom: 20px;
}

.team-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-setup-field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.team-pool-note {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.team-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}

.team-name-row:focus-within {
  border-color: var(--navy);
  background: var(--surface);
}

.team-name-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  outline: none;
}

.team-setup-cta {
  margin-top: 22px;
  text-align: center;
}

.team-battle-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.team-top-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bonus-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.team-scoreboard-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.team-score-chip {
  background: var(--paper);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-out), transform 0.14s var(--ease-out), box-shadow 0.16s var(--ease-out);
}

.team-score-chip.is-turn {
  border-color: var(--amber);
  background: var(--amber-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sheet);
}

.team-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.turn-tag {
  background: var(--navy);
  color: var(--amber);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.team-chip-pts {
  display: block;
  font-family: 'Mali', sans-serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.team-turn-callout {
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.team-podium-list {
  max-width: 480px;
  margin: 0 auto 22px;
  display: grid;
  gap: 10px;
}

.team-podium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--border);
}

.team-podium-row.is-champion {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.podium-medal {
  font-size: 1.4rem;
}

.podium-name {
  flex: 1;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
}

.team-battle-wrap.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #ffffff;
  padding: 28px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ttw-game-fullscreen .ad-slot,
body.ttw-game-fullscreen .site-header,
body.ttw-game-fullscreen .site-footer {
  display: none !important;
}

@media (max-width: 760px) {
  .page-card {
    padding: 20px 16px;
  }
  .checklist-table th,
  .checklist-table td {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
  .tools-tabs,
  .tool-tabs-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .tool-tab-btn {
    padding: 9px 10px;
    font-size: 0.85rem;
    min-height: 44px;
    text-align: center;
  }
  .tool-stage-card {
    padding: 16px;
  }
  .game-sound-toggle {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
  }
  .game-choices-grid,
  .spell-duel-grid,
  .team-setup-grid,
  .team-names-inputs {
    grid-template-columns: 1fr;
  }
  .game-word-hero {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-search-form {
    flex-direction: column;
    padding: 8px;
  }
  .hero-search-form .btn {
    width: 100%;
  }
  .tools-tabs,
  .tool-tabs-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tools-spotlight-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding-top: 44px;
  border-top: 4px solid var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--amber);
}

.site-footer h3,
.site-footer h4 {
  color: var(--surface);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.footer-brand-row p,
.footer-note {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: none;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.footer-bottom {
  background: #0f1629;
  padding: 16px 20px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .detail-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .bundle-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 760px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .site-nav.open {
    display: flex;
  }

  .ads-toggle {
    margin-left: 0;
    justify-content: space-between;
  }

  .hero-sheets-fan {
    height: 255px;
    max-width: 340px;
  }

  .fanned-sheet {
    width: 130px;
  }

  .fanned-sheet--2 {
    left: 96px;
  }

  .hero-mascot {
    width: 138px;
    right: -4px;
    bottom: -10px;
  }
}

/* Contact CTA & Chatbot Widget */
.contact-cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-chat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sheet);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  flex-shrink: 0;
}

.chat-messages {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 220px;
  max-height: 310px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
}

.chat-msg.is-user {
  justify-content: flex-end;
}

.chat-msg.is-bot {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.91rem;
  line-height: 1.55;
}

.chat-msg.is-bot .chat-bubble {
  background: var(--sky);
  color: var(--ink);
  border: 1px solid #d5e3f7;
}

.chat-msg.is-user .chat-bubble {
  background: var(--navy);
  color: var(--surface);
}

.chat-bubble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.94rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--navy);
}

@media (max-width: 560px) {
  .chat-input-row {
    flex-direction: column;
  }
  .chat-input-row .btn {
    width: 100%;
  }
}

/* Language Toggle, Live Like Button & Feedback Box */
.lang-toggle-btn {
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 36px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.lang-toggle-btn:hover {
  border-color: var(--navy);
  background: var(--sky);
}

.ws-stats-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ws-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.14s var(--ease-out), border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.ws-like-btn:hover {
  border-color: #f43f5e;
  color: #be123c;
  background: #fff1f2;
  transform: translateY(-1px);
}

.ws-like-btn.is-liked {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.ws-detail-like-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.feedback-card {
  margin-top: 28px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sheet);
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.feedback-form-grid label,
.feedback-form-grid span.filter-label {
  display: block;
  margin-bottom: 6px;
}

.feedback-form-grid input[type="text"],
.feedback-form-grid input[type="email"],
.feedback-form-grid textarea,
.feedback-form-grid select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.94rem;
  background: var(--surface);
  color: var(--navy);
}

.feedback-form-grid textarea {
  resize: vertical;
  min-height: 96px;
}

.feedback-field-full {
  grid-column: 1 / -1;
}

.rating-stars-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rating-star-btn {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--slate);
  border-radius: var(--radius-sm);
  min-width: 52px;
  height: 40px;
  padding: 0 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}

.rating-star-btn.is-selected {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #b45309;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.feedback-status {
  font-size: 0.9rem;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .feedback-form-grid {
    grid-template-columns: 1fr;
  }
  .lang-toggle-btn {
    width: 100%;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
