/* Oyun Fikri Borsası — mobile-only presentation layer.
   This file is loaded for mobile-sized and touch-only viewports. Desktop rules stay in desktop.css. */

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* One fixed 9:16 frame. The document itself must never become a scroller. */
  html,
  body,
  #root {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .world-app,
  .world-stage,
  .world-stage .scene-plane {
    transform: none !important;
    zoom: 1 !important;
    scale: 1 !important;
    transform-origin: 50% 50% !important;
  }

  .world-app {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    min-width: 0 !important;
    min-height: 100svh !important;
    max-width: 100vw !important;
    max-height: 100svh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: auto !important;
  }

  .world-stage {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100svh !important;
    min-width: 0 !important;
    min-height: 100svh !important;
    max-width: 100vw !important;
    max-height: 100svh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: manipulation !important;
  }

  .world-stage .scene-plane {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  /* Keep the supplied artwork and 9:16 composition; bias the shared frame toward the sky. */
  .world-stage .scene-plane {
    background-color: #07131a !important;
    background-image: url('/mobile-day-vertical-1080.webp?v=mobile-reference-20260912-2') !important;
    /* Start the supplied vertical artwork at the top; never create a black band. */
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: 100% 104% !important;
  }

  .world-app.night-theme .world-stage .scene-plane,
  .night-theme .world-stage .scene-plane {
    background-image: url('/mobile-night-vertical-1080.webp?v=mobile-reference-20260912-2') !important;
  }

  /* Hide legacy layers: the day/night reference already contains all lighting. */
  .world-stage .tree-art,
  .world-stage .night-door-art,
  .world-stage .tree-glow,
  .world-stage .night-sky-effects,
  .world-stage .scene-vignette,
  .world-stage .star-field,
  .world-stage .moon-sky-clear,
  .world-stage .moon-orb,
  .world-stage .moonlight-haze {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: none !important;
    object-position: center center !important;
  }

  /* Compact but roomy top controls. Every action remains a real touch target. */
  .topbar {
    z-index: 60 !important;
    pointer-events: none !important;
    align-items: flex-start !important;
    gap: 7px !important;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
    /* Let the supplied night sky remain visible behind the mobile header. */
    background: transparent !important;
  }

  .brand,
  .worlds-button,
  .mobile-menu,
  .mobile-menu * {
    pointer-events: auto !important;
  }

  .brand {
    flex: 1 1 auto !important;
    max-width: calc(100% - 164px) !important;
    min-height: 48px !important;
    gap: 6px !important;
  }

  .brand-symbol {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
  }

  .brand-copy {
    min-width: 0 !important;
    transform: translateY(-1px) !important;
  }

  .brand-copy strong {
    max-width: 100% !important;
    font-size: clamp(.78rem, 3.4vw, 1.02rem) !important;
    letter-spacing: .02em !important;
    line-height: 1.08 !important;
  }

  .brand-tagline {
    top: calc(100% + 2px) !important;
    left: 0 !important;
    font-size: .47rem !important;
    letter-spacing: .075em !important;
    opacity: .70 !important;
  }

  .topbar-actions {
    flex: 0 0 auto !important;
    align-items: flex-start !important;
    gap: 6px !important;
    min-width: 0 !important;
    /* Keep the moon clear of the two fixed action buttons. */
    transform: translate(6px, 0) !important;
  }

  .topbar-actions .worlds-button {
    width: auto !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 90px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    border-radius: 14px !important;
    font-size: .68rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .topbar-actions .worlds-button svg {
    flex: none !important;
    width: 17px !important;
    height: 17px !important;
  }

  .topbar-actions .worlds-button:active,
  .topbar-actions .worlds-button:focus-visible {
    border-color: #f0c77f !important;
    outline: 2px solid #f0c77f !important;
    outline-offset: 2px !important;
  }

  /* The menu is a stable anchored sheet, not a page element that can push the scene. */
  .mobile-menu {
    z-index: 70 !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    display: grid !important;
    gap: 6px !important;
    width: min(300px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100svh - 76px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 9px !important;
    border: 1px solid rgba(225, 184, 117, .62) !important;
    border-radius: 18px !important;
    background: linear-gradient(165deg, rgba(20, 41, 31, .98), rgba(5, 14, 11, .98)) !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .7), inset 0 1px rgba(255, 255, 255, .12) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-menu > button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(214, 173, 104, .22) !important;
    border-radius: 12px !important;
    color: #f8e8c9 !important;
    background: rgba(8, 22, 15, .68) !important;
    text-align: left !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    touch-action: manipulation !important;
  }

  .mobile-menu > button svg {
    flex: none !important;
    width: 19px !important;
    height: 19px !important;
    color: #e5b66c !important;
  }

  .mobile-menu > button:hover,
  .mobile-menu > button:focus-visible,
  .mobile-menu > button:active {
    color: #fff4dc !important;
    border-color: #edc27c !important;
    background: rgba(89, 61, 31, .62) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(225, 179, 107, .18) !important;
  }

  /* Category buttons: large invisible hit areas with small readable badges. */
  .scene-plane .island-hotspot {
    z-index: 20 !important;
    min-width: 76px !important;
    min-height: 76px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: transparent !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .scene-plane .hotspot-strategy {
    width: 30% !important;
    height: 18% !important;
    top: 41% !important;
    left: 21% !important;
  }

  .scene-plane .hotspot-action {
    width: 30% !important;
    height: 18% !important;
    top: 38% !important;
    left: 73% !important;
  }

  .scene-plane .hotspot-rpg {
    width: 25% !important;
    height: 19% !important;
    top: 60% !important;
    left: 16% !important;
  }

  .scene-plane .hotspot-center {
    width: 42% !important;
    height: 29% !important;
    top: 84% !important;
    left: 51% !important;
  }

  .scene-plane .hotspot-label {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 1 !important;
    min-height: 27px !important;
    max-width: calc(100vw - 28px) !important;
    padding: 0 7px !important;
    border: 1px solid rgba(236, 194, 124, .66) !important;
    border-radius: 999px !important;
    color: #fff0d2 !important;
    background: rgba(7, 19, 14, .8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .08) !important;
    font-size: .52rem !important;
    font-weight: 700 !important;
    letter-spacing: .025em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) !important;
  }

  .scene-plane .hotspot-label-wide {
    min-height: 29px !important;
    padding-inline: 8px !important;
    font-size: .56rem !important;
  }

  /* Keep every island name at the island's exact upper/lower midpoint. */
  .scene-plane .hotspot-strategy .hotspot-label,
  .scene-plane .hotspot-action .hotspot-label,
  .scene-plane .hotspot-rpg .hotspot-label,
  .scene-plane .hotspot-center .hotspot-label {
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .scene-plane .island-hotspot:focus-visible {
    border: 2px solid rgba(255, 220, 157, .9) !important;
    background: rgba(238, 188, 105, .12) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(235, 190, 113, .2) !important;
  }

  .scene-plane .island-hotspot:active .hotspot-label {
    background: rgba(107, 70, 31, .94) !important;
    border-color: #ffe0a7 !important;
  }

  .scene-plane .upcoming-island-label {
    z-index: 18 !important;
    top: 46% !important;
    left: 88% !important;
    width: 72px !important;
    max-width: calc(100vw - 16px) !important;
    min-height: 21px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 2px 3px !important;
    border: 1px solid rgba(234, 195, 122, .54) !important;
    border-radius: 999px !important;
    color: #fff1d5 !important;
    background: rgba(8, 21, 15, .68) !important;
    font-size: .43rem !important;
    line-height: 1.05 !important;
    white-space: normal !important;
    transform: translate(-50%, -50%) !important;
  }

  /* Panels are fixed above the scene; only their content column scrolls. */
  /* Opening a mobile panel must not dim or blur the fixed world scene. */
  .panel-layer,
  [data-slot="dialog-overlay"],
  [data-radix-dialog-overlay] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 50 !important;
    overflow: hidden !important;
    background: transparent !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .theme-panel,
  .theme-panel[data-slot="dialog-content"] {
    position: fixed !important;
    z-index: 51 !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    box-sizing: border-box !important;
    width: min(560px, calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100svh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    transform: translate(-50%, -50%) !important;
    translate: none !important;
  }

  .theme-panel .panel-bar {
    flex: 0 0 auto !important;
    min-height: 60px !important;
    padding: 7px 9px !important;
  }

  .theme-panel .panel-control,
  .theme-panel button,
  .entry-gate-card button {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .theme-panel button:not(.island-hotspot) {
    min-height: 46px !important;
  }

  .theme-panel .panel-control {
    min-width: 54px !important;
    min-height: 46px !important;
    padding: 0 10px !important;
    border-radius: 11px !important;
    font-size: .76rem !important;
  }

  .theme-panel .panel-context {
    min-width: 0 !important;
    font-size: .61rem !important;
  }

  .theme-panel .panel-scroll {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .theme-panel .panel-heading,
  .theme-panel .panel-content {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }

  .theme-panel .panel-heading {
    padding: 16px 16px 12px !important;
  }

  .theme-panel .panel-heading h1 {
    font-size: clamp(1.28rem, 6vw, 1.72rem) !important;
    line-height: 1.12 !important;
  }

  .theme-panel .panel-heading p {
    font-size: .82rem !important;
    line-height: 1.4 !important;
  }

  .theme-panel .panel-content {
    padding: 14px 16px 20px !important;
  }

  .theme-panel .panel-content > *,
  .theme-panel .panel-content * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }

  .theme-panel .world-list,
  .theme-panel .action-list,
  .theme-panel .idea-list {
    gap: 9px !important;
  }

  .theme-panel .world-list button,
  .theme-panel .action-list button {
    width: 100% !important;
    min-height: 72px !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    white-space: normal !important;
  }

  .theme-panel .idea-card {
    min-height: 100px !important;
    padding: 10px !important;
  }

  .theme-panel .soft-action,
  .theme-panel .wide-action,
  .theme-panel .follow-action,
  .theme-panel .report-link,
  .theme-panel .form-actions > * {
    min-height: 48px !important;
    max-width: 100% !important;
  }

  .theme-panel .soft-action,
  .theme-panel .wide-action,
  .theme-panel .follow-action {
    padding: 10px 13px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }

  .theme-panel .wide-action,
  .theme-panel .follow-action {
    width: 100% !important;
    justify-content: center !important;
  }

  .theme-panel .form-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .theme-panel input,
  .theme-panel select,
  .theme-panel textarea {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .theme-panel textarea {
    min-height: 112px !important;
    resize: vertical !important;
  }

  .theme-panel .panel-search {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .theme-panel .panel-search input {
    min-height: 48px !important;
  }

  /* Login/register is also a panel: keep the same touch and scroll contract. */
  .entry-gate-layer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
    overflow: hidden !important;
    padding: 10px !important;
  }

  .entry-gate-card {
    width: min(520px, calc(100vw - 20px)) !important;
    max-width: 100% !important;
    max-height: calc(100svh - 20px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .entry-panel-control,
  .entry-gate-card button {
    min-width: 48px !important;
    min-height: 48px !important;
  }

  .form-error,
  [role="alert"] {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Mobile-only single hamburger control; desktop controls remain unchanged. */
  .topbar {
    position: fixed !important;
  }

  .topbar-actions {
    gap: 0 !important;
    transform: translate(6px, 0) !important;
  }

  .topbar-actions .explore-button {
    display: none !important;
  }

  .topbar-actions .worlds-button:not(.explore-button) {
    background: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #f6e5c9 !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 14px !important;
  }

  .topbar-actions .worlds-button:not(.explore-button)::after,
  .topbar-actions .worlds-button:not(.explore-button) span {
    display: none !important;
    content: none !important;
  }

  .topbar-actions .worlds-button:not(.explore-button) svg {
    width: 21px !important;
    height: 21px !important;
  }

  /* Show the existing Explore button as the first action row when the menu opens. */
  .topbar-actions .worlds-button:not(.explore-button):focus-visible,
  .topbar-actions .worlds-button:not(.explore-button):active {
    background: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .topbar:has(.mobile-menu) .topbar-actions .explore-button {
    display: flex !important;
    position: absolute !important;
    top: calc(100% + 17px) !important;
    right: calc(max(10px, env(safe-area-inset-right)) + 10px) !important;
    z-index: 72 !important;
    width: calc(100vw - 40px) !important;
    max-width: 280px !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    justify-content: flex-start !important;
    gap: 11px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(214, 173, 104, .22) !important;
    border-radius: 12px !important;
    color: #f8e8c9 !important;
    background: rgba(8, 22, 15, .68) !important;
    text-align: left !important;
    font-size: .82rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    touch-action: manipulation !important;
  }

  .topbar:has(.mobile-menu) .topbar-actions .explore-button span {
    display: inline !important;
  }

  .topbar:has(.mobile-menu) .topbar-actions .explore-button::after {
    content: none !important;
  }

  .topbar:has(.mobile-menu) .topbar-actions .explore-button svg {
    flex: none !important;
    width: 19px !important;
    height: 19px !important;
    color: #e5b66c !important;
  }

  /* Do not leave the menu above an opened panel after Explore is tapped. */
  .topbar:has(.mobile-menu) .mobile-menu:has(~ .panel-layer),
  body:has(.theme-panel) .mobile-menu {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Day mode only: match the hamburger lines to the dark tree green. */
  .world-app:not(.night-theme) .topbar-actions .worlds-button:not(.explore-button) svg,
  .world-app:not(.night-theme) .topbar-actions .worlds-button:not(.explore-button) svg * {
    color: #1f562f !important;
    stroke: #245f35 !important;
    opacity: 1 !important;
    filter: none !important;
  }

  /* Day mode: keep the complete mobile site name fully opaque and readable. */
  .world-app:not(.night-theme) .brand,
  .world-app:not(.night-theme) .brand-copy,
  .world-app:not(.night-theme) .brand-copy strong,
  .world-app:not(.night-theme) .brand-copy strong::before,
  .world-app:not(.night-theme) .brand-copy strong::after {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .world-app:not(.night-theme) .brand-copy strong {
    position: relative !important;
    justify-self: start !important;
    width: max-content !important;
    max-width: 100% !important;
    color: #d19a31 !important;
    -webkit-text-fill-color: #d19a31 !important;
    background: transparent !important;
    background-image: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    text-shadow: 0 1px 1px rgba(240, 196, 109, .98), 0 2px 4px rgba(6, 18, 8, .98) !important;
  }

  .world-app:not(.night-theme) .brand-copy strong::before,
  .world-app:not(.night-theme) .brand-copy strong::after {
    position: absolute !important;
    top: 0 !important;
    display: block !important;
    color: #1f562f !important;
    -webkit-text-fill-color: #1f562f !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    line-height: inherit !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 1px rgba(161, 189, 134, .98), 0 2px 4px rgba(6, 18, 8, .98) !important;
    pointer-events: none !important;
  }

  .world-app:not(.night-theme) .brand-copy strong::before {
    content: "OYUN" !important;
    left: 0 !important;
  }

  .world-app:not(.night-theme) .brand-copy strong::after {
    content: "BORSASI" !important;
    right: 0 !important;
  }
  
  /* Admin-only mobile scene control panel. The artwork and desktop styles stay untouched. */
  body[data-mobile-layout-editor="true"] .mobile-layout-editor-target {
    z-index: 95 !important;
    outline: 2px dashed rgba(255, 221, 151, .92) !important;
    outline-offset: 3px !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: auto !important;
  }

  body[data-mobile-layout-editor="true"] .mobile-layout-editor-target.mobile-layout-editor-selected {
    outline-color: #fff0bd !important;
    outline-style: solid !important;
    box-shadow: 0 0 0 4px rgba(26, 77, 42, .34), 0 0 18px rgba(255, 214, 126, .46) !important;
  }

  .mobile-layout-editor,
  .mobile-layout-editor-denied {
    position: fixed !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    z-index: 120 !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    border: 1px solid rgba(237, 194, 124, .78) !important;
    border-radius: 15px !important;
    color: #fff0d2 !important;
    background: linear-gradient(165deg, rgba(18, 43, 29, .99), rgba(4, 15, 10, .99)) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .12) !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.2 !important;
  }

  .mobile-layout-editor {
    display: grid !important;
    gap: 7px !important;
    max-height: min(44svh, 380px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 10px !important;
    overscroll-behavior: contain !important;
  }

  .mobile-layout-editor .mobile-layout-editor-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .mobile-layout-editor .mobile-layout-editor-heading strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #f6d99e !important;
    font-size: .68rem !important;
    letter-spacing: .035em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-layout-editor .mobile-layout-editor-field {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    color: #eadfc9 !important;
    font-size: .61rem !important;
    font-weight: 700 !important;
  }

  .mobile-layout-editor select {
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 8px !important;
    border: 1px solid rgba(224, 182, 111, .7) !important;
    border-radius: 9px !important;
    color: #fff1d3 !important;
    background: #102b1b !important;
    font: 700 .64rem/1 Arial, sans-serif !important;
  }

  .mobile-layout-editor .mobile-layout-editor-selected {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
    color: #f5d99d !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
  }

  .mobile-layout-editor .mobile-layout-editor-selected span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-layout-editor .mobile-layout-editor-selected small {
    flex: none !important;
    color: #cbd9c8 !important;
    font-size: .56rem !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  .mobile-layout-editor .mobile-layout-editor-step-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
  }

  .mobile-layout-editor .mobile-layout-editor-step-row > span {
    margin-right: auto !important;
    color: #d8e0cf !important;
    font-size: .59rem !important;
  }

  .mobile-layout-editor button {
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 7px 9px !important;
    border: 1px solid rgba(224, 182, 111, .66) !important;
    border-radius: 9px !important;
    color: #ffeecb !important;
    background: rgba(7, 23, 14, .9) !important;
    font: 700 .61rem/1.1 Arial, sans-serif !important;
    white-space: nowrap !important;
    touch-action: manipulation !important;
  }

  .mobile-layout-editor .mobile-layout-editor-step-row button {
    min-width: 39px !important;
    padding-inline: 5px !important;
    color: #dfebd9 !important;
  }

  .mobile-layout-editor .mobile-layout-editor-step-row button.mobile-layout-editor-step-active {
    border-color: #ffe0a4 !important;
    color: #152819 !important;
    background: #d9b66e !important;
  }

  .mobile-layout-editor .mobile-layout-editor-nudge {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 42px)) !important;
    grid-template-rows: repeat(3, 36px) !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .mobile-layout-editor .mobile-layout-editor-nudge button {
    width: 42px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: .98rem !important;
  }

  .mobile-layout-editor .mobile-layout-editor-nudge [data-editor-action="reset"] {
    color: #f5d39a !important;
    font-size: .95rem !important;
  }

  .mobile-layout-editor .mobile-layout-editor-actions {
    display: flex !important;
    gap: 6px !important;
  }

  .mobile-layout-editor .mobile-layout-editor-actions button {
    flex: 1 1 0 !important;
  }

  .mobile-layout-editor [data-editor-action="save"] {
    border-color: rgba(137, 208, 146, .82) !important;
    color: #d9f4d2 !important;
    background: rgba(22, 74, 39, .92) !important;
  }

  .mobile-layout-editor [data-editor-action="close"] {
    margin-left: auto !important;
    padding-inline: 8px !important;
    border-color: rgba(244, 169, 139, .7) !important;
    color: #ffd8c7 !important;
  }

  .mobile-layout-editor button:hover,
  .mobile-layout-editor button:focus-visible,
  .mobile-layout-editor button:active {
    border-color: #ffe0a4 !important;
    color: #fff8e8 !important;
    background: rgba(81, 61, 31, .92) !important;
    outline: none !important;
  }

  .mobile-layout-editor-denied {
    padding: 12px !important;
    color: #ffd8c7 !important;
    background: rgba(86, 31, 24, .96) !important;
    font-size: .66rem !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  .mobile-layout-editor-pending {
    color: #ffe7b0 !important;
    background: rgba(57, 43, 19, .96) !important;
    border-color: rgba(238, 192, 111, .82) !important;
  }

  .mobile-layout-editor-claim {
    display: grid !important;
    gap: 6px !important;
    text-align: left !important;
  }

  .mobile-layout-editor-claim strong {
    color: #ffe1d1 !important;
    font-size: .68rem !important;
  }

  .mobile-layout-editor-claim > span {
    color: #f6cfc1 !important;
    font-size: .59rem !important;
    font-weight: 400 !important;
  }

  .mobile-layout-editor-claim-row {
    display: flex !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  .mobile-layout-editor-denied,
  .mobile-layout-editor-denied *,
  .mobile-layout-editor-claim,
  .mobile-layout-editor-claim * {
    pointer-events: auto !important;
  }

  .mobile-layout-editor-claim input {
    user-select: text !important;
    -webkit-user-select: text !important;
    caret-color: #fff0e7 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 9px !important;
    border: 1px solid rgba(247, 184, 157, .68) !important;
    border-radius: 9px !important;
    color: #fff0e7 !important;
    background: rgba(36, 13, 10, .76) !important;
    font: .62rem/1 Arial, sans-serif !important;
  }

  .mobile-layout-editor-claim button {
    flex: none !important;
    min-height: 36px !important;
    color: #28150e !important;
    background: #f2bd91 !important;
  }

  .mobile-layout-editor-claim small {
    min-height: 14px !important;
    color: #ffe1d1 !important;
    font-size: .58rem !important;
  }
}

  /* Final day-brand contrast lock: opaque mobile title without changing the tagline. */
  .world-app:not(.night-theme) .topbar .brand-copy,
  .world-app:not(.night-theme) .topbar .brand-copy strong,
  .world-app:not(.night-theme) .topbar .brand-copy strong::before,
  .world-app:not(.night-theme) .topbar .brand-copy strong::after {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .world-app:not(.night-theme) .topbar .brand-copy strong {
    color: #e4aa3a !important;
    -webkit-text-fill-color: #e4aa3a !important;
    font-weight: 800 !important;
    text-shadow:
      0 1px 0 #fff0a8,
      0 2px 0 #9b651c,
      0 3px 5px #061208 !important;
    -webkit-text-stroke: .22px #6c4717 !important;
  }

  .world-app:not(.night-theme) .topbar .brand-copy strong::before,
  .world-app:not(.night-theme) .topbar .brand-copy strong::after {
    color: #174c29 !important;
    -webkit-text-fill-color: #174c29 !important;
    font-weight: 800 !important;
    text-shadow:
      0 1px 0 #a9c887,
      0 2px 0 #0b2b18,
      0 3px 5px #061208 !important;
    -webkit-text-stroke: .22px #0b2b18 !important;
  }


  /* Mobile day mode: use one shared amber color for every site-name word. */
  .world-app:not(.night-theme) .topbar .brand-copy strong,
  .world-app:not(.night-theme) .topbar .brand-copy strong::before,
  .world-app:not(.night-theme) .topbar .brand-copy strong::after {
    color: #e4aa3a !important;
    -webkit-text-fill-color: #e4aa3a !important;
    -webkit-text-stroke: .22px #6c4717 !important;
    text-shadow:
      0 1px 0 #fff0a8,
      0 2px 0 #9b651c,
      0 3px 5px #061208 !important;
  }


  /* Mobile day mode: slightly enlarge and green the brand tagline. */
  .world-app:not(.night-theme) .topbar .brand-tagline {
    font-size: .50rem !important;
    color: #1f562f !important;
    -webkit-text-fill-color: #1f562f !important;
    opacity: .70 !important;
    text-shadow:
      0 1px 0 rgba(214, 235, 181, .72),
      0 2px 3px rgba(6, 18, 8, .7) !important;
  }


  /* Mobile day mode: strengthen the green brand tagline without changing its size or opacity. */
  .world-app:not(.night-theme) .topbar .brand-tagline {
    font-weight: 700 !important;
    -webkit-text-stroke: .08px #163f27 !important;
  }


  /* Mobile day mode: make the green brand tagline clearly readable over the artwork. */
  .world-app:not(.night-theme) .topbar .brand-tagline {
    font-size: .56rem !important;
    font-weight: 800 !important;
    color: #236b37 !important;
    -webkit-text-fill-color: #236b37 !important;
    opacity: 1 !important;
    -webkit-text-stroke: .12px #0b321a !important;
    text-shadow:
      0 1px 0 rgba(11, 50, 26, .95),
      0 2px 4px rgba(4, 15, 9, .98) !important;
  }

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .category-guide,
  .category-context {
    display: grid !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .category-guide-heading {
    display: grid !important;
    gap: 3px !important;
    padding: 0 1px !important;
  }
  .category-guide-heading strong {
    color: #f1dfbd !important;
    font-size: .82rem !important;
    letter-spacing: .025em !important;
  }
  .category-guide-heading span {
    color: rgba(224, 232, 225, .74) !important;
    font-size: .7rem !important;
    line-height: 1.35 !important;
  }
  .category-guide-list {
    display: grid !important;
    gap: 7px !important;
  }
  .category-guide-card {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
    padding: 9px !important;
    background: rgba(7, 20, 14, .56) !important;
    border: 1px solid rgba(220, 176, 102, .28) !important;
    border-radius: 11px !important;
  }
  .category-guide-world {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
    padding: 0 !important;
    color: #f5e1bb !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left !important;
    cursor: pointer !important;
    font: inherit !important;
  }
  .category-guide-world:hover,
  .category-guide-world:focus-visible {
    color: #ffe1a0 !important;
    outline: none !important;
  }
  .category-guide-world small,
  .category-context-label,
  .category-guide-tags > small {
    color: #d0a766 !important;
    letter-spacing: .09em !important;
    font-size: .55rem !important;
    font-weight: 800 !important;
  }
  .category-guide-world strong {
    overflow-wrap: anywhere !important;
    font-size: .78rem !important;
  }
  .category-guide-world span {
    color: rgba(224, 232, 225, .66) !important;
    font-size: .63rem !important;
    line-height: 1.25 !important;
  }
  .category-guide-tags,
  .category-context-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
  }
  .category-tag {
    min-height: 28px !important;
    padding: 4px 8px !important;
    color: #e8c47f !important;
    background: rgba(101, 70, 35, .28) !important;
    border: 1px solid rgba(199, 155, 93, .45) !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: .66rem !important;
    line-height: 1.1 !important;
  }
  .category-tag:hover,
  .category-tag:focus-visible,
  .category-tag.selected {
    color: #fff0c9 !important;
    background: rgba(113, 78, 38, .64) !important;
    border-color: rgba(238, 192, 111, .84) !important;
    outline: none !important;
  }
  .category-context {
    gap: 5px !important;
    margin-top: 7px !important;
    margin-bottom: 0 !important;
    padding: 8px 9px !important;
    background: rgba(7, 20, 14, .48) !important;
    border: 1px solid rgba(220, 176, 102, .24) !important;
    border-radius: 10px !important;
  }
}


  /* Mobile fixed frame: prevent browser pinch/double-tap zoom without disabling panel scrolling. */
  html,
  body,
  #root,
  .world-app,
  .world-stage {
    touch-action: pan-x pan-y !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Motion setting: make full effects clearly visible without moving the camera, zoom, or frame. */
  @keyframes ofb-tree-glow-breathe {
    0%, 100% { opacity: .20; filter: brightness(.85) saturate(.80); }
    50% { opacity: 1; filter: brightness(1.55) saturate(1.35); }
  }

  html:not(.reduce-motion) .tree-glow {
    animation: ofb-tree-glow-breathe 4s ease-in-out infinite !important;
    will-change: opacity, filter !important;
  }

  html.reduce-motion .tree-glow,
  html.reduce-motion .upcoming-island-label,
  html.reduce-motion .explore-hint,
  html.reduce-motion .selection-toast {
    animation: none !important;
    will-change: auto !important;
    filter: none !important;
  }
}


  /* Mobile upcoming badge: replace the old label with a balanced hourglass + text row. */
  .scene-plane .upcoming-island-label {
    width: 78px !important;
    min-height: 24px !important;
    padding: 3px 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .scene-plane .upcoming-island-label > * {
    display: none !important;
  }

  .scene-plane .upcoming-island-label::before {
    content: "⌛" !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: .56rem !important;
    line-height: 1 !important;
  }

  .scene-plane .upcoming-island-label::after {
    content: "Pek Yakında" !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    font-size: .46rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }


  /* Mobile Fikir Merkezi: place the smaller label over the main door, not the bridge. */
  .scene-plane .hotspot-center {
    width: 38% !important;
    height: 22% !important;
    top: 59% !important;
    left: 51% !important;
  }

  .scene-plane .hotspot-center .hotspot-label {
    min-height: 23px !important;
    padding: 0 6px !important;
    font-size: .46rem !important;
    letter-spacing: .015em !important;
    line-height: 1 !important;
  }


  /* Mobile Fikir Merkezi: lower the door label slightly for a balanced placement. */
  .scene-plane .hotspot-center {
    top: 61% !important;
  }

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Search cleanup: keep the search controls, but remove the category guide beneath them. */
  .category-guide {
    display: none !important;
  }
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Keep search filter checkboxes compact; panel field sizing must not stretch them. */
  .theme-panel .search-check {
    min-width: 0 !important;
  }

  .theme-panel .search-check input[type="checkbox"] {
    flex: 0 0 17px !important;
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-panel .search-check span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Day-only contrast for the lower-right mobile caption; night keeps its existing color. */
  .world-app:not(.night-theme) .scene-caption.caption-right-single {
    color: #174c2b !important;
    -webkit-text-fill-color: #174c2b !important;
    text-shadow:
      0 1px 0 rgba(232, 201, 130, .92),
      0 3px 7px rgba(255, 255, 255, .38),
      0 4px 10px rgba(5, 22, 11, .76) !important;
  }
}

/* Category labels in world panels are informational, not interactive controls. */
.category-context .category-tag,
.category-context .category-tag:hover,
.category-context .category-tag:focus,
.category-context .category-tag:focus-visible {
  cursor: default !important;
  pointer-events: none !important;
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Restore the day caption on narrow phones; the base mobile CSS hides all scene captions below 390px. */
  .world-app:not(.night-theme) .scene-caption.caption-right-single {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-text-stroke: .28px rgba(247, 223, 180, .9) !important;
  }
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Day-only: keep the tagline in the title's amber family, but quieter than the title. */
  .world-app:not(.night-theme) .topbar .brand-tagline {
    color: #e4aa3a !important;
    -webkit-text-fill-color: #e4aa3a !important;
    opacity: .66 !important;
    font-weight: 700 !important;
    -webkit-text-stroke: .08px #6c4717 !important;
    text-shadow:
      0 1px 0 rgba(255, 240, 168, .58),
      0 2px 4px rgba(6, 18, 8, .78) !important;
  }
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .category-tags-field { min-width:0!important; margin:0!important; padding:9px 10px!important; border:1px solid rgba(220,176,102,.24)!important; border-radius:10px!important; background:rgba(7,20,14,.34)!important; }
  .category-tags-field legend { padding:0 3px!important; color:#e8d6b3!important; font-size:.72rem!important; font-weight:800!important; }
  .category-tags-field legend small { color:rgba(224,232,225,.58)!important; font-size:.62rem!important; font-weight:500!important; }
  .category-tag-options { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:5px!important; min-width:0!important; margin-top:3px!important; }
  .category-tag-option { display:flex!important; align-items:center!important; min-width:0!important; gap:5px!important; min-height:30px!important; padding:5px 6px!important; color:#dce8dc!important; background:rgba(4,12,17,.55)!important; border:1px solid rgba(181,201,194,.25)!important; border-radius:8px!important; cursor:pointer!important; font-size:.64rem!important; }
  .category-tag-option input { width:14px!important; height:14px!important; margin:0!important; flex:none!important; accent-color:#e8bd73!important; }
  .category-tag-option span { min-width:0!important; overflow:hidden!important; text-overflow:ellipsis!important; white-space:nowrap!important; }
  .category-tag-option:has(input:checked) { color:#ffe0a1!important; background:rgba(92,63,29,.58)!important; border-color:rgba(238,192,111,.7)!important; }
  .category-tag-option:has(input:disabled:not(:checked)) { opacity:.45!important; cursor:default!important; }
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Enlarge the lower-right mobile caption without moving it or changing night colors. */
  .world-app .scene-caption.caption-right-single {
    font-size: clamp(.95rem, 4.4vw, 1.08rem) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    max-width: calc(100vw - 24px) !important;
  }
}


@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Mobile tagline reset: preserve day/night colors without a gradient or reflection layer. */
  .world-app .topbar .brand-tagline {
    background: transparent !important;
    background-image: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  /* Day-only: keep the tagline in the site's dark green identity color. */
  .world-app:not(.night-theme) .topbar .brand-tagline {
    color: #174c2b !important;
    -webkit-text-fill-color: #174c2b !important;
    opacity: .78 !important;
    font-weight: 800 !important;
    -webkit-text-stroke: .08px #0b321a !important;
    text-shadow:
      0 2px 4px rgba(4, 15, 9, .9) !important;
  }

  /* Keep the lower-right caption balanced while improving its edge contrast. */
  .world-app .scene-caption.caption-right-single {
    font-size: clamp(.82rem, 3.6vw, .94rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .world-app:not(.night-theme) .scene-caption.caption-right-single {
    color: #123d24 !important;
    -webkit-text-fill-color: #123d24 !important;
    -webkit-text-stroke: .42px rgba(248, 228, 177, .94) !important;
    text-shadow:
      0 1px 0 rgba(255, 246, 211, .96),
      0 2px 0 rgba(5, 24, 12, .94),
      0 4px 9px rgba(0, 0, 0, .9) !important;
  }
}

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Keep the teammate-search checkbox compact and horizontally readable on mobile. */
  .theme-panel .idea-form .checkbox-field {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    max-width: 100% !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: normal !important;
  }

  .theme-panel .idea-form .checkbox-field input[type="checkbox"] {
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-panel .idea-form .checkbox-field span {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    font-size: .86rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}


/* entry-legal-links-mobile-balanced-20260919: giriş paneli alt bağlantılarını mobilde dengeli 3x2 düzene al. */
@media (max-width: 800px) {
  .entry-gate-card .entry-legal-links {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px 8px !important;
    justify-items: center !important;
    align-items: center !important;
  }

  .entry-gate-card .entry-legal-links button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 4px 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}

/* entry-gate-mobile-spacing-balanced-20260919: mobil giriş panelinde şifre bağlantısı ve kural bağlantılarını sıkılaştır. */
@media (max-width: 800px) {
  .entry-gate-card .entry-mode-switch {
    min-height: 38px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 2px 4px !important;
    line-height: 1.25 !important;
  }

  .entry-gate-card .entry-mode-switch.reset-password-link {
    margin-top: -3px !important;
  }

  .entry-gate-card .entry-legal-links {
    width: min(100%, 300px) !important;
    margin: -3px auto 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 10px !important;
    justify-content: center !important;
  }

  .entry-gate-card .entry-legal-links button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 3px 2px !important;
  }
}

/* entry-legal-links-hidden-20260919: hukuk ve iletişim bağlantıları menüde bulunduğu için giriş kartında tekrarlanmasın. */
.entry-gate-card .entry-legal-links {
  display: none !important;
  visibility: hidden !important;
  margin: 0 !important;
}

/* essence-indicator-reference-20260920: yüzde göstergesi, tek ilerleme ölçeri ve dengeli eşik sütunları. */
@media (max-width: 800px) {
  .core-progress .milestone-strip {
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  .core-progress .milestone-heading {
    display: grid !important;
    grid-template-columns: auto auto minmax(92px, 1fr) !important;
    gap: 7px !important;
    align-items: center !important;
  }

  .core-progress .milestone-heading span {
    font-size: .61rem !important;
    white-space: nowrap !important;
  }

  .core-progress .milestone-heading .essence-value {
    font-size: .9rem !important;
    white-space: nowrap !important;
  }

  .core-progress .essence-meter {
    position: relative !important;
    width: 50% !important;
    min-width: 92px !important;
    justify-self: start !important;
    height: 20px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 2px solid rgba(226, 184, 111, .78) !important;
    border-radius: 999px !important;
    background: rgba(3, 14, 10, .72) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 9px rgba(224,174,91,.16) !important;
  }

  .core-progress .essence-meter-fill {
    position: absolute !important;
    inset: 2px auto 2px 2px !important;
    max-width: calc(100% - 4px) !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #98703b, #efc77e) !important;
  }

  .core-progress .essence-meter-knob {
    position: absolute !important;
    top: 50% !important;
    width: 15px !important;
    height: 15px !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box !important;
    border: 2px solid #b99155 !important;
    border-radius: 50% !important;
    background: #26362b !important;
    box-shadow: 0 0 0 2px rgba(7, 18, 12, .86), 0 0 8px rgba(235, 190, 111, .22) !important;
  }

  .core-progress .milestone-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border-top: 1px solid rgba(220, 176, 102, .28) !important;
  }

  .core-progress .milestone {
    gap: 3px !important;
    min-width: 0 !important;
    padding: 6px 7px 1px !important;
    border-right: 1px solid rgba(220, 176, 102, .24) !important;
    text-align: left !important;
  }

  .core-progress .milestone:last-child {
    border-right: 0 !important;
  }

  .core-progress .milestone-top {
    gap: 3px !important;
  }

  .core-progress .milestone-top strong {
    font-size: .68rem !important;
  }

  .core-progress .milestone-top small {
    font-size: .48rem !important;
  }

  .core-progress .milestone > span {
    font-size: .56rem !important;
    text-align: left !important;
  }
}

/* essence-meter-lock-markers-20260920: Sayısal eşik satırı yerine yüzde çubuğu üstünde kilitler. */
@media (max-width: 800px) {
  .core-progress .essence-meter-lock {
    position: absolute !important;
    top: 50% !important;
    left: 0;
    z-index: 5 !important;
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }
  .core-progress .essence-meter-lock-icon {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 18px !important;
    height: 18px !important;
    transform: translate(-50%, -50%) !important;
    color: #f6d38d !important;
    font-size: .76rem !important;
    line-height: 1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.8) !important;
  }
  .core-progress .essence-meter-lock-label {
    position: absolute !important;
    top: 13px !important;
    left: 0 !important;
    transform: translateX(-50%) !important;
    color: #e4d0a8 !important;
    font-size: .43rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.85) !important;
  }
  .core-progress .essence-meter-lock.unlocked .essence-meter-lock-icon {
    filter: drop-shadow(0 0 4px rgba(239,199,126,.72)) !important;
  }
}


/* essence-meter-mobile-layout-20260920-1: Başlık/yüzde üstte, kısa ilerleme çubuğu altta. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "essence-label essence-value"
      "essence-meter essence-meter" !important;
    gap: 8px 10px !important;
    align-items: center !important;
  }

  .core-progress .milestone-heading > span:first-child {
    grid-area: essence-label !important;
    justify-self: start !important;
  }

  .core-progress .milestone-heading > .essence-value {
    grid-area: essence-value !important;
    justify-self: end !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    grid-area: essence-meter !important;
    width: 50% !important;
    min-width: 92px !important;
    justify-self: center !important;
  }
}


/* essence-meter-lock-visibility-20260920-2: Kilitler çubuğun üst kenarında belirgin ve taşmasız görünür. */
@media (max-width: 800px) {
  .core-progress .essence-meter {
    margin-top: 8px !important;
  }

  .core-progress .essence-meter-lock {
    top: 0 !important;
    transform: translateY(0) !important;
  }

  .core-progress .essence-meter-lock-icon {
    width: 22px !important;
    height: 22px !important;
    border: 1px solid rgba(246, 211, 141, .9) !important;
    border-radius: 50% !important;
    background: rgba(7, 19, 14, .96) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.72), 0 0 7px rgba(239,199,126,.34) !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-size: .84rem !important;
  }
}


/* essence-meter-lock-css-icon-20260920-1: Kilit simgesi emoji yerine CSS ile çizilir. */
@media (max-width: 800px) {
  .core-progress .essence-meter-lock-icon {
    position: relative !important;
    font-size: 0 !important;
  }

  .core-progress .essence-meter-lock-icon::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 4px !important;
    width: 9px !important;
    height: 8px !important;
    transform: translateX(-50%) !important;
    border-radius: 2px !important;
    background: #f6d38d !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.6) !important;
  }

  .core-progress .essence-meter-lock-icon::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 3px !important;
    width: 8px !important;
    height: 8px !important;
    transform: translateX(-50%) !important;
    border: 2px solid #f6d38d !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    box-sizing: border-box !important;
  }

  .core-progress .essence-meter-lock.unlocked .essence-meter-lock-icon::after {
    transform: translateX(-18%) rotate(-28deg) !important;
    transform-origin: left bottom !important;
  }
}


/* essence-meter-legacy-inline-layout-20260920-1: Eski tek satırlı çalışan gösterge düzeni. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    grid-template-columns: auto auto minmax(92px, 1fr) !important;
    grid-template-areas: none !important;
    gap: 7px !important;
    align-items: center !important;
  }

  .core-progress .milestone-heading > span:first-child,
  .core-progress .milestone-heading > .essence-value,
  .core-progress .milestone-heading > .essence-meter {
    grid-area: auto !important;
  }

  .core-progress .essence-meter {
    margin-top: 0 !important;
    width: 50% !important;
    min-width: 92px !important;
    justify-self: start !important;
  }

  .core-progress .essence-meter-lock {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .core-progress .essence-meter-lock-icon {
    width: 20px !important;
    height: 20px !important;
  }
}


/* essence-meter-lock-labels-20260920-1: Kilit başlıkları göstergenin altında dengeli görünür. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    padding-bottom: 7px !important;
  }

  .core-progress .essence-meter-lock-label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    top: 12px !important;
    color: #e4d0a8 !important;
    font-size: .40rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .015em !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.85) !important;
  }

  .core-progress .essence-meter-lock.lock-arena .essence-meter-lock-label {
    transform: translateX(-28%) !important;
  }

  .core-progress .essence-meter-lock.lock-trendler .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .essence-meter-lock.lock-yatirimci .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }
}


/* essence-meter-lock-labels-spacing-20260920-1: Etiketler birbirine değmeden dengelenir. */
@media (max-width: 800px) {
  .core-progress .essence-meter-lock-label {
    font-size: .36rem !important;
  }

  .core-progress .essence-meter-lock.lock-arena .essence-meter-lock-label {
    transform: translateX(-40%) !important;
  }
}


/* essence-meter-label-specificity-20260920-1: Genel span yazı kuralı başlıkları ezemez. */
@media (max-width: 800px) {
  .core-progress .milestone-heading span.essence-meter-lock-label {
    font-size: .50rem !important;
  }
}


/* essence-meter-mobile-final-fix-20260920-1: Mobilde tek satır ve tek kilit çizimi. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    display: flex !important;
    flex-flow: row nowrap !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    gap: 7px !important;
    align-items: center !important;
    padding-bottom: 12px !important;
  }

  .core-progress .milestone-heading > span:first-child {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }

  .core-progress .milestone-heading > .essence-value {
    flex: 0 0 auto !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    flex: 1 1 150px !important;
    width: auto !important;
    min-width: 118px !important;
    max-width: 180px !important;
    margin-top: 0 !important;
    justify-self: auto !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock-icon {
    width: 18px !important;
    height: 18px !important;
    border: 1px solid rgba(246, 211, 141, .9) !important;
    border-radius: 50% !important;
    background: rgba(7, 19, 14, .96) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.72), 0 0 7px rgba(239,199,126,.34) !important;
    color: transparent !important;
    font-size: 0 !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock-icon::before,
  .core-progress .milestone-heading span.essence-meter-lock-icon::after {
    display: block !important;
    visibility: visible !important;
  }
}


/* essence-meter-mobile-alignment-20260920-1: Başlık/yüzde sola, kilit etiketleri çubuğun altına. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    padding-bottom: 18px !important;
  }

  .core-progress .milestone-heading > span:first-child,
  .core-progress .milestone-heading > .essence-value {
    transform: translateX(-6px) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-arena > .essence-meter-lock-label,
  .core-progress .milestone-heading span.essence-meter-lock.lock-trendler > .essence-meter-lock-label,
  .core-progress .milestone-heading span.essence-meter-lock.lock-yatirimci > .essence-meter-lock-label {
    top: 15px !important;
    left: 0 !important;
    right: auto !important;
    display: block !important;
    visibility: visible !important;
    white-space: nowrap !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-arena > .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-trendler > .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-yatirimci > .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }
}


/* essence-meter-mobile-clean-layout-20260920-1: Mobil göstergeyi sade ve standart üç katmanlı düzene getirir. */
@media (max-width: 800px) {
  .core-progress .milestone-strip {
    padding: 11px 13px 15px !important;
  }

  .core-progress .milestone-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "essence-label essence-value"
      "essence-meter essence-meter" !important;
    gap: 8px 12px !important;
    align-items: center !important;
    padding-bottom: 22px !important;
  }

  .core-progress .milestone-heading > span:first-child {
    grid-area: essence-label !important;
    min-width: 0 !important;
    transform: none !important;
    justify-self: start !important;
  }

  .core-progress .milestone-heading > .essence-value {
    grid-area: essence-value !important;
    transform: none !important;
    justify-self: end !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    grid-area: essence-meter !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 24px !important;
    margin-top: 0 !important;
    justify-self: stretch !important;
    flex: none !important;
    overflow: visible !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock > .essence-meter-lock-label {
    top: 17px !important;
    left: 0 !important;
    right: auto !important;
    display: block !important;
    visibility: visible !important;
    font-size: .50rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-arena > .essence-meter-lock-label,
  .core-progress .milestone-heading span.essence-meter-lock.lock-trendler > .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-yatirimci > .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }
}


/* essence-meter-shared-clean-layout-20260920-1: Mobilde masaüstüyle aynı temiz gösterge hiyerarşisi. */
@media (max-width: 800px) {
  .core-progress .milestone-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 12px 13px 17px !important;
  }

  .core-progress .milestone-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "essence-label essence-value"
      "essence-meter essence-meter" !important;
    gap: 8px 12px !important;
    align-items: center !important;
    width: 100% !important;
    padding-bottom: 29px !important;
  }

  .core-progress .milestone-heading > span:first-child {
    grid-area: essence-label !important;
    min-width: 0 !important;
    justify-self: start !important;
    transform: none !important;
    font-size: .66rem !important;
    letter-spacing: .06em !important;
  }

  .core-progress .milestone-heading > .essence-value {
    grid-area: essence-value !important;
    justify-self: end !important;
    transform: none !important;
    font-size: 1rem !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    grid-area: essence-meter !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 24px !important;
    margin: 0 !important;
    justify-self: stretch !important;
    flex: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock > .essence-meter-lock-label {
    top: 17px !important;
    left: 0 !important;
    right: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: .50rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-arena > .essence-meter-lock-label,
  .core-progress .milestone-heading span.essence-meter-lock.lock-trendler > .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .milestone-heading span.essence-meter-lock.lock-yatirimci > .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }

  .core-progress .milestone-grid {
    display: none !important;
  }
}


/* essence-meter-summary-thresholds-20260920-1: Ağaç Özü başlığını yüzdeyle yan yana, eşik adlarını kilitlerin altında düzenler. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "essence-summary" "essence-meter" !important;
    gap: 8px !important;
    align-items: center !important;
    padding-bottom: 35px !important;
  }

  .core-progress .milestone-heading > .essence-summary {
    grid-area: essence-summary !important;
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 9px !important;
    min-width: 0 !important;
  }

  .core-progress .essence-summary > span:first-child {
    min-width: 0 !important;
    color: #e2bd7a !important;
    font-size: .66rem !important;
    font-weight: 800 !important;
    letter-spacing: .065em !important;
    white-space: nowrap !important;
  }

  .core-progress .essence-summary > .essence-value {
    color: #f6d9a5 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    grid-area: essence-meter !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }

  .core-progress .essence-meter-lock-label {
    top: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
    min-width: max-content !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
  }

  .core-progress .essence-meter-lock.lock-yatirimci .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }

  .core-progress .essence-meter-lock-threshold {
    display: block !important;
    color: #f2d19a !important;
    font-size: .42rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .core-progress .essence-meter-lock-label > span {
    display: block !important;
    color: #e4d0a8 !important;
    font-size: .48rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Keep the scene caption visible on desktop while removing it from mobile. */
  .world-app .scene-caption.caption-right-single {
    display: none !important;
  }
}

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Final mobile caption hide: override day and night visibility rules. */
  .world-app .scene-caption.caption-right-single,
  .world-app:not(.night-theme) .scene-caption.caption-right-single,
  .world-app.night-theme .scene-caption.caption-right-single {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}


/* essence-meter-numeric-thresholds-hidden-20260920-1: Ana göstergede yalnızca merkez adlarını gösterir. */
@media (max-width: 800px) {
  .core-progress .essence-meter-lock-label {
    display: block !important;
    min-width: max-content !important;
    line-height: 1 !important;
  }

  .core-progress .essence-meter-lock-threshold {
    display: none !important;
  }

  .core-progress .essence-meter-lock-label > span {
    display: block !important;
  }
}


/* essence-panel-premium-layout-20260921-1: Öz göstergesini mobilde premium ve taşmasız hiyerarşiye oturtur. */
@media (max-width: 800px) {
  .core-progress .milestone-strip {
    position: relative !important;
    display: grid !important;
    gap: 0 !important;
    margin: 0 0 12px !important;
    padding: 13px 12px 23px !important;
    border: 1px solid rgba(238, 192, 111, .44) !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, rgba(10, 31, 22, .92), rgba(3, 13, 10, .88)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 9px 20px rgba(0,0,0,.28), 0 0 15px rgba(224,174,91,.09) !important;
    overflow: visible !important;
  }

  .core-progress .milestone-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "essence-summary" "essence-meter" !important;
    gap: 8px !important;
    width: 100% !important;
    padding-bottom: 37px !important;
    align-items: center !important;
  }

  .core-progress .milestone-heading > .essence-summary {
    grid-area: essence-summary !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    color: #f3d7a0 !important;
  }

  .core-progress .essence-summary::before,
  .core-progress .essence-summary::after {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(239, 199, 126, .72)) !important;
  }

  .core-progress .essence-summary::after {
    background: linear-gradient(90deg, rgba(239, 199, 126, .72), transparent) !important;
  }

  .core-progress .essence-summary > span:first-child {
    color: #e8c888 !important;
    font-size: .61rem !important;
    font-weight: 800 !important;
    letter-spacing: .10em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .core-progress .essence-summary > .essence-value {
    color: #fff0c9 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-shadow: 0 0 10px rgba(239,199,126,.22) !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    grid-area: essence-meter !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 33px !important;
    margin: 0 !important;
    justify-self: stretch !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .core-progress .essence-meter::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 12px !important;
    height: 9px !important;
    border: 1px solid rgba(231, 187, 106, .66) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(4, 15, 11, .96), rgba(17, 39, 27, .90)) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.42), 0 0 10px rgba(224,174,91,.11) !important;
  }

  .core-progress .essence-meter-fill {
    position: absolute !important;
    left: 3px !important;
    top: 15px !important;
    bottom: auto !important;
    height: 3px !important;
    max-width: calc(100% - 6px) !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #8c6330, #e7b967 74%, #ffe3a3) !important;
    box-shadow: 0 0 7px rgba(239,199,126,.28) !important;
  }

  .core-progress .essence-meter-knob {
    position: absolute !important;
    top: 16px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translate(-50%, -50%) !important;
    box-sizing: border-box !important;
    border: 2px solid #f1c979 !important;
    border-radius: 50% !important;
    background: #10251a !important;
    box-shadow: 0 0 0 2px rgba(6, 18, 12, .88), 0 0 10px rgba(239,199,126,.32) !important;
  }

  .core-progress .essence-meter-lock {
    top: 0 !important;
    transform: none !important;
  }

  .core-progress .essence-meter-lock-icon {
    width: 23px !important;
    height: 23px !important;
    border: 1px solid rgba(248, 211, 139, .9) !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 35% 30%, #3a4a35, #0a1b12 72%) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.57), 0 0 9px rgba(239,199,126,.22) !important;
  }

  .core-progress .essence-meter-lock-label {
    top: 25px !important;
    display: block !important;
    min-width: max-content !important;
    padding: 3px 6px !important;
    border: 1px solid rgba(226, 184, 111, .32) !important;
    border-radius: 999px !important;
    background: rgba(7, 21, 14, .80) !important;
    color: #ead6ad !important;
    font-size: .45rem !important;
    font-weight: 800 !important;
    letter-spacing: .055em !important;
    line-height: 1 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.82) !important;
  }

  .core-progress .essence-meter-lock-label > span {
    display: block !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .core-progress .essence-meter-lock.lock-arena > .essence-meter-lock-label,
  .core-progress .essence-meter-lock.lock-trendler > .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .essence-meter-lock.lock-yatirimci > .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }

  .core-progress .essence-meter-lock.locked .essence-meter-lock-icon {
    opacity: .88 !important;
  }

  .core-progress .essence-meter-lock.unlocked .essence-meter-lock-icon {
    box-shadow: 0 2px 6px rgba(0,0,0,.57), 0 0 13px rgba(239,199,126,.56) !important;
  }
}


/* essence-meter-lock-labels-clean-20260921-1: Mobilde üç kilit etiketini eşit ölçülü, okunaklı ve taşmasız tutar. */
@media (max-width: 800px) {
  .core-progress .milestone-heading {
    padding-bottom: 42px !important;
  }

  .core-progress .milestone-heading > .essence-meter {
    height: 37px !important;
  }

  .core-progress .essence-meter-lock-label {
    top: 25px !important;
    width: 70px !important;
    min-width: 70px !important;
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    padding: 4px 6px !important;
    border: 1px solid rgba(239, 199, 126, .46) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(27, 48, 34, .96), rgba(6, 19, 13, .92)) !important;
    color: #ffe9bd !important;
    font-size: .48rem !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.10), 0 2px 7px rgba(0,0,0,.34), 0 0 8px rgba(239,199,126,.11) !important;
  }

  .core-progress .essence-meter-lock.lock-arena > .essence-meter-lock-label,
  .core-progress .essence-meter-lock.lock-trendler > .essence-meter-lock-label {
    transform: translateX(-50%) !important;
  }

  .core-progress .essence-meter-lock.lock-yatirimci > .essence-meter-lock-label {
    transform: translateX(-100%) !important;
  }
}

@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  /* Hide repeated island heading blocks on mobile while preserving non-island panels. */
  .theme-panel:has(.core-panel) > .panel-scroll > .panel-heading {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .theme-panel:has(.core-panel) > .panel-scroll > .panel-content.core-panel {
    margin-top: 0 !important;
  }
}

/* profile-essence-summary-20260921-1: mobile personal Essence indicators. */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel:has(.profile-hero) .profile-essence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 5px;
    display: grid;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat {
    background: linear-gradient(145deg, rgba(22, 43, 30, .96), rgba(7, 18, 12, .94));
    border: 1px solid rgba(217, 171, 103, .34);
    border-radius: 12px;
    gap: 4px;
    min-width: 0;
    padding: 11px 10px;
    display: grid;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat small {
    color: #d7aa65;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .07em;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat strong {
    color: #ffda91;
    font-family: Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.15;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat span,
  .theme-panel:has(.profile-hero) .profile-essence-note {
    color: #aeb8ab;
    font-size: .67rem;
    line-height: 1.3;
  }

  .theme-panel:has(.profile-hero) .profile-essence-note {
    margin: 4px 0 0;
  }
}


/* profile-panel-redesign-20260921-1: compact responsive profile hierarchy. */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel:has(.profile-hero) > .panel-scroll > .panel-content {
    display: grid !important;
    gap: 11px !important;
    padding: 14px 14px 18px !important;
  }

  .theme-panel:has(.profile-hero) .panel-heading {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .theme-panel:has(.profile-hero) .profile-hero {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 13px !important;
    background: linear-gradient(145deg, rgba(23, 49, 34, .96), rgba(7, 19, 13, .94)) !important;
    border: 1px solid rgba(217, 171, 103, .32) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px rgba(255,255,255,.05) !important;
  }

  .theme-panel:has(.profile-hero) .profile-identity {
    width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  .theme-panel:has(.profile-hero) .profile-avatar {
    width: 64px !important;
    height: 64px !important;
    border-width: 2px !important;
  }

  .theme-panel:has(.profile-hero) .avatar-controls {
    width: 100% !important;
    min-width: 0 !important;
    gap: 0 !important;
  }

  .theme-panel:has(.profile-hero) .avatar-upload,
  .theme-panel:has(.profile-hero) .avatar-remove {
    display: none !important;
  }

  .theme-panel:has(.profile-hero) .avatar-preset-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 30px !important;
    padding: 4px 6px !important;
    color: #f8e9c9 !important;
    background: rgba(194, 138, 70, .16) !important;
    border: 1px solid rgba(231, 187, 119, .7) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: .54rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .theme-panel:has(.profile-hero) .avatar-preset-trigger:hover,
  .theme-panel:has(.profile-hero) .avatar-preset-trigger:focus-visible {
    color: #fff5df !important;
    background: rgba(194, 138, 70, .34) !important;
    border-color: #f1cf8a !important;
    outline: 2px solid rgba(231, 187, 119, .22) !important;
    outline-offset: 2px !important;
  }

  .theme-panel:has(.profile-hero) .profile-hero > div:last-child {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .theme-panel:has(.profile-hero) .profile-hero h2 {
    margin: 4px 0 2px !important;
    font-size: 1.02rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-hero small {
    font-size: .56rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-hero p {
    font-size: .68rem !important;
    line-height: 1.3 !important;
  }

  .theme-panel:has(.profile-hero) .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(7, 22, 14, .74) !important;
    border: 1px solid rgba(217, 171, 103, .24) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .theme-panel:has(.profile-hero) .profile-stats span {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    padding: 11px 7px !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid rgba(217, 171, 103, .16) !important;
    border-radius: 0 !important;
  }

  .theme-panel:has(.profile-hero) .profile-stats span:last-child {
    border-right: 0 !important;
  }

  .theme-panel:has(.profile-hero) .profile-stats strong {
    color: #ffda91 !important;
    font-size: 1.02rem !important;
    line-height: 1 !important;
  }

  .theme-panel:has(.profile-hero) .profile-stats small {
    color: #b9c5b8 !important;
    font-size: .62rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence {
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 14px !important;
    background: linear-gradient(145deg, rgba(20, 46, 31, .96), rgba(6, 18, 12, .95)) !important;
    border: 1px solid rgba(217, 171, 103, .34) !important;
    border-radius: 14px !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-heading {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-heading strong {
    color: #f3ca7e !important;
    font-size: .72rem !important;
    letter-spacing: .08em !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-heading span {
    color: #aeb8ab !important;
    font-size: .59rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-values {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat {
    display: grid !important;
    gap: 3px !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat small {
    color: #d7aa65 !important;
    font-size: .53rem !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat strong {
    color: #ffda91 !important;
    font-family: Georgia, serif !important;
    font-size: .88rem !important;
    line-height: 1.15 !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-progress {
    position: relative !important;
    width: 100% !important;
    height: 4px !important;
    overflow: hidden !important;
    background: rgba(0,0,0,.34) !important;
    border: 1px solid rgba(217, 171, 103, .2) !important;
    border-radius: 999px !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-progress-fill {
    display: block !important;
    width: 0;
    height: 100% !important;
    background: linear-gradient(90deg, #9e7137, #efc77e) !important;
    border-radius: inherit !important;
    box-shadow: 0 0 8px rgba(239, 199, 126, .28) !important;
    transition: width .22s ease !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-note {
    margin: 0 !important;
    color: #aeb8ab !important;
    font-size: .6rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible {
    margin: 0 !important;
    background: rgba(7, 20, 13, .62) !important;
    border: 1px solid rgba(217, 171, 103, .2) !important;
    border-radius: 11px !important;
    overflow: hidden !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 40px !important;
    padding: 0 11px !important;
    color: #e7c27e !important;
    cursor: pointer !important;
    list-style: none !important;
    font-size: .64rem !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible summary::-webkit-details-marker {
    display: none !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible summary::after {
    content: "+" !important;
    color: #d7aa65 !important;
    font-size: .92rem !important;
    font-weight: 400 !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible[open] summary::after {
    content: "−" !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible[open] summary {
    border-bottom: 1px solid rgba(217, 171, 103, .13) !important;
  }

  .theme-panel:has(.profile-hero) .profile-collapsible-body {
    padding: 10px 11px !important;
  }

  .theme-panel:has(.profile-hero) .profile-draft-note {
    margin: 0 !important;
    color: #c4cec2 !important;
    font-size: .68rem !important;
    line-height: 1.4 !important;
  }

  .theme-panel:has(.profile-hero) .profile-draft-note strong {
    color: #f0cc85 !important;
  }
}

@media (max-width: 360px) {
  .theme-panel:has(.profile-hero) .profile-hero {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 11px !important;
  }

  .theme-panel:has(.profile-hero) .profile-avatar {
    width: 58px !important;
    height: 58px !important;
  }

  .theme-panel:has(.profile-hero) .avatar-preset-trigger {
    font-size: .5rem !important;
    padding-inline: 4px !important;
  }

  .theme-panel:has(.profile-hero) .profile-hero h2 {
    font-size: .92rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-stats small {
    font-size: .56rem !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat strong {
    font-size: .8rem !important;
  }
}


/* Profile editor: preserve custom photo upload/removal inside the compact mobile avatar panel. */
@media (max-width: 800px) {
  .avatar-library-custom-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 8px 0 12px !important;
  }

  .avatar-library-custom-actions button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 9px !important;
    border: 1px solid rgba(229, 194, 127, .7) !important;
    font: inherit !important;
    font-size: .74rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease !important;
  }

  .avatar-library-custom-upload {
    color: #f6d995 !important;
    background: rgba(44, 87, 66, .42) !important;
  }

  .avatar-library-custom-remove {
    color: #ffd9c9 !important;
    background: rgba(93, 48, 40, .34) !important;
    border-color: rgba(255, 170, 143, .58) !important;
  }

  .avatar-library-custom-actions button:active,
  .avatar-library-custom-actions button:focus-visible {
    background: rgba(229, 194, 127, .18) !important;
    border-color: #f2c978 !important;
    color: #fff2c7 !important;
    outline: none !important;
  }

  .avatar-library-custom-actions button:disabled {
    opacity: .52 !important;
    cursor: not-allowed !important;
  }
}


/* essence-only icon: keep the amber potion icon limited to daily and total Öz values. */
@media (max-width: 800px) {
  .theme-panel:has(.profile-hero) .profile-essence-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: .22rem !important;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif !important;
    font-size: .98rem !important;
    line-height: 1 !important;
    vertical-align: -.1em !important;
    filter: drop-shadow(0 1px 3px rgba(239, 199, 126, .42)) !important;
  }
}

/* profile-essence-potion-icon-20260923-1 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel:has(.profile-hero) .profile-essence-icon {
    width: 1.15rem !important;
    min-width: 1.15rem !important;
    height: 1.15rem !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background-image: url("/amber-essence-potion.webp?v=profile-potion-20260923-1") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    vertical-align: -0.1em !important;
    filter: drop-shadow(0 1px 3px rgba(239, 199, 126, .42)) !important;
  }
}




/* profile-essence-icon-flow-fix-20260924-2 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel:has(.profile-hero) .profile-essence-values {
    align-items: stretch !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat {
    align-content: center !important;
    justify-items: center !important;
    min-height: 3.6rem !important;
    padding: 2px 0 !important;
    text-align: center !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat small {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-stat strong {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-icon {
    display: block !important;
    width: 1.4rem !important;
    min-width: 1.4rem !important;
    height: 1.4rem !important;
    margin: 3px auto 0 !important;
  }
}


/* profile-essence-progress-layout-20260924-1 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel:has(.profile-hero) .profile-essence {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-values,
  .theme-panel:has(.profile-hero) .profile-essence-progress,
  .theme-panel:has(.profile-hero) .profile-essence-note {
    grid-column: 1 / -1 !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-values {
    width: 100% !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-progress {
    display: block !important;
    width: 100% !important;
    height: 6px !important;
    min-height: 6px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-color: rgba(217, 171, 103, .55) !important;
    background: rgba(0, 0, 0, .48) !important;
  }

  .theme-panel:has(.profile-hero) .profile-essence-note {
    justify-self: end !important;
    margin: 0 !important;
    text-align: right !important;
  }
}

/* threshold-potion-icons-mobile-20260926: Show the shared amber essence potion at all island milestones. */
body .core-progress .milestone-heading span.essence-meter-lock-icon {
  display: grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 23px !important;
  flex: 0 0 18px !important;
  overflow: hidden !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  text-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/amber-essence-potion.webp?v=threshold-potion-icons-20260926-1") center / contain no-repeat !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)) !important;
}
body .core-progress .milestone-heading span.essence-meter-lock-icon::before,
body .core-progress .milestone-heading span.essence-meter-lock-icon::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

/* threshold-potion-mobile-anchor-fix-20260926-1 */
body .core-progress .milestone-heading > .essence-meter > .essence-meter-lock {
  top: 16px !important;
  transform: none !important;
}


/* threshold-potion-mobile-visible-fix-20260926-1 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  body .core-progress .milestone-heading span.essence-meter-lock.locked {
    z-index: 12 !important;
  }

  body .core-progress .milestone-heading span.essence-meter-lock-icon.has-profile-potion {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 25px !important;
    min-width: 25px !important;
    height: 32px !important;
    flex: 0 0 25px !important;
    overflow: visible !important;
    opacity: 1 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transform: translate(-50%, -50%) !important;
  }

  body .core-progress .milestone-heading span.essence-meter-lock-icon.has-profile-potion > img[data-essence-potion] {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)) drop-shadow(0 0 5px rgba(240,190,95,.68)) !important;
  }
}

/* Empty starting potion marker */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .core-progress .essence-meter-knob {
    width: 25px !important;
    height: 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-image: url("/empty-essence-potion.svg?v=empty-start-potion-20261001-1"), radial-gradient(ellipse at center, rgba(3,14,10,.98) 0%, rgba(3,14,10,.98) 68%, rgba(3,14,10,.72) 84%, rgba(3,14,10,0) 100%) !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: contain, 26px 14px !important;
    box-shadow: none !important;
    filter: saturate(.58) brightness(.74) !important;
    z-index: 2 !important;
  }
}


/* mobile-avatar-picker-fit-and-touch-20260927-1 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .avatar-library-in-panel {
    position: absolute !important;
    inset: 0 !important;
    z-index: 10050 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    touch-action: auto !important;
  }

  .avatar-library-in-panel .avatar-library-card {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 12px 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    touch-action: pan-y !important;
  }

  .avatar-library-in-panel .avatar-library-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    min-height: 56px !important;
    margin: 0 -12px 10px !important;
    padding: 6px 9px !important;
  }

  .avatar-library-in-panel .avatar-library-toolbar .panel-control {
    min-height: 44px !important;
    height: auto !important;
    padding: 0 10px !important;
    font-size: .76rem !important;
  }

  .avatar-library-in-panel .avatar-library-heading {
    flex: 0 0 auto !important;
    margin: 0 38px 4px 0 !important;
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
  }

  .avatar-library-in-panel .avatar-library-description {
    flex: 0 0 auto !important;
    margin: 0 0 8px !important;
    font-size: .7rem !important;
    line-height: 1.35 !important;
  }

  .avatar-library-in-panel .avatar-library-custom-actions {
    flex: 0 0 auto !important;
    margin: 4px 0 8px !important;
  }

  .avatar-library-in-panel .avatar-library-grid {
    display: grid !important;
    flex: 1 1 0 !important;
    align-content: start !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 2px 2px 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    box-sizing: border-box !important;
  }

  .avatar-library-in-panel .avatar-library-option {
    align-self: start !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 8px 4px !important;
    touch-action: manipulation !important;
  }

  .avatar-library-in-panel .avatar-library-choice {
    min-width: 0 !important;
    min-height: 44px !important;
    gap: 4px !important;
    touch-action: manipulation !important;
  }

  .avatar-library-in-panel .avatar-library-apply {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 9px !important;
    touch-action: manipulation !important;
  }

  .avatar-library-in-panel .avatar-library-error:not([hidden]) {
    flex: 0 0 auto !important;
    margin: 6px 0 !important;
  }
}

@media (max-width: 360px) {
  .avatar-library-in-panel .avatar-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* visible-panel-scrollbar-20261001 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .theme-panel .panel-scroll {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(226, 184, 111, .92) rgba(4, 15, 10, .62) !important;
  }

  .theme-panel .panel-scroll::-webkit-scrollbar {
    width: 12px !important;
  }

  .theme-panel .panel-scroll::-webkit-scrollbar-track {
    background: rgba(4, 15, 10, .62) !important;
    border-left: 1px solid rgba(226, 184, 111, .26) !important;
  }

  .theme-panel .panel-scroll::-webkit-scrollbar-thumb {
    min-height: 44px !important;
    background: rgba(226, 184, 111, .92) !important;
    border: 2px solid rgba(4, 15, 10, .88) !important;
    border-radius: 999px !important;
  }
}


/* visible-scrollbars-secondary-areas-20261001 */
@media (max-width: 800px), (pointer: coarse) and (hover: none) {
  .mobile-menu,
  .entry-gate-card,
  .mobile-layout-editor,
  .avatar-library-in-panel .avatar-library-grid {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(226, 184, 111, .92) rgba(4, 15, 10, .62) !important;
  }

  .mobile-menu::-webkit-scrollbar,
  .entry-gate-card::-webkit-scrollbar,
  .mobile-layout-editor::-webkit-scrollbar,
  .avatar-library-in-panel .avatar-library-grid::-webkit-scrollbar {
    width: 12px !important;
  }

  .mobile-menu::-webkit-scrollbar-track,
  .entry-gate-card::-webkit-scrollbar-track,
  .mobile-layout-editor::-webkit-scrollbar-track,
  .avatar-library-in-panel .avatar-library-grid::-webkit-scrollbar-track {
    background: rgba(4, 15, 10, .62) !important;
    border-left: 1px solid rgba(226, 184, 111, .26) !important;
  }

  .mobile-menu::-webkit-scrollbar-thumb,
  .entry-gate-card::-webkit-scrollbar-thumb,
  .mobile-layout-editor::-webkit-scrollbar-thumb,
  .avatar-library-in-panel .avatar-library-grid::-webkit-scrollbar-thumb {
    min-height: 44px !important;
    background: rgba(226, 184, 111, .92) !important;
    border: 2px solid rgba(4, 15, 10, .88) !important;
    border-radius: 999px !important;
  }
}
