@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/BebasNeue-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ══════════════════════════════════════════════
   DARK THEME  (Excel koyu yeşil — forest/obsidian)
   ══════════════════════════════════════════════ */
[data-theme="dark"] {
  --bg:        #0b0f0c;
  --surface:   #101510;
  --card:      #141a14;
  --border:    #1e2a1e;
  --border2:   #263326;
  --accent:    #4caf6e;
  --accent2:   #6fcf8d;
  --accent3:   #2e7d4f;
  --text:      #dff0e4;
  --text2:     #a8c9b0;
  --muted:     #5a7a62;
  --green:     #56d97a;
  --red:       #f56565;
  --glow:      rgba(76,175,110,0.13);
  --glow-btn:  rgba(76,175,110,0.35);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.45);
  --toggle-bg:  #1e2a1e;
  --toggle-knob:#4caf6e;
}

/* ══════════════════════════════════════════════
   LIGHT THEME  (Excel beyaz sayfa — spreadsheet)
   ══════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:        #ffffff;
  --surface:   #f8faf8;
  --card:      #ffffff;
  --border:    #d0e4d8;   /* Excel hücre çizgisi rengi */
  --border2:   #b8d4c2;
  --accent:    #217346;   /* Excel logo yeşili */
  --accent2:   #185c38;
  --accent3:   #1a5c38;
  --text:      #0d1f14;
  --text2:     #1e4a2c;
  --muted:     #6b8f77;
  --green:     #1e7e45;
  --red:       #c0392b;
  --glow:      rgba(33,115,70,0.07);
  --glow-btn:  rgba(33,115,70,0.22);
  --shadow-card: 0 1px 8px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.04);
  --toggle-bg:  #d0e4d8;
  --toggle-knob:#217346;
  --grid-color: #d0e4d8;  /* Excel ızgara çizgisi */
}

/* ══════════════════════════════════════════════
   SMOOTH TRANSITIONS
   ══════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  transition: background-color 0.35s ease, border-color 0.35s ease,
              color 0.25s ease, box-shadow 0.25s ease;
}
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* dark: subtle grid texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s, background-image 0.35s;
}

/* light: crisp Excel spreadsheet grid — beyaz zemin üzerine açık yeşil hücre çizgileri */
[data-theme="light"] body::before {
  background-image:
    linear-gradient(#d6e9dc 1px, transparent 1px),
    linear-gradient(90deg, #d6e9dc 1px, transparent 1px);
  background-size: 52px 26px;  /* Excel hücre oranı: geniş x dar */
  opacity: 1;
}

/* light: row header şeridi — sol kenarda Excel satır numarası efekti */
[data-theme="light"] body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 100%;
  background: #e8f2ec;
  border-right: 2px solid #c5dece;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ══════════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  user-select: none;
}
.theme-toggle:hover { border-color: var(--accent); }

.toggle-track {
  width: 36px; height: 20px;
  background: var(--toggle-bg);
  border-radius: 100px;
  position: relative;
  border: 1px solid var(--border2);
  flex-shrink: 0;
}
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--toggle-knob);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
[data-theme="light"] .toggle-knob { transform: translateX(16px); }

.toggle-icon  { font-size: 14px; line-height: 1; flex-shrink: 0; }
.toggle-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 90px 24px 64px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 450px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 68%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--glow);
  border: 1px solid var(--border2);
  color: var(--accent2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
[data-theme="light"] .badge { color: var(--accent); }

.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1);    }
  50%      { opacity:0.4; transform:scale(0.75); }
}

h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(68px, 13vw, 118px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(140deg, var(--text) 20%, var(--accent) 75%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  line-height: 1.65;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 12px 26px;
  margin-bottom: 44px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  box-shadow: var(--shadow-card);
}
.version-num  { color: var(--accent); font-size: 20px; font-weight: 500; }
.version-sep  { color: var(--border2); }

/* ── HERO ACTIONS ── */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.download-btn,
.notes-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 38px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}
.download-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow-btn);
}
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--glow-btn);
}
.download-btn svg { flex-shrink: 0; }
.notes-btn {
  background: var(--card);
  color: var(--text2);
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-card);
}
.notes-btn:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── FLOATING RAIL ── */
.floating-rail {
  display: none;
}

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */
.section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 44px;
  line-height: 1.1;
}

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.5s ease both;
}
.feature-card:hover {
  border-color: var(--accent3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow);
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.feature-card:nth-child(1){animation-delay:.05s}
.feature-card:nth-child(2){animation-delay:.10s}
.feature-card:nth-child(3){animation-delay:.15s}
.feature-card:nth-child(4){animation-delay:.20s}
.feature-card:nth-child(5){animation-delay:.25s}
.feature-card:nth-child(6){animation-delay:.30s}

.feature-icon {
  width: 42px; height: 42px;
  background: var(--glow);
  border: 1px solid var(--border2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
}
.feature-title { font-weight:600; font-size:15px; margin-bottom:8px; color:var(--text); }
.feature-desc  { font-size:13px; color:var(--muted); line-height:1.65; }

/* ── CHANGELOG ── */
.changelog-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  box-shadow: var(--shadow-card);
}
.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--card);
}
.changelog-item:hover { background: var(--surface); }

