/* Art direction: MapleStory retro gaming utility → warm, nostalgic, pixel-art themed
   Palette: warm cream/orange/brown — MapleStory's iconic UI colors
   Typography: Galmuri11 (pixel display) + Noto Sans KR (body) — retro game meets modern readability
   Density: balanced — tool/calculator UI with comfortable spacing */

/* ===== FONTS ===== */
@import url('https://cdn.jsdelivr.net/npm/galmuri/dist/galmuri.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  --font-display: 'Galmuri11', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;

  /* ===== TYPE SCALE (compact) ===== */
  --text-xs:   0.7rem;
  --text-sm:   0.8rem;
  --text-base: 0.9rem;
  --text-lg:   1.05rem;
  --text-xl:   1.3rem;
  --text-2xl:  1.7rem;
  --text-3xl:  2.2rem;
  --text-hero: 3rem;

  /* ===== 4px SPACING (compact) ===== */
  --space-1:  0.2rem;
  --space-2:  0.35rem;
  --space-3:  0.55rem;
  --space-4:  0.75rem;
  --space-5:  1rem;
  --space-6:  1.15rem;
  --space-8:  1.5rem;
  --space-10: 2rem;
  --space-12: 2.5rem;
  --space-16: 3rem;
  --space-20: 4rem;
  --space-24: 5rem;
  --space-32: 6rem;

  /* ===== RADIUS ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ===== TRANSITIONS ===== */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ===== CONTENT WIDTHS ===== */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== LIGHT MODE (Maple Cream) ===== */
:root, [data-theme="light"] {
  --color-bg:             #FFF8E7;
  --color-surface:        #FFF3D6;
  --color-surface-2:      #FFEEC4;
  --color-surface-offset: #F5ECDA;
  --color-surface-offset-2: #EDE4D0;
  --color-surface-dynamic: #E6DCCA;
  --color-divider:        #D4C9B0;
  --color-border:         #C4B799;
  --color-text:           #3D2C16;
  --color-text-muted:     #7A6B52;
  --color-text-faint:     #A89A7E;
  --color-text-inverse:   #FFF8E7;
  --color-primary:        #E88A00;
  --color-primary-hover:  #CC7800;
  --color-primary-active: #B06800;
  --color-primary-highlight: #FFEDCC;
  --color-secondary:      #FFCC00;
  --color-secondary-hover: #E6B800;
  --color-blue:           #5BA5E6;
  --color-blue-hover:     #4A94D4;
  --color-blue-highlight: #E0F0FF;
  --color-success:        #4CAF50;
  --color-success-hover:  #3D9140;
  --color-success-highlight: #E8F5E9;
  --color-error:          #D32F2F;
  --color-error-hover:    #B71C1C;
  --color-error-highlight: #FFEBEE;
  --color-warning:        #F57C00;
  --color-warning-hover:  #E65100;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 60 / 0.1);
  --shadow-md: 0 4px 12px oklch(0.3 0.04 60 / 0.12);
  --shadow-lg: 0 12px 32px oklch(0.3 0.04 60 / 0.15);
  --shadow-panel: 0 2px 8px oklch(0.3 0.04 60 / 0.08), 0 0 0 1px oklch(0.3 0.04 60 / 0.06);
}

/* ===== DARK MODE (Wooden Panel) ===== */
[data-theme="dark"] {
  --color-bg:             #1a1410;
  --color-surface:        #231c16;
  --color-surface-2:      #2c241c;
  --color-surface-offset: #1f1912;
  --color-surface-offset-2: #2a2218;
  --color-surface-dynamic: #352c22;
  --color-divider:        #3d3428;
  --color-border:         #4a3f30;
  --color-text:           #E8DCC8;
  --color-text-muted:     #A89880;
  --color-text-faint:     #6E6050;
  --color-text-inverse:   #1a1410;
  --color-primary:        #FFA726;
  --color-primary-hover:  #FFB74D;
  --color-primary-active: #FF9800;
  --color-primary-highlight: #3D3020;
  --color-secondary:      #FFD54F;
  --color-secondary-hover: #FFCA28;
  --color-blue:           #64B5F6;
  --color-blue-hover:     #90CAF9;
  --color-blue-highlight: #263238;
  --color-success:        #66BB6A;
  --color-success-hover:  #81C784;
  --color-success-highlight: #1B2E1C;
  --color-error:          #EF5350;
  --color-error-hover:    #F44336;
  --color-error-highlight: #3B1E1E;
  --color-warning:        #FFB74D;
  --color-warning-hover:  #FFA726;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  --shadow-panel: 0 2px 8px oklch(0 0 0 / 0.3), 0 0 0 1px oklch(0.3 0.02 60 / 0.15);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1a1410;
    --color-surface:        #231c16;
    --color-surface-2:      #2c241c;
    --color-surface-offset: #1f1912;
    --color-surface-offset-2: #2a2218;
    --color-surface-dynamic: #352c22;
    --color-divider:        #3d3428;
    --color-border:         #4a3f30;
    --color-text:           #E8DCC8;
    --color-text-muted:     #A89880;
    --color-text-faint:     #6E6050;
    --color-text-inverse:   #1a1410;
    --color-primary:        #FFA726;
    --color-primary-hover:  #FFB74D;
    --color-primary-active: #FF9800;
    --color-primary-highlight: #3D3020;
    --color-secondary:      #FFD54F;
    --color-secondary-hover: #FFCA28;
    --color-blue:           #64B5F6;
    --color-blue-hover:     #90CAF9;
    --color-blue-highlight: #263238;
    --color-success:        #66BB6A;
    --color-success-hover:  #81C784;
    --color-success-highlight: #1B2E1C;
    --color-error:          #EF5350;
    --color-error-hover:    #F44336;
    --color-error-highlight: #3B1E1E;
    --color-warning:        #FFB74D;
    --color-warning-hover:  #FFA726;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
    --shadow-panel: 0 2px 8px oklch(0 0 0 / 0.3), 0 0 0 1px oklch(0.3 0.02 60 / 0.15);
  }
}

