/* Adaptive Warm Liquid Glass — shared by all active entry points.
   Only 2D surfaces are themed; media, canvas, game worlds and data stay untouched.
   Important declarations in this layer supersede legacy unlayered overrides. */
@layer warm-glass {
  :root {
    color-scheme: dark;
    --wg-bronze: 154 140 122;
    --wg-brown: 64 54 46;
    --wg-opacity: .18;
    --wg-veil-opacity: .20;
    --wg-blur: 24px;
    --wg-modal-blur: 28px;
    --wg-saturation: 110%;
    --wg-text: #fffaf4;
    --wg-secondary: #eee5da;
    --wg-muted: #ded3c5;
    --wg-accent: #f4c178;
    --wg-ink: #382315;
    --wg-success: #b8e0b0;
    --wg-danger: #ffb6a5;
    --wg-border: rgb(255 246 230 / .22);
    --wg-border-hover: rgb(255 240 217 / .34);
    --wg-highlight: inset 0 1px 0 rgb(255 248 233 / .22), inset 0 -1px 0 rgb(60 43 30 / .05);
    --wg-shadow: 0 10px 30px rgb(40 29 20 / .14), var(--wg-highlight);
    --wg-card-shadow: 0 5px 18px rgb(40 29 20 / .10), var(--wg-highlight);
    --wg-radius: 22px;
    --wg-control-radius: 16px;
    --wg-sheen: linear-gradient(145deg, rgb(255 246 229 / .09), rgb(255 246 229 / .015) 65%);
    --wg-surface: var(--wg-sheen), linear-gradient(rgb(var(--wg-brown) / var(--wg-veil-opacity)), rgb(var(--wg-brown) / var(--wg-veil-opacity))), rgb(var(--wg-bronze) / var(--wg-opacity));
    --wg-card: var(--wg-surface);
    --wg-control: rgb(185 170 148 / .20);
    --wg-active: rgb(238 216 183 / .26);
    --wg-primary: linear-gradient(145deg, #f4cd91, #dda353);
    --wg-reading: rgb(62 51 42 / .72);
    --wg-reading-ink: var(--wg-text);
    --wg-filter: blur(var(--wg-blur)) saturate(var(--wg-saturation));
    --wg-modal-filter: blur(var(--wg-modal-blur)) saturate(var(--wg-saturation));
    --glass-background: var(--wg-surface);
    --glass-background-strong: var(--wg-reading);
    --glass-background-soft: var(--wg-control);
    --glass-backdrop-blur: var(--wg-filter);
    --glass-border-subtle: rgb(255 246 230 / .14);
    --glass-shadow: var(--wg-shadow);
    --glass-shadow-hover: var(--wg-card-shadow);
    --glass-radius: var(--wg-radius);
    --glass-active: var(--wg-active);
    --glass-hover: rgb(238 216 183 / .18);
    --glass-text-secondary: var(--wg-secondary);
    --glass-input: var(--wg-control);
    --glass-modal: var(--wg-surface);
    --glass-navigation: var(--wg-surface);
    --wg-page: radial-gradient(ellipse at 25% 0%, #78502e 0%, #38271e 48%, #211912 100%);
  }
  :root[data-glass-backdrop="bright"] { --wg-veil-opacity: .32; }
  :root[data-glass-backdrop="dim"] { --wg-veil-opacity: .14; }
  :root, body {
    /* Compatibility adapters: older modules consume the same source tokens. */
    --lg-accent-lavender: var(--wg-accent) !important;
    --lg-accent-lavender-soft: rgb(244 193 120 / .16);
    --lg-accent-ice-blue: var(--wg-accent);
    --lg-accent-sky: var(--wg-accent);
    --lg-accent-pink: #e9bb93;
    --lg-accent-amber: var(--wg-accent);
    --lg-text-primary: var(--wg-text);
    --lg-text-secondary: var(--wg-secondary);
    --lg-text-muted: var(--wg-muted);
    --lg-text: var(--wg-text);
    --lg-surface-panel: var(--wg-surface);
    --lg-surface-card: var(--wg-card);
    --lg-surface-modal: var(--wg-surface);
    --lg-surface-button: var(--wg-control);
    --lg-surface-input: var(--wg-control);
    --lg-surface: var(--wg-surface);
    --lg-blur-panel: var(--wg-filter);
    --lg-blur-modal: var(--wg-modal-filter);
    --lg-border-light: var(--wg-border);
    --lg-border-strong: var(--wg-border-hover);
    --lg-shadow-panel: var(--wg-shadow);
    --lg-shadow-card: var(--wg-card-shadow);
    --lg-shadow-button: var(--wg-card-shadow);
    --lg-radius-md: var(--wg-control-radius);
    --lg-radius-lg: var(--wg-radius);
    --lg-radius-xl: 28px;
    --lg-glass-bg: var(--wg-surface);
    --lg-glass-bg-control: var(--wg-control);
    --lg-glass-border: var(--wg-border);
    --lg-glass-border-light: var(--wg-border-hover);
    --lg-warm-cream: var(--wg-accent);
    --lg-reading-bg: var(--wg-reading);
    --lg-reading-ink: var(--wg-reading-ink);
    --glass-bg: var(--wg-card);
    --glass-bg-strong: var(--wg-surface);
    --glass-bg-control: var(--wg-control);
    --glass-border: var(--wg-border);
    --glass-border-soft: var(--wg-border);
    --glass-text: var(--wg-text);
    --glass-text-soft: var(--wg-secondary);
    --glass-purple: var(--wg-active);
    --glass-accent: var(--wg-accent);
    --glass-glow: rgb(244 193 120 / .16);
    --ref-teal-glow: var(--wg-accent);
    --ref-teal-mint: var(--wg-secondary);
    --ref-violet-glow: var(--wg-accent);
    --ref-purple-accent: var(--wg-accent);
    --ref-magenta-glow: var(--wg-accent);
    --ref-amber-gold: var(--wg-accent);
    --progress-surface: var(--wg-surface);
    --bg: #302219;
    --ink: var(--wg-text);
    --muted: var(--wg-muted);
    --accent: var(--wg-accent);
    --soft: rgb(244 193 120 / .12);
    --line: var(--wg-border);
  }

  /* Reusable variants + adapters for existing application/management panels.
     Değerlendirme yüzeyleri (quiz/summary/result/cerez/goruYorum) cam tasarım
     değildir; yalnızca cam-dışı @layer assessment-solid tarafından yönetilir. */
  body :is(.warm-glass-panel, .GlassPanel, .glass-panel, .GlassModal, .glass-modal,
    .glass-modal-card, .library-dialog, .account-dropdown, .unified-search-popup,
    .auth-card, .profile-shell, .treasure-shell, .teacher-card, .modal-card,
    .vision-card,
    .home-widget, .discovery-center-panel, .bh-modal-container,
    .bg-glass-modal, .bg-discovery-panel-v2,
    .bg-tools-panel, .bg-discovery-suggestions-dropdown,
    .dev-center-shell, .dev-role-card):not(.reference-route-modal):not(.kk-live-reader-card):not(.kk-report-certificate-card):not(.bg-quiz-glass-modal):not(.bg-result-glass-modal):not(.math-adv-glass-modal):not(.cerez-dialog):not(.goru-yorum-dialog):not(.home-adventure-categories-section) {
    background: var(--wg-surface) !important;
    border: 1px solid var(--wg-border) !important;
    border-radius: var(--wg-radius) !important;
    box-shadow: var(--wg-shadow) !important;
    color: var(--wg-text) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body :is(.GlassModal, .glass-modal, dialog.library-dialog, .modal-card,
    .bg-glass-modal, .bg-discovery-panel-v2):not(.reference-route-modal):not(.kk-live-reader-card):not(.kk-report-certificate-card):not(.bg-quiz-glass-modal):not(.bg-result-glass-modal):not(.math-adv-glass-modal):not(.cerez-dialog):not(.goru-yorum-dialog) {
    backdrop-filter: var(--wg-modal-filter) !important;
    -webkit-backdrop-filter: var(--wg-modal-filter) !important;
  }
  body :is(.warm-glass-card, .GlassCard, .glass-card, .book-card,
    .liquid-discovery-card, .vision-stat-card, .profile-card, .profile-item,
    .teacher-book-row, .teacher-student-card, .collection-book, .collection-badge,
    .activity-choice, .assessment-fact, .content-hub-fact, .quiz-info-mini-card,
    .result-metric-card, .home-recent-row, .home-planet-feature-card,
    .home-recent-empty, .bh-stat-item, .bh-action-card, .bh-concept-card,
    .discovery-card, .discovery-pub-item, .bg-concept-card, .bg-planet-discovery-card,
    .bg-book-card-v2, .bg-search-preview-card, .bg-universe-list-card,
    .bg-ufc-stat-box, .profile-stat-mini-card, .progress-overview > div,
    .journey-row, .journey-book) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-border) !important;
    border-radius: var(--wg-control-radius) !important;
    color: var(--wg-text) !important;
    box-shadow: var(--wg-card-shadow) !important;
    /* Cards inside glass panels reuse the parent blur, avoiding stacked filters. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body :is(.warm-glass-control, .GlassButton, .glass-button, .glass-pill-btn,
    .glass-circle-btn, .profile-capsule, .coin-capsule, .glass-back-btn,
    .primary, .secondary, .ghost, .panel-tab, .profile-edit,
    .discovery-chip-btn, .discovery-tab-btn, .bg-chip-btn, .bg-glass-pill,
    .bg-tools-item, .bh-close-btn, .bh-btn-explore-concept,
    .profile-tab-btn, .btn-quiz-prev, .btn-quiz-next, .btn-quiz-planet,
    .quiz-back-btn, .home-widget-link, .home-widget-more-btn) {
    background: var(--wg-control) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-card-shadow) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease !important;
  }
  body :is(.primary, .btn-quiz-next, .btn-quiz-planet, .btn-read-action,
    #searchSubmit, #joinClassButton, #createChildButton, #saveTeacherProfile,
    #bg-btn-universe, #bg-btn-manual-search, .bg-btn-start-quiz-glow,
    .bg-ufc-btn-enter, .bh-btn-explore-concept) {
    background: var(--wg-primary) !important;
    color: var(--wg-ink) !important;
    border: 1px solid var(--wg-border-hover) !important;
    box-shadow: var(--wg-card-shadow) !important;
    text-shadow: none !important;
  }
  body :is(.GlassInput, .glass-input, .search-box-apple, .bg-discovery-search-box-wrap,
    .bh-search-input-wrap, .discovery-input, .field input, .field select, .field textarea,
    .profile-shell input:not([type="checkbox"]):not([type="radio"]), .profile-shell select,
    .teacher-card input, .teacher-card select, .teacher-card textarea,
    .summary-text, .document-dropzone) {
    background: var(--wg-control) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-highlight) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body :is(.search-box-apple, .bg-discovery-search-box-wrap, .bh-search-input-wrap) {
    background: var(--wg-surface) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body :is(.search-box-apple, .bg-discovery-search-box-wrap, .bh-search-input-wrap) input {
    background: transparent !important;
    color: var(--wg-text) !important;
    box-shadow: none !important;
  }
  body :is(input, textarea)::placeholder { color: var(--wg-muted) !important; opacity: 1; }
  body option { background: #38271e; color: var(--wg-text); }
  body :is(input, progress) { accent-color: var(--wg-accent); }
  body :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--wg-accent) !important;
    outline-offset: 3px !important;
  }
  body :is(.GlassButton, .glass-circle-btn, .bg-glass-pill, .primary, .secondary):hover:not(:disabled) {
    border-color: var(--wg-border-hover) !important;
    box-shadow: var(--wg-card-shadow) !important;
    transform: translateY(-1px) !important;
  }
  body :is(.GlassButton, .primary, .secondary):active:not(:disabled) { transform: scale(.98) !important; }

  /* Navigation uses the same material; capsule/circle geometry remains unchanged. */
  body :is(.floating-nav-capsule, .bg-hud-header, .bg-bottom-controls-strip,
    .bg-hc-results, .profile-section-tabs, .connection-status-pill) {
    background: var(--wg-surface) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-shadow) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }

  /* Search and navigation share the same adaptive glass material. */
  body #floatingBottomNav .floating-nav-capsule {
    background: var(--wg-control) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
    height: 62.4px !important;
    padding: 5px 8px !important;
  }
  body :is(.profile-tab-btn.is-active,
    .discovery-tab-btn.active, .discovery-chip-btn.is-active, .bg-chip-btn.is-selected,
    .bg-planet-discovery-card.is-selected, .avatar-choice input:checked + span) {
    background: var(--wg-active) !important;
    border-color: var(--wg-border-hover) !important;
    box-shadow: var(--wg-highlight) !important;
    color: var(--wg-text) !important;
    filter: none !important;
  }
  body :is(.GlassPanel, .GlassModal, .GlassCard, .profile-shell, .teacher-card,
    .discovery-center-panel, .bg-discovery-panel-v2, .bg-glass-modal, .library-dialog)
    :is(h1, h2, h3, label, legend, strong, .note, small) { color: var(--wg-text) !important; }
  body :is(.stat-label, .streak-title, .note, .capsule-grade, .bh-subtitle,
    .bh-stat-lbl, .content-hub-fact span, .assessment-fact span,
    .profile-stat-mini-label, .home-recent-copy small, .bg-book-subtitle,
    .bg-discovery-sub-1, .bg-discovery-sub-2, .bg-card-planet-name) { color: var(--wg-secondary) !important; }
  body :is(.bh-title, .home-greeting-line span, .bg-discovery-main-title) {
    color: var(--wg-text) !important;
    background: none !important;
    -webkit-text-fill-color: var(--wg-text) !important;
    text-shadow: none !important;
  }
  body :is(.stat-icon-neon, .home-widget-icon-orb, .home-widget-emblem,
    .action-icon-summary, .action-icon-quiz, .profile-planet-summary-icon,
    .result-badge-orb, .summary-mic-visualizer .mic-violet-orb) {
    background: var(--wg-active) !important;
    box-shadow: var(--wg-card-shadow) !important;
    color: var(--wg-accent) !important;
  }
  body :is(.stat-icon-neon svg, .glass-circle-btn svg, .bh-badge-icon, .bg-star-icon) {
    color: var(--wg-accent) !important;
    stroke: currentColor !important;
    filter: none !important;
  }
  body :is(.quiz-progress-fill, .quiz-progress-bar, .home-planet-fill,
    .home-planet-bar-fill, .profile-planet-bar-fill, .result-planet-progress-fill,
    .result-planet-progress-bar, .quiz-step-dot.is-current, .quiz-step-dot.is-done) {
    background: var(--wg-primary) !important;
    box-shadow: none !important;
  }
  body progress::-webkit-progress-value { background: var(--wg-primary) !important; box-shadow: none !important; }
  body progress::-moz-progress-bar { background: var(--wg-primary) !important; }
  body :is(.quiz-option, .option-btn, .bg-option-btn) {
    background: var(--wg-control) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-highlight) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body :is(.quiz-option, .option-btn, .bg-option-btn).selected {
    background: var(--wg-active) !important;
    border-color: var(--wg-accent) !important;
  }
  body :is(.quiz-option, .bg-option-btn):is(.is-correct, .correct),
  body .quiz-feedback-banner.is-correct { background: #34472c !important; border-color: var(--wg-success) !important; color: #f1ffe9 !important; }
  body :is(.quiz-option, .bg-option-btn):is(.is-wrong, .wrong),
  body .quiz-feedback-banner.is-wrong { background: #68392e !important; border-color: var(--wg-danger) !important; color: #fff2ed !important; }
  body :is(.quiz-question-card, .quiz-question-box, .bg-quiz-question-box, .bg-quiz-question-panel, .content-summary-preview) {
    background: var(--wg-reading) !important;
    color: var(--wg-reading-ink) !important;
    border-color: var(--wg-border) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body :is(.quiz-question-card, .quiz-question-box, .bg-quiz-question-box, .bg-quiz-question-panel, .content-summary-preview)
    :is(h1, h2, h3, p, span, strong) { color: var(--wg-reading-ink) !important; text-shadow: none !important; }
  /* Legacy child labels have explicit dark/neon colours; inherit the new material. */
  body :is(.quiz-option, .option-btn, .bg-option-btn) :is(.opt-text, .option-text, .bg-option-text) {
    color: inherit !important;
    text-shadow: none !important;
  }
  body :is(.opt-badge, .card-badge-icon, .home-planet-orb-wrap, .mini-stat-icon,
    .quiz-title-badge, .quiz-grade-pill, .question-counter-pill, .summary-book-chip,
    .summary-word-badge, .unified-card-badge, .content-action-reward-badge,
    .discovery-results-badge, .profile-level-badge, .bg-preview-badge) {
    background: var(--wg-control) !important;
    color: var(--wg-secondary) !important;
    border-color: var(--wg-border) !important;
    box-shadow: var(--wg-highlight) !important;
    text-shadow: none !important;
  }
  body .quiz-option.selected .opt-badge {
    background: var(--wg-primary) !important;
    color: var(--wg-ink) !important;
  }
  body .card-glass-bottom {
    background: var(--wg-control) !important;
    border-color: var(--wg-border) !important;
    box-shadow: var(--wg-highlight) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body :is(.card-subtitle, .card-glass-bottom p, .home-planet-level, .profile-intro,
    .summary-chip-title, .quiz-master-sub, .bg-how-to-desc) { color: var(--wg-secondary) !important; }
  body .card-bottom-progress-line::after, body #gen-ai-progress-bar {
    background: var(--wg-primary) !important;
    box-shadow: none !important;
  }
  body :is(.toast, .toast-notice, .feedback-toast, .playful-toast, .loading-panel, .error-panel, [role="tooltip"]) {
    background: var(--wg-surface) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-shadow) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body dialog:not(.cerez-dialog):not(.goru-yorum-dialog):not(.gy-lightbox-dialog)::backdrop, body .bg-modal-overlay, body .modal-scrim {
    background: rgb(30 18 12 / .48) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Master reference adapters for dynamically mounted screens and search cards. */
  body :is(.search-shelf-card, .home-progress-card, .profile-planet-summary,
    .bg-ufc-panel, .bg-concept-info-panel, .bg-merge-panel, .avatar-field,
    .summary-review, .publication-panel, .import-preview) {
    background: var(--glass-background) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-card-shadow) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body :is(.GlassPanel, .GlassModal, .glass-panel, .library-dialog, .profile-shell,
    .teacher-card, .bg-glass-modal, .bg-discovery-panel-v2, .bg-quiz-glass-modal,
    .bg-result-glass-modal, .studio-inspector, .surface)
    :is(.GlassPanel, .GlassCard, .glass-panel, .glass-card, .search-shelf-card,
    .warm-glass-control, .GlassButton, .glass-circle-btn, .primary, .secondary,
    .ghost, .bg-glass-pill, .avatar-field) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body :is(.search-shelf-card, .GlassCard, .glass-card):hover {
    background: var(--glass-hover) !important;
    border-color: var(--wg-border-hover) !important;
    box-shadow: var(--wg-card-shadow) !important;
  }
  body.reference-ui #searchCategoryFilters .search-cat-chip.is-active,
  body :is(.panel-tab.active, .avatar-choice input:checked + span) {
    background: var(--wg-active) !important;
    color: var(--wg-text) !important;
    border-color: var(--wg-border-hover) !important;
    box-shadow: var(--wg-highlight) !important;
  }
  body .search-shelf-card .search-shelf-copy {
    background: transparent !important;
    border-color: var(--glass-border-subtle) !important;
  }
  body .search-shelf-card :is(.search-shelf-text strong, .search-shelf-text small) {
    color: var(--wg-text) !important;
  }
  body .search-shelf-card .search-shelf-text small { color: var(--wg-secondary) !important; }
  body .floating-nav-capsule { padding-bottom: max(10px, env(safe-area-inset-bottom)) !important; }
  @media (prefers-reduced-transparency: reduce) {
    :root { --wg-filter: none; --wg-modal-filter: none; --wg-surface: #4b4035;
      --wg-card: #4b4035; --wg-control: #55483b; --glass-hover: #625240; --wg-active: #6a5946; --wg-reading: #40362e; }
  }

  /* Profile fields on the left; avatar choices form their own right column. */
  body #childFormView #childProfileForm {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 198px !important;
    gap: 24px !important; align-items: start !important;
  }
  body #childFormView .profile-entry-fields {
    display: flex; flex-direction: column; gap: 20px; min-width: 0;
  }
  body #childFormView #childProfileForm > .avatar-field { grid-column: 2; grid-row: 1; min-width: 0; }
  body #childFormView #childProfileForm .avatar-options { grid-template-columns: repeat(2, 92px) !important; }
  body #childFormView #childProfileForm .avatar-choice span,
  body #childFormView #childProfileForm .avatar-choice input:checked + span {
    background: transparent !important; box-shadow: none !important;
  }
  body #childFormView #childProfileForm .avatar-choice span { border-color: transparent !important; overflow: visible !important; }
  body #childFormView #childProfileForm .avatar-choice input:checked + span { border-color: var(--wg-accent) !important; }
  body #childFormView #childProfileForm .avatar-choice img {
    border-radius: 0 !important; border: 0 !important;
    background: transparent !important; box-shadow: none !important;
  }
  @media (max-width: 560px) {
    body #childFormView #childProfileForm { grid-template-columns: minmax(0, 1fr) !important; }
    body #childFormView #childProfileForm > .avatar-field { grid-column: 1; grid-row: auto; }
    body #childFormView #childProfileForm .avatar-options { grid-template-columns: repeat(auto-fit, 92px) !important; }
  }

  /* Profile creation: larger existing PNG avatars and one field per row. */
  body #childFormView .profile-form-row {
    display: flex !important; flex-direction: column !important; gap: 20px !important;
  }
  body #childFormView .profile-form-row > * { width: 100% !important; min-width: 0 !important; }
  body #childFormView .avatar-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, 92px) !important;
    gap: 14px !important; justify-content: start !important;
  }
  body #childFormView .avatar-choice span {
    width: 92px !important; height: 92px !important; box-sizing: border-box !important;
    background: var(--wg-control) !important; border: 2px solid var(--wg-border) !important;
    box-shadow: var(--wg-card-shadow) !important;
  }
  body #childFormView .avatar-choice img {
    width: 88px !important; height: 88px !important; object-fit: contain !important;
    transform: none !important; filter: none !important;
  }
  body #childFormView .avatar-choice input:checked + span {
    border-color: var(--wg-accent) !important; box-shadow: var(--wg-highlight) !important;
    transform: none !important;
  }
  body #childFormView .avatar-field { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  body #childFormView #childGrade option {
    background: var(--wg-control) !important; color: var(--wg-text) !important;
  }
  @supports (appearance: base-select) {
    body #childFormView #childGrade,
    body #childFormView #childGrade::picker(select) { appearance: base-select; }
    body #childFormView #childGrade::picker(select) {
      background: var(--wg-surface) !important; color: var(--wg-text) !important;
      border: 1px solid var(--wg-border) !important; border-radius: var(--wg-control-radius);
      box-shadow: var(--wg-shadow); padding: 6px; margin-block: 6px;
      backdrop-filter: var(--wg-filter); -webkit-backdrop-filter: var(--wg-filter);
    }
    body #childFormView #childGrade option { border-radius: 10px; padding: 12px; min-height: 44px; }
    body #childFormView #childGrade option:is(:checked, :hover, :focus) {
      background: var(--wg-active) !important;
    }
  }
  body .panel-switch-inline {
    background: transparent !important; border-color: var(--wg-border) !important;
    box-shadow: none !important; backdrop-filter: none !important;
  }
  /* The stage stays clear: only each button has glass, not its container. */
  body[data-view="newGameView"] :is(.topbar, #kk-weather-bar),
  body #newGameView #bg-planet-live-arch,
  body #newGameView .bg-hero-tagline-box { display: none !important; }
  body #newGameView :is(.bg-hud-header, .bg-bottom-controls-strip,
    .bg-bottom-controls-inner, .bg-bottom-right-actions, .bg-how-to-pill) {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body #newGameView .bg-hud-header { flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; gap: 10px !important; z-index: 35 !important; }
  body #newGameView .bilgi-gezegenleri-root.bg-honeycomb-active .bg-hud-group { display: none !important; }
  body #newGameView .bilgi-gezegenleri-root:not(.bg-honeycomb-active) .bg-hud-group {
    display: inline-flex !important; align-items: center !important; flex-wrap: nowrap !important;
    padding: 4px !important; gap: 6px !important; min-width: 0 !important; max-width: 100%;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), rgba(12, 18, 42, 0.68) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: var(--wg-filter) !important; -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body #newGameView .bg-hud-group .bg-hud-icon-btn {
    width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important;
    border-radius: 50% !important; padding: 0 !important;
    background: rgba(255, 255, 255, 0.10) !important; color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body #newGameView .bg-hud-group .bg-hud-icon-btn:hover,
  body #newGameView .bg-hud-group .bg-tools-menu[open] > summary.bg-hud-icon-btn {
    background: rgba(255, 255, 255, 0.20) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    color: #ffffff !important;
  }
  body #newGameView .bg-hud-group #bg-btn-universe {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    border-color: rgba(255, 255, 255, 0.52) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  }
  @media (min-width: 720px) {
    body #newGameView .bg-hud-group #bg-btn-universe {
      width: auto !important; border-radius: 999px !important; padding: 0 15px 0 12px !important; gap: 7px !important;
    }
    body #newGameView .bg-hud-group #bg-btn-universe .bg-hud-label {
      position: static !important; width: auto !important; height: auto !important;
      margin: 0 !important; padding: 0 !important; overflow: visible !important; clip: auto !important;
      font-size: 0.86rem !important; font-weight: 800 !important; letter-spacing: -0.01em !important;
    }
  }
  body #newGameView .bg-hud-group :is(#bg-btn-edit-mode.is-active, #bg-btn-focus-mode.is-active) {
    background: linear-gradient(135deg, #0284c7 0%, #10b981 100%) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.55) !important;
  }
  body:not(.bg-focus-mode-active) #newGameView .bg-hud-group #bg-btn-focus-mode { display: none !important; }
  body #newGameView .bg-hud-group #bg-btn-open-workshop {
    background: rgba(251, 191, 36, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.52) !important;
    color: #fef08a !important;
  }
  body #newGameView .bg-hud-group #bg-btn-open-workshop:hover {
    background: rgba(251, 191, 36, 0.28) !important;
    border-color: rgba(251, 191, 36, 0.78) !important;
    transform: translateY(-1px);
  }
  body #newGameView .bg-hud-group #bg-planet-pill {
    display: inline-flex !important; align-items: center !important;
    height: 44px !important; min-height: 44px !important; min-width: 0 !important; max-width: min(340px, 38vw) !important;
    padding: 0 14px 0 10px !important; gap: 8px !important; border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: none !important; color: #fff7d6 !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body #newGameView .bg-hud-group #bg-planet-pill:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(253, 230, 138, 0.55) !important;
  }
  body #newGameView .bg-hud-group #bg-planet-pill .bg-planet-pill-chevron {
    font-size: 0.72rem; opacity: 0.78; flex-shrink: 0; line-height: 1;
  }
  body #newGameView .bg-hud-group #bg-wallet-badge {
    display: inline-flex !important; align-items: center !important;
    height: 44px !important; min-height: 44px !important;
    padding: 0 14px 0 10px !important; gap: 6px !important; border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.14)) !important;
    border: 1.2px solid rgba(251, 191, 36, 0.60) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22) !important; color: #fde68a !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  @media (max-width: 600px) {
    body #newGameView .bg-hud-header { left: 10px !important; right: 10px !important; gap: 6px !important; }
    body #newGameView .bilgi-gezegenleri-root:not(.bg-honeycomb-active) .bg-hud-group { padding: 3px 5px !important; gap: 5px !important; }
    body #newGameView .bg-hud-group #bg-planet-pill { max-width: clamp(140px, 46vw, 240px) !important; padding: 0 10px 0 6px !important; gap: 5px !important; font-size: 0.82rem !important; }
    body #newGameView .bg-hud-group #bg-wallet-badge { height: 40px !important; min-height: 40px !important; padding: 0 9px 0 7px !important; gap: 4px !important; font-size: 0.84rem !important; }
  }
  @media (min-width: 601px) {
    body #newGameView .bg-tools-panel .bg-mobile-only-tool { display: none !important; }
  }
  body #newGameView .bg-tools-panel .bg-moved-tool[style*="display: none"],
  body #newGameView .bg-tools-panel .bg-moved-tool[hidden] {
    display: none !important;
  }
  body #newGameView .bg-hud-group-left { flex: 0 1 auto !important; }
  body #newGameView .bg-hud-group-right { flex: 0 0 auto !important; margin-left: auto; justify-content: flex-end !important; }
  body.bg-focus-mode-active #newGameView .bilgi-gezegenleri-root:not(.bg-honeycomb-active) .bg-hud-group-right {
    background: transparent !important; border-color: transparent !important; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  body #newGameView .bg-hud-divider { display: none !important; }
  body #newGameView .bg-hud-legacy-unused {
    width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important;
    border-radius: 50% !important; padding: 0 !important;
    background: var(--wg-control) !important; color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important; box-shadow: var(--wg-card-shadow) !important;
    backdrop-filter: var(--wg-filter) !important; -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body #newGameView .bg-bottom-controls-strip {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important; right: 0 !important; width: auto !important;
    padding: 0 12px !important; pointer-events: none !important;
  }
  body #newGameView .bg-bottom-controls-inner {
    display: flex !important; flex-wrap: wrap !important; gap: 8px !important;
    justify-content: center !important; align-items: center !important; padding: 0 !important;
  }
  body #newGameView .bg-bottom-right-actions {
    display: contents !important;
  }
  body #newGameView .bg-how-to-pill { position: relative; padding: 0 !important; order: 3; pointer-events: auto; }
  body #newGameView :is(.bg-how-to-pill > summary, .bg-discovery-count-pill, .bg-discover-cta-pill) {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    gap: 5px !important; min-height: 44px !important; padding: 8px 12px !important;
    font-size: 12px !important; width: auto !important; border-radius: 999px !important;
    background: var(--wg-control) !important; color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important; box-shadow: var(--wg-card-shadow) !important;
    backdrop-filter: var(--wg-filter) !important; -webkit-backdrop-filter: var(--wg-filter) !important;
    cursor: pointer; pointer-events: auto !important;
  }
  body #newGameView .bg-how-to-pill > summary { list-style: none; }
  body #newGameView .bg-how-to-pill > summary::-webkit-details-marker { display: none; }
  body #newGameView .bg-how-to-desc {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    width: min(280px, calc(100vw - 32px)); padding: 16px; box-sizing: border-box;
    font-size: 14px; line-height: 1.5; color: var(--wg-text) !important;
  }
  body #newGameView .bg-bottom-controls-strip .bg-hud-svg-icon { width: 18px !important; height: 18px !important; }

  /* Search focus stays neutral; content cards share depth and a warm hover rim. */
  :root {
    --content-card-shadow: 0 12px 22px rgb(27 18 12 / .28), 0 3px 6px rgb(27 18 12 / .16), var(--wg-highlight);
    --content-card-hover-shadow: 0 12px 22px rgb(27 18 12 / .28), 0 0 18px rgb(244 193 120 / .30), inset 0 0 0 1px rgb(255 218 164 / .24);
  }
  body #homeView .search-box-apple:focus-within,
  body #newGameView .bg-discovery-search-box-wrap:focus-within {
    border-color: var(--wg-border) !important; box-shadow: var(--wg-highlight) !important;
    outline: none !important; transform: none !important;
  }
  body :is(#searchInput, #bg-input-concept):is(:focus, :focus-visible) {
    outline: none !important; box-shadow: none !important; border-color: transparent !important;
  }
  body :is(#homeView, #newGameView) :is(.search-card-type-pill, .search-card-topic-pill,
    .content-type-badge, .bg-book-planet-tag) { display: none !important; }
  body :is(.search-shelf-card, .book-card, .liquid-discovery-card,
    .bg-planet-discovery-card, .bg-book-card-v2, .bg-concept-card, .discovery-card) {
    box-shadow: var(--content-card-shadow) !important;
    transform: none !important; transform-style: flat !important;
    transition: box-shadow .18s ease, border-color .18s ease !important;
  }
  body :is(.search-shelf-card, .book-card, .liquid-discovery-card,
    .bg-planet-discovery-card, .bg-book-card-v2, .bg-concept-card, .discovery-card):is(:hover, :focus-visible) {
    box-shadow: var(--content-card-hover-shadow) !important;
    border-color: rgb(244 193 120 / .62) !important; transform: none !important;
  }
  body #bookGrid .search-shelf-card--book .search-shelf-art { aspect-ratio: 2 / 3 !important; }
  body #bookGrid .search-shelf-card--concept .search-shelf-art { aspect-ratio: 1 !important; }
  body #bookGrid .search-shelf-card:not(.search-shelf-card--book):not(.search-shelf-card--concept) .search-shelf-art { aspect-ratio: 16 / 10 !important; }
  body .flat-book-cover-wrap { aspect-ratio: 2 / 3 !important; }
  body .flat-book-cover-wrap :is(.book-cover-button, .book-cover) {
    width: 100% !important; height: 100% !important; transform: none !important; object-fit: contain !important;
  }
  body :is(.search-shelf-art, .flat-book-cover-wrap) { perspective: none !important; }
  @media (prefers-reduced-motion: reduce) {
    body :is(.search-shelf-card, .book-card, .liquid-discovery-card,
      .bg-planet-discovery-card, .bg-book-card-v2, .bg-concept-card, .discovery-card) { transition: none !important; }
  }


  /* The teacher entry uses the same search component and optical material. */
  body #teacherView .teacher-search-row { max-width: 900px !important; gap: 12px !important; }
  body #teacherView .search-box-apple {
    position: relative !important; display: flex !important; align-items: center !important;
    flex: 1 !important; gap: 12px !important; width: 100% !important; max-width: 820px !important;
    height: auto !important; min-height: 68px !important; margin: 0 !important;
    padding: 6px 8px 6px 24px !important; border-radius: 999px !important;
    background: var(--wg-control) !important; color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important; box-shadow: var(--wg-highlight) !important;
    backdrop-filter: var(--wg-filter) !important; -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body #teacherView .search-box-apple::before, body #teacherView .search-box-apple::after { display: none !important; }
  body #teacherView #teacherBookSearch {
    position: static !important; top: auto !important; left: auto !important;
    width: auto !important; height: auto !important; flex: 1 !important; min-width: 0 !important;
    padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important;
    color: var(--wg-text) !important; font: inherit !important; font-size: 16px !important;
    box-shadow: none !important; outline: none !important;
  }
  body #teacherView #teacherSearchSubmit {
    position: static !important; top: auto !important; right: auto !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 52px !important; height: 52px !important; min-width: 52px !important; flex: 0 0 52px !important;
    padding: 0 !important; border-radius: 50% !important;
    background: var(--wg-primary) !important; color: var(--wg-ink) !important;
    border: 1px solid var(--wg-border-hover) !important; box-shadow: var(--wg-card-shadow) !important;
  }
  body #teacherView #teacherSearchSubmit::before { display: none !important; }
  body #teacherView .search-box-apple:focus-within {
    border-color: var(--wg-border) !important; box-shadow: var(--wg-highlight) !important;
    outline: none !important; transform: none !important;
  }
  @media (max-width: 600px) {
    body #teacherView .search-box-apple { min-height: 58px !important; padding-left: 14px !important; }
    body #teacherView #teacherSearchSubmit {
      width: 44px !important; height: 44px !important; min-width: 44px !important; flex-basis: 44px !important;
    }
    body #teacherView .teacher-search-row { flex-wrap: nowrap !important; }
    body #teacherView #openAddBook { width: 44px !important; height: 44px !important; min-width: 44px !important; font-size: 28px !important; }
  }

  /* Management forms stay inside their existing page gutters on narrow screens. */
  body #teacherView .wide-teacher { width: 100% !important; min-width: 0 !important; }
  body #teacherView > .teacher-search-row { width: 100% !important; }
  body #teacherView .note { min-width: 0 !important; overflow-wrap: anywhere; }
  body #teacherView .discovery-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)) !important; }
  body #teacherView .discovery-search-row { flex-wrap: wrap !important; }
  body #teacherView .discovery-input { min-width: 0 !important; }
  body :is(.publication-panel, .import-preview, .summary-review, .question-item,
    .teacher-student-avatar, .teacher-add-book) {
    background: var(--wg-card) !important;
    color: var(--wg-text) !important;
    border-color: var(--wg-border) !important;
    box-shadow: var(--wg-card-shadow) !important;
  }
  @media (max-width: 560px) {
    body #teacherView .wide-teacher { padding: 20px 16px !important; }
  }

  /* Standalone tools share the material, not the application's layout. */
  :root, body {
    --bg-primary: #302219;
    --bg-secondary: #38271e;
    --bg-tertiary: #513827;
    --bg-glass: var(--wg-surface);
    --bg-glass-card: var(--wg-card);
    --bg-glass-card-hover: var(--wg-active);
    --border-glass: var(--wg-border);
    --border-focus: var(--wg-accent);
    --text-primary: var(--wg-text);
    --text-secondary: var(--wg-secondary);
    --text-muted: var(--wg-muted);
    --accent-cyan: var(--wg-accent);
    --accent-cyan-glow: rgb(244 193 120 / .12);
    --accent-purple: #e3b388;
    --accent-purple-glow: rgb(227 179 136 / .12);
    --accent-amber: var(--wg-accent);
    --bg-deep: #302219;
    --bg-card: var(--wg-card);
    --bg-card-hover: var(--wg-active);
    --bg-sidebar: var(--wg-surface);
    --border-soft: var(--wg-border);
    --border-glow: var(--wg-border-hover);
    --primary-blue: #a56a35;
    --primary-blue-hover: #bd8144;
    --text-main: var(--wg-text);
    --text-dim: var(--wg-muted);
    --card: var(--wg-card);
    --surface: #38271e;
    --accent-soft: rgb(244 193 120 / .16);
    --cyan: var(--wg-accent);
    --gold: var(--wg-accent);
    --shadow: var(--wg-card-shadow);
    --shadow-lg: var(--wg-shadow);
    --nav-bg: var(--wg-surface);
    --quiz-bg: var(--wg-card);
    --glass-blur: var(--wg-filter);
  }
  body.warm-glass-tool { background: var(--wg-page) !important; color: var(--wg-text) !important; }
  body.warm-glass-tool .studio-container { background: var(--wg-page) !important; }
  body.warm-glass-tool :is(.studio-sidebar, .studio-header, .studio-inspector,
    .sidebar, .top-header, .topbar, .mobile-nav, .inspector-panel, .search-filters-card,
    .actions-card, .sources-bar, .book-list-container, .search-box, .surface,
    .question-panel, .modal-box, .sim-col-left, .sim-col-right, .gen-left-panel,
    .gen-col-right, .sim-floating-toolbar, .viewport-overlay-toolbar,
    .viewport-light-panel, .animation-timeline-bar, .gen-viewport-tools,
    .sim-viewport-hud, .gen-viewport-hud, .gen-action-bar) {
    background: var(--wg-surface) !important;
    color: var(--wg-text) !important;
    border-color: var(--wg-border) !important;
    box-shadow: var(--wg-shadow) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
  }
  body.warm-glass-tool :is(.model-card, .stat-card, .source-box, .book-card-row,
    .health-score-card, .sim-planet-item, .sim-place-card, .sim-concept-card,
    .sim-discovery-card, .gen-template-card, .gen-ai-status-card, .gen-card,
    .gen-recommendation-box, .gen-import-dropzone, .content-card, .metric-card,
    .metric, .profile-card, .side-feature, .empty-state, .voice-box, .notice,
    .wallet, .profile-pill, .stat-pill, .archive-pill, .user-pill, .source-cat-pill,
    .kpi-card, .planner-card, .gen-job-card) {
    background: var(--wg-card) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-card-shadow) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.warm-glass-tool :is(.nav-item.active, .insp-tab.active, .insp-tab-btn.active,
    .sim-subtab.active, .gen-subtab-btn.active, .sim-chip.active, .gen-chip.active,
    .gen-ai-chip.active, .btn-pilot-pill.active, .choice.selected, .model-card.selected,
    .book-card-row.selected, .profile-card.active, .source-cat-pill.active) {
    background: var(--wg-active) !important;
    color: var(--wg-text) !important;
    border-color: var(--wg-border-hover) !important;
    box-shadow: var(--wg-highlight) !important;
  }
  body.warm-glass-tool :is(.btn-primary, .btn-search, .btn-action-primary,
    .btn-insp-publish, .primary, .btn-save) {
    background: var(--wg-primary) !important;
    color: var(--wg-ink) !important;
    border-color: var(--wg-border-hover) !important;
    box-shadow: var(--wg-card-shadow) !important;
  }
  body.warm-glass-tool :is(.btn-secondary, .btn-card-action, .vp-btn,
    .btn-light-preset, .btn-page, .btn-state-action, .btn-card-more, .btn-insp-action,
    .btn-action-secondary, .btn-add-new-source, .btn-insp-questions, .icon-btn-round,
    .tool-btn, .sim-chip, .gen-chip, .gen-ai-chip, .icon-button, .secondary,
    .choice, .chip, .pill, .type-tag, .choice-letter, .classic-link) {
    background: var(--wg-control) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-highlight) !important;
  }
  body.warm-glass-tool :is(.search-input, .search-input-text, .select-filter,
    .custom-select, .sort-select, .sim-input, textarea, input:not([type="range"]):not([type="color"]):not([type="checkbox"]):not([type="radio"]), select) {
    background: var(--wg-control) !important;
    color: var(--wg-text) !important;
    border-color: var(--wg-border) !important;
  }
  body.warm-glass-tool .search-box input { background: transparent !important; }
  body.warm-glass-tool :is(.gradient-word, .studio-title-group h1) {
    background: none !important;
    color: var(--wg-accent) !important;
    -webkit-text-fill-color: var(--wg-accent) !important;
  }
  body.warm-glass-tool :is(.studio-logo, .brand-mark, .brand-icon-box, .summary-orb) {
    background: var(--wg-primary) !important;
    color: var(--wg-ink) !important;
    box-shadow: var(--wg-card-shadow) !important;
  }
  body.warm-glass-tool :is(.bloom, .hero-circle) { background: radial-gradient(circle, rgb(194 132 61 / .25), transparent 70%) !important; }
  body.warm-glass-tool :is(.progress-line > span, .quiz-progress > span.done, .sim-pi-fill, .sim-hud-budget-fill) { background: var(--wg-primary) !important; }
  body.warm-glass-tool :is(.studio-toast, .toast-notice, #gen-ai-key-drawer,
    #gen-ai-image-dropzone, #gen-ai-progress-box) {
    background: var(--wg-surface) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-shadow) !important;
  }
  /* Keep the existing tool navigation usable on phones and tablets. */
  body.warm-glass-studio .studio-main { min-width: 0 !important; }
  body.warm-glass-studio :is(.studio-header, .header-left) { flex-wrap: wrap !important; height: auto !important; min-height: 56px !important; gap: 12px !important; }
  body.warm-glass-studio .studio-header { padding-block: 12px !important; }
  body.warm-glass-discovery :is(.top-header, .header-right, .dropdowns-row, .sources-header, .stat-row, .list-top-bar) { flex-wrap: wrap !important; }
  body.warm-glass-discovery :is(.search-filters-card, .actions-card, .dropdown-group, .search-input-text) { min-width: 0 !important; }
  @media (max-width: 1000px) {
    body.warm-glass-studio .studio-container { flex-direction: column !important; height: 100dvh !important; }
    body.warm-glass-studio .studio-sidebar { width: 100% !important; flex: 0 0 auto !important; max-height: 180px !important; }
    body.warm-glass-studio .sidebar-header { padding: 10px 16px !important; }
    body.warm-glass-studio .sidebar-nav { flex-direction: row !important; overflow-x: auto !important; padding: 8px !important; }
    body.warm-glass-studio .sidebar-nav .nav-item { flex: 0 0 auto !important; min-height: 44px !important; }
    body.warm-glass-studio .sidebar-footer { padding: 6px 16px !important; }
    body.warm-glass-studio .studio-main { min-height: 0 !important; }
    body.warm-glass-studio .studio-header { padding: 12px 16px !important; }
    body.warm-glass-studio .header-left { width: 100% !important; }
    body.warm-glass-studio .header-right { width: 100% !important; }
    body.warm-glass-studio .search-input-group { width: 100% !important; }
    body.warm-glass-studio .studio-tab-view { padding: 16px !important; }
    body.warm-glass-studio :is(.sim-workspace-grid, .gen-workspace-grid) { grid-template-columns: minmax(0, 1fr) !important; height: auto !important; }
    body.warm-glass-studio :is(.sim-col-left, .sim-col-right, .gen-col-left, .gen-col-right) { max-height: none !important; overflow: visible !important; }
    body.warm-glass-studio :is(.sim-canvas-wrapper, .gen-canvas-wrapper) { min-height: 360px !important; }
    body.warm-glass-discovery { flex-direction: column !important; }
    body.warm-glass-discovery .sidebar { width: 100% !important; height: auto !important; max-height: 240px !important; position: static !important; padding: 16px !important; }
    body.warm-glass-discovery .sidebar-nav { flex-direction: row !important; overflow-x: auto !important; }
    body.warm-glass-discovery .sidebar-nav > * { flex: 0 0 auto !important; }
    body.warm-glass-discovery .sidebar-nav .nav-item { min-height: 44px !important; }
    body.warm-glass-discovery .nav-section-title { display: none !important; }
    body.warm-glass-discovery .brand-header { padding-bottom: 12px !important; margin-bottom: 12px !important; }
    body.warm-glass-discovery .main-wrapper { height: auto !important; overflow: visible !important; }
    body.warm-glass-discovery .top-header { padding: 16px !important; }
    body.warm-glass-discovery .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding-inline: 16px !important; }
    body.warm-glass-discovery :is(.controls-row, .workspace-grid) { margin-inline: 0 !important; padding-inline: 16px !important; min-width: 0 !important; grid-template-columns: minmax(0, 1fr) !important; }
    body.warm-glass-discovery .sources-bar { width: auto !important; margin-inline: 16px !important; }
    body.warm-glass-discovery .book-card-row { flex-wrap: wrap !important; }
  }
  @media (max-width: 560px) {
    body.warm-glass-studio .studio-tab-view > [style*="display:grid"] { grid-template-columns: minmax(0, 1fr) !important; }
    body.warm-glass-studio :is(.library-controls, .sim-header-bar, .gen-subtab-bar, .pagination-bar) { flex-wrap: wrap !important; }
    body.warm-glass-studio .search-input { min-height: 44px !important; }
    body.warm-glass-discovery .stats-grid { grid-template-columns: minmax(0, 1fr) !important; }
    body.warm-glass-discovery :is(.actions-card, .search-filters-card) { width: 100% !important; margin-inline: 0 !important; }
    body.warm-glass-discovery :is(.top-header, .header-right, .dropdowns-row) { align-items: stretch !important; }
    body.warm-glass-discovery .search-input-wrap { flex-wrap: wrap !important; }
    body.warm-glass-discovery .search-input-text { width: 100% !important; flex-basis: 100% !important; }
    body.warm-glass-discovery .btn-search { min-height: 44px !important; }
  }
  body :is(.primary, .btn-quiz-next, .btn-primary, .bg-ufc-btn-enter) :is(span, strong, svg) { color: inherit !important; }
  body :is(.dev-profile-row, .dev-tool, .dev-profile-switcher) {
    background: var(--wg-control) !important;
    color: var(--wg-text) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-card-shadow) !important;
  }
  body :is(.dev-role-card, .dev-profile-row) small { color: var(--wg-secondary) !important; }
  @media (max-width: 860px), (pointer: coarse) {
    :root { --wg-blur: 18px; --wg-modal-blur: 20px; --wg-saturation: 115%; }
    body.reference-ui #accountMenuButton :is(.capsule-text, .capsule-chevron) { display: none !important; }
  }
  @media (prefers-contrast: more) {
    :root { --wg-veil-opacity: .9 !important; --wg-border: #efcfa1; --wg-card: #38271e; --wg-control: #38271e; --glass-hover: #514333; --wg-reading: #38271e; }
  }
  /* Hardware hints reduce the optical cost, never replace the requested material. */
  :root[data-glass-quality="low"] {
    --wg-blur: 12px;
    --wg-modal-blur: 16px;
    --wg-saturation: 105%;
  }
  :root[data-glass-mode="classic"], body.performance-mode {
    --wg-filter: none;
    --wg-modal-filter: none;
    --wg-veil-opacity: .88;
    --wg-card: #38271e;
    --wg-control: #38271e;
    --glass-hover: #514333;
    --glass-blur: none;
  }
  /* ==========================================================================
   * ÇOCUK DOSTU DEĞERLENDİRME MODÜLÜ VE SORU KÖKÜ OKUNABİLİRLİK SİSTEMİ
   * (#bg-modal-quiz, #bg-route-egg-panel, #bg-math-adventure-overlay, #quizView)
   * Yüksek kontrast (WCAG AAA), sıcak pastel yüzeyler ve net koyu mürekkep
   * ========================================================================== */
  body :is(#bg-math-adventure-overlay, #bg-modal-quiz.bg-quiz-overlay) {
    --wg-text: #1e1b4b;
    --wg-secondary: #334155;
    --wg-reading: linear-gradient(180deg, #fffdf7 0%, #fef3c7 55%, #fde68a 100%);
    --wg-reading-ink: #1e1b4b;
    --num-ink: #1e1b4b;
    --num-muted: #334155;
    --num-card: #ffffff;
    --num-border: #fde68a;
    --school-ink: #1e1b4b;
    --school-muted: #334155;
    --school-card: #ffffff;
    --school-border: #bae6fd;
    --city-ink: #1e1b4b;
    --city-muted: #334155;
    --city-card: #ffffff;
    --city-border: #fde68a;
  }

  /* 1. Ana Değerlendirme Kartları (Cam-Dışı Opak Yüzey — detaylar assessment-solid.css içinde) */
  body :is(#bg-math-adventure-overlay .math-adv-glass-modal, #bg-modal-quiz .bg-quiz-glass-modal) {
    background: linear-gradient(180deg, #fffdf7 0%, #fff7ec 100%) !important;
    border: 4px solid #ffffff !important;
    border-radius: 32px !important;
    box-shadow: 0 10px 0 rgba(255, 255, 255, 0.55), 0 18px 40px rgba(43, 93, 138, 0.22), inset 0 0 0 2px #ffe7b8 !important;
    color: #2b2350 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body :is(#bg-math-adventure-overlay .math-adv-glass-modal, #bg-modal-quiz .bg-quiz-glass-modal)
    :is(h1, h2, h3, label, legend, strong, .note, small) {
    color: #1e1b4b !important;
  }

  /* 2. Soru Kökleri (Soru Kökü Kutuları — Tüm Değerlendirme Modülleri) */
  body :is(
    #bg-modal-quiz .bg-quiz-question-panel,
    #bg-modal-quiz .bg-quiz-question-box,
    #bg-math-adventure-overlay .math-adv-clean-prompt,
    #bg-math-adventure-overlay .number-prompt,
    #bg-math-adventure-overlay .school-prompt,
    #bg-math-adventure-overlay .city-prompt,
    #bg-math-adventure-overlay .nature-prompt,
    #bg-math-adventure-overlay .science-prompt,
    #bg-math-adventure-overlay .q-text,
    #quizView .quiz-question-card,
    #quizView .quiz-question-box
  ) {
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 55%, #fde68a 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 24px !important;
    padding: 14px 24px !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.38), 0 8px 20px rgba(180, 83, 9, 0.14), inset 0 2px 4px #ffffff !important;
    color: #1e1b4b !important;
    font-weight: 850 !important;
    font-size: clamp(1.12rem, 2.3vw, 1.38rem) !important;
    line-height: 1.42 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  }

  body :is(
    #bg-modal-quiz #bg-quiz-question-text,
    #bg-modal-quiz .bg-quiz-question-panel *,
    #bg-modal-quiz .bg-quiz-question-box *,
    #bg-math-adventure-overlay .math-adv-clean-prompt *,
    #bg-math-adventure-overlay .number-prompt *,
    #bg-math-adventure-overlay .school-prompt *,
    #bg-math-adventure-overlay .city-prompt *,
    #bg-math-adventure-overlay .nature-prompt *,
    #bg-math-adventure-overlay .science-prompt *,
    #bg-math-adventure-overlay .q-text *,
    #quizView .quiz-question-card :is(h1, h2, h3, p, span, strong, div, #questionText, .question-text),
    #quizView .quiz-question-box :is(h1, h2, h3, p, span, strong, div)
  ) {
    color: #1e1b4b !important;
    -webkit-text-fill-color: #1e1b4b !important;
    font-weight: 850 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) !important;
  }

  /* 3. Okuma Metni / Bağlam / Hikâye Kartları */
  body #bg-math-adventure-overlay :is(
    .math-adv-reading-card,
    .math-adv-big-card,
    .number-context,
    .school-story,
    .city-clue,
    .keypad-prompt-card,
    .science-question-card
  ) {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
    border: 2px solid #fde68a !important;
    border-radius: 20px !important;
    padding: 12px 18px !important;
    color: #1e293b !important;
    font-weight: 750 !important;
    line-height: 1.55 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  }

  body #bg-math-adventure-overlay .keypad-prompt-words {
    color: #581c87 !important;
    font-weight: 900 !important;
  }

  /* 4. Üst Rozetler, Soru Sayacı, Seviye Düğümleri ve Kontrol Düğmeleri */
  body #bg-modal-quiz #bg-quiz-concept-badge {
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 999px !important;
    color: #0c4a6e !important;
    font-weight: 850 !important;
    padding: 6px 14px !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16), inset 0 1px 2px #ffffff !important;
  }

  body #bg-modal-quiz #bg-quiz-concept-badge :is(span, strong) {
    color: #0c4a6e !important;
  }

  body #bg-modal-quiz #bg-quiz-grade-badge {
    color: #334155 !important;
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1.5px solid #ffffff !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    font-weight: 750 !important;
  }

  body :is(
    #bg-modal-quiz #bg-quiz-step,
    #bg-math-adventure-overlay #math-adv-step-text,
    #bg-math-adventure-overlay .math-adv-question-counter
  ) {
    background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 999px !important;
    color: #881337 !important;
    font-weight: 850 !important;
    padding: 6px 16px !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.14), inset 0 2px 3px #ffffff !important;
  }

  body :is(
    #bg-modal-quiz #bg-close-quiz,
    #bg-math-adventure-overlay #math-adv-btn-close,
    #bg-math-adventure-overlay .math-adv-close-btn
  ) {
    background: linear-gradient(180deg, #fecdd3 0%, #fb7185 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 50% !important;
    color: #881337 !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.9) !important;
  }

  body #bg-math-adventure-overlay :is(#math-adv-btn-sound, .math-adv-tool-btn) {
    background: linear-gradient(180deg, #bae6fd 0%, #60a5fa 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 50% !important;
    color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.9) !important;
  }

  body #bg-modal-quiz #bg-quiz-step-dots .quiz-step-dot {
    background: rgba(148, 163, 184, 0.45) !important;
    border: 1.5px solid #ffffff !important;
  }

  body #bg-modal-quiz #bg-quiz-step-dots .quiz-step-dot:is(.is-active, .is-current, .is-done) {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.55) !important;
  }

  body #bg-math-adventure-overlay :is(.flp-node, .math-adv-level-tab, .math-adv-tab-btn) {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 2.5px solid #bae6fd !important;
    color: #1e3a8a !important;
    font-weight: 850 !important;
  }

  body #bg-math-adventure-overlay :is(.flp-node, .math-adv-level-tab, .math-adv-tab-btn).active {
    background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%) !important;
    border: 3px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }

  body #bg-math-adventure-overlay :is(.flp-node, .math-adv-level-tab, .math-adv-tab-btn).completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 2.5px solid #a7f3d0 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }

  body #bg-math-adventure-overlay :is(.flp-node, .math-adv-level-tab, .math-adv-tab-btn):is(.locked, :disabled) {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 2px solid #cbd5e1 !important;
    color: #64748b !important;
  }

  /* 5. Çocuk Dostu Pastel Seçenek Butonları (Mint, Şeftali, Gökyüzü, Lavanta) */
  body :is(
    #bg-modal-quiz .bg-option-btn,
    #bg-math-adventure-overlay .math-adv-option-card,
    #bg-math-adventure-overlay .math-adv-language-option,
    #bg-math-adventure-overlay .number-choice,
    #bg-math-adventure-overlay .q-option-btn
  ) {
    background: linear-gradient(180deg, #d1fae5 0%, #6ee7b7 55%, #34d399 100%) !important;
    border: 3px solid #ffffff !important;
    border-radius: 22px !important;
    color: #064e3b !important;
    font-weight: 800 !important;
    box-shadow: 0 5px 0 #10b981, 0 8px 18px rgba(16, 185, 129, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  }

  body :is(
    #bg-modal-quiz .bg-option-btn:nth-child(2),
    #bg-math-adventure-overlay .math-adv-option-card:nth-child(2),
    #bg-math-adventure-overlay .math-adv-language-option:nth-child(2),
    #bg-math-adventure-overlay .number-choice:nth-child(2),
    #bg-math-adventure-overlay .q-option-btn:nth-child(2)
  ) {
    background: linear-gradient(180deg, #fef3c7 0%, #fed7aa 48%, #fdba74 100%) !important;
    color: #7c2d12 !important;
    box-shadow: 0 5px 0 #f59e0b, 0 8px 18px rgba(245, 158, 11, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  }

  body :is(
    #bg-modal-quiz .bg-option-btn:nth-child(3),
    #bg-math-adventure-overlay .math-adv-option-card:nth-child(3),
    #bg-math-adventure-overlay .math-adv-language-option:nth-child(3),
    #bg-math-adventure-overlay .number-choice:nth-child(3),
    #bg-math-adventure-overlay .q-option-btn:nth-child(3)
  ) {
    background: linear-gradient(180deg, #e0f2fe 0%, #7dd3fc 55%, #38bdf8 100%) !important;
    color: #0c4a6e !important;
    box-shadow: 0 5px 0 #0284c7, 0 8px 18px rgba(2, 132, 199, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  }

  body :is(
    #bg-modal-quiz .bg-option-btn:nth-child(4),
    #bg-math-adventure-overlay .math-adv-option-card:nth-child(4),
    #bg-math-adventure-overlay .math-adv-language-option:nth-child(4),
    #bg-math-adventure-overlay .number-choice:nth-child(4),
    #bg-math-adventure-overlay .q-option-btn:nth-child(4)
  ) {
    background: linear-gradient(180deg, #f3e8ff 0%, #d8b4fe 55%, #c084fc 100%) !important;
    color: #4c1d95 !important;
    box-shadow: 0 5px 0 #9333ea, 0 8px 18px rgba(147, 51, 234, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  }

  body :is(
    #bg-modal-quiz .bg-option-btn,
    #bg-math-adventure-overlay .math-adv-option-card,
    #bg-math-adventure-overlay .math-adv-language-option,
    #bg-math-adventure-overlay .number-choice,
    #bg-math-adventure-overlay .q-option-btn
  ) :is(.opt-text-body, .opt-text, .opt-words, .opt-num, .opt-num-large, span, strong) {
    color: inherit !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  }

  body :is(
    #bg-modal-quiz .bg-option-btn .opt-letter-badge,
    #bg-math-adventure-overlay .math-adv-language-option .answer-letter
  ) {
    background: rgba(255, 255, 255, 0.92) !important;
    color: inherit !important;
    border: 2px solid #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14) !important;
    text-shadow: none !important;
  }

  /* Seçenek Durumları (Doğru, Tekrar Dene, Yanlış) */
  body :is(
    #bg-modal-quiz .bg-option-btn,
    #bg-math-adventure-overlay .math-adv-option-card,
    #bg-math-adventure-overlay .math-adv-language-option
  ):is(.is-correct, .correct) {
    background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%) !important;
    border: 3px solid #047857 !important;
    color: #022c22 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35), 0 8px 18px rgba(5, 150, 105, 0.28) !important;
  }

  body #bg-modal-quiz .bg-option-btn.wrong-attempt {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 2.5px dashed #d97706 !important;
    color: #78350f !important;
    opacity: 0.88 !important;
    box-shadow: none !important;
  }

  body :is(
    #bg-modal-quiz .bg-option-btn,
    #bg-math-adventure-overlay .math-adv-option-card,
    #bg-math-adventure-overlay .math-adv-language-option
  ):is(.is-wrong, .wrong, .is-incorrect) {
    background: linear-gradient(180deg, #ffe4e6 0%, #fda4af 100%) !important;
    border: 3px solid #e11d48 !important;
    color: #881337 !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.28) !important;
  }

  body #bg-modal-quiz .bg-option-btn .opt-status-pill:not(:empty) {
    display: inline-flex !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: inherit !important;
    text-shadow: none !important;
  }

  /* 6. İpucu, Geri Bildirim Kutuları ve Alt Butonlar */
  body :is(#bg-modal-quiz #bg-btn-hint, #bg-math-adventure-overlay #math-adv-btn-hint) {
    background: linear-gradient(180deg, #f3e8ff 0%, #d8b4fe 55%, #c084fc 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 999px !important;
    color: #3b0764 !important;
    font-weight: 850 !important;
    box-shadow: 0 4px 0 #9333ea, 0 8px 16px rgba(147, 51, 234, 0.22), inset 0 2px 3px #ffffff !important;
  }

  body :is(#bg-modal-quiz #bg-btn-hint, #bg-math-adventure-overlay #math-adv-btn-hint) :is(span, strong) {
    color: #3b0764 !important;
  }

  body #bg-modal-quiz #bg-quiz-hint-box {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 2px solid #f59e0b !important;
    border-radius: 16px !important;
    color: #78350f !important;
    font-weight: 750 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.16) !important;
  }

  body :is(#bg-modal-quiz #bg-quiz-feedback-box, #bg-math-adventure-overlay .math-adv-feedback) {
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #f59e0b !important;
    border-radius: 18px !important;
    color: #1e293b !important;
    font-weight: 750 !important;
    box-shadow: 0 6px 16px rgba(61, 35, 20, 0.1) !important;
  }

  body #bg-math-adventure-overlay .math-adv-feedback.feedback-success {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #064e3b !important;
  }

  body #bg-math-adventure-overlay .math-adv-feedback.feedback-error {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #f43f5e !important;
    color: #881337 !important;
  }

  body :is(#bg-modal-quiz #bg-quiz-feedback-box, #bg-math-adventure-overlay .math-adv-feedback)
    :is(div, span, p, strong, #bg-feedback-title, #bg-feedback-text) {
    color: inherit !important;
  }

  body #bg-modal-quiz #bg-quiz-feedback-box #bg-feedback-title {
    color: #78350f !important;
    font-weight: 850 !important;
  }

  body :is(
    #bg-modal-quiz #bg-btn-next-question,
    #bg-math-adventure-overlay #math-adv-btn-next,
    #bg-math-adventure-overlay #math-adv-btn-finish,
    #bg-math-adventure-overlay .number-check,
    #bg-math-adventure-overlay .number-continue
  ) {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    font-weight: 850 !important;
    box-shadow: 0 4px 0 #047857, 0 8px 18px rgba(16, 185, 129, 0.3) !important;
  }

  body #bg-math-adventure-overlay :is(#math-adv-btn-recount, #math-adv-btn-talk) {
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 999px !important;
    color: #0c4a6e !important;
    font-weight: 800 !important;
  }

  /* 7. Sağ Panel: Keşif / Rota Yumurtası (#bg-route-egg-panel) */
  body #bg-route-egg-panel.GlassPanel {
    background: linear-gradient(165deg, rgba(224, 231, 255, 0.94) 0%, rgba(245, 224, 255, 0.92) 45%, rgba(255, 235, 242, 0.94) 78%, rgba(255, 247, 230, 0.96) 100%) !important;
    border: 2.5px solid rgba(255, 255, 255, 0.96) !important;
    border-radius: 30px !important;
    box-shadow: 0 18px 42px rgba(35, 20, 65, 0.24), inset 0 2px 5px rgba(255, 255, 255, 0.96) !important;
    color: #2d1606 !important;
  }

  body #bg-route-egg-panel .bg-egg-ribbon-badge {
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 55%, #f59e0b 100%) !important;
    border: 2px solid #ffffff !important;
    color: #451a03 !important;
    font-weight: 900 !important;
  }

  body #bg-route-egg-panel #bg-egg-route-title {
    color: #2e1065 !important;
    font-weight: 850 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  }

  body #bg-route-egg-panel #bg-egg-stage-badge.GlassCard {
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 9999px !important;
    color: #2d1606 !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.14), inset 0 1px 2px #ffffff !important;
  }

  body #bg-route-egg-panel #bg-egg-stage-badge.GlassCard span {
    color: #2d1606 !important;
  }

  body #bg-route-egg-panel .GlassCard:has(#bg-egg-steps-done) {
    background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 18px !important;
    color: #064e3b !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.14), inset 0 1px 2px #ffffff !important;
  }

  body #bg-route-egg-panel .GlassCard:has(#bg-egg-steps-done) div {
    color: #064e3b !important;
  }

  body #bg-route-egg-panel .GlassCard:has(#bg-egg-steps-left) {
    background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 18px !important;
    color: #7c2d12 !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.14), inset 0 1px 2px #ffffff !important;
  }

  body #bg-route-egg-panel .GlassCard:has(#bg-egg-steps-left) div {
    color: #7c2d12 !important;
  }

  body #bg-route-egg-panel #bg-egg-reward-teaser.GlassCard {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 232, 255, 0.92) 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 18px !important;
    color: #2e1065 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(88, 28, 135, 0.1) !important;
  }

  body #bg-route-egg-panel #bg-egg-reward-teaser.GlassCard :is(span, b, strong) {
    color: #2e1065 !important;
  }

  body #bg-route-egg-panel #bg-egg-hint-text {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.96) 0%, rgba(255, 228, 230, 0.92) 100%) !important;
    border: 2px solid #ffffff !important;
    border-radius: 18px !important;
    color: #431407 !important;
    font-weight: 700 !important;
  }

  body #bg-route-egg-panel #bg-egg-hint-text :is(span, b, strong) {
    color: #431407 !important;
  }

  body #bg-route-egg-panel #bg-btn-open-egg-gift.GlassButton {
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%) !important;
    border: 2px solid #ffffff !important;
    color: #451a03 !important;
    font-weight: 850 !important;
  }

  /* 8. İç Etkileşim Arenaları (Sayı, Ritmik, Abaküs, Fabrika, Postane) */
  body #bg-math-adventure-overlay :is(
    .math-adv-board-container,
    .math-adv-flying-arena,
    .math-adv-memory-arena,
    .math-adv-builder-arena,
    .ten-factory-arena,
    .mechanic-display-panel,
    .rhythm-sequence-track,
    .rhythm-stair-container,
    .rhythm-builder-wrapper,
    .rhythm-bubble-arena
  ) {
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.9) 0%, rgba(255, 241, 245, 0.85) 100%) !important;
    border: 2.5px solid #ffffff !important;
    border-radius: 24px !important;
    color: #1e1b4b !important;
  }

  body #bg-math-adventure-overlay :is(.rhythm-card, .rhythm-bubble) {
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%) !important;
    border: 2px solid #38bdf8 !important;
    color: #0c4a6e !important;
    font-weight: 850 !important;
  }

  body #bg-math-adventure-overlay .rhythm-card.missing {
    background: linear-gradient(180deg, #fffbeb 0%, #fef08a 100%) !important;
    border: 2px dashed #d97706 !important;
    color: #9a3412 !important;
  }

  body #bg-math-adventure-overlay :is(.rhythm-target-bar, .rhythm-connector, .factory-zone-title, .mechanic-group-box span) {
    color: #1e293b !important;
  }

  body #bg-math-adventure-overlay :is(.factory-zone, .builder-display-box, .rhythm-chain-display) {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
  }

  body #bg-math-adventure-overlay .envelope-card {
    background: linear-gradient(180deg, #fffbeb 0%, #fde68a 100%) !important;
    border: 2.5px solid #f59e0b !important;
    color: #78350f !important;
  }

  body #bg-math-adventure-overlay :is(.envelope-number, .envelope-subtext) {
    color: #78350f !important;
  }

  /* 8. Bağımsız Çerez Soruları Modülü (#cerezDialog.cerez-dialog) — Cam-Dışı Çocuk Dostu Değerlendirme */
  body dialog.cerez-dialog::backdrop {
    background: linear-gradient(180deg, #8fd3ff 0%, #c4e8ff 45%, #ffe9c7 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body #thematicRouteModal.is-cerez-open > :is(.reference-route-stage, .space-route-backdrop) {
    filter: none !important;
    transition: none !important;
    pointer-events: none !important;
    user-select: none !important;
  }

  body dialog#cerezDialog.cerez-dialog {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(580px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: fit-content !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 32px !important;
    border: 4px solid #ffffff !important;
    background: linear-gradient(180deg, #fffdf7 0%, #fff7ec 100%) !important;
    box-shadow: 0 10px 0 rgba(255, 255, 255, 0.55), 0 18px 40px rgba(43, 93, 138, 0.24), inset 0 0 0 2px #ffe7b8 !important;
    color: #2b2350 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body dialog#cerezDialog.cerez-dialog:not([open]) {
    display: none !important;
  }

  body dialog#cerezDialog .cerez-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
    box-sizing: border-box;
  }

  body dialog#cerezDialog .cerez-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1.5px solid rgba(148, 163, 184, 0.28);
  }

  body dialog#cerezDialog .cerez-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 190px;
  }

  body dialog#cerezDialog .cerez-cookie-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
  }

  body dialog#cerezDialog .cerez-title-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  body dialog#cerezDialog .cerez-module-title {
    font-size: 1.06rem;
    font-weight: 850;
    color: #1e1b4b !important;
    line-height: 1.25;
  }

  body dialog#cerezDialog .cerez-module-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body dialog#cerezDialog .cerez-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body dialog#cerezDialog .cerez-coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
    border: 2px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.85rem;
    font-weight: 850;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28) !important;
    white-space: nowrap;
  }

  body dialog#cerezDialog .cerez-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
  }

  body dialog#cerezDialog button.cerez-close-btn {
    min-width: 46px !important;
    min-height: 46px !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%) !important;
    border: 2px solid #ffffff !important;
    color: #be123c !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.22) !important;
  }

  body dialog#cerezDialog .cerez-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  body dialog#cerezDialog .cerez-question-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  body dialog#cerezDialog .cerez-step-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: #e0e7ff !important;
    border: 1.5px solid #c7d2fe !important;
    color: #312e81 !important;
    font-size: 0.82rem;
    font-weight: 850;
  }

  body dialog#cerezDialog .cerez-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  body dialog#cerezDialog .cerez-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 1.5px solid #ffffff;
    transition: transform 0.16s ease, background-color 0.16s ease;
  }

  body dialog#cerezDialog .cerez-dot.is-active {
    width: 22px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
  }

  body dialog#cerezDialog .cerez-dot.is-right {
    background: #10b981;
  }

  body dialog#cerezDialog .cerez-dot.is-miss {
    background: #f43f5e;
  }

  body dialog#cerezDialog button.cerez-speak-btn {
    min-height: 40px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 2px solid #ffffff !important;
    color: #0c4a6e !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.18) !important;
  }

  body dialog#cerezDialog .cerez-question-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #fde68a !important;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08) !important;
  }

  body dialog#cerezDialog .cerez-prompt {
    margin: 0;
    color: #1e1b4b !important;
    font-size: clamp(1.08rem, 2.8vw, 1.32rem) !important;
    font-weight: 850 !important;
    line-height: 1.48 !important;
    text-shadow: none !important;
    filter: none !important;
    outline: none;
  }

  body dialog#cerezDialog .cerez-choices {
    display: grid;
    gap: 10px;
  }

  body dialog#cerezDialog button.cerez-choice {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 11px 14px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 750 !important;
    text-align: left !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  }

  body dialog#cerezDialog button.cerez-choice:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #f59e0b !important;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.18) !important;
  }

  body dialog#cerezDialog button.cerez-choice:disabled {
    opacity: 0.94 !important;
  }

  body dialog#cerezDialog .cerez-choice-letter {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fef3c7 !important;
    border: 1.5px solid #fcd34d !important;
    color: #92400e !important;
    font-size: 0.92rem;
    font-weight: 900;
  }

  body dialog#cerezDialog .cerez-choice-label {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit !important;
    font-size: 1rem;
    line-height: 1.4;
  }

  body dialog#cerezDialog .cerez-choice-tag {
    flex-shrink: 0;
    font-size: 0.84rem;
    font-weight: 900;
    color: inherit !important;
  }

  body dialog#cerezDialog button.cerez-choice.is-correct {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #064e3b !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.22) !important;
  }

  body dialog#cerezDialog button.cerez-choice.is-correct .cerez-choice-letter {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
  }

  body dialog#cerezDialog button.cerez-choice.is-wrong {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #f43f5e !important;
    color: #881337 !important;
  }

  body dialog#cerezDialog button.cerez-choice.is-wrong .cerez-choice-letter {
    background: #f43f5e !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
  }

  body dialog#cerezDialog button.cerez-choice.is-correct-hint {
    background: #f0fdf4 !important;
    border-color: #34d399 !important;
    color: #065f46 !important;
  }

  body dialog#cerezDialog .cerez-feedback {
    margin: 0;
    padding: 13px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #f59e0b !important;
    color: #1e293b !important;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.5;
  }

  body dialog#cerezDialog .cerez-feedback.is-correct {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #064e3b !important;
  }

  body dialog#cerezDialog .cerez-feedback.is-wrong,
  body dialog#cerezDialog .cerez-feedback.is-error {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: #fb923c !important;
    color: #7c2d12 !important;
  }

  body dialog#cerezDialog :is(.cerez-summary-card, .cerez-finish-card, .cerez-loading-card) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #fcd34d !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.14) !important;
  }

  body dialog#cerezDialog :is(.cerez-summary-title, .cerez-finish-title) {
    margin: 0;
    color: #1e1b4b !important;
    font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
    font-weight: 900 !important;
  }

  body dialog#cerezDialog :is(.cerez-summary-desc, .cerez-finish-desc, .cerez-loading-text, .cerez-keep-note) {
    margin: 0;
    color: #334155 !important;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
  }

  body dialog#cerezDialog :is(.cerez-summary-pill, .cerez-coin-only-tag) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
    border: 2px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.85rem;
    font-weight: 850;
  }

  body dialog#cerezDialog :is(.cerez-finish-medal, .cerez-loading-icon) {
    font-size: 2.6rem;
    line-height: 1;
  }

  body dialog#cerezDialog .cerez-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body dialog#cerezDialog button.cerez-btn-primary {
    flex: 1 1 180px;
    min-height: 50px !important;
    padding: 12px 20px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
    border: 2.5px solid #ffffff !important;
    color: #ffffff !important;
    font-size: 0.98rem !important;
    font-weight: 850 !important;
    box-shadow: 0 4px 0 #047857, 0 8px 18px rgba(16, 185, 129, 0.28) !important;
  }

  body dialog#cerezDialog button.cerez-btn-secondary {
    flex: 1 1 180px;
    min-height: 50px !important;
    padding: 12px 20px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%) !important;
    border: 2.5px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.98rem !important;
    font-weight: 850 !important;
    box-shadow: 0 4px 0 #d97706, 0 8px 18px rgba(245, 158, 11, 0.26) !important;
  }

  @media (max-width: 480px) {
    body dialog#cerezDialog.cerez-dialog {
      width: calc(100vw - 16px) !important;
      max-width: calc(100vw - 16px) !important;
      border-radius: 22px !important;
    }
    body dialog#cerezDialog .cerez-shell {
      padding: 14px 14px 16px;
      gap: 11px;
    }
    body dialog#cerezDialog .cerez-header-right {
      margin-left: auto;
    }
  }

  /* 8b. Görü_Yorum Görsel Okuma Modülü (#goruYorumDialog.goru-yorum-dialog) — Cam-Dışı Çocuk Dostu Değerlendirme */
  body dialog.goru-yorum-dialog::backdrop {
    background: linear-gradient(180deg, #8fd3ff 0%, #c4e8ff 45%, #ffe9c7 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body #thematicRouteModal.is-goru-yorum-open > :is(.reference-route-stage, .space-route-backdrop) {
    filter: none !important;
    transition: none !important;
    pointer-events: none !important;
    user-select: none !important;
  }

  body dialog#goruYorumDialog.goru-yorum-dialog {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(580px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: fit-content !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 32px !important;
    border: 4px solid #ffffff !important;
    background: linear-gradient(180deg, #fffdf7 0%, #fff7ec 100%) !important;
    box-shadow: 0 10px 0 rgba(255, 255, 255, 0.55), 0 18px 40px rgba(43, 93, 138, 0.24), inset 0 0 0 2px #ffe7b8 !important;
    color: #2b2350 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body dialog#goruYorumDialog.goru-yorum-dialog.is-question-view {
    width: min(960px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
  }

  body dialog#goruYorumDialog.goru-yorum-dialog.is-hub-view {
    width: min(720px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }

  body dialog#goruYorumDialog.goru-yorum-dialog:not([open]) {
    display: none !important;
  }

  body dialog#cerezDialog > .dialog-live-wallet,
  body dialog#goruYorumDialog > .dialog-live-wallet,
  body dialog#goruYorumLightbox > .dialog-live-wallet {
    display: none !important;
  }

  body dialog#goruYorumDialog .goru-yorum-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #1e1b4b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body dialog#goruYorumDialog .gy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 0 12px !important;
    border-bottom: 1.5px solid rgba(148, 163, 184, 0.28) !important;
  }

  body dialog#goruYorumDialog .gy-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 190px;
  }

  body dialog#goruYorumDialog .gy-eye-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    overflow: hidden;
  }

  body dialog#goruYorumDialog .gy-eye-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
  }

  body dialog#goruYorumDialog .gy-title-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  body dialog#goruYorumDialog .gy-module-title {
    font-size: 1.06rem;
    font-weight: 850;
    color: #1e1b4b !important;
    line-height: 1.25;
  }

  body dialog#goruYorumDialog .gy-module-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body dialog#goruYorumDialog .gy-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body dialog#goruYorumDialog .gy-coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
    border: 2px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.85rem;
    font-weight: 850;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28) !important;
    white-space: nowrap;
  }

  body dialog#goruYorumDialog .gy-progress-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
  }

  body dialog#goruYorumDialog button.gy-close-btn {
    min-width: 46px !important;
    min-height: 46px !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%) !important;
    border: 2px solid #ffffff !important;
    color: #be123c !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.22) !important;
    cursor: pointer;
  }

  body dialog#goruYorumDialog .gy-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    min-width: 0;
  }

  body dialog#goruYorumDialog .gy-body h2,
  body dialog#goruYorumDialog .gy-body p {
    margin: 0;
    overflow-wrap: anywhere;
  }

  body dialog#goruYorumDialog .gy-question-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  body dialog#goruYorumDialog .gy-step-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: #e0e7ff !important;
    border: 1.5px solid #c7d2fe !important;
    color: #312e81 !important;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
  }

  body dialog#goruYorumDialog .gy-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }

  body dialog#goruYorumDialog .gy-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 1.5px solid #ffffff;
    transition: transform 0.16s ease, background-color 0.16s ease, width 0.16s ease;
  }

  body dialog#goruYorumDialog .gy-dot.is-active {
    width: 22px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
  }

  body dialog#goruYorumDialog .gy-dot.is-right {
    background: #10b981;
  }

  body dialog#goruYorumDialog .gy-dot.is-miss {
    background: #f43f5e;
  }

  body dialog#goruYorumDialog button.gy-speak-btn {
    min-height: 44px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border: 2px solid #ffffff !important;
    color: #0c4a6e !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 8px rgba(14, 165, 233, 0.18) !important;
    cursor: pointer;
    white-space: nowrap;
  }

  /* 2-column visual-first layout on desktop/landscape tablet */
  body dialog#goruYorumDialog .gy-question-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(300px, 1fr);
    gap: 18px;
    align-items: start;
  }

  body dialog#goruYorumDialog .gy-visual-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  body dialog#goruYorumDialog .gy-quiz-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  body dialog#goruYorumDialog .gy-image-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 22px;
    background: #ffffff !important;
    border: 2.5px solid #fde68a !important;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.10), inset 0 1px 0 #ffffff !important;
    overflow: hidden;
  }

  body dialog#goruYorumDialog .gy-image {
    width: 100%;
    max-width: 100%;
    max-height: min(60dvh, 520px);
    min-height: 260px;
    border-radius: 15px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
    cursor: zoom-in;
    transition: transform 0.2s ease;
  }

  body dialog#goruYorumDialog .gy-image:hover {
    transform: scale(1.01);
  }

  body dialog#goruYorumDialog button.gy-zoom-btn {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 243, 199, 0.96) 100%) !important;
    border: 2px solid #f59e0b !important;
    color: #78350f !important;
    font-size: 0.84rem !important;
    font-weight: 850 !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
    z-index: 2;
  }

  body dialog#goruYorumDialog button.gy-zoom-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
  }

  body dialog#goruYorumDialog .gy-question-card {
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #fde68a !important;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08) !important;
  }

  body dialog#goruYorumDialog .gy-prompt {
    margin: 0;
    color: #1e1b4b !important;
    font-size: clamp(1.04rem, 2.2vw, 1.24rem) !important;
    font-weight: 850 !important;
    line-height: 1.46 !important;
    text-align: left;
    text-shadow: none !important;
    filter: none !important;
    outline: none;
  }

  body dialog#goruYorumDialog .gy-choices {
    display: grid;
    gap: 10px;
    padding: 0 !important;
  }

  body dialog#goruYorumDialog button.gy-choice {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 11px 14px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 750 !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
    cursor: pointer;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body dialog#goruYorumDialog button.gy-choice:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #f59e0b !important;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.18) !important;
  }

  body dialog#goruYorumDialog button.gy-choice:active:not(:disabled) {
    transform: scale(0.985);
  }

  body dialog#goruYorumDialog button.gy-choice:disabled {
    opacity: 0.94 !important;
    cursor: default;
  }

  body dialog#goruYorumDialog .gy-letter {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fef3c7 !important;
    border: 1.5px solid #fcd34d !important;
    color: #92400e !important;
    font-size: 0.92rem;
    font-weight: 900;
  }

  body dialog#goruYorumDialog .gy-choice-label {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit !important;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  body dialog#goruYorumDialog .gy-choice-tag {
    flex-shrink: 0;
    font-size: 0.84rem;
    font-weight: 900;
    color: inherit !important;
  }

  body dialog#goruYorumDialog button.gy-choice.is-correct {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #064e3b !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.22) !important;
  }

  body dialog#goruYorumDialog button.gy-choice.is-correct .gy-letter {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
  }

  body dialog#goruYorumDialog button.gy-choice.is-wrong {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border-color: #f43f5e !important;
    color: #881337 !important;
  }

  body dialog#goruYorumDialog button.gy-choice.is-wrong .gy-letter {
    background: #f43f5e !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
  }

  body dialog#goruYorumDialog button.gy-choice.is-correct-hint {
    background: #f0fdf4 !important;
    border-color: #34d399 !important;
    color: #065f46 !important;
  }

  body dialog#goruYorumDialog .gy-feedback {
    margin: 0 !important;
    padding: 13px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #f59e0b !important;
    color: #1e293b !important;
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.5;
  }

  body dialog#goruYorumDialog .gy-feedback.is-correct {
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #064e3b !important;
  }

  body dialog#goruYorumDialog .gy-feedback.is-wrong {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: #fb923c !important;
    color: #7c2d12 !important;
  }

  body dialog#goruYorumDialog :is(.gy-result-card, .gy-loading-card) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 22px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #fcd34d !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.14) !important;
  }

  body dialog#goruYorumDialog .gy-result-medal,
  body dialog#goruYorumDialog .gy-loading-icon {
    font-size: 2.7rem;
    line-height: 1;
    margin-bottom: 2px;
  }

  body dialog#goruYorumDialog .gy-result-title {
    margin: 0;
    color: #1e1b4b !important;
    font-size: clamp(1.2rem, 3.2vw, 1.5rem) !important;
    font-weight: 900 !important;
  }

  body dialog#goruYorumDialog .gy-result-desc,
  body dialog#goruYorumDialog .gy-loading-text {
    margin: 0;
    color: #334155 !important;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
  }

  body dialog#goruYorumDialog .gy-result-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
    border: 2px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.85rem;
    font-weight: 850;
    margin-top: 2px;
  }

  body dialog#goruYorumDialog .gy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
  }

  body dialog#goruYorumDialog .gy-actions button.gy-btn-primary,
  body dialog#goruYorumDialog .gy-actions button.gy-btn-secondary {
    flex: 1 1 180px;
  }

  body dialog#goruYorumDialog button.gy-btn-primary {
    min-height: 50px !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
    border: 2.5px solid #ffffff !important;
    color: #ffffff !important;
    font-size: 0.98rem !important;
    font-weight: 850 !important;
    box-shadow: 0 4px 0 #047857, 0 8px 18px rgba(16, 185, 129, 0.28) !important;
    cursor: pointer;
  }

  body dialog#goruYorumDialog button.gy-btn-secondary {
    min-height: 50px !important;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%) !important;
    border: 2.5px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.96rem !important;
    font-weight: 850 !important;
    box-shadow: 0 4px 0 #d97706, 0 8px 18px rgba(245, 158, 11, 0.26) !important;
    cursor: pointer;
  }

  body dialog#goruYorumDialog button:focus-visible {
    outline: 3px solid #f59e0b !important;
    outline-offset: 2px !important;
  }

  /* Hub (Rota Seçici) — Çerez Tasarım Dili */
  body dialog#goruYorumDialog .gy-hub-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf7 0%, #fef3c7 100%) !important;
    border: 2px solid #fde68a !important;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08) !important;
  }

  body dialog#goruYorumDialog .gy-hub-desc {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: #334155 !important;
    line-height: 1.48;
  }

  body dialog#goruYorumDialog .gy-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
  }

  body dialog#goruYorumDialog button.gy-hub-filter-pill {
    min-height: 44px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 2px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.05) !important;
  }

  body dialog#goruYorumDialog button.gy-hub-filter-pill.is-active {
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
    border-color: #ffffff !important;
    color: #78350f !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.28) !important;
  }

  body dialog#goruYorumDialog .gy-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 2px 0 4px;
  }

  body dialog#goruYorumDialog button.gy-hub-card {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 13px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #1e293b !important;
    text-align: left !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
    cursor: pointer;
  }

  body dialog#goruYorumDialog button.gy-hub-card:hover {
    transform: translateY(-1px);
    border-color: #f59e0b !important;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.18) !important;
  }

  body dialog#goruYorumDialog .gy-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: #fef3c7 !important;
    border: 1.5px solid #fde68a !important;
  }

  body dialog#goruYorumDialog .gy-card-info {
    flex: 1 1 auto;
    min-width: 0;
  }

  body dialog#goruYorumDialog .gy-card-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e1b4b !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body dialog#goruYorumDialog .gy-card-sub {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b !important;
  }

  body dialog#goruYorumDialog .gy-card-action {
    font-size: 0.95rem;
    font-weight: 900;
    color: #d97706 !important;
    flex-shrink: 0;
  }

  /* Fullscreen Image Inspector (Top-Layer Lightbox Dialog) */
  body dialog#goruYorumLightbox.gy-lightbox-dialog {
    position: fixed !important;
    inset: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: none !important;
    border-radius: 0 !important;
    background: rgba(10, 15, 34, 0.92) !important;
    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
    color: #f8fafc !important;
  }

  body dialog#goruYorumLightbox.gy-lightbox-dialog:not([open]) {
    display: none !important;
  }

  body dialog#goruYorumLightbox.gy-lightbox-dialog::backdrop {
    background: rgba(6, 10, 24, 0.84) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body dialog#goruYorumLightbox .gy-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
  }

  body dialog#goruYorumLightbox .gy-lightbox-title {
    color: #f8fafc !important;
    font-size: 0.95rem;
    font-weight: 800;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body dialog#goruYorumLightbox .gy-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  body dialog#goruYorumLightbox button.gy-lightbox-zoom-btn {
    min-height: 44px !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #fef08a 0%, #fbbf24 100%) !important;
    border: 2px solid #ffffff !important;
    color: #78350f !important;
    font-size: 0.86rem !important;
    font-weight: 850 !important;
    cursor: pointer;
    white-space: nowrap;
  }

  body dialog#goruYorumLightbox button.gy-lightbox-close-btn {
    min-height: 44px !important;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%) !important;
    border: 2px solid #ffffff !important;
    color: #be123c !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    cursor: pointer;
    white-space: nowrap;
  }

  body dialog#goruYorumLightbox .gy-lightbox-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  body dialog#goruYorumLightbox .gy-lightbox-stage.is-zoomed {
    align-items: flex-start;
    justify-content: flex-start;
  }

  body dialog#goruYorumLightbox .gy-lightbox-img {
    max-width: 94vw;
    max-height: calc(100dvh - 96px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    background: #ffffff;
    cursor: zoom-in;
  }

  body dialog#goruYorumLightbox .gy-lightbox-stage.is-zoomed .gy-lightbox-img {
    max-width: none;
    max-height: none;
    width: min(185vw, 1500px);
    height: auto;
    cursor: zoom-out;
  }

  /* Tablet / Portrait / Mobile (< 840px): single column with large full-width visual */
  @media (max-width: 839px) {
    body dialog#goruYorumDialog.goru-yorum-dialog.is-question-view {
      width: min(620px, calc(100vw - 20px)) !important;
      max-width: calc(100vw - 20px) !important;
    }

    body dialog#goruYorumDialog .gy-question-layout {
      display: flex;
      flex-direction: column;
      gap: 11px;
    }

    body dialog#goruYorumDialog .gy-image {
      max-height: 46dvh;
      min-height: 210px;
    }
  }

  /* Mobile (<= 480px) */
  @media (max-width: 480px) {
    body dialog#goruYorumDialog.goru-yorum-dialog,
    body dialog#goruYorumDialog.goru-yorum-dialog.is-question-view,
    body dialog#goruYorumDialog.goru-yorum-dialog.is-hub-view {
      width: calc(100vw - 12px) !important;
      max-width: calc(100vw - 12px) !important;
      max-height: calc(100dvh - 12px) !important;
      border-radius: 20px !important;
    }

    body dialog#goruYorumDialog .goru-yorum-shell {
      padding: 12px 12px 14px;
      gap: 10px;
    }

    body dialog#goruYorumDialog .gy-header {
      padding-bottom: 9px !important;
      gap: 8px;
    }

    body dialog#goruYorumDialog .gy-eye-badge {
      width: 36px;
      height: 36px;
      border-radius: 11px;
    }

    body dialog#goruYorumDialog .gy-eye-badge img {
      width: 24px;
      height: 24px;
    }

    body dialog#goruYorumDialog .gy-module-title {
      font-size: 0.98rem;
    }

    body dialog#goruYorumDialog .gy-header-right {
      margin-left: auto;
      gap: 6px;
    }

    body dialog#goruYorumDialog .gy-coin-pill {
      padding: 5px 9px;
      font-size: 0.78rem;
    }

    body dialog#goruYorumDialog .gy-progress-pill {
      padding: 5px 8px;
      font-size: 0.76rem;
    }

    body dialog#goruYorumDialog button.gy-close-btn {
      min-width: 44px !important;
      min-height: 44px !important;
      width: 44px !important;
      height: 44px !important;
    }

    body dialog#goruYorumDialog .gy-question-bar {
      flex-wrap: nowrap;
      gap: 6px;
    }

    body dialog#goruYorumDialog .gy-step-pill {
      padding: 4px 9px;
      font-size: 0.76rem;
    }

    body dialog#goruYorumDialog .gy-dots {
      gap: 3px;
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
    }

    body dialog#goruYorumDialog .gy-dot {
      width: 7px;
      height: 7px;
      border-width: 1px;
    }

    body dialog#goruYorumDialog .gy-dot.is-active {
      width: 15px;
    }

    body dialog#goruYorumDialog button.gy-speak-btn {
      min-height: 44px !important;
      padding: 4px 11px !important;
      font-size: 0.78rem !important;
    }

    body dialog#goruYorumDialog .gy-image-stage {
      padding: 6px;
      border-radius: 18px;
    }

    body dialog#goruYorumDialog .gy-image {
      max-height: 44dvh;
      min-height: 195px;
      border-radius: 13px;
    }

    body dialog#goruYorumDialog button.gy-zoom-btn {
      right: 10px;
      bottom: 10px;
      padding: 7px 12px !important;
      font-size: 0.8rem !important;
    }

    body dialog#goruYorumDialog .gy-question-card {
      padding: 12px 14px;
      border-radius: 18px;
    }

    body dialog#goruYorumDialog .gy-prompt {
      font-size: 1rem !important;
      line-height: 1.42 !important;
    }

    body dialog#goruYorumDialog .gy-choices {
      gap: 8px;
    }

    body dialog#goruYorumDialog button.gy-choice {
      min-height: 50px !important;
      padding: 10px 12px !important;
      border-radius: 16px !important;
      gap: 10px !important;
    }

    body dialog#goruYorumDialog .gy-choice-label {
      font-size: 0.94rem;
    }

    body dialog#goruYorumDialog .gy-hub-filters {
      gap: 6px;
    }

    body dialog#goruYorumDialog button.gy-hub-filter-pill {
      padding: 6px 11px !important;
      font-size: 0.78rem !important;
    }

    body dialog#goruYorumDialog .gy-hub-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Extra-narrow phone (<= 360px, e.g. 320px) */
  @media (max-width: 360px) {
    body dialog#goruYorumDialog .gy-title-wrap {
      flex: 1 1 130px;
    }

    body dialog#goruYorumDialog .gy-dots {
      display: none;
    }

    body dialog#goruYorumLightbox .gy-lightbox-title {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    body dialog#goruYorumDialog .gy-image,
    body dialog#goruYorumDialog button.gy-choice,
    body dialog#goruYorumDialog button.gy-hub-card,
    body dialog#goruYorumDialog .gy-dot {
      transition: none !important;
    }
  }

  /* İlerlemem (İlkokul Kâşif Karnesi V2) — Adaptive Warm Liquid Glass malzeme durumları */
  body #progressView .progress-explorer-hero {
    background: linear-gradient(155deg, rgba(64, 44, 31, 0.84) 0%, rgba(42, 29, 21, 0.90) 100%) !important;
    border: 1px solid rgba(244, 193, 120, 0.34) !important;
    box-shadow: var(--wg-shadow), inset 0 1px 0 rgba(255, 248, 236, 0.24) !important;
  }

  body #progressView .prog-kumbo-coach {
    background: linear-gradient(145deg, rgba(244, 193, 120, 0.16) 0%, rgba(74, 52, 37, 0.72) 100%) !important;
    border: 1px solid rgba(244, 193, 120, 0.42) !important;
    color: var(--wg-text) !important;
    box-shadow: var(--wg-shadow-soft), inset 0 1px 0 rgba(255, 250, 240, 0.22) !important;
  }

  body #progressView .prog-kumbo-coach:hover {
    background: linear-gradient(145deg, rgba(244, 193, 120, 0.24) 0%, rgba(88, 62, 44, 0.80) 100%) !important;
    border-color: rgba(244, 205, 145, 0.62) !important;
  }

  body #progressView .grade-chip-btn {
    background: var(--wg-control) !important;
    border: 1px solid var(--wg-border) !important;
    color: var(--wg-secondary) !important;
    box-shadow: inset 0 1px 0 rgba(255, 248, 238, 0.14) !important;
  }

  body #progressView .grade-chip-btn.is-own-grade:not(.active) {
    border-color: rgba(244, 193, 120, 0.48) !important;
  }

  body #progressView .grade-chip-btn.active {
    background: var(--wg-primary) !important;
    border-color: rgba(255, 248, 235, 0.68) !important;
    color: var(--wg-ink) !important;
    box-shadow: 0 8px 22px rgba(221, 163, 83, 0.34), inset 0 1px 0 rgba(255, 253, 247, 0.72) !important;
  }

  body #progressView .vision-stat-card {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-border) !important;
    color: var(--wg-text) !important;
    box-shadow: var(--wg-shadow-soft), inset 0 1px 0 var(--wg-highlight) !important;
  }

  body #progressView .vision-stat-card:hover {
    background: var(--wg-hover) !important;
    border-color: rgba(244, 193, 120, 0.48) !important;
  }

  body #progressView .progress-nav-tabs {
    background: var(--wg-surface) !important;
    border: 1px solid var(--wg-border) !important;
  }

  body #progressView .prog-tab-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--wg-secondary) !important;
    box-shadow: none !important;
  }

  body #progressView .prog-tab-btn:hover {
    background: var(--wg-hover) !important;
    color: var(--wg-text) !important;
  }

  body #progressView .prog-tab-btn.is-active {
    background: var(--wg-primary) !important;
    border-color: rgba(255, 248, 235, 0.68) !important;
    color: var(--wg-ink) !important;
    box-shadow: 0 6px 18px rgba(221, 163, 83, 0.30), inset 0 1px 0 rgba(255, 253, 247, 0.72) !important;
  }

  body #progressView .prog-tab-btn.is-active .tab-pill-count {
    background: rgba(56, 35, 21, 0.18) !important;
    color: var(--wg-ink) !important;
    border-color: rgba(56, 35, 21, 0.24) !important;
  }

  body #progressView .prog-filter-pill {
    background: var(--wg-control) !important;
    border: 1px solid var(--wg-border) !important;
    color: var(--wg-secondary) !important;
  }

  body #progressView .prog-filter-pill.is-active {
    background: var(--wg-active) !important;
    border-color: rgba(244, 193, 120, 0.62) !important;
    color: var(--wg-text) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 248, 236, 0.28) !important;
  }

  body #progressView .daily-step-card.is-done {
    background: linear-gradient(145deg, rgba(184, 224, 176, 0.22) 0%, rgba(56, 78, 52, 0.56) 100%) !important;
    border-color: rgba(184, 224, 176, 0.56) !important;
  }

  body #progressView .progress-next-goal-card {
    background: linear-gradient(145deg, rgba(244, 193, 120, 0.20) 0%, rgba(62, 43, 29, 0.82) 100%) !important;
    border: 1px solid rgba(244, 193, 120, 0.48) !important;
  }

  body #progressView .progress-egg-card.is-hatched {
    background: linear-gradient(145deg, rgba(244, 193, 120, 0.20) 0%, rgba(64, 45, 30, 0.84) 100%) !important;
    border-color: rgba(244, 193, 120, 0.54) !important;
  }

  body #progressView .egg-action-btn {
    background: var(--wg-primary) !important;
    color: var(--wg-ink) !important;
    border: 1px solid rgba(255, 248, 235, 0.64) !important;
    box-shadow: 0 6px 16px rgba(221, 163, 83, 0.28), inset 0 1px 0 rgba(255, 253, 247, 0.72) !important;
  }

  body #progressView .egg-action-btn:hover {
    background: var(--wg-primary-hover) !important;
    color: var(--wg-ink) !important;
  }

  body #progressView :is(.progress-subject-card, .progress-family-card, .progress-region-card).is-selected {
    background: var(--wg-active) !important;
    border-color: rgba(244, 193, 120, 0.65) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 248, 236, 0.30) !important;
  }

  body #progressView .prog-stage-step.is-reached {
    background: linear-gradient(145deg, rgba(184, 224, 176, 0.16) 0%, rgba(56, 42, 31, 0.72) 100%) !important;
    border-color: rgba(184, 224, 176, 0.44) !important;
  }

  body #progressView .prog-stage-step.is-current-max {
    background: linear-gradient(145deg, rgba(244, 193, 120, 0.24) 0%, rgba(68, 48, 33, 0.84) 100%) !important;
    border-color: rgba(244, 193, 120, 0.66) !important;
  }

  body #progressView .progress-badge-card.earned {
    background: linear-gradient(145deg, rgba(244, 193, 120, 0.22) 0%, rgba(66, 46, 31, 0.84) 100%) !important;
    border-color: rgba(244, 193, 120, 0.58) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 250, 240, 0.32) !important;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --wg-veil-opacity: .92; --wg-card: #38271e; --wg-control: #38271e; --glass-hover: #514333; --wg-reading: #38271e; }
  }
  @media (prefers-reduced-motion: reduce) {
    body :is(.GlassButton, .GlassCard, .GlassPanel,
      .quiz-option, .bg-glass-pill, .nav-item, .warm-glass-control, .primary,
      .secondary, .ghost, .glass-circle-btn, .profile-capsule, .coin-capsule,
      .dev-role-card, .dev-profile-row) { transition: none !important; }
  }
}

