/* 3B karakter: orta boşluktaki "Görünüm" penceresi */
.classic-view3d{border:0;box-shadow:none;background:transparent;position:absolute;left:322px;right:595px;top:86px;height:542px;display:flex;flex-direction:column;overflow:hidden}
.classic-view3d-title{flex:none;height:25px;background:transparent;border:0;text-align:center}
.classic-view3d-title h3{margin:0;font:bold 13px/25px "Times New Roman",Times,serif;color:#fff}
.classic-view3d .char3d-host{position:relative;flex:1;min-height:0;opacity:0;transition:opacity .25s;background:transparent}
.classic-view3d.char3d-on .char3d-host{opacity:1}
@media(max-width:1000px){.classic-view3d{border:0;box-shadow:none;background:transparent;position:relative;left:auto;right:auto;top:auto;width:100%;max-width:420px;height:460px}}
.char3d-motion-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;padding:5px 4px;flex:none}
.char3d-motion-controls button{padding:5px 9px;background:#24231f;color:#e8e2d3;border:1px solid #514a3b;border-radius:3px;font:12px/1.3 Arial;cursor:pointer}
.char3d-motion-controls button[aria-pressed="true"]{background:#494033;border-color:#b79c62;color:#fff}
.char3d-motion-controls button:focus-visible{outline:2px solid #e2c477;outline-offset:2px}
.char3d-motion-controls button:disabled{opacity:.5;cursor:wait}

.classic-view3d .char3d-host { isolation:isolate; }
.classic-view3d .char3d-host > canvas { position:relative; z-index:1; }

/* Load after the profile and viewer styles. One scene behind the whole profile. */
main.classic-profile {
  background-color: #090807;
  background:
    linear-gradient(rgba(8, 11, 14, .22), rgba(8, 11, 14, .22)),
    #090807 url('./dungeon-room/room-preview.webp') center center / cover no-repeat;
}

/* Remove the stage's opaque fill, retaining its existing dimensions/layout. */
main.classic-profile > .classic-stage {
  background: transparent;
}

/* Keep the existing small help text readable over the ground texture. */
main.classic-profile > .classic-page-footer {
  background: rgba(9, 8, 7, .82);
}

main.classic-profile .classic-view3d,
main.classic-profile .classic-view3d .char3d-host {
  background: transparent;
}

/* The shared profile scene replaces only the old per-viewer scenery layer.
   The EVACS flag remains on ::before and the character canvas stays above it. */
main.classic-profile .classic-view3d .char3d-host::after {
  content: none;
  display: none;
  background: none;
}

/* Fullscreen promotes the stage out of its parent: give it the same scene. */
main.classic-profile > .classic-stage:fullscreen {
  background:
    linear-gradient(rgba(8, 11, 14, .22), rgba(8, 11, 14, .22)),
    #090807 url('./dungeon-room/room-preview.webp') center center / cover no-repeat;
}

@media (max-width: 1000px) {
  /* Size the image to a viewport, not the tall stack of profile panels.
     The scrolling fallback repeats vertically, so it never exposes a blank gap.
     Use the same dungeon view while the 3D room is loading. */
  main.classic-profile {
    background-size: auto, auto max(100vh, 64vw);
    background-size: auto, auto max(100svh, 64vw);
    background-position: center center, center top;
    background-repeat: no-repeat, repeat-y;
    background-attachment: scroll, scroll;
  }

  /* Keep only the photograph fixed. The overlay remains scoped to the profile.
     iOS WebKit advertises fixed backgrounds but does not render them reliably. */
  @supports (background-attachment: fixed) and (not (-webkit-touch-callout: none)) {
    main.classic-profile {
      background-size: auto, cover;
      background-repeat: no-repeat, no-repeat;
      background-attachment: scroll, fixed;
    }
  }
}

/* Fit the scene to the visible desktop viewport, not the tall profile content. */
@media (min-width: 1001px) {
  main.classic-profile {
    background-attachment: scroll, fixed;
  }
}

/* The camera-projected nameplate uses the in-game text colors and spacing. */
.classic-view3d-title { height:auto; min-height:25px; padding:0; }
.char3d-host > .classic-view3d-title {
  position:absolute;
  z-index:2;
  left:clamp(55px,var(--nameplate-x,50%),100% - 55px);
  top:clamp(33px,var(--nameplate-y,20%),100%);
  transform:translate(-50%,-100%);
  min-height:0;
  width:max-content;
  max-width:calc(100% - 12px);
  pointer-events:none;
}
.char3d-nameplate { text-align:center; overflow-wrap:anywhere; }
.char3d-clan-name,
.classic-view3d-title .char3d-character-name {
  margin:0;
  min-width:0;
  font:bold 15px/18px Arial,Helvetica,sans-serif;
  -webkit-text-stroke:2px #000;
  paint-order:stroke fill;
  text-shadow:1px 1px 1px #000;
}
.char3d-clan-name { color:#ff2525; }
.classic-view3d-title .char3d-character-name { color:#88ccff; }
.char3d-player-line {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-width:0;
}
.classic-view3d-title .char3d-rank-symbol {
  display:block;
  flex:0 0 16px;
  width:16px;
  height:16px;
  object-fit:contain;
  image-rendering:pixelated;
}

/* Original game vertical UI: eight framed cells, orb and native controls. */
.classic-profile > .classic-stage {--classic-skillbar-width:60px;--classic-character-left:86px;--classic-viewer-left:380px}
.classic-profile > .classic-stage[data-skillbar-bars="2"] {--classic-skillbar-width:124px;--classic-character-left:150px;--classic-viewer-left:444px}
.classic-profile > .classic-stage[data-skillbar-bars="3"] {--classic-skillbar-width:188px;--classic-character-left:214px;--classic-viewer-left:508px}
.classic-profile #classic-skillbar {position:absolute;left:14px;top:145px;bottom:auto;width:var(--classic-skillbar-width);max-width:none;height:392px;display:block;padding:0;margin:0;overflow:visible}
.classic-profile #classic-skillbar .classic-skillbar-rows {display:flex;flex-direction:row;align-items:flex-start;gap:4px;width:100%;height:392px}
.classic-profile #classic-skillbar .classic-skillbar-row {position:relative;flex:0 0 60px;width:60px;height:392px;aspect-ratio:auto;display:block;padding:0;border:0;background:url('/assets/userprofile/images/skillbar-native-v1/native-vertical-frame.png') 0 0/60px 392px no-repeat;overflow:visible}
.classic-profile #classic-skillbar [hidden] {display:none!important}
.classic-profile #classic-skillbar .classic-skillbar-slots {position:absolute;inset:0;width:60px;height:338px;overflow:visible;scroll-snap-type:none;overscroll-behavior:auto}
.classic-profile #classic-skillbar .classic-skillbar-grid {position:relative;display:block;width:60px;height:338px;gap:0}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut {position:absolute;left:25px;width:23px;height:32px;min-height:0;padding:0;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;background:none;box-shadow:none;overflow:hidden;transform:none}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(1) {top:37px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(2) {top:75px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(3) {top:112px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(4) {top:149px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(5) {top:187px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(6) {top:224px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(7) {top:261px}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut:nth-child(8) {top:298px}
.classic-profile #classic-skillbar .classic-shortcut img {display:block;width:24px;height:24px;max-width:24px;max-height:24px;object-fit:contain;transform:none}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut > img {width:100%;height:100%;max-width:none;max-height:none;object-fit:fill}
.classic-profile #classic-skillbar .classic-skillbar-grid .classic-shortcut small {display:none}
.classic-profile #classic-skillbar button {padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background-color:transparent;background-repeat:no-repeat;cursor:pointer}
.classic-profile #classic-skillbar button:disabled {cursor:default}
.classic-profile #classic-skillbar button:focus-visible {outline:1px solid #ffe99f;outline-offset:1px}
.classic-profile #classic-skillbar button::before {content:none}
.classic-profile #classic-skillbar .classic-skillbar-orb {position:absolute;left:15px;top:11px;width:15px;height:16px;background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_change-0.png');background-size:15px 16px;opacity:1}
.classic-profile #classic-skillbar .classic-skillbar-orb:hover:not(:disabled),.classic-profile #classic-skillbar .classic-skillbar-orb[aria-expanded="true"] {background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_change-1.png')}
.classic-profile #classic-skillbar .classic-skillbar-pager {position:absolute;inset:0;display:block;width:60px;height:352px;pointer-events:none;padding:0;background:none}
.classic-profile #classic-skillbar .classic-skillbar-pager button {position:absolute;top:339px;width:19px;height:12px;background-size:19px 12px;pointer-events:auto}
.classic-profile #classic-skillbar .classic-skillbar-page-prev {left:5px;background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_up-0.png')}
.classic-profile #classic-skillbar .classic-skillbar-page-next {left:27px;background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_down-0.png')}
.classic-profile #classic-skillbar .classic-skillbar-page-prev:hover:not(:disabled) {background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_up-1.png')}
.classic-profile #classic-skillbar .classic-skillbar-page-next:hover:not(:disabled) {background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_down-1.png')}
.classic-profile #classic-skillbar .classic-skillbar-pager button:disabled {opacity:.55}
.classic-profile #classic-skillbar .classic-skillbar-page-number {position:absolute;left:38px;top:13px;display:block;width:11px;height:13px;line-height:13px;font:bold 12px/13px Arial,Helvetica,sans-serif;color:#eee5cc;background:transparent;text-align:center;text-shadow:1px 1px #000;pointer-events:none}
.classic-profile #classic-skillbar .classic-skillbar-lock {position:absolute;left:5px;top:369px;width:41px;height:12px;background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_lock-0.png');background-size:41px 12px}
.classic-profile #classic-skillbar .classic-skillbar-lock:hover,.classic-profile #classic-skillbar .classic-skillbar-lock[aria-pressed="true"] {background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_lock-1.png')}
.classic-profile #classic-skillbar .classic-skillbar-toolbar {position:absolute;left:calc(100% - 55px);top:354px;display:flex;align-items:stretch;justify-content:flex-start;width:41px;height:12px;gap:0;padding:0;margin:0;background:none;z-index:4}
.classic-profile #classic-skillbar .classic-skillbar-toolbar button {position:static;flex:0 0 50%;width:50%;height:12px;background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_open-0.png');background-size:41px 12px;background-position:left top}
.classic-profile #classic-skillbar .classic-skillbar-toolbar .classic-skillbar-increase {background-position:right top}
.classic-profile #classic-skillbar .classic-skillbar-toolbar button:hover:not(:disabled) {background-image:url('/assets/userprofile/images/skillbar-native-v1/btn_open-1.png')}
.classic-profile #classic-skillbar .classic-skillbar-toolbar button:disabled {opacity:.4}
.classic-profile #classic-skillbar .classic-skillbar-count {position:absolute;width:1px;height:1px;min-width:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.classic-profile #classic-skillbar .classic-skillbar-extra {position:absolute;left:55px;top:10px;z-index:20;display:flex;gap:5px;padding:7px;background:#171710;border:1px solid #aaa184;box-shadow:0 3px 8px #0009}
.classic-profile #classic-skillbar .classic-skillbar-extra .classic-shortcut {position:relative;width:30px;height:36px;padding:1px 3px 9px;display:flex;align-items:flex-start;border:1px solid #716c5f;border-radius:0;background:#242321;box-shadow:none}
.classic-profile #classic-skillbar .classic-skillbar-extra small {position:absolute;display:block;left:0;right:0;top:auto;bottom:0;text-align:center;font:10px/10px Arial,sans-serif;color:#eee5cc;text-shadow:none}

@media(min-width:1321px) {
  .classic-profile > .classic-stage > .classic-character {left:var(--classic-character-left)}
  .classic-profile > .classic-stage > .classic-view3d {left:var(--classic-viewer-left)}
}
/* Below the fixed three-panel layout's useful width, retain native panel sizes.
   The shortcut columns and Character Info share one row; viewer/inventory follow. */
@media(max-width:1320px) {
  .classic-profile > .classic-stage {
    display:grid;grid-template-columns:minmax(0,1fr) var(--classic-skillbar-width) 10px 284px minmax(0,1fr);
    align-items:start;justify-items:center;column-gap:0;row-gap:24px;
    height:auto;min-height:1100px;padding:14px 16px 28px;overflow:visible;
  }
  .classic-profile > .classic-stage > .classic-hud {
    grid-column:2/5;grid-row:1;position:relative;left:auto;top:auto;
    align-self:start;justify-self:start;order:1;
  }
  .classic-profile > .classic-stage > .classic-character {
    grid-column:4;grid-row:2;position:relative;left:auto;top:auto;
    min-width:284px;flex-shrink:0;order:2;
  }
  .classic-profile > .classic-stage > #classic-skillbar {
    grid-column:2;grid-row:2;position:relative;left:auto;top:auto;bottom:auto;
    align-self:start;flex-shrink:0;order:3;
  }
  .classic-profile > .classic-stage > .classic-view3d {
    grid-column:1/-1;grid-row:3;position:relative;left:auto;right:auto;top:auto;
    width:100%;max-width:420px;height:460px;order:4;
  }
  .classic-profile > .classic-stage > .classic-loadout-scroll {
    grid-column:1/-1;grid-row:4;position:relative;top:auto;right:auto;
    width:100%;height:548px;max-width:555px;overflow:auto;flex-shrink:0;
    padding-bottom:5px;order:5;
  }
  .classic-profile > .classic-stage > .classic-loadout-scroll.is-compact {max-width:360px}
  .classic-profile > .classic-stage > .classic-window-controls {
    grid-column:1/-1;grid-row:5;position:relative;right:auto;bottom:auto;
    margin-top:0;order:6;
  }
}
@media(max-width:480px) {
  .classic-profile > .classic-stage {padding:14px 8px 25px}
}
/* A single bar still fits beside the 284px panel on normal phones (>=370px).
   Extra columns, or smaller phones, flow below it instead of squeezing panels. */
@media(max-width:529px) {
  .classic-profile > .classic-stage:is([data-skillbar-bars="2"],[data-skillbar-bars="3"]) {
    display:flex;flex-direction:column;align-items:center;
  }
  .classic-profile > .classic-stage:is([data-skillbar-bars="2"],[data-skillbar-bars="3"]) > .classic-hud,
  .classic-profile > .classic-stage:is([data-skillbar-bars="2"],[data-skillbar-bars="3"]) > #classic-skillbar {align-self:center}
}
@media(max-width:405px) {
  .classic-profile > .classic-stage {display:flex;flex-direction:column;align-items:center}
  .classic-profile > .classic-stage > .classic-hud,
  .classic-profile > .classic-stage > #classic-skillbar {align-self:center}
}

/* Profile-only ranking shortcut, beside the site search. */
html.evaluate-warland .ev-header-searches.ev-profile-header-searches {
  display: grid;
  grid-template-columns: max-content minmax(0, 260px);
  grid-template-rows: 30px 30px;
  align-items: center;
  gap: 5px 10px;
  flex: 0 1 410px;
  width: 410px;
  min-width: 0;
}
html.evaluate-warland .ev-profile-header-searches > .ev-home-search {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
html.evaluate-warland .ev-profile-header-searches > .ev-site-search {
  grid-row: 2;
}
html.evaluate-warland .ev-home-subnav .ev-profile-ranking-return {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #b99b68;
  background: #f2ebdc;
  color: #6c4e2d;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
html.evaluate-warland .ev-home-subnav .ev-profile-ranking-return:hover {
  background: #e7dcc6;
  color: #4d361c;
}
html.evaluate-warland .ev-home-subnav .ev-profile-ranking-return:focus-visible {
  outline: 2px solid #86683b;
  outline-offset: 2px;
}
html.evaluate-warland .ev-profile-header-searches > .ev-site-results {
  left: auto;
  width: 260px;
  max-width: 100%;
}
@media (min-width: 851px) {
  html.evaluate-warland .ev-home-subnav > .ev-home-shell:has(> .ev-profile-header-searches) {
    grid-template-columns: 340px minmax(0, 1fr) 410px;
  }
}
@media (max-width: 540px) {
  html.evaluate-warland .ev-header-searches.ev-profile-header-searches {
    grid-template-columns: max-content minmax(0, 1fr);
    flex: 1 1 100%;
    width: 100%;
  }
  html.evaluate-warland .ev-profile-header-searches > .ev-home-search:not(.ev-site-search) {
    grid-column: 1 / -1;
  }
  html.evaluate-warland .ev-profile-header-searches > .ev-site-results {
    width: 100%;
  }
}

/* Let the game scene reach both edges of the profile. */
main.classic-profile {
  box-sizing: border-box;
  width: 100%;
  padding-inline: 0;
  margin: 0 auto 28px;
}

/* Window toggles remain outside the closable inventory panel. */
main.classic-profile > .classic-stage > .classic-window-controls {
  top: 50px;
  right: 40px;
  bottom: auto;
  z-index: 2;
}

@media (max-width: 1320px) {
  main.classic-profile > .classic-stage > .classic-window-controls {
    grid-column: 1 / -1;
    grid-row: 4;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 555px);
    justify-self: center;
    justify-content: flex-end;
    margin: 0 0 -16px;
    padding-right: 10px;
    order: 5;
  }
  main.classic-profile > .classic-stage > .classic-loadout-scroll {
    grid-row: 5;
    order: 6;
  }
  main.classic-profile > .classic-stage:has(> .classic-loadout-scroll.is-compact) > .classic-window-controls {
    width: min(100%, 360px);
  }
}

@media (max-width: 540px) {
  main.classic-profile {
    margin: 0 auto 20px;
  }
}

/* Align the profile HUD with the top edge of the scene. */
main.classic-profile {
  padding-top: 0;
}

/* Keep the desktop scene close to the panel bounds. */
@media (min-width: 1321px) {
  main.classic-profile {
    min-height: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  main.classic-profile > .classic-stage:not(:fullscreen) {
    height: 850px;
  }
}

main.classic-profile > .classic-stage > .classic-hud {
  top: 0;
}

@media (max-width: 1320px) {
  main.classic-profile > .classic-stage {
    padding-top: 0;
  }
}

/* The profile viewer renders the courtyard inside the character canvas. */
.classic-view3d .char3d-host.char3d-world > canvas {
  border-radius:3px;
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
}

/* Center the desktop game panels inside the profile frame. */
@media (min-width: 1321px) {
  main.classic-profile {
    width: min(100%, 1366px);
    margin-inline: auto;
  }

  main.classic-profile > .classic-stage:not(:fullscreen) {
    max-width: 1366px;
  }
}

/* The room and character share the entire desktop profile stage. */
@media (min-width:1321px) {
  main.classic-profile > .classic-stage:has(> .classic-view3d .char3d-world) {
    isolation:isolate;
  }

  main.classic-profile > .classic-stage > .classic-view3d:has(.char3d-world) {
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    z-index:0;
    pointer-events:none;
  }

  main.classic-profile > .classic-stage > .classic-view3d .char3d-world {
    position:absolute;
    inset:0;
  }

  main.classic-profile > .classic-stage > .classic-view3d .char3d-world > canvas {
    mask-image:none;
    border-radius:0;
    pointer-events:auto;
  }

  main.classic-profile > .classic-stage:has(.char3d-world) > :is(.classic-character,.classic-loadout-scroll,.classic-hud,#classic-skillbar) {
    z-index:1;
  }

  main.classic-profile > .classic-stage > .classic-view3d:has(.char3d-world) > .char3d-motion-controls {
    position:absolute;
    left:var(--scene-focus,44%);
    bottom:52px;
    z-index:3;
    transform:translateX(-50%);
    pointer-events:auto;
  }

  main.classic-profile > .classic-stage > .classic-view3d:has(.char3d-world) > [role="status"] {
    position:absolute;
    left:var(--scene-focus,44%);
    bottom:14px;
    z-index:3;
    max-width:min(380px,32%);
    text-align:center;
    transform:translateX(-50%);
  }
}

.classic-genie-menu { width:min(174px,100%); color:#e9e0ce; font:700 12px/1.3 Arial,sans-serif; z-index:6; }
.classic-genie-menu summary {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  cursor:pointer; list-style:none; padding:4px 8px; border:2px ridge #9d8e71;
  background:linear-gradient(#4d4638,#262119);
}
.classic-genie-menu summary::-webkit-details-marker { display:none; }
.classic-genie-menu[open] .classic-genie-arrow { transform:rotate(180deg); }
.classic-genie-menu nav { padding:3px; background:#131918; border:1px solid #74614e; }
.classic-genie-menu nav a {
  display:block; padding:4px 6px; text-align:center; color:#e1eee9;
  border:1px solid #557471; background:linear-gradient(105deg,#202c29,#263b38);
}
.classic-genie-menu nav a+a { margin-top:2px; }
.classic-genie-menu nav a:hover { background:#3b5550; }
.classic-bottom-hud { box-sizing:border-box; width:100%; color:#f0e5d0; font:12px/1.3 Arial,sans-serif; }
.classic-hud-records { display:flex; justify-content:space-between; gap:8px; }
.classic-hud-log {
  width:min(30%,350px); min-width:0; height:94px; overflow:auto; padding:5px 9px;
  background:linear-gradient(#171512e9,#090807e9); border:1px solid #756248;
  scrollbar-color:#a68d5f #262018; scrollbar-width:thin;
}
.classic-hud-log h3 { margin:0 0 3px; font:700 12px/1.25 Arial,sans-serif; color:#ead2a3; }
.classic-hud-log p,.classic-hud-log ul { margin:0; }
.classic-hud-log ul { padding:0; list-style:none; }
.classic-hud-pvp li { color:#f3d882; overflow-wrap:anywhere; }
.classic-hud-pvp li span { color:#a6d6f1; }
.classic-hud-info li { display:flex; justify-content:space-between; gap:6px; color:#b9c8e8; }
.classic-bottom-bar {
  display:flex; align-items:center; flex-wrap:wrap; gap:5px; min-height:34px;
  padding:4px 8px; margin-top:3px; border:2px ridge #9b8767;
  background:linear-gradient(#433c2e,#1c1915);
}
.classic-bottom-bar .classic-metal-button { min-width:62px; text-align:center; }
.classic-bottom-bar .classic-profile-exit { margin-left:auto; }
@media (min-width:1321px) {
  .classic-stage > .classic-genie-menu { position:absolute; right:16px; top:8px; }
  .classic-stage > .classic-bottom-hud { position:absolute; z-index:4; bottom:0; left:0; right:0; padding:0 12px; pointer-events:none; }
  .classic-bottom-hud :is(.classic-hud-log,.classic-bottom-bar) { pointer-events:auto; }
  .classic-stage > .classic-bottom-hud .classic-hud-log { height:108px; }
  main.classic-profile > .classic-stage:not(:fullscreen) > .classic-view3d:has(.char3d-world) > .char3d-motion-controls {
    bottom:172px;
  }
  main.classic-profile > .classic-stage:not(:fullscreen) > .classic-view3d:has(.char3d-world) > [role="status"] {
    bottom:143px;
  }
}
@media (max-width:1320px) {
  .classic-stage > .classic-genie-menu,.classic-stage > .classic-bottom-hud { grid-column:1/-1; order:8; }
  .classic-stage > .classic-bottom-hud { max-width:555px; }
  .classic-hud-log { width:50%; }
}

/* The graphics below are UV crops from EvaluateKO's original game UIF atlases. */
.classic-genie-menu { width:169px; }
.classic-genie-menu summary {
  height:28px;
  padding:0 4px;
  border:0;
  background:url('./game-hud/genie-header.png') center/100% 100% no-repeat;
}
.classic-genie-menu .classic-genie-arrow {
  width:21px;
  height:20px;
  color:transparent;
  background:url('./game-hud/genie-toggle.png') center/contain no-repeat;
}
.classic-genie-menu nav { padding:0; border:0; background:none; }
.classic-genie-menu nav a {
  box-sizing:border-box;
  height:23px;
  padding:0;
  line-height:23px;
  border:0;
  background:url('./game-hud/notice-row.png') center/100% 100% no-repeat;
}
.classic-genie-menu nav a:first-child {
  background-image:url('./game-hud/premium-row.png');
}
.classic-genie-menu nav a:hover { filter:brightness(1.18); }

.classic-hud-log { border:0; background:transparent url('./game-hud/chat-back.png') center/100% 100% no-repeat; }
.classic-hud-info { background-image:url('./game-hud/info-back.png'); }
.classic-hud-log h3 {
  width:max-content;
  min-width:95px;
  margin:0 0 5px;
  padding:3px 9px;
  text-align:center;
  background:url('./game-hud/chat-tab.png') center/100% 100% no-repeat;
}
.classic-bottom-bar {
  border:0;
  padding:4px 18px;
  min-height:53px;
  background:transparent url('./game-hud/command-frame.png') center/100% 100% no-repeat;
}
.classic-bottom-bar .classic-metal-button {
  box-sizing:border-box;
  color:#e5dfd1;
  width:88px;
  height:34px;
  padding:0 5px;
  line-height:34px;
  border:0;
  background-color:transparent;
  background-size:100% 100%;
  background-repeat:no-repeat;
}
.classic-bottom-bar .classic-metal-button:hover { filter:brightness(1.24); }
.classic-bottom-bar .game-hud-character { background-image:url('./game-hud/command-character.png'); }
.classic-bottom-bar .game-hud-inventory { background-image:url('./game-hud/command-inventory.png'); }
.classic-bottom-bar .game-hud-skill { background-image:url('./game-hud/command-skill.png'); }
.classic-bottom-bar .game-hud-exit { background-image:url('./game-hud/command-exit.png'); }
@media (max-width:540px) {
  .classic-bottom-bar { min-height:0; padding:4px; background-image:url('./game-hud/chat-back.png'); }
  .classic-bottom-bar .classic-metal-button { flex:1 1 62px; max-width:88px; min-width:0; }
}

@media (min-width:541px) {
  .classic-bottom-bar { position:relative; height:53px; }
  .classic-bottom-bar .classic-metal-button {
    position:absolute;
    top:22%;
    width:8.6%;
    min-width:0;
    height:63%;
    margin:0;
    line-height:32px;
  }
  .classic-bottom-bar .game-hud-inventory { left:10%; }
  .classic-bottom-bar .game-hud-character { left:19.6%; }
  .classic-bottom-bar .game-hud-skill { left:29.4%; }
  .classic-bottom-bar .game-hud-exit { left:90.7%; width:6.7%; }
}

/* Native UIF chat and information docks. The scrollbar and tab keep their source proportions. */
.classic-hud-pvp { width:min(42%,540px); }
.classic-hud-info { width:min(27%,300px); }
.classic-hud-log {
  display:flex;
  flex-direction:column;
  background:none;
  padding:0;
  overflow:visible;
}
.classic-hud-log-frame {
  display:flex;
  gap:4px;
  min-height:0;
  flex:1;
}
.classic-hud-log-content {
  flex:1;
  min-width:0;
  padding:4px 7px;
  overflow:auto;
  scrollbar-width:none;
  background:url('./game-hud/game-chat-panel.png') center/100% 100% no-repeat;
}
.classic-hud-info .classic-hud-log-content {
  background-image:url('./game-hud/info-back.png');
  order:-1;
}
.classic-hud-scroll {
  display:flex;
  flex:0 0 18px;
  flex-direction:column;
}
.classic-hud-scroll button {
  box-sizing:border-box;
  width:18px;
  height:18px;
  flex:none;
  padding:0;
  border:0;
  background:transparent url('./game-hud/game-scroll-up.png') center/contain no-repeat;
}
.classic-hud-scroll button:last-child { background-image:url('./game-hud/game-scroll-down.png'); }
.classic-hud-scroll button:hover { filter:brightness(1.3); }
.classic-hud-scroll-track {
  position:relative;
  flex:1;
  background:url('./game-hud/game-scroll-track.png') center/100% 100%;
}
.classic-hud-scroll-thumb {
  position:absolute;
  top:0;
  left:0;
  width:18px;
  height:17px;
  background:url('./game-hud/game-scroll-thumb.png') center/contain no-repeat;
}
.classic-hud-log h3 {
  align-self:flex-start;
  box-sizing:border-box;
  height:21px;
  min-width:102px;
  margin:0 0 0 18px;
  padding:0 6px;
  line-height:21px;
  background-image:url('./game-hud/game-chat-tab.png');
}
.classic-hud-info h3 {
  align-self:flex-end;
  margin:0 18px 0 0;
  background-image:url('./game-hud/game-info-tab.png');
}
@media (min-width:1321px) {
  .classic-stage > .classic-bottom-hud .classic-hud-log { height:136px; }
  main.classic-profile > .classic-stage:not(:fullscreen) > .classic-view3d:has(.char3d-world) > .char3d-motion-controls { bottom:210px; }
  main.classic-profile > .classic-stage:not(:fullscreen) > .classic-view3d:has(.char3d-world) > [role="status"] { bottom:182px; }
}
@media (min-width:541px) {
  .classic-bottom-bar {
    width:min(100%,1024px);
    height:auto;
    min-height:0;
    aspect-ratio:1024 / 62;
    margin-inline:auto;
    padding:0;
    background-image:url('./game-hud/taskbar-native.png');
  }
  .classic-bottom-bar .classic-metal-button {
    top:21%;
    height:59%;
    display:grid;
    place-items:center;
    padding:0;
    line-height:1;
  }
  .classic-bottom-bar .game-hud-inventory { background-image:url('./game-hud/taskbar-inventory.png'); }
  .classic-bottom-bar .game-hud-character { background-image:url('./game-hud/taskbar-character.png'); }
  .classic-bottom-bar .game-hud-skill { background-image:url('./game-hud/taskbar-skill.png'); }
  .classic-bottom-bar .game-hud-exit { background-image:url('./game-hud/taskbar-exit.png'); }
}
@media (max-width:1320px) {
  .classic-hud-pvp,.classic-hud-info { width:50%; }
}

/* Original Karus command strip and the complete client log windows. */
.classic-hud-pvp {
  width:min(53%,541px);
  height:149px;
  background:url('./game-hud/client-chat-native.png') center/100% 100% no-repeat;
}
.classic-hud-info {
  width:min(38%,323px);
  height:149px;
  background:url('./game-hud/client-info-native.png') center/100% 100% no-repeat;
}
.classic-hud-log-content,.classic-hud-info .classic-hud-log-content {
  padding:8px 7px;
  background:none;
}
.classic-hud-log-frame { padding:2px 3px 0; }
.classic-hud-log h3,.classic-hud-info h3 {
  align-self:flex-start;
  margin:0;
  min-width:0;
  width:auto;
  height:22px;
  padding:0 6px;
  line-height:22px;
  color:#e6d6b6;
  background:none;
}
.classic-hud-pvp li,.classic-hud-pvp p { color:#f2df68; }
@media (min-width:1321px) {
  .classic-stage > .classic-bottom-hud {
    width:min(100%,1024px);
    margin-inline:auto;
    padding:0;
  }
  .classic-stage > .classic-bottom-hud .classic-hud-log { height:149px; }
  .classic-stage > .classic-bottom-hud .classic-hud-records { margin-bottom:-3px; }
  main.classic-profile > .classic-stage:not(:fullscreen) > .classic-view3d:has(.char3d-world) > .char3d-motion-controls { bottom:220px; }
  main.classic-profile > .classic-stage:not(:fullscreen) > .classic-view3d:has(.char3d-world) > [role="status"] { bottom:192px; }
}
@media (min-width:541px) {
  .classic-bottom-bar {
    aspect-ratio:1024 / 58;
    border:0;
    margin-top:0;
    background-image:url('./game-hud/client-command-ka.png');
  }
  .classic-bottom-bar .classic-metal-button { top:32%; height:64%; color:#e9e0d2; }
  .classic-bottom-bar .game-hud-inventory { left:9.86%; background-image:url('./game-hud/client-ka-inventory.png'); }
  .classic-bottom-bar .game-hud-character { left:19.63%; background-image:url('./game-hud/client-ka-character.png'); }
  .classic-bottom-bar .game-hud-skill { left:29.3%; background-image:url('./game-hud/client-ka-skill.png'); }
  .classic-bottom-bar .game-hud-exit { background-image:url('./game-hud/client-ka-exit.png'); }
}
@media (max-width:540px) {
  .classic-hud-log-content { padding-inline:4px; }
  .classic-hud-log-frame { gap:0; }
}

.classic-hud-pvp li .classic-hud-killer { color:#ff5757; }
.classic-hud-info .classic-hud-loot li { display:block; color:#bbc7ff; overflow-wrap:anywhere; }
.classic-hud-info .classic-hud-loot li + li { margin-top:1px; }

.classic-hud-log-content { min-height:0; }
.classic-hud-scroll-track { min-height:17px; cursor:pointer; touch-action:none; }
.classic-hud-scroll-thumb { cursor:ns-resize; }
.classic-hud-scroll-track[aria-disabled="true"] .classic-hud-scroll-thumb { visibility:hidden; }
.classic-stage .classic-hud-scroll button:disabled { opacity:.45; cursor:default; filter:none; }
.classic-hud-scroll-track:focus-visible { outline:1px solid #e2bf6c; outline-offset:-1px; }

/* Reserve space for the expanded Genie menu before placing the inventory group. */
@media (min-width:1321px) {
  main.classic-profile > .classic-stage:has(> .classic-genie-menu[open]):not(:fullscreen) {
    height:918px;
  }

  main.classic-profile > .classic-stage:has(> .classic-genie-menu[open]) > .classic-loadout-scroll {
    top:154px;
  }

  main.classic-profile > .classic-stage:has(> .classic-genie-menu[open]) > :is(.classic-character,#classic-skillbar) {
    top:205px;
  }
}

.char3d-motion-controls button[hidden] { display:none; }
.char3d-motion-controls { justify-content:flex-start; }
@media (min-width:1321px) {
  main.classic-profile > .classic-stage > .classic-view3d:has(.char3d-world) > .char3d-motion-controls {
    left:var(--motion-left,29%);
    transform:none;
    flex-direction:column;
    align-items:stretch;
  }
}

.char3d-motion-controls select { padding:5px 8px;background:#24231f;color:#e8e2d3;border:1px solid #514a3b;border-radius:3px;font:12px/1.3 Arial;cursor:pointer; }
.char3d-motion-controls select:focus-visible { outline:2px solid #e2c477;outline-offset:2px; }
.char3d-motion-controls select:disabled { opacity:.5;cursor:wait; }