/* ===== MAPLE UI PANEL STYLE ===== */
.maple-panel {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: var(--space-4);
  position: relative;
}

.maple-panel::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
  border-radius: calc(var(--radius-lg) - 2px);
  pointer-events: none;
}

.maple-panel-header {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-divider);
  white-space: nowrap;
}

/* ===== BUTTON STYLES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-interactive);
  min-height: 36px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-active));
  color: var(--color-text-inverse);
  border-color: var(--color-primary-active);
  text-shadow: 0 1px 1px oklch(0 0 0 / 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-primary-hover), var(--color-primary));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-dynamic);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* ===== FORM INPUTS ===== */
.input-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.input-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.input-field input,
.input-field select {
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  min-height: 34px;
}

.input-field input:focus,
.input-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2);
}

.input-field input::placeholder {
  color: var(--color-text-faint);
}

.input-hint {
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.field-help {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-top: var(--space-1);
}

.atk-breakdown {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.atk-breakdown-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.atk-breakdown-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.atk-breakdown-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== BADGE/CHIP ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-body);
}

.badge-primary {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.badge-success {
  background: var(--color-success-highlight);
  color: var(--color-success);
}

.badge-error {
  background: var(--color-error-highlight);
  color: var(--color-error);
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  flex: 1;
  padding: var(--space-1) var(--space-3);
  border-radius: calc(var(--radius-lg) - var(--space-1));
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-interactive);
  min-height: 36px;
}

.tab-btn:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.tab-btn.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}

/* ===== RESULT DISPLAY ===== */
.result-box {
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  overflow: hidden;
}

.result-value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  word-break: break-all;
  overflow-wrap: break-word;
}

.result-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ===== TABLE STYLES ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}

.data-table thead th {
  background: var(--color-surface-offset);
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }

.data-table tbody td {
  padding: var(--space-1) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
}

.data-table tbody tr:hover td {
  background: var(--color-primary-highlight);
}

.data-table tbody tr:last-child td { border-bottom: none; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.text-center { text-align: center; }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
  padding: var(--space-2) 0;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-area svg {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
}

.logo-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
}

/* ===== MAIN LAYOUT ===== */
.main-content {
  padding: var(--space-3) 0;
  min-height: calc(100dvh - 140px);
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  animation: fadeIn 300ms ease;
}

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

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