@layer warm-glass {
  /* One dock geometry for every view; viewport width alone controls sizing. */
  body.reference-ui #floatingBottomNav.floating-nav-dock {
    width: min(648px, calc(100vw - 24px)) !important;
    max-width: min(648px, calc(100vw - 24px)) !important;
    left: 50% !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 !important; margin: 0 !important;
    transform: translateX(-50%) translateZ(0) !important;
  }
  body.reference-ui #floatingBottomNav.floating-nav-dock .floating-nav-capsule {
    width: 100% !important; height: 62.4px !important; min-height: 62.4px !important; max-height: 62.4px !important;
    padding: 5px 8px !important; gap: 4px !important;
    background: var(--wg-control) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-highlight) !important;
  }
  body #floatingBottomNav .floating-nav-capsule::before { display: none !important; }
  body.reference-ui #floatingBottomNav .float-tab {
    flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
    height: 100% !important; min-height: 44px !important;
    padding: 2px !important; gap: 3px !important;
  }
  body.reference-ui #floatingBottomNav .float-tab .tab-label {
    display: block !important; font-size: 12px !important; line-height: 1.2 !important;
  }
  body.reference-ui #floatingBottomNav .float-tab .nav-icon-svg { width: 20px !important; height: 20px !important; }
  body #floatingBottomNav .liquid-lens {
    top: 5px !important; bottom: 5px !important; height: calc(100% - 10px) !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  /* The right focus card keeps every action inside a two-column grid. */
  body.reference-ui .bg-honeycomb-active #bg-universe-hud-bar {
    width: min(380px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    right: 16px !important; left: auto !important;
  }
  body.reference-ui .bg-honeycomb-active #bg-universe-focus-card {
    position: relative !important; min-width: 0 !important; max-width: 100% !important;
    box-sizing: border-box !important; overflow: hidden !important;
    padding: 16px !important; gap: 12px !important;
    border-radius: 26px !important;
    max-height: calc(100dvh - 240px); overflow-y: auto !important; overflow-x: hidden !important;
    background: var(--wg-surface) !important;
    border: 1px solid var(--wg-border-hover) !important;
    box-shadow: var(--wg-shadow), 0 0 24px rgb(125 211 252 / .12) !important;
  }
  body #bg-universe-focus-card .bg-ufc-top { align-items: flex-start; gap: 12px !important; padding-right: 28px; }
  body #bg-universe-focus-card .bg-ufc-thumb { width: 68px !important; min-width: 68px !important; height: 68px !important; flex: 0 0 68px; }
  body #bg-universe-focus-card .bg-ufc-thumb :is(canvas, img) { width: 64px !important; height: 64px !important; object-fit: contain; }
  body #bg-universe-focus-card .bg-ufc-title-row { flex-wrap: wrap; gap: 6px; }
  body #bg-universe-focus-card .bg-ufc-title { white-space: normal; overflow-wrap: anywhere; font-size: 19px !important; line-height: 1.2; }
  body #bg-universe-focus-card .bg-ufc-family { white-space: normal; line-height: 1.4; }
  body #bg-universe-focus-card .bg-ufc-actions {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important;
  }
  body #bg-universe-focus-card .bg-ufc-actions button {
    width: 100% !important; min-width: 0 !important; max-width: 100% !important; height: auto !important;
    box-sizing: border-box !important;
    min-height: 44px !important; padding: 8px 10px !important;
    font-size: 13px !important; line-height: 1.3; white-space: nowrap !important;
    overflow: hidden !important; gap: 6px !important;
  }
  body #bg-universe-focus-card .bg-ufc-actions button span { min-width: 0 !important; }
  body #bg-universe-focus-card .bg-ufc-actions button span.bg-btn-icon { flex-shrink: 0 !important; }
  body #bg-universe-focus-card .bg-ufc-actions button span:not(.bg-btn-icon):not(.bg-btn-arrow) {
    overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; min-width: 0 !important;
  }
  body #bg-universe-focus-card .bg-ufc-actions button[hidden] { display: none !important; }
  body #bg-universe-focus-card #bg-btn-ufc-rotam:not([hidden]) ~ #bg-hc-discover {
    grid-column: 1 / -1 !important;
  }
  body #bg-universe-focus-card #bg-btn-ufc-turkiye-explorer:not([style*="display: none"]):not([style*="display:none"]) ~ #bg-hc-discover {
    grid-column: auto !important;
  }
  body #bg-universe-focus-card .bg-ufc-actions button:only-child {
    grid-column: 1 / -1 !important;
  }
  body #bg-universe-focus-card #bg-focus-close {
    position: absolute !important; top: 10px; right: 10px;
    width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important; max-height: 32px !important; padding: 0 !important;
  }
  @media (max-width: 768px) {
    body.reference-ui #floatingBottomNav.floating-nav-dock { bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
    body.reference-ui #floatingBottomNav.floating-nav-dock .floating-nav-capsule { height: 56px !important; min-height: 56px !important; max-height: 56px !important; padding: 5px 4px !important; gap: 2px !important; }
    body.reference-ui #floatingBottomNav .float-tab .tab-label { font-size: 10.5px !important; }
    body.reference-ui #floatingBottomNav .float-tab .nav-icon-svg { width: 18px !important; height: 18px !important; }
    body.reference-ui .bg-honeycomb-active #bg-universe-hud-bar { width: min(380px, calc(100vw - 16px)) !important; right: 8px !important; max-width: calc(100vw - 16px) !important; }
    body.reference-ui .bg-honeycomb-active #bg-universe-focus-card { padding: 14px !important; max-height: calc(100dvh - 200px); }
  }
}