.cl-version {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: var(--glow);
  border: 1px solid var(--border2);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}
.cl-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}
/* dark tag colors */
.cl-tag.new    { background:rgba(86,217,122,0.12); color:#56d97a; border:1px solid rgba(86,217,122,0.25); }
.cl-tag.fix    { background:rgba(245,101,101,0.12); color:#f56565; border:1px solid rgba(245,101,101,0.25); }
.cl-tag.update { background:rgba(76,175,110,0.12);  color:#4caf6e; border:1px solid rgba(76,175,110,0.25); }
/* light tag overrides */
[data-theme="light"] .cl-tag.new    { background:rgba(30,126,69,0.1);  color:#1e7e45; border-color:rgba(30,126,69,0.25); }
[data-theme="light"] .cl-tag.fix    { background:rgba(192,57,43,0.1);  color:#c0392b; border-color:rgba(192,57,43,0.25); }
[data-theme="light"] .cl-tag.update { background:rgba(33,115,70,0.1);  color:#217346; border-color:rgba(33,115,70,0.25); }

/* ── Light: Excel hücre estetiği — kartlar belirgin, kenarlıklar ızgara çizgisi gibi ── */
[data-theme="light"] .feature-card,
[data-theme="light"] .changelog-list,
[data-theme="light"] .changelog-item,
[data-theme="light"] .version-pill,
[data-theme="light"] .password-note,
[data-theme="light"] .contact-chip {
  border-radius: 4px;  /* Excel keskin köşeleri */
}
[data-theme="light"] .feature-card {
  border: 1px solid #c5dece;
  box-shadow: inset 0 0 0 0.5px #d6e9dc, 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .feature-card:hover {
  border-color: #217346;
  box-shadow: 0 0 0 2px rgba(33,115,70,0.2), 0 2px 10px rgba(0,0,0,0.08);
}
[data-theme="light"] .notes-btn { background: #f0f7f2; border-color: #c5dece; }
[data-theme="light"] .hero {
  background: linear-gradient(180deg, rgba(232,242,236,0.6) 0%, rgba(255,255,255,0) 60%);
}
[data-theme="light"] h1 {
  background: linear-gradient(140deg, #0d1f14 10%, #217346 60%, #2e9e5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .download-btn {
  background: linear-gradient(135deg, #217346 0%, #1a5c38 100%);
  box-shadow: 0 4px 18px rgba(33,115,70,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
[data-theme="light"] footer {
  background: #f0f7f2;
}

.cl-text { font-size:14px; color:var(--text2); line-height:1.55; flex:1; }
.cl-date { margin-left:auto; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--muted); flex-shrink:0; white-space:nowrap; padding-top:2px; }

/* ── PASSWORD NOTE ── */
.password-note {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--glow);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 16px 24px;
  margin-top: 40px;
}
.password-note-icon { font-size:22px; }
.password-note-text { font-size:13px; color:var(--muted); line-height:1.65; }
.password-note-text strong { color:var(--accent); font-family:'IBM Plex Mono',monospace; }

/* ── CONTACT ── */
.contact-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.contact-chip {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--card); border:1px solid var(--border);
  border-radius:8px; padding:10px 18px;
  font-size:13px; color:var(--text2); text-decoration:none;
  box-shadow:var(--shadow-card);
}
.contact-chip:hover { border-color:var(--accent); color:var(--accent); }

/* ── FOOTER ── */
footer {
  border-top:1px solid var(--border);
  padding:28px 24px;
  text-align:center;
  font-size:12px; color:var(--muted);
  font-family:'IBM Plex Mono',monospace;
  letter-spacing:0.04em;
  position:relative; z-index:1;
}
footer a { color:var(--accent); text-decoration:none; }
footer a:hover { color:var(--accent2); }

.floating-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.follow-card {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
.follow-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.floating-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.floating-card-title {
  margin-top: 10px;
  font-family: 'Bebas Neue', cursive;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text);
}
.floating-card-copy {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.floating-qr-wrap {
  margin-top: 16px;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: inline-flex;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.floating-qr {
  width: 140px;
  height: 140px;
  display: block;
}
.floating-card-cta,
.floating-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  box-shadow: 0 4px 18px var(--glow-btn);
}
.floating-card-link:hover,
.floating-card-cta:hover {
  transform: translateY(-2px);
}
.news-card {
  padding: 18px;
}
.feed-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.feed-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feed-item-title {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
}
.feed-item-meta {
  display: block;
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.feed-empty {
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border2);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--surface);
}
[data-theme="light"] .feed-item,
[data-theme="light"] .news-card,
[data-theme="light"] .follow-card {
  border-radius: 6px;
}
[data-theme="light"] .feed-item {
  border-color: #c5dece;
}
[data-theme="light"] .feed-item:hover {
  box-shadow: 0 0 0 2px rgba(33,115,70,0.16);
}
[data-theme="light"] .floating-card-link,
[data-theme="light"] .floating-card-cta {
  background: linear-gradient(135deg, #217346 0%, #1a5c38 100%);
}

/* ── GUIDE MODAL ── */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 28px;
}
.guide-modal-overlay[hidden] {
  display: none;
}
.guide-modal-card {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 56px);
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 42px;
}
.guide-modal-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1;
}
.guide-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guide-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  box-shadow: 0 4px 18px var(--glow-btn);
}
.guide-modal-link:hover {
  transform: translateY(-2px);
}
.guide-modal-link-secondary {
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border2);
  box-shadow: none;
}
.guide-modal-body {
  min-height: 0;
}
.guide-modal-frame-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: min(70vh, 760px);
}
.guide-modal-frame {
  width: 100%;
  height: min(70vh, 760px);
  border: 0;
  display: block;
  background: #fff;
}
.guide-modal-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
[data-theme="light"] .guide-modal-link-secondary {
  background: #f0f7f2;
  border-color: #c5dece;
}

/* ══════════════════════════════════════════════
   INSTAGRAM MODAL
   ══════════════════════════════════════════════ */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.78);
  backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center;
  z-index:1000;
  opacity:0;
  animation:fadeIn 0.4s ease 0.7s forwards;
}
@keyframes fadeIn { to { opacity:1; } }

.modal-card {
  background:var(--card);
  border:1px solid var(--border2);
  border-radius:20px;
  padding:40px 36px;
  max-width:380px; width:90%;
  text-align:center;
  transform:translateY(22px);
  animation:slideUp 0.4s ease 0.7s forwards;
  position:relative;
  box-shadow:0 24px 64px rgba(0,0,0,0.5);
}
@keyframes slideUp { to { transform:translateY(0); } }

.modal-close {
  position:absolute; top:14px; right:14px;
  background:var(--surface); border:1px solid var(--border);
  color:var(--muted); width:30px; height:30px;
  border-radius:50%; cursor:pointer;
  font-size:16px; display:flex; align-items:center; justify-content:center;
}
.modal-close:hover { color:var(--text); border-color:var(--accent); }

.modal-title { font-family:'Bebas Neue',cursive; font-size:30px; letter-spacing:0.05em; margin-bottom:6px; color:var(--text); }
.modal-sub   { font-size:13px; color:var(--muted); margin-bottom:26px; line-height:1.6; }

.qr-container {
  background:#fff; border-radius:14px; padding:14px;
  display:inline-block; margin-bottom:22px;
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
}
.qr-container img { width:180px; height:180px; display:block; }

.modal-cta {
  display:inline-flex; align-items:center; gap:9px;
  background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);
  color:#fff; font-weight:600; font-size:14px;
  padding:12px 28px; border-radius:10px; text-decoration:none;
}
.modal-cta:hover { opacity:0.9; transform:translateY(-1px); }

.modal-skip {
  display:block; margin-top:14px; font-size:12px;
  color:var(--muted); cursor:pointer; text-decoration:underline;
  background:none; border:none; font-family:inherit;
}
.modal-skip:hover { color:var(--text); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width:600px) {
  [data-theme="light"] body::after { display: none; }
  .cl-date   { display:none; }
  .theme-toggle .toggle-label { display:none; }
  .hero-actions { flex-direction: column; }
  .download-btn,
  .notes-btn { width: 100%; max-width: 320px; }
  .guide-modal-overlay { padding: 16px; }
  .guide-modal-card { padding: 18px; border-radius: 18px; }
  .guide-modal-header { align-items: flex-start; flex-direction: column; padding-right: 0; }
  .guide-modal-actions { width: 100%; }
  .guide-modal-link { flex: 1 1 160px; }
  .guide-modal-frame-wrap,
  .guide-modal-frame { min-height: 60vh; height: 60vh; }
}

@media (min-width: 1850px) {
  .theme-toggle {
    right: 18px;
  }
  .floating-rail {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 150;
    width: 304px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}