/* ===== CALCULATOR LAYOUTS ===== */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 480px) {
  .calc-inputs {
    grid-template-columns: 1fr;
  }
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.result-status {
  text-align: center;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: var(--space-3);
}

.result-status.success {
  background: var(--color-success-highlight);
  color: var(--color-success);
  border: 2px solid var(--color-success);
}

.result-status.fail {
  background: var(--color-error-highlight);
  color: var(--color-error);
  border: 2px solid var(--color-error);
}

.advice-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-align: center;
}

/* ===== SCROLL SIMULATOR ===== */
.scroll-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.scroll-results-area {
  min-height: 200px;
}

.scroll-attempts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.scroll-slot {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  transition: all 300ms ease;
}

.scroll-slot.success {
  background: var(--color-success-highlight);
  border-color: var(--color-success);
  animation: slotSuccess 400ms ease;
}

.scroll-slot.fail {
  background: var(--color-error-highlight);
  border-color: var(--color-error);
  animation: slotFail 400ms ease;
}

.scroll-slot.pending {
  opacity: 0.4;
}

@keyframes slotSuccess {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes slotFail {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.scroll-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
}

.scroll-stat-card {
  text-align: center;
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.scroll-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.scroll-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== BULK SIM ===== */
.bulk-bar {
  height: 24px;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  background: var(--color-surface-offset);
  margin-top: var(--space-3);
}

.bulk-bar-success {
  background: var(--color-success);
  transition: width 500ms ease;
}

.bulk-bar-fail {
  background: var(--color-error);
  transition: width 500ms ease;
}

/* ===== MONSTER DB ===== */
.search-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.search-bar input {
  flex: 1;
  min-width: 200px;
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  min-height: 34px;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2);
}

.search-bar select {
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  min-height: 34px;
  cursor: pointer;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  -webkit-overflow-scrolling: touch;
}

.monster-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.data-table tbody td.monster-name {
  font-weight: 600;
  color: var(--color-primary);
}

.region-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

/* Region colors — light mode */
.region-victoria { background: #FFE8CC; color: #B36B00; }
.region-orbis { background: #D6EAFF; color: #1A6BBF; }
.region-elnath { background: #E0E8F0; color: #4A5568; }
.region-ludibrium { background: #FFE0F0; color: #B33B72; }
.region-aquaroad { background: #D4F0FF; color: #1A7A9F; }
.region-leafre { background: #E8FFE0; color: #3A7A1A; }
.region-mulung { background: #FFF0D4; color: #9A6B1A; }
.region-nihal { background: #FFF3CC; color: #8B6914; }
.region-japan-shrine { background: #FFE0E0; color: #B33333; }
.region-japan-showa { background: #F0D6D6; color: #8B3A3A; }
.region-kaede { background: #E8D4F0; color: #6B3A8B; }
.region-taiwan { background: #D4F0E8; color: #1A7A5A; }
.region-thailand { background: #FFF0CC; color: #8B7014; }

/* Region colors — dark mode */
[data-theme="dark"] .region-victoria { background: #3D3020; color: #FFB74D; }
[data-theme="dark"] .region-orbis { background: #1A2A3A; color: #64B5F6; }
[data-theme="dark"] .region-elnath { background: #2A2E34; color: #B0BEC5; }
[data-theme="dark"] .region-ludibrium { background: #3A2030; color: #F48FB1; }
[data-theme="dark"] .region-aquaroad { background: #1A2D3A; color: #64C8E6; }
[data-theme="dark"] .region-leafre { background: #1A2E16; color: #7ACC5A; }
[data-theme="dark"] .region-mulung { background: #2E2616; color: #CCB05A; }
[data-theme="dark"] .region-nihal { background: #332E16; color: #D4B44A; }
[data-theme="dark"] .region-japan-shrine { background: #3A1A1A; color: #F48B8B; }
[data-theme="dark"] .region-japan-showa { background: #2E1A1A; color: #D4A0A0; }
[data-theme="dark"] .region-kaede { background: #2A1A34; color: #C4A0E0; }
[data-theme="dark"] .region-taiwan { background: #1A2E26; color: #7ACCA0; }
[data-theme="dark"] .region-thailand { background: #2E2A16; color: #D4C44A; }

/* ===== DAMAGE CALC ===== */
.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.weapon-btn {
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-xs);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-interactive);
  min-height: 32px;
}

.weapon-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.weapon-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.damage-bar-container {
  margin-top: var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}

.damage-bar {
  height: 22px;
  border-radius: var(--radius-sm);
  position: relative;
  background: var(--color-surface-offset);
  overflow: hidden;
}

.damage-bar-inner {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.damage-bar-min {
  background: linear-gradient(90deg, var(--color-blue), var(--color-blue-hover));
}

.damage-bar-avg {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.damage-bar-max {
  background: linear-gradient(90deg, var(--color-error), var(--color-error-hover));
}

.damage-legend {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 2px solid var(--color-border);
  padding: var(--space-4) 0;
  text-align: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* ===== AD PLACEHOLDER ===== */
.ad-slot {
  background: var(--color-surface-offset);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  margin: var(--space-6) 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE TAB NAV ===== */
@media (max-width: 640px) {
  .tab-nav {
    gap: 0;
    padding: var(--space-1);
  }
  .tab-btn {
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
    min-height: 40px;
  }
  .logo-subtitle { display: none; }
  .logo-text { font-size: var(--text-lg); }
}

/* ===== CHECKBOX STYLED ===== */
.checkbox-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  min-height: 34px;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.section-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ===== SORT INDICATORS ===== */
.sortable {
  cursor: pointer;
  user-select: none;
}
.sortable:hover {
  color: var(--color-primary);
}
.sort-arrow {
  display: inline-block;
  margin-left: var(--space-1);
  font-size: 0.7em;
}

/* ===== FAVORITES (Monster Quick Select) ===== */
.favorites-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-interactive);
  min-height: 30px;
}

.favorite-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.favorite-btn .fav-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-faint);
  font-size: 0.75rem;
  line-height: 1;
  margin-left: var(--space-1);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all var(--transition-interactive);
}

.favorite-btn .fav-remove:hover {
  background: var(--color-error-highlight);
  color: var(--color-error);
}

/* ===== MONSTER SEARCH DROPDOWN ===== */
.monster-search-wrapper {
  position: relative;
  display: inline-block;
}

.monster-search-input {
  padding: var(--space-1) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  min-height: 34px;
  width: 220px;
  color: var(--color-text);
}

.monster-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.2);
}

.monster-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 50;
  display: none;
}

.monster-search-dropdown.show {
  display: block;
}

.monster-search-item {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  cursor: pointer;
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition-interactive);
}

.monster-search-item:last-child {
  border-bottom: none;
}

.monster-search-item:hover {
  background: var(--color-primary-highlight);
}

.monster-search-item .item-name {
  font-weight: 600;
  color: var(--color-text);
}

.monster-search-item .item-info {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ===== MOTION RESULTS CARDS ===== */
.motion-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.motion-card {
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.motion-card-header {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.motion-card-header .wc-badge {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

.motion-card .calc-results {
  grid-template-columns: repeat(3, 1fr);
}

.motion-card .result-value {
  font-size: var(--text-lg);
}

/* ===== STAT ATK DISPLAY ===== */
.stat-atk-display {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  margin-bottom: var(--space-4);
}

.stat-atk-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.stat-atk-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

/* ===== MOTION BUTTONS ===== */
.motion-grid {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* ===== CRITICAL DAMAGE SECTION ===== */
.crit-section {
  border-top: 2px solid var(--color-divider);
  padding-top: var(--space-4);
  margin-top: var(--space-4);
}

.crit-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.crit-result-box {
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  text-align: center;
}

.crit-result-box.crit-highlight {
  border-color: var(--color-warning);
  background: var(--color-primary-highlight);
}

.crit-result-box.se-highlight {
  border-color: var(--color-success);
  background: var(--color-success-highlight);
}

.crit-result-value {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
}

.crit-result-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ===== DROP SIMULATOR ===== */
.drop-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.drop-stat-card {
  text-align: center;
  padding: var(--space-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.drop-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.drop-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.drop-log {
  max-height: 300px;
  overflow-y: auto;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--color-bg);
}

.drop-log-item {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.drop-log-item.dropped {
  background: var(--color-success-highlight);
  color: var(--color-success);
  font-weight: 600;
}

.drop-log-empty {
  text-align: center;
  color: var(--color-text-faint);
  padding: var(--space-6);
}

/* ===== TIMER ===== */
.timer-setup {
  display: flex;
  gap: var(--space-4);
  max-width: 200px;
}

.timer-display-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.timer-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.timer-display.warning {
  color: var(--color-warning);
}

.timer-display.danger {
  color: var(--color-error);
}

.timer-status {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.timer-status.running {
  color: var(--color-success);
}

.timer-status.paused {
  color: var(--color-warning);
}

.timer-cycle {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

/* Timer flash animation */
@keyframes timerFlash {
  0%, 100% { opacity: 1; }
  25% { opacity: 0.2; }
  50% { opacity: 1; }
  75% { opacity: 0.2; }
}

.timer-flash {
  animation: timerFlash 1.5s ease;
}

.timer-flash .timer-display {
  color: var(--color-error);
}

/* ===== 파티 구인글 자동생성기 ===== */
.recruit-mode-toggle {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  background: var(--color-surface-alt);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  width: fit-content;
}

.recruit-mode-btn {
  padding: var(--space-2) var(--space-5);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.recruit-mode-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.recruit-mode-btn:hover:not(.active) {
  color: var(--color-text);
  background: var(--color-surface-hover);
}

.recruit-mode-panel {
  display: none;
}

.recruit-mode-panel.active {
  display: block;
}

/* Emoji Picker */
.emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.emoji-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.emoji-btn:hover {
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.emoji-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light, rgba(232,135,12,0.1));
  box-shadow: 0 0 0 2px rgba(232,135,12,0.2);
}

.emoji-btn-none {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Recruit Slot Card */
.recruit-slot-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  position: relative;
}

.recruit-slot-card .slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.recruit-slot-card .slot-header .slot-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.recruit-slot-card .slot-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--color-error);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-interactive);
}

.recruit-slot-card .slot-remove:hover {
  opacity: 0.8;
}

.recruit-slot-card .slot-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.recruit-slot-card .slot-fields .input-field {
  margin-bottom: 0;
}

.recruit-slot-card .slot-fields input,
.recruit-slot-card .slot-fields select {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
}

/* ── Compact Slot Table ── */
.slot-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--text-sm);
}

.slot-table-header {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

.slot-table-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-interactive);
}

.slot-table-row:last-child {
  border-bottom: none;
}

.slot-table-row:hover {
  background: var(--color-surface-alt);
}

/* Column widths */
.st-col {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--space-1);
}

.st-col-num {
  width: 28px;
  flex-shrink: 0;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--color-text-muted);
}

.st-col-pos {
  width: 90px;
  flex-shrink: 0;
}

.st-col-name {
  flex: 1;
  min-width: 80px;
}

.st-col-fee {
  width: 72px;
  flex-shrink: 0;
}

.st-col-type {
  width: 72px;
  flex-shrink: 0;
}

.st-col-status {
  width: 56px;
  flex-shrink: 0;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.st-hint {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.7;
  line-height: 1.1;
  margin-top: 1px;
  font-family: var(--font-body);
}

.st-col-del {
  width: 32px;
  flex-shrink: 0;
  justify-content: center;
}

/* Inputs inside table rows */
.slot-table-row select,
.slot-table-row input {
  width: 100%;
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  min-width: 0;
}

.slot-table-row select:focus,
.slot-table-row input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Status button (emoji toggle) */
.slot-status-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  padding: var(--space-1);
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--transition-interactive);
}

.slot-status-btn:hover {
  background: var(--color-surface-alt);
}

/* Delete button */
.slot-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  padding: 0;
  line-height: 1;
  opacity: 0.5;
  transition: opacity var(--transition-interactive), color var(--transition-interactive);
}

.slot-del-btn:hover {
  opacity: 1;
  color: #e74c3c;
}

/* Mobile: stack to card-like rows */
@media (max-width: 640px) {
  .slot-table-header {
    display: none;
  }
  .slot-table-row {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3);
  }
  .st-col-num {
    width: 20px;
  }
  .st-col-pos {
    width: calc(50% - 30px);
  }
  .st-col-name {
    width: calc(50% - 10px);
    flex: none;
  }
  .st-col-fee {
    width: calc(33% - 10px);
  }
  .st-col-type {
    width: calc(33% - 10px);
  }
  .st-col-status {
    width: 48px;
  }
  .st-col-del {
    width: 28px;
  }
}

/* Fee row: input + select side by side */
.slot-fee-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.slot-fee-row input {
  flex: 1;
  min-width: 0;
}

.slot-fee-row select {
  width: auto;
  min-width: 70px;
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-2);
}

/* Status toggle button */
.slot-status-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-interactive);
}

.slot-status-toggle[data-status="open"] {
  border-color: #27ae60;
  background: rgba(39,174,96,0.06);
}

.slot-status-toggle[data-status="filled"] {
  border-color: #e74c3c;
  background: rgba(231,76,60,0.06);
}

/* Preview */
.recruit-preview {
  background: #36393f;
  color: #dcddde;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: var(--text-sm);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
}

.recruit-preview-text {
  color: #dcddde;
}

.recruit-preview .empty-state {
  color: #72767d;
  font-style: italic;
}

/* Copy Toast */
.recruit-copy-toast {
  display: none;
  padding: var(--space-2) var(--space-4);
  background: var(--color-success, #27ae60);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  text-align: center;
  animation: toastFade 1.5s ease forwards;
}

.recruit-copy-toast.show {
  display: inline-block;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Parsed slot card (edit mode) */
.recruit-parsed-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.recruit-parsed-card .parsed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-3);
  align-items: end;
}

.recruit-parsed-card .parsed-fields .input-field {
  margin-bottom: 0;
}

.recruit-parsed-card .parsed-fields input,
.recruit-parsed-card .parsed-fields select {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
}

/* Edit mode textarea */
#recruit-paste {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Responsive for recruit */
@media (max-width: 640px) {
  .recruit-slot-card .slot-fields {
    grid-template-columns: 1fr;
  }
  .recruit-parsed-card .parsed-fields {
    grid-template-columns: 1fr 1fr;
  }
  .recruit-mode-toggle {
    width: 100%;
  }
  .recruit-mode-btn {
    flex: 1;
    text-align: center;
  }
}

/* ===== HOME SCREEN ===== */
.home-screen {
  display: none;
  animation: fadeIn 300ms ease;
}

.home-screen.active {
  display: block;
}

.home-hero {
  text-align: center;
  padding: var(--space-10) 0 var(--space-8);
}

.home-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.home-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-inline: auto;
}

.home-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  max-width: 680px;
  margin: 0 auto var(--space-10);
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  width: 140px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-interactive);
  position: relative;
  overflow: hidden;
}

.home-card::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid oklch(from var(--color-primary) l c h / 0.1);
  border-radius: calc(var(--radius-lg) - 2px);
  pointer-events: none;
}

.home-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-card:active {
  transform: translateY(0);
  box-shadow: none;
}

.home-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.home-card-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text);
  text-align: center;
  line-height: 1.3;
}

/* ===== TAB NAV: hidden on home, compact on tool ===== */
.tab-nav {
  transition: all 300ms ease;
}

body.on-home .tab-nav {
  display: none;
}

body.on-tool .tab-nav {
  gap: 0;
  padding: var(--space-1);
  margin-bottom: var(--space-3);
}

body.on-tool .tab-btn {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  min-height: 30px;
}

/* Logo clickable hint */
body.on-tool .logo-area {
  position: relative;
}

body.on-tool .logo-area::after {
  content: '← 홈';
  position: absolute;
  right: -44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--color-text-faint);
  font-family: var(--font-display);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
  white-space: nowrap;
}

body.on-tool .logo-area:hover::after {
  opacity: 1;
}

/* Mobile home grid */
@media (max-width: 640px) {
  .home-grid {
    gap: var(--space-3);
  }
  .home-card {
    width: calc(50% - var(--space-3));
    padding: var(--space-4) var(--space-3);
  }
  .home-card-icon {
    font-size: 1.6rem;
  }
  .home-title {
    font-size: var(--text-2xl);
  }
}