/* Collection dock shares the unified Frosted Glass material. */
@layer warm-glass {
  :root {
    --wg-collection-nav-filter: var(--wg-filter);
    --wg-collection-nav-surface: var(--wg-surface);
  }
  body .bg-honeycomb-active .bg-collection-planets-dock {
    background: var(--wg-collection-nav-surface) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-shadow) !important;
    backdrop-filter: var(--wg-collection-nav-filter) !important;
    -webkit-backdrop-filter: var(--wg-collection-nav-filter) !important;
  }
  :root[data-glass-quality="classic"],
  :root[data-glass-quality="low"] {
    --wg-collection-nav-filter: none;
    --wg-collection-nav-surface: #252c3e;
  }
  @media (prefers-reduced-transparency: reduce) {
    :root {
      --wg-collection-nav-filter: none;
      --wg-collection-nav-surface: #252c3e;
    }
  }
}

/* Global navigation has one transparent Frosted Glass design in every optical quality mode.
   Low/classic disables blur, without replacing the dock with an opaque bar. */
@layer warm-glass {
  :root {
    --wg-nav-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.07) 60%),
      linear-gradient(rgba(22, 28, 44, 0.26), rgba(22, 28, 44, 0.26)),
      rgba(255, 255, 255, 0.12);
  }
  body.reference-ui :is(.topbar.apple-header, .header-inner, .header-right-group,
    .header-right-group.kk-command-dock-ready, .header-utility-btns) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body.reference-ui .header-right-group :is(.glass-circle-btn, .profile-capsule,
    .coin-capsule, .kk-atmosphere-switcher-btn, .header-icon-btn),
  body.reference-ui #floatingBottomNav.floating-nav-dock .floating-nav-capsule {
    background: var(--wg-nav-surface) !important;
    border: 1px solid var(--wg-border) !important;
    backdrop-filter: var(--wg-filter) !important;
    -webkit-backdrop-filter: var(--wg-filter) !important;
    box-shadow: var(--wg-shadow) !important;
    color: var(--wg-text) !important;
  }
  /* Header controls are managed by child-glass.css */
  body.reference-ui #floatingBottomNav .liquid-lens {
    background: rgba(255,225,183,.2) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.4) !important;
  }
  body.reference-ui #floatingBottomNav .float-tab {
    background: transparent !important;
    color:#fff8ef !important;
    text-shadow:0 1px 3px rgba(0,0,0,.65) !important;
  }
  body.reference-ui #floatingBottomNav .float-tab.is-current {
    background:rgba(255,225,183,.12) !important;
  }
  body.reference-ui #floatingBottomNav .float-tab.is-popover-open {
    background: rgba(251, 191, 36, 0.24) !important;
    border-color: rgba(254, 240, 138, 0.52) !important;
    color: #fef08a !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 16px rgba(245, 158, 11, 0.25) !important;
  }
}

@layer warm-glass {
  /* Opacity promotion creates a backdrop root and prevents the inner capsule
     from sampling the scene. Keep the outer positioning layer transparent. */
  body.reference-ui #floatingBottomNav.floating-nav-dock {
    will-change: transform !important;
    opacity: 1 !important;
  }
}

/* Gezegen üst araçları: dairesel simge düğmelerinde metin taşmasını önle. */
@layer warm-glass {
  body #newGameView .bg-hud-group-right :is(#bg-btn-universe, .bg-hud-icon-btn) {
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; flex: 0 0 44px !important;
    width: 44px !important; min-width: 44px !important; max-width: 44px !important;
    height: 44px !important; padding: 0 !important; gap: 0 !important;
    position: relative !important; border-radius: 50% !important;
  }
  body #newGameView .bg-hud-group-right :is(#bg-btn-universe, .bg-hud-icon-btn) .bg-hud-label {
    display: none !important;
  }
  body #newGameView .bg-hud-group-right :is(#bg-btn-universe, .bg-hud-icon-btn) svg {
    flex: 0 0 22px !important; width: 22px !important; height: 22px !important;
    position: static !important; margin: 0 !important;
  }
  body #newGameView .bg-hud-group-right { gap: 6px !important; }
}
