﻿    :root {
      --rail-collapsed: 56px;
      --rail-expanded: 232px;
      --bg-deep: #121214;
      --bg-panel: #1a1a1f;
      --bg-card: #24242c;
      --border: #2e2e36;
      --text: #f4f4f5;
      --text-muted: #9ca3af;
      --brand: #ff6701;
      --brand-dim: rgba(255, 103, 1, 0.15);
      --brand-movi: #5dcdf8;
      --top-h: 56px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }
    body {
      font-family: 'Noto Sans KR', system-ui, sans-serif;
      background: var(--bg-deep);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.5;
    }

    /* 고정 폭 레일 — 호버 시 오른쪽으로만 확장(오버레이), 메인 margin 불변 */
    .sidebar {
      position: fixed;
      left: 0;
      top: var(--top-h);
      bottom: 0;
      width: var(--rail-collapsed);
      z-index: 100;
      pointer-events: none;
    }
    .sidebar-inner {
      pointer-events: auto;
      height: 100%;
      width: var(--rail-collapsed);
      background: var(--bg-panel);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      transition: width 0.22s ease, box-shadow 0.22s ease;
      overflow: hidden;
      box-shadow: none;
    }
    .sidebar:hover .sidebar-inner,
    .sidebar:focus-within .sidebar-inner {
      width: var(--rail-expanded);
      box-shadow: 8px 0 32px rgba(0,0,0,0.45);
    }

    .rail-scroll {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 8px 0 0;
    }
    /* 카테고리 아래 하단 블록 — rail-scroll 안에서 카테고리 다음에 위치 */
    .sidebar-rail-foot-wrap {
      display: flex;
      flex-direction: column;
      margin-top: 12px;
      padding-top: 10px;
      padding-bottom: 16px;
      border-top: 1px solid var(--border);
    }
    .sidebar:hover .sidebar-rail-foot-wrap,
    .sidebar:focus-within .sidebar-rail-foot-wrap {
      border-top-color: rgba(255, 255, 255, 0.12);
    }
    .rail-scroll::-webkit-scrollbar { width: 4px; }
    .rail-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 10px 14px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      border-left: 3px solid transparent;
      transition: background 0.15s, color 0.15s;
    }
    .nav-item:hover {
      background: rgba(255,255,255,0.06);
      color: var(--text);
    }
    .nav-item.active {
      color: var(--brand);
      background: var(--brand-dim);
      border-left-color: var(--brand);
    }
    .nav-ico {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      flex-shrink: 0;
    }
    .nav-label {
      opacity: 0;
      transform: translateX(-4px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }
    .sidebar:hover .nav-label,
    .sidebar:focus-within .nav-label {
      opacity: 1;
      transform: translateX(0);
    }

    .nav-rail-divider {
      height: 0;
      margin: 10px 10px 12px;
      border: 0;
      border-top: 1px solid var(--border);
      background: none;
      flex-shrink: 0;
    }
    .sidebar:hover .nav-rail-divider,
    .sidebar:focus-within .nav-rail-divider {
      border-top-color: rgba(255, 255, 255, 0.12);
    }

    /* 언어: 레일에는 현재 언어만, 클릭 시 모달에서 선택 — 카드형 버튼 느낌 */
    .lang-switcher {
      padding: 10px 0 12px;
      overflow: hidden;
    }
    .lang-switcher__trigger {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg-card);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      text-align: left;
      white-space: nowrap;
      box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
      transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    }
    .lang-switcher__trigger:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.14);
      color: var(--text);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    .lang-switcher__trigger:active {
      transform: translateY(1px);
      box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
    body.lang-dialog-open .lang-switcher__trigger {
      border-color: var(--brand);
      background: var(--brand-dim);
      color: var(--brand);
      box-shadow: 0 0 0 1px rgba(255, 103, 1, 0.25);
    }
    .lang-switcher__trigger:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }
    .lang-ico {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }
    .lang-current-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* 사이드바 하단 보조 링크(회사 정보 등) — 레일 접힘 시 숨김 */
    .sidebar-rail-foot {
      display: none;
      padding: 0 14px 10px;
    }
    .sidebar:hover .sidebar-rail-foot,
    .sidebar:focus-within .sidebar-rail-foot {
      display: block;
    }
    .sidebar-rail-foot__link {
      display: block;
      padding: 6px 0;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.15s;
    }
    .sidebar-rail-foot__link:hover {
      color: var(--text);
    }

    /* 저작권 문구 — 레일 접힘 시 숨김, 호버·포커스 시만 표시 */
    .sidebar-rail-copy {
      display: none;
      margin: 0;
    }
    .sidebar:hover .sidebar-rail-copy,
    .sidebar:focus-within .sidebar-rail-copy {
      display: block;
      padding: 10px 6px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      text-align: center;
      line-height: 1.35;
      letter-spacing: -0.02em;
    }

    /* 언어 선택: 왼쪽 슬라이드 패널 (문의 패널과 동일 패턴) */
    .lang-dialog-layer[hidden] {
      display: none !important;
    }
    .lang-dialog-layer {
      position: fixed;
      inset: 0;
      z-index: 126;
      pointer-events: none;
    }
    .lang-dialog-layer:not([hidden]) {
      pointer-events: auto;
    }
    .lang-dialog-backdrop {
      position: absolute;
      left: 0;
      right: 0;
      top: var(--top-h);
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      opacity: 0;
      transition: opacity 0.26s ease;
    }
    .lang-dialog-layer--open .lang-dialog-backdrop {
      opacity: 1;
    }
    .lang-dialog {
      position: absolute;
      left: 0;
      top: var(--top-h);
      bottom: 0;
      width: min(300px, 92vw);
      max-width: 100%;
      background: #0f111a;
      border-right: 1px solid var(--border);
      box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
      display: flex;
      flex-direction: column;
      transform: translateX(-100%);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
      box-sizing: border-box;
    }
    .lang-dialog-layer--open .lang-dialog {
      transform: translateX(0);
    }
    .lang-dialog__head {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 16px 44px 14px;
      border-bottom: 1px solid var(--border);
    }
    .lang-dialog__title {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .lang-dialog__close {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: transparent;
      color: var(--text-muted);
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .lang-dialog__close:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
    }
    .lang-dialog__body {
      flex: 1;
      overflow-y: auto;
      padding: 18px 12px 24px;
    }
    .lang-dialog__options {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .lang-dialog__opt {
      width: 100%;
      padding: 14px 16px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text);
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      text-align: left;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    .lang-dialog__opt:hover {
      background: rgba(255, 103, 1, 0.1);
      border-color: rgba(255, 103, 1, 0.35);
    }
    .lang-dialog__opt.active {
      background: var(--brand-dim);
      border-color: var(--brand);
      color: var(--brand);
    }
    .lang-dialog__opt:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }
    body.lang-dialog-open {
      overflow: hidden;
    }

    /* 문의 패널 (왼쪽 슬라이드) */
    .inquiry-panel-layer[hidden] {
      display: none !important;
    }
    .inquiry-panel-layer {
      position: fixed;
      inset: 0;
      z-index: 125;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .inquiry-panel-layer:not([hidden]) {
      pointer-events: auto;
    }
    .inquiry-panel-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity 0.24s ease;
    }
    .inquiry-panel-layer--open .inquiry-panel-backdrop {
      opacity: 1;
    }
    .inquiry-panel {
      position: relative;
      z-index: 1;
      width: min(420px, 94vw);
      max-height: min(86vh, 680px);
      background: var(--bg-panel);
      border: 1px solid rgba(255, 103, 1, 0.35);
      border-radius: 18px;
      box-shadow: 0 24px 80px rgba(255, 103, 1, 0.15), 0 8px 40px rgba(0, 0, 0, 0.7);
      display: flex;
      flex-direction: column;
      opacity: 0;
      transform: scale(0.94) translateY(10px);
      transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .inquiry-panel-layer--open .inquiry-panel {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
    .inquiry-panel__head {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 16px 44px 14px;
      background: var(--brand);
      border-radius: 18px 18px 0 0;
    }
    .inquiry-panel__title {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #fff !important;
      color: var(--text);
    }
    .inquiry-panel__close {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }
    .inquiry-panel__close:hover {
      background: rgba(255, 255, 255, 0.28);
    }
    .inquiry-panel__back {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s;
    }
    .inquiry-panel__back:hover { background: rgba(255,255,255,.28); }
    .inquiry-panel__back[hidden] { display: none !important; }
    .inquiry-panel__body--center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 12px;
      padding: 40px 24px;
    }
    .inquiry-done__ico { font-size: 48px; }
    .inquiry-done__title { font-size: 17px; font-weight: 800; color: var(--text); }
    .inquiry-done__desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

    /* 문의 폼 */
    .inquiry-form__field { padding: 0 18px; margin-bottom: 16px; }
    .inquiry-form__label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 6px;
      letter-spacing: 0.04em;
    }
    .inquiry-form__hint { font-weight: 400; font-size: 11px; }
    .inquiry-form__input,
    .inquiry-form__textarea {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px 12px;
      color: var(--text);
      font-family: inherit;
      font-size: 14px;
      line-height: 1.5;
      outline: none;
      resize: vertical;
      transition: border-color 0.15s;
      box-sizing: border-box;
    }
    .inquiry-form__input:focus,
    .inquiry-form__textarea:focus { border-color: var(--brand); }
    .inquiry-form__textarea { min-height: 120px; }
    .inquiry-form__file-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 14px;
      border: 1px dashed var(--border);
      border-radius: 8px;
      background: transparent;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
    }
    .inquiry-form__file-btn:hover { border-color: var(--brand); color: var(--brand); }
    .inquiry-form__file-input { display: none; }
    .inquiry-form__file-list {
      list-style: none;
      margin: 8px 0 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .inquiry-form__file-list li {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .inquiry-form__file-remove {
      border: none;
      background: none;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 14px;
      padding: 0 2px;
      line-height: 1;
      transition: color 0.15s;
    }
    .inquiry-form__file-remove:hover { color: #ef4444; }
    .inquiry-form__error {
      margin: 0 18px 12px;
      padding: 10px 12px;
      background: rgba(239,68,68,.12);
      border: 1px solid rgba(239,68,68,.3);
      border-radius: 8px;
      font-size: 13px;
      color: #f87171;
    }
    .inquiry-form__submit {
      display: block;
      width: calc(100% - 36px);
      margin: 0 18px;
      padding: 12px;
      border: none;
      border-radius: 10px;
      background: var(--brand);
      color: #fff;
      font-family: inherit;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: opacity 0.15s;
    }
    .inquiry-form__submit:hover { opacity: 0.88; }
    .inquiry-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }
    .inquiry-panel__body {
      flex: 1;
      overflow-y: auto;
      padding: 18px 0 24px;
    }
    .inquiry-panel__section-label {
      margin: 0 0 10px;
      padding: 0 18px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #6b7280;
    }
    .inquiry-panel__list {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .inquiry-panel__list li {
      margin: 0;
    }
    .inquiry-panel__row {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 18px;
      border: none;
      background: transparent;
      color: var(--text);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
      transition: background 0.15s;
    }
    .inquiry-panel__row:hover {
      background: rgba(255, 103, 1, 0.10);
    }
    .inquiry-panel__ico {
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 17px;
      flex-shrink: 0;
      filter: saturate(1.15);
    }
    .inquiry-panel__label {
      flex: 1;
      min-width: 0;
    }
    .inquiry-panel__chev {
      flex-shrink: 0;
      color: var(--text-muted);
      font-size: 18px;
      font-weight: 300;
      opacity: 0.85;
    }
    body.inquiry-panel-open {
      overflow: hidden;
    }

    /* 로그인 패널 (오른쪽 슬라이드) */
    .login-dialog-layer[hidden] {
      display: none !important;
    }
    .login-dialog-layer {
      position: fixed;
      inset: 0;
      z-index: 127;
      pointer-events: none;
    }
    .login-dialog-layer:not([hidden]) {
      pointer-events: auto;
    }
    .login-dialog-backdrop {
      position: absolute;
      left: 0;
      right: 0;
      top: var(--top-h);
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      opacity: 0;
      transition: opacity 0.26s ease;
    }
    .login-dialog-layer--open .login-dialog-backdrop {
      opacity: 1;
    }
    .login-dialog {
      position: absolute;
      right: 0;
      left: auto;
      top: var(--top-h);
      bottom: 0;
      width: min(380px, 100vw);
      max-width: 100%;
      background: #0f111a;
      border-left: 1px solid var(--border);
      box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
      display: flex;
      flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
      box-sizing: border-box;
    }
    .login-dialog-layer--open .login-dialog {
      transform: translateX(0);
    }
    .login-dialog__head {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 16px 44px 14px;
      border-bottom: 1px solid var(--border);
    }
    .login-dialog__title {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .login-dialog__close {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: transparent;
      color: var(--text-muted);
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .login-dialog__close:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
    }
    .login-dialog__body {
      flex: 1;
      overflow-y: auto;
      padding: 20px 18px 28px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .login-dialog__oauth-stack {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }
    .login-dialog__oauth-wrap--google {
      width: 100%;
      box-sizing: border-box;
      padding: 0;
      border: none;
      background: transparent;
      position: relative;
    }
    .login-dialog__oauth-inner-google {
      position: relative;
      width: 100%;
      min-height: 48px;
    }
    .login-dialog__oauth--google-custom {
      pointer-events: none;
      width: 100%;
      box-sizing: border-box;
      min-height: 48px;
      margin: 0;
      border: 1px solid rgba(0, 0, 0, 0.12);
      border-radius: 12px;
      background: #fff;
      color: #3c4043;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 14px 16px;
    }
    .login-dialog__google-mark {
      flex-shrink: 0;
    }
    .login-dialog__gsi-overlay {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      opacity: 0;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    .login-dialog__gsi-overlay .login-dialog__oauth-slot {
      min-height: 48px;
      width: 100%;
      margin: 0;
    }
    .login-dialog__oauth-slot {
      min-height: 44px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .login-dialog__oauth-slot > div {
      width: 100% !important;
    }
    .login-dialog__oauth {
      width: 100%;
      box-sizing: border-box;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 16px;
      border-radius: 12px;
      border: none;
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: filter 0.15s, opacity 0.15s;
    }
    .login-dialog__oauth--naver {
      background: #03c75a;
      color: #fff;
    }
    .login-dialog__oauth--kakao {
      background: #fee500;
      color: #191919;
    }
    .login-dialog__oauth--google-placeholder {
      display: none;
    }
    .login-dialog__oauth--fb {
      background: #1877f2;
      color: #fff;
    }
    .login-dialog__oauth--apple {
      background: #111;
      color: #fff;
      border: 1px solid var(--border);
    }
    .login-dialog__oauth--soon {
      opacity: 0.45;
      cursor: not-allowed;
    }
    .login-dialog__oauth-soon-btn {
      opacity: 0.5;
      cursor: pointer;
    }
    .login-dialog__oauth-soon-btn:hover {
      opacity: 0.72;
      filter: brightness(1.05);
    }
    .login-dialog__unavailable {
      margin: 0;
      padding: 12px;
      font-size: 13px;
      color: var(--text-muted);
      text-align: center;
      line-height: 1.5;
    }
    body.login-dialog-open {
      overflow: hidden;
    }

    /* 카카오 계정 병합 선택 (로그인 패널 위) */
    .kakao-merge-layer[hidden] {
      display: none !important;
    }
    .kakao-merge-layer {
      position: fixed;
      inset: 0;
      z-index: 128;
      pointer-events: none;
    }
    .kakao-merge-layer:not([hidden]) {
      pointer-events: auto;
    }
    .kakao-merge-backdrop {
      position: absolute;
      left: 0;
      right: 0;
      top: var(--top-h);
      bottom: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(4px);
      opacity: 0;
      transition: opacity 0.26s ease;
    }
    .kakao-merge-layer--open .kakao-merge-backdrop {
      opacity: 1;
    }
    .kakao-merge-dialog {
      position: absolute;
      left: 50%;
      top: calc(var(--top-h) + 10px);
      transform: translate(-50%, -8px) scale(0.98);
      width: min(420px, 94vw);
      max-height: calc(100vh - var(--top-h) - 24px);
      background: #0f111a;
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
      display: flex;
      flex-direction: column;
      opacity: 0;
      transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
      box-sizing: border-box;
      overflow: hidden;
    }
    .kakao-merge-layer--open .kakao-merge-dialog {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
    .kakao-merge__head {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 16px 44px 12px;
      border-bottom: 1px solid var(--border);
    }
    .kakao-merge__title {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text);
      text-align: center;
      line-height: 1.35;
    }
    .kakao-merge__close {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: transparent;
      color: var(--text-muted);
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .kakao-merge__close:hover {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text);
    }
    .kakao-merge__desc {
      margin: 0;
      padding: 14px 18px 8px;
      font-size: 13px;
      line-height: 1.55;
      color: var(--text-muted);
    }
    .kakao-merge__cards {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 8px 18px 18px;
      overflow-y: auto;
    }
    .kakao-merge__card {
      width: 100%;
      text-align: left;
      padding: 14px 16px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text);
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    .kakao-merge__card:hover:not(:disabled) {
      background: rgba(255, 103, 1, 0.08);
      border-color: rgba(255, 103, 1, 0.35);
    }
    .kakao-merge__card:disabled {
      opacity: 0.55;
      cursor: wait;
    }
    .kakao-merge__card-label {
      display: block;
      font-size: 12px;
      font-weight: 800;
      color: var(--brand);
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }
    .kakao-merge__card-body {
      display: block;
      font-size: 13px;
      line-height: 1.5;
      white-space: pre-line;
      color: var(--text);
    }
    .kakao-merge__err {
      margin: 0 18px 16px;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 12px;
      line-height: 1.45;
      background: rgba(239, 68, 68, 0.1);
      color: #f87171;
      border: 1px solid rgba(239, 68, 68, 0.3);
    }
    body.kakao-merge-open {
      overflow: hidden;
    }

    /* ── 이메일 로그인/가입 폼 ── */
    .login-dialog__divider {
      display: flex; align-items: center; gap: 10px;
      font-size: 12px; color: var(--text-muted);
      margin: 4px 0;
    }
    .login-dialog__divider::before,
    .login-dialog__divider::after {
      content: ''; flex: 1; height: 1px; background: var(--border);
    }
    .login-email-tabs {
      display: flex; border-radius: 10px; overflow: hidden;
      border: 1px solid var(--border); flex-shrink: 0;
    }
    .login-email-tab {
      flex: 1; padding: 9px 0; border: none; background: transparent;
      font-family: inherit; font-size: 13px; font-weight: 700;
      color: var(--text-muted); cursor: pointer;
      transition: background .15s, color .15s;
    }
    .login-email-tab.active {
      background: var(--brand); color: #fff;
    }
    .login-email-form { display: flex; flex-direction: column; gap: 10px; }
    .login-email-form input[type="email"],
    .login-email-form input[type="password"] {
      width: 100%; box-sizing: border-box;
      padding: 12px 14px; border-radius: 10px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,.05);
      color: var(--text); font-family: inherit; font-size: 14px;
      outline: none; transition: border-color .15s;
    }
    .login-email-form input:focus { border-color: var(--brand); }
    .login-email-form input::placeholder { color: var(--text-muted); }
    .login-email-form__submit {
      width: 100%; padding: 13px; border: none; border-radius: 10px;
      background: var(--brand); color: #fff;
      font-family: inherit; font-size: 14px; font-weight: 700;
      cursor: pointer; transition: filter .15s;
    }
    .login-email-form__submit:hover { filter: brightness(1.1); }
    .login-email-form__submit:disabled { opacity: .5; cursor: not-allowed; filter: none; }
    .login-email-msg {
      font-size: 12px; line-height: 1.55; text-align: center;
      padding: 10px 14px; border-radius: 8px; display: none;
    }
    .login-email-msg.ok  { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.28); display: block; }
    .login-email-msg.err { background: rgba(239,68,68,.1);   color: #f87171; border: 1px solid rgba(239,68,68,.3);   display: block; }
    .login-email-resend {
      font-size: 12px; color: var(--text-muted); text-align: center;
    }
    .login-email-resend button {
      background: none; border: none; color: var(--brand);
      font-family: inherit; font-size: 12px; cursor: pointer;
      text-decoration: underline; padding: 0;
    }

    /* ── 프로필 아바타 버튼 (로그인 상태) ── */
    .btn-avatar {
      width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--brand);
      overflow: hidden; cursor: pointer; background: var(--card); padding: 0;
      flex-shrink: 0; transition: border-color .15s, box-shadow .15s;
      align-items: center; justify-content: center;
    }
    .btn-avatar:hover { box-shadow: 0 0 0 3px rgba(255,103,1,.25); }
    .btn-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .btn-avatar__initials {
      width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
      background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
    }

    /* ── 프로필 드롭다운 패널 ── */
    .profile-dropdown-layer[hidden] { display: none !important; }
    .profile-dropdown-layer {
      position: fixed; inset: 0; z-index: 1400; pointer-events: none;
    }
    .profile-dropdown-layer:not([hidden]) { pointer-events: auto; }
    .profile-dropdown-backdrop {
      position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0;
      transition: opacity .22s ease;
    }
    .profile-dropdown-layer--open .profile-dropdown-backdrop { opacity: 1; }
    .profile-dropdown {
      position: absolute; right: 0; top: 0; bottom: 0;
      width: 340px; max-width: 100vw;
      background: #1a1a23; display: flex; flex-direction: column;
      transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
      overflow-y: auto; box-sizing: border-box;
    }
    .profile-dropdown-layer--open .profile-dropdown { transform: translateX(0); }

    .profile-dd__close {
      position: absolute; right: 14px; top: 14px;
      background: none; border: none; color: var(--text-muted); font-size: 18px;
      cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: background .15s; z-index: 1;
    }
    .profile-dd__close:hover { background: rgba(255,255,255,.08); color: var(--text); }

    .profile-dd__top {
      display: flex; flex-direction: column; align-items: center;
      padding: 48px 24px 24px; gap: 8px; position: relative;
    }
    .profile-dd__avatar {
      width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--brand);
      overflow: hidden; flex-shrink: 0; background: var(--card);
    }
    .profile-dd__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .profile-dd__avatar-initials {
      width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
      background: var(--brand); color: #fff; font-size: 26px; font-weight: 700;
    }
    .profile-dd__name {
      font-size: 16px; font-weight: 700; color: var(--text); margin: 0;
    }
    .profile-dd__email {
      font-size: 12px; color: var(--text-muted); margin: 0;
    }
    .profile-dd__actions {
      display: flex; align-items: center; gap: 8px; width: 100%; padding: 0 24px 20px;
      box-sizing: border-box;
    }
    .profile-dd__btn-profile {
      flex: 1; height: 40px; border-radius: 12px; border: none;
      background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
      cursor: pointer; transition: filter .15s; display: flex; align-items: center;
      justify-content: center; gap: 6px;
    }
    .profile-dd__btn-profile:hover { filter: brightness(1.1); }
    .profile-dd__btn-icon {
      width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
      background: transparent; color: var(--text-muted); font-size: 17px;
      cursor: pointer; transition: background .15s; display: flex; align-items: center;
      justify-content: center;
    }
    .profile-dd__btn-icon:hover { background: rgba(255,255,255,.07); color: var(--text); }

    .profile-dd__divider { height: 1px; background: var(--border); margin: 0; flex-shrink: 0; }

    .profile-dd__menu { list-style: none; margin: 8px 0; padding: 0; }
    .profile-dd__menu li { display: block; }
    .profile-dd__menu-btn {
      width: 100%; display: flex; align-items: center; gap: 14px;
      padding: 13px 24px; background: none; border: none;
      color: var(--text); font-size: 14px; font-family: inherit;
      text-align: left; cursor: pointer; transition: background .15s;
    }
    .profile-dd__menu-btn:hover { background: rgba(255,255,255,.05); }
    .profile-dd__menu-ico { font-size: 16px; flex-shrink: 0; }
    .profile-dd__menu-btn--danger { color: #f87171; }
    .profile-dd__menu-btn--danger:hover { background: rgba(248,113,113,.08); }

    .profile-dd__footer {
      margin-top: auto; padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 12px;
    }
    .profile-dd__inquiry {
      width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 10px;
      background: none; color: var(--text-muted); font-size: 13px; font-family: inherit;
      cursor: pointer; transition: background .15s;
    }
    .profile-dd__inquiry:hover { background: rgba(255,255,255,.05); color: var(--text); }
    .profile-dd__foot-links {
      display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--text-muted);
    }
    .profile-dd__foot-links a { color: inherit; text-decoration: none; }
    .profile-dd__foot-links a:hover { color: var(--text); }

    /* ── 프로필 드롭다운 소셜 연동 섹션 ── */
    .profile-dd__social-section { padding: 16px 24px 8px; }
    .profile-dd__section-title {
      margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
      text-transform: uppercase; color: var(--text-muted);
    }
    .profile-dd__social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
    .profile-dd__social-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; border-radius: 10px; background: var(--card);
    }
    .profile-dd__social-logo {
      width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; font-weight: 700;
    }
    .profile-dd__social-logo--google   { background: #fff; }
    .profile-dd__social-logo--kakao    { background: #FEE500; color: #3A1D1D; }
    .profile-dd__social-logo--naver    { background: #03C75A; color: #fff; }
    .profile-dd__social-logo--facebook { background: #1877F2; color: #fff; }
    .profile-dd__social-logo--apple    { background: #000; color: #fff; }
    .profile-dd__social-info { flex: 1; min-width: 0; }
    .profile-dd__social-name { font-size: 13px; font-weight: 600; color: var(--text); }
    .profile-dd__social-status { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
    .profile-dd__social-action {
      flex-shrink: 0; height: 28px; padding: 0 12px; border-radius: 8px;
      border: 1px solid var(--border); background: transparent;
      color: var(--text-muted); font-size: 12px; font-family: inherit;
      cursor: pointer; transition: background .15s, color .15s;
      white-space: nowrap;
    }
    .profile-dd__social-action:hover { background: rgba(255,255,255,.07); color: var(--text); }
    .profile-dd__social-action--linked {
      border-color: rgba(34,197,94,.4); color: #4ade80; background: rgba(34,197,94,.08);
    }
    .profile-dd__social-action--linked:hover { background: rgba(248,113,113,.1); color: #f87171; border-color: rgba(248,113,113,.4); }
    .profile-dd__social-action--soon {
      opacity: .45; cursor: not-allowed;
    }
    .profile-dd__social-action--soon:hover { background: transparent; color: var(--text-muted); }
    .profile-dd__socials {
      display: flex; gap: 16px; align-items: center;
    }
    .profile-dd__socials a {
      color: var(--text-muted); text-decoration: none; font-size: 18px;
      transition: color .15s;
    }
    .profile-dd__socials a:hover { color: var(--text); }

    /* 프로필 수정 패널 */
    .profile-edit-layer[hidden] { display: none !important; }
    .profile-edit-layer {
      position: fixed; inset: 0; z-index: 1450;
      pointer-events: none;
    }
    .profile-edit-layer:not([hidden]) { pointer-events: auto; }
    .profile-edit-backdrop {
      position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55);
      opacity: 0; transition: opacity 0.2s;
    }
    .profile-edit-layer--open .profile-edit-backdrop { opacity: 1; }
    .profile-edit-panel {
      position: absolute; top: 0; right: 0; bottom: 0;
      width: 100%; max-width: 420px;
      background: var(--bg-panel);
      border-left: 1px solid var(--border);
      display: flex; flex-direction: column;
      transform: translateX(100%); transition: transform 0.25s ease;
      box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    }
    .profile-edit-layer--open .profile-edit-panel { transform: translateX(0); }
    .profile-edit-head {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .profile-edit-head h2 {
      flex: 1; font-size: 16px; font-weight: 800; margin: 0;
      text-align: center; letter-spacing: -0.02em;
    }
    .profile-edit-head button {
      width: 40px; height: 40px; border: none; border-radius: 10px;
      background: transparent; color: var(--text-muted); font-size: 18px;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .profile-edit-head button:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
    .profile-edit-scroll {
      flex: 1; overflow-y: auto;
      padding: 20px 20px 28px;
    }
    .profile-edit-avatar-row {
      display: flex; flex-direction: column; align-items: center; gap: 14px;
      margin-bottom: 22px; padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
      text-align: center;
    }
    .profile-edit-avatar {
      width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%;
      overflow: hidden; border: 2px solid var(--brand);
      background: var(--bg-card);
    }
    .profile-edit-avatar-inner {
      width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    }
    .profile-edit-avatar-inner img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .profile-edit-avatar-initials {
      font-size: 22px; font-weight: 800; color: var(--text);
    }
    .profile-edit-avatar-meta {
      display: flex; flex-direction: column; align-items: center;
      width: 100%; min-width: 0;
    }
    .profile-edit-avatar-label {
      margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--text-muted);
      text-align: center;
    }
    .profile-edit-avatar-btn {
      padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border);
      background: var(--bg-card); color: var(--text); font-size: 13px; font-weight: 600;
      font-family: inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s;
    }
    .profile-edit-avatar-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--brand); }
    .profile-edit-avatar-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .profile-edit-field { margin-bottom: 18px; }
    .profile-edit-field label {
      display: block; font-size: 12px; font-weight: 700; color: var(--text-muted);
      margin-bottom: 8px;
    }
    .profile-edit-field input,
    .profile-edit-field select {
      width: 100%; height: 44px; border-radius: 10px;
      border: 1px solid var(--border); background: var(--bg-card);
      color: var(--text); padding: 0 14px; font-size: 14px; font-family: inherit;
    }
    .profile-edit-field input:focus,
    .profile-edit-field select:focus { outline: none; border-color: var(--brand); }
    /* 생일: 연도/월/일 select 3개 */
    .profile-edit-field--birthday .profile-edit-date-wrap {
      display: flex; align-items: center; gap: 2px;
      min-height: 44px; border-radius: 10px;
      border: 1px solid var(--border); background: var(--bg-card);
      padding: 0 10px;
      transition: border-color 0.15s;
    }
    .profile-edit-field--birthday .profile-edit-date-wrap:focus-within {
      border-color: var(--brand);
    }
    .profile-edit-field--birthday .birthday-sel {
      flex: 1; min-width: 0; height: 32px;
      border: none !important; background: transparent !important;
      color: var(--text); font-size: 14px; font-family: inherit;
      padding: 0 2px; cursor: pointer;
      -webkit-appearance: none; appearance: none;
      text-align: center;
    }
    .profile-edit-field--birthday .birthday-sel:focus { outline: none; }
    .profile-edit-field--birthday .birthday-sel option {
      background: #1a1a1f; color: #e8e8ec;
    }
    .profile-edit-field--birthday .birthday-sel#birthday-year { flex: 1.6; }
    .profile-edit-field--birthday .birthday-sep {
      color: var(--text-muted); font-size: 14px; flex-shrink: 0; user-select: none;
    }
    .profile-edit-field--birthday .birthday-clear {
      flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
      border: none; background: rgba(255,255,255,0.12); color: var(--text-muted);
      font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s, color 0.15s;
    }
    .profile-edit-field--birthday .birthday-clear:hover { background: rgba(255,255,255,0.22); color: var(--text); }
    .profile-edit-private {
      margin-top: 24px; padding-top: 20px;
      border-top: 1px solid var(--border);
    }
    .profile-edit-private h3 {
      font-size: 14px; font-weight: 800; margin: 0 0 8px;
    }
    .profile-edit-private .profile-edit-hint {
      font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px;
    }
    .profile-edit-error {
      font-size: 13px; color: #f87171; margin-bottom: 12px;
    }
    .profile-edit-submit {
      width: 100%; height: 48px; border: none; border-radius: 12px;
      background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
      cursor: pointer; font-family: inherit; margin-top: 8px;
      transition: opacity 0.15s, filter 0.15s;
    }
    .profile-edit-submit:hover { filter: brightness(1.05); }
    .profile-edit-submit:disabled { opacity: 0.5; cursor: not-allowed; }

    /* 문의·언어 패널 열림: 왼쪽 레일도 펼쳐서 같이 보이게 (로그인 패널은 오른쪽만 열림) */
    .sidebar.sidebar--inquiry-open .sidebar-inner,
    .sidebar.sidebar--lang-open .sidebar-inner {
      width: var(--rail-expanded);
      box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    }
    .sidebar.sidebar--inquiry-open .nav-label,
    .sidebar.sidebar--inquiry-open .lang-current-label,
    .sidebar.sidebar--lang-open .nav-label,
    .sidebar.sidebar--lang-open .lang-current-label {
      opacity: 1;
      transform: translateX(0);
    }
    .sidebar.sidebar--inquiry-open .nav-rail-divider,
    .sidebar.sidebar--lang-open .nav-rail-divider {
      border-top-color: rgba(255, 255, 255, 0.12);
    }
    .sidebar.sidebar--inquiry-open .sidebar-rail-actions,
    .sidebar.sidebar--lang-open .sidebar-rail-actions {
      display: block;
      padding: 0 0 10px;
    }
    .sidebar.sidebar--inquiry-open .sidebar-rail-copy,
    .sidebar.sidebar--lang-open .sidebar-rail-copy {
      display: block;
      padding: 10px 6px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      text-align: center;
      line-height: 1.35;
      letter-spacing: -0.02em;
    }
    .sidebar.sidebar--inquiry-open .sidebar-rail-foot,
    .sidebar.sidebar--lang-open .sidebar-rail-foot {
      display: block;
    }

    /* 메인: 탑바 아래부터, 레일 접힘 폭만큼 왼쪽 여백 */
    .layout-main {
      margin-left: var(--rail-collapsed);
      padding-top: var(--top-h);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .topbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 110;
      height: var(--top-h);
      background: rgba(18, 18, 20, 0.92);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 20px 0 16px;
    }

    /* 예전 햄버거 버튼(.btn-icon 40×40) 자리 — 레이아웃 유지 */
    .topbar-leading-spacer {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
    }

    .btn-icon {
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 10px;
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      transition: background 0.15s, color 0.15s;
    }
    .btn-icon:hover { background: rgba(255,255,255,0.08); color: var(--text); }

    .topbar-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--text);
      font-weight: 800;
      font-size: 17px;
      letter-spacing: -0.02em;
    }
    .brand-movi {
      color: var(--brand-movi);
    }
    .topbar-brand-logo {
      height: 26px;
      width: auto;
      display: block;
      flex-shrink: 0;
    }
    .search-wrap {
      flex: 1;
      max-width: 480px;
      margin: 0 auto;
      position: relative;
    }
    .search-wrap input {
      width: 100%;
      height: 40px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--bg-panel);
      color: var(--text);
      padding: 0 16px 0 42px;
      font-size: 14px;
      outline: none;
    }
    .search-wrap input:focus { border-color: var(--brand); }
    .search-wrap input::placeholder { color: #6b7280; }
    .search-ico {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 16px;
      pointer-events: none;
    }

    .search-dropdown {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      z-index: 120;
      max-height: min(70vh, 420px);
      overflow: auto;
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    }
    .search-dropdown[hidden] { display: none !important; }
    .search-dropdown__list {
      list-style: none;
      margin: 0;
      padding: 6px;
    }
    .search-dropdown__list li { margin: 0; }
    .search-dropdown__item {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      text-align: left;
      padding: 10px 12px;
      border: none;
      border-radius: 10px;
      background: transparent;
      color: var(--text);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.12s;
    }
    .search-dropdown__item:hover,
    .search-dropdown__item:focus-visible {
      background: rgba(255, 255, 255, 0.08);
      outline: none;
    }
    .search-dropdown__thumb {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-card);
    }
    .search-dropdown__title {
      flex: 1;
      min-width: 0;
      line-height: 1.35;
    }
    .search-dropdown__empty {
      margin: 0;
      padding: 16px 14px;
      font-size: 13px;
      color: var(--text-muted);
      text-align: center;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .topbar-login-slot {
      display: flex;
      align-items: center;
      min-height: 40px;
    }
    .btn-login {
      height: 40px;
      padding: 0 18px;
      border-radius: 12px;
      border: none;
      background: var(--brand);
      color: #fff;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      margin-left: 0;
      transition: filter 0.15s;
    }
    .btn-login:hover { filter: brightness(1.08); }

    /* 사이드바: 문의하기 — 레일 접힘 시 숨김, 호버·포커스 시만 표시 */
    .sidebar-rail-actions {
      display: none;
    }
    .sidebar:hover .sidebar-rail-actions,
    .sidebar:focus-within .sidebar-rail-actions {
      display: block;
      padding: 0 0 10px;
    }
    .sidebar-inquiry.btn-login {
      margin-left: 0;
      width: 100%;
      box-sizing: border-box;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: inherit;
      text-decoration: none;
      color: #fff;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .page-body {
      flex: 1;
      padding: 8px 24px 48px;
      max-width: none;
      width: 100%;
      margin: 0;
    }

    .section {
      margin-top: 8px;
    }
    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 12px;
    }
    /* 섹션 타이틀: MSN/Windows 플레이 허브류 — 세미볼드 + 오른쪽 텍스트 링크 */
    .section-title {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    .section-more {
      font-size: 13px;
      font-weight: 600;
      color: #99c9ff;
      text-decoration: none;
      white-space: nowrap;
      border-radius: 4px;
      padding: 2px 4px;
      margin: -2px -4px;
      transition: background 0.15s ease, color 0.15s ease;
    }
    .section-more:hover {
      color: #fff;
      text-decoration: underline;
      background: rgba(255, 255, 255, 0.06);
    }
    .section-more:focus-visible {
      outline: 2px solid var(--brand);
      outline-offset: 2px;
    }

    .row-scroll-outer {
      position: relative;
    }
    /* 좌우 가장자리 그라데이션 + 블러 (호버 시 버튼 쪽, 스크롤 끝이 아닐 때만) */
    .row-scroll-outer::before,
    .row-scroll-outer::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 76px;
      z-index: 1;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.22s ease;
    }
    .row-scroll-outer::before {
      left: 0;
      background: rgba(18, 18, 20, 0.2);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      mask-image: linear-gradient(to right, black 35%, transparent 100%);
      -webkit-mask-image: linear-gradient(to right, black 35%, transparent 100%);
    }
    .row-scroll-outer::after {
      right: 0;
      background: rgba(18, 18, 20, 0.2);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      mask-image: linear-gradient(to left, black 35%, transparent 100%);
      -webkit-mask-image: linear-gradient(to left, black 35%, transparent 100%);
    }
    .row-scroll-outer.is-scrollable:hover:not(.at-start)::before,
    .row-scroll-outer.is-scrollable:focus-within:not(.at-start)::before {
      opacity: 1;
    }
    .row-scroll-outer.is-scrollable:hover:not(.at-end)::after,
    .row-scroll-outer.is-scrollable:focus-within:not(.at-end)::after {
      opacity: 1;
    }
    .row-scroll-outer .row-scroll-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 44px;
      height: 38px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: rgba(26, 26, 31, 0.94);
      color: var(--text);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, background 0.15s, border-color 0.15s;
      font-family: inherit;
      padding: 0;
    }
    .row-scroll-outer .row-scroll-btn:hover:not(:disabled) {
      background: var(--bg-card);
      border-color: rgba(255, 103, 1, 0.45);
    }
    .row-scroll-outer .row-scroll-btn:disabled {
      opacity: 0.25;
      cursor: default;
    }
    .row-scroll-outer.is-scrollable:hover .row-scroll-btn:not(:disabled),
    .row-scroll-outer.is-scrollable:focus-within .row-scroll-btn:not(:disabled) {
      opacity: 1;
      pointer-events: auto;
    }
    .row-scroll-outer.is-scrollable:hover .row-scroll-btn:disabled,
    .row-scroll-outer.is-scrollable:focus-within .row-scroll-btn:disabled {
      opacity: 0.25;
      pointer-events: none;
    }
    .row-scroll-outer .row-scroll-prev { left: 4px; }
    .row-scroll-outer .row-scroll-next { right: 4px; }

    .row-scroll {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding-bottom: 4px;
      scroll-snap-type: x proximity;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .row-scroll::-webkit-scrollbar {
      display: none;
      width: 0;
      height: 0;
    }

    /* 게임 카드: Fluent식 얕은 그림자 + 호버 시 살짝 들림(MSN Play 타일 느낌) */
    .game-card {
      flex: 0 0 200px;
      scroll-snap-align: start;
      border-radius: 12px;
      overflow: hidden;
      background: var(--bg-card);
      /* 외곽 1px 테두리 제거 — 썸네일 가장자리 선처럼 보이던 원인 */
      border: none;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      text-decoration: none;
      color: inherit;
      display: block;
      -webkit-tap-highlight-color: transparent;
    }
    .game-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), 0 0 24px rgba(255, 103, 1, 0.1);
    }
    .game-card:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--brand), 0 6px 20px rgba(0, 0, 0, 0.35);
    }
    .game-thumb-wrap {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #111;
      line-height: 0;
      border-radius: 12px;
      isolation: isolate;
    }
    .game-thumb-wrap img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
      border: none;
      outline: none;
      transition: transform 0.35s ease;
      /* 스케일 시 모서리에 색이 한 줄 비치는 현상 완화 */
      backface-visibility: hidden;
      transform: translateZ(0);
    }
    .game-card:hover .game-thumb-wrap img { transform: translateZ(0) scale(1.03); }
    .game-card-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      border-radius: 12px;
      z-index: 2;
    }
    .game-thumb-wrap img {
      position: relative;
      z-index: 1;
    }
    .game-card-video.is-playing {
      opacity: 1;
    }
    @media (prefers-reduced-motion: reduce) {
      .game-card:hover { transform: none; }
      .game-card:hover .game-thumb-wrap img { transform: translateZ(0); }
    }
    .game-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 6px;
      background: var(--brand);
      color: #fff;
    }
    .game-badge.new { background: #22c55e; }
    .game-badge.hot { background: #ef4444; }
    .game-title-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 3;
      padding: 28px 12px 10px 14px;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.3;
      color: #fff;
      text-align: right;
      text-shadow: 0 1px 3px rgba(0,0,0,0.8);
      background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 38%, rgba(0,0,0,0.12) 72%, transparent 100%);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.22s ease, visibility 0.22s ease;
    }
    /* 호버 불가 기기(대부분 터치): 제목 항상 표시 */
    @media (hover: none) {
      .game-title-overlay {
        opacity: 1;
        visibility: visible;
      }
    }
    /* 호버 가능: 카드에 올리거나 Tab 포커스일 때만 표시 */
    @media (hover: hover) {
      .game-card:hover .game-title-overlay,
      .game-card:focus-visible .game-title-overlay {
        opacity: 1;
        visibility: visible;
      }
    }

    /* ── 카테고리 뷰 ── */
    .cat-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }
    .btn-cat-back {
      background: var(--bg-card);
      border: none;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
      padding: 8px 14px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      white-space: nowrap;
      font-family: inherit;
    }
    .btn-cat-back:hover { background: var(--bg-panel); color: var(--text); }
    .cat-header__title {
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      margin: 0;
    }
    .cat-header__count {
      font-size: 13px;
      color: var(--text-muted);
      margin-left: auto;
    }

    /* ── 게임 그리드 (카테고리 뷰) ── */
    .game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 14px;
    }

    /* ── 페이지네이션 ── */
    .pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      margin-top: 40px;
      margin-bottom: 8px;
      flex-wrap: wrap;
    }
    .page-btn {
      min-width: 38px;
      height: 38px;
      padding: 0 10px;
      background: var(--bg-card);
      border: none;
      border-radius: 8px;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      font-family: inherit;
    }
    .page-btn:hover:not(:disabled) { background: var(--bg-panel); color: var(--text); }
    .page-btn.active { background: var(--brand); color: #fff; }
    .page-btn:disabled { opacity: 0.3; cursor: default; }
    .page-btn--arrow { font-size: 18px; }
    .page-ellipsis { color: var(--text-muted); padding: 0 4px; line-height: 38px; }

    /* ── 계속 플레이하기: 정사각형 카드 ── */
    .game-card--square {
      flex: 0 0 100px;
    }
    .game-card--square .game-thumb-wrap {
      aspect-ratio: 1 / 1;
    }
    .game-card--square .game-thumb-wrap img {
      object-fit: cover;
      object-position: center;
    }
    .game-card--square .game-title-overlay,
    .game-card--square .game-card-video {
      display: none;
    }

    .site-footer {
      margin-top: 48px;
      padding: 20px 24px 18px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      text-align: center;
    }
    .site-footer__links {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px 20px;
      margin-bottom: 10px;
    }
    .site-footer__links a {
      color: #fff;
      text-decoration: none;
      font-weight: 600;
      font-size: 13px;
      opacity: 0.9;
      transition: opacity 0.15s;
    }
    .site-footer__links a:hover { opacity: 1; text-decoration: underline; }
    .site-footer__copy {
      margin: 0;
      font-size: 11px;
      opacity: 0.75;
      color: #fff;
    }

    .view-hidden { display: none !important; }

    .game-play-body { padding-top: 12px; }

    /* 플레이 화면도 메인과 동일하게 가로 전체 사용 */
    #view-game.page-body {
      max-width: none;
      width: 100%;
    }
    .game-main-col {
      min-width: 0;
    }

    .game-layout {
      display: grid;
      grid-template-columns: 1fr minmax(260px, 300px);
      gap: 20px;
      align-items: start;
    }
    @media (max-width: 1279px) and (min-width: 769px) {
      #view-game .game-layout {
        grid-template-columns: 1fr 150px;
      }
    }

    /* 게임 플레이: 상단 한 줄(플레이어·배너 전체 폭) → 그 아래 좌(정보·소개) / 우(사이드) */
    #view-game .game-main-col {
      display: contents;
    }
    #view-game .game-layout {
      grid-template-rows: auto auto auto;
    }
    #view-game .player-area {
      grid-column: 1 / -1;
      grid-row: 1;
    }
    #view-game .game-info-panel {
      grid-column: 1;
      grid-row: 2;
    }
    #view-game .game-intro-block {
      grid-column: 1;
      grid-row: 3;
    }
    #view-game .game-side-panel {
      grid-column: 2;
      grid-row: 2 / span 2;
      align-self: start;
    }

    /* 세로형 게임: player-area를 col 1만 차지하게 해서 사이드패널이 row 1부터 옆에 표시 */
    @media (min-width: 1081px) {
      #view-game .game-layout.is-portrait .player-area {
        grid-column: 1;
        grid-row: 1;
      }
      #view-game .game-layout.is-portrait .game-side-panel {
        grid-column: 2;
        grid-row: 1 / span 3;
      }
    }


    /* 플레이어 영역 전체 컨테이너 — 세로 방향 */
    .player-area {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
      /* player-row ↔ 728×90 배너 (형제라 --ad-gap-after-bar 상속 안 됨) */
      gap: 20px;
    }

    /* 플레이어 한 줄(세로형일 때 가운데 정렬) */
    .player-row {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 12px;
      width: 100%;
    }

    .player-row:has(.player-wrap.is-portrait) {
      justify-content: center;
      align-items: center;
    }

    /* 세로형 게임 160×600 사이드 광고 */
    .player-row-side {
      display: none;           /* 기본: 가로형에선 숨김 */
      flex: 0 0 160px;
      width: 160px;
      height: 600px;
      align-self: center;
      align-items: center;
      justify-content: center;
    }
    .player-row:has(.player-wrap.is-portrait) .player-row-side {
      display: flex;
    }
    .ad-slot--skyscraper {
      width: 160px;
      height: 600px;
      background: var(--bg-panel);
      border: 1px dashed var(--border);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      color: var(--text-muted);
    }
    /* 오른쪽·왼쪽 광고: 공간 부족 시 동시에 숨김 */
    @media (max-width: 1199px) {
      .player-row-side--right,
      .player-row-side--left  { display: none !important; }
    }

    /* 플레이어 래퍼 — 가로폭 제어 + 메뉴바 + 하단 광고배너 포함 */
    .player-wrap {
      /*
        chrome 합계 ≈ 222px
          topbar 56 + body padding-top 12 + player-bar 40 + 메뉴~광고 간격 12 + ad-banner 90 + 여유 12
      */
      --ad-banner-h: 90px;
      --ad-gap-after-bar: 12px;
      --chrome-h: 222px;
      --player-max-h: min(90vh, calc(100dvh - var(--chrome-h)));
      /* 가로형: 너비를 화면폭 기준으로 잡고 높이는 16:9로 파생 */
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      max-width: min(100%, calc(var(--player-max-h) * 16 / 9));
    }
    .player-wrap.is-portrait {
      /* 세로형: 높이를 기준으로 잡고 너비를 9:16로 파생 */
      --ad-gap-after-bar: 12px;
      --chrome-h: calc(210px + var(--ad-gap-after-bar));
      --player-max-h: min(90vh, calc(100dvh - var(--chrome-h)));
      width: auto;
      flex: 0 0 auto;
      max-width: min(100%, calc(var(--player-max-h) * 9 / 16));
    }
    .player-shell {
      border-radius: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-bottom: none;
      background: #000;
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      max-height: var(--player-max-h);
      flex-shrink: 0;
      min-height: 0;
    }
    .player-shell.is-portrait {
      aspect-ratio: 9 / 16;
      /* 높이를 명시해야 정확하게 뷰포트에 맞음 */
      height: var(--player-max-h);
      max-height: var(--player-max-h);
    }
    /* 전체화면 상태 — 비율 제한 해제, 전체 채움 */
    .player-shell:fullscreen,
    .player-shell:-webkit-full-screen {
      width: 100% !important;
      height: 100% !important;
      max-height: none !important;
      aspect-ratio: auto !important;
      border-radius: 0 !important;
      border: none !important;
    }
    .player-shell iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: none;
      z-index: 0;
    }
    /* 게임 메뉴바 */
    .player-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 40px;
      padding: 0 10px 0 14px;
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0;
      gap: 8px;
      flex-shrink: 0;
      position: relative;
      z-index: 2;
    }
    .player-bar-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      min-width: 0;
    }
    .btn-fullscreen {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      padding: 0;
      border: none;
      border-radius: 0;
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      font-family: inherit;
    }
    .btn-fullscreen:hover {
      background: rgba(255,255,255,0.08);
      color: var(--text);
    }
    .btn-fullscreen svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* player-bar 버튼 공통 위쪽 툴팁 */
    .player-bar [data-tooltip] {
      position: relative;
    }
    .player-bar [data-tooltip]::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      background: #2a2a38;
      color: #f4f4f8;
      font-size: 11px;
      font-weight: 600;
      white-space: nowrap;
      padding: 4px 8px;
      border-radius: 6px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.15s, transform 0.15s;
      z-index: 100;
      border: 1px solid rgba(255,255,255,0.08);
    }
    .player-bar [data-tooltip]:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* 좋아요 / 싫어요 */
    .player-bar-reactions {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }
    .btn-reaction {
      display: flex;
      align-items: center;
      gap: 4px;
      height: 28px;
      padding: 0 8px;
      border: 1px solid transparent;
      border-radius: 14px;
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      font-size: 12px;
      font-family: inherit;
      font-weight: 600;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .btn-reaction svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
      flex-shrink: 0;
    }
    .btn-reaction:hover {
      background: rgba(255,255,255,0.07);
      color: var(--text);
    }
    .btn-reaction--like[aria-pressed="true"] {
      color: var(--brand);
      border-color: var(--brand);
      background: rgba(255,103,1,0.12);
    }
    .btn-reaction--dislike[aria-pressed="true"] {
      color: #7eb8f7;
      border-color: #7eb8f7;
      background: rgba(126,184,247,0.12);
    }
    .btn-reaction--share {
      color: var(--text-muted);
    }
    .btn-reaction--share:hover {
      color: var(--text);
    }

    /* 공유 토스트 */
    .share-toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: #333344;
      color: #f4f4f8;
      font-size: 13px;
      font-weight: 600;
      padding: 10px 20px;
      border-radius: 20px;
      white-space: nowrap;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 9999;
    }
    .share-toast--visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .player-start-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      overflow: hidden;
      border-radius: inherit;
    }
    .player-start-overlay.is-hidden {
      display: none;
    }
    .player-start-bg {
      position: absolute;
      inset: -12px;
      background-color: #141418;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transform: scale(1.03);
      filter: blur(10px) saturate(1.08);
      -webkit-filter: blur(10px) saturate(1.08);
    }
    .player-start-scrim {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 90% 80% at 50% 45%, rgba(22, 22, 28, 0.38) 0%, rgba(8, 8, 10, 0.62) 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 100%);
      pointer-events: none;
    }
    .player-start-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      padding: 24px;
      min-height: 100%;
      text-align: center;
      box-sizing: border-box;
    }
    .player-start-title {
      font-size: clamp(15px, 2.8vw, 18px);
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.02em;
      max-width: 90%;
      text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
    }
    .player-start-hint {
      font-size: 13px;
      color: rgba(228, 228, 232, 0.92);
      max-width: 320px;
      line-height: 1.45;
      text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
    }
    .player-start-btn {
      margin-top: 4px;
      padding: 14px 32px;
      border: none;
      border-radius: 0;
      background: var(--brand);
      color: #fff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
      transition: filter 0.15s, transform 0.12s ease;
      box-shadow: 0 4px 20px rgba(255, 103, 1, 0.35);
    }
    .player-start-btn:hover {
      filter: brightness(1.08);
    }
    .player-start-btn:active {
      transform: scale(0.98);
    }
    .player-start-btn:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 3px;
    }

    .ad-banner-leaderboard {
      width: 728px;
      min-width: 728px;
      max-width: 728px;
      height: 90px;
      min-height: 90px;
      margin-top: 0;
      align-self: center;
      box-sizing: border-box;
      border: 1px dashed var(--border);
      border-radius: 0;
      background: rgba(255,255,255,0.025);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.03em;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }

    /* Game detail: meta, category badges, inline 300x250 ad (소개는 .game-intro-block) */
    .game-info-panel {
      margin-top: 20px;
      box-sizing: border-box;
      width: 100%;
      margin-inline: 0;
      padding: 22px 24px 24px;
      border-radius: 12px;
      background: #2d2b42;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }
    .game-info-panel__grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr); /* 광고 미연동으로 임시 1열 (2026-07-07) — 광고 재연동 시 minmax(0, 1fr) 300px 로 원복 */
      gap: 24px 28px;
      align-items: start;
    }
    .game-info-panel__title {
      margin: 0 0 12px;
      font-size: clamp(1.25rem, 2.2vw, 1.6rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      color: #fff;
      line-height: 1.25;
    }
    .game-info-panel__actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
    }
    .btn-info-share {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 32px;
      padding: 0 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: transparent;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .btn-info-share svg {
      width: 15px;
      height: 15px;
      fill: currentColor;
      flex-shrink: 0;
    }
    .btn-info-share:hover {
      background: rgba(255,255,255,0.06);
      color: var(--text);
      border-color: rgba(255,255,255,0.2);
    }
    .game-info-panel__meta {
      margin: 0 0 18px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .game-info-panel__meta .game-info-row {
      display: grid;
      grid-template-columns: 88px 1fr;
      gap: 12px 16px;
      align-items: baseline;
      font-size: 14px;
      line-height: 1.45;
    }
    .game-info-panel__meta dt {
      margin: 0;
      font-weight: 600;
      color: rgba(228, 228, 236, 0.55);
    }
    .game-info-panel__meta dd {
      margin: 0;
      font-weight: 600;
      color: #f4f4f8;
    }
    .game-rating-value {
      display: flex;
      align-items: baseline;
      gap: 6px;
      flex-wrap: wrap;
    }
    .game-rating-score {
      font-size: 16px;
      font-weight: 700;
      color: var(--brand);
    }
    .game-rating-votes {
      font-size: 12px;
      font-weight: 400;
      color: rgba(228, 228, 236, 0.5);
    }
    .game-intro-block {
      margin-top: 16px;
      box-sizing: border-box;
      width: 100%;
      padding: 22px 24px 24px;
      border-radius: 12px;
      background: #2d2b42;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }
    .game-intro-block__title {
      margin: 0 0 10px;
      font-size: 15px;
      font-weight: 800;
      color: #fff;
    }
    .game-intro-block__body {
      margin: 0;
      font-size: 14px;
      line-height: 1.65;
      color: rgba(220, 220, 230, 0.88);
    }
    .game-intro-block__body.game-intro-block__body--md :first-child {
      margin-top: 0;
    }
    .game-intro-block__body.game-intro-block__body--md :last-child {
      margin-bottom: 0;
    }
    .game-intro-block__body.game-intro-block__body--md h1,
    .game-intro-block__body.game-intro-block__body--md h2,
    .game-intro-block__body.game-intro-block__body--md h3 {
      margin: 1.1em 0 0.45em;
      font-weight: 800;
      color: #fff;
      line-height: 1.3;
    }
    .game-intro-block__body.game-intro-block__body--md h1 { font-size: 1.35em; }
    .game-intro-block__body.game-intro-block__body--md h2 { font-size: 1.2em; }
    .game-intro-block__body.game-intro-block__body--md h3 { font-size: 1.08em; }
    .game-intro-block__body.game-intro-block__body--md p {
      margin: 0 0 0.75em;
    }
    .game-intro-block__body.game-intro-block__body--md ul,
    .game-intro-block__body.game-intro-block__body--md ol {
      margin: 0 0 0.75em;
      padding-left: 1.35em;
    }
    .game-intro-block__body.game-intro-block__body--md li {
      margin: 0.25em 0;
    }
    .game-intro-block__body.game-intro-block__body--md a {
      color: #a5b4fc;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .game-intro-block__body.game-intro-block__body--md a:hover {
      color: #c7d2fe;
    }
    .game-intro-block__body.game-intro-block__body--md code {
      font-size: 0.9em;
      padding: 0.12em 0.35em;
      border-radius: 4px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .game-intro-block__body.game-intro-block__body--md pre {
      margin: 0 0 0.85em;
      padding: 12px 14px;
      overflow: auto;
      font-size: 13px;
      line-height: 1.5;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .game-intro-block__body.game-intro-block__body--md pre code {
      padding: 0;
      border: none;
      background: transparent;
    }
    .game-intro-block__body.game-intro-block__body--md blockquote {
      margin: 0 0 0.75em;
      padding: 6px 0 6px 14px;
      border-left: 3px solid rgba(165, 180, 252, 0.55);
      color: rgba(220, 220, 230, 0.82);
    }
    .game-intro-block__body.game-intro-block__body--md hr {
      margin: 1em 0;
      border: none;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .game-intro-block__body.game-intro-block__body--md strong {
      font-weight: 800;
      color: #f0f0f8;
    }
    .game-info-panel__badges-wrap {
      margin-top: 4px;
    }
    .game-info-panel__badges-label {
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.72);
    }
    .game-info-panel__badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 10px;
    }
    .game-cat-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px 6px 8px;
      border-radius: 999px;
      background: rgba(45, 45, 58, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    a.game-cat-badge:hover {
      background: rgba(60, 60, 80, 0.95);
      border-color: rgba(255, 255, 255, 0.18);
    }
    .game-cat-badge__dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .game-cat-badge__name {
      color: #fff;
    }
    .game-cat-badge__count {
      color: #b4a9ff;
      font-weight: 800;
      margin-left: 2px;
    }
    .game-cat-badge--empty {
      color: rgba(255, 255, 255, 0.45);
      font-weight: 600;
      border-style: dashed;
    }
    .game-info-panel__ad-aside {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    #view-game .game-info-panel__ad-slot.ad-slot--inline {
      display: flex;
      width: 300px;
      max-width: 100%;
      height: 250px;
      min-height: 250px;
      margin-inline: 0;
      box-sizing: border-box;
    }
    .game-info-panel__ad-note {
      margin: 0;
      font-size: 11px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.38);
      letter-spacing: 0.06em;
    }
    @media (max-width: 900px) {
      .game-info-panel__grid {
        grid-template-columns: 1fr;
      }
      .game-info-panel__ad-aside {
        width: 100%;
      }
      #view-game .game-info-panel__ad-slot.ad-slot--inline {
        margin-inline: auto;
      }
    }
    @media (max-width: 520px) {
      .game-info-panel__meta .game-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
      }
    }

    .game-side-panel {
      display: flex;
      flex-direction: column;
      gap: 18px;
      min-width: 0;
    }
    /* Game detail sidebar ad: 300x250 only when viewport >= 1280px */
    .ad-slot {
      box-sizing: border-box;
      width: 300px;
      max-width: 100%;
      height: 250px;
      min-height: 250px;
      margin-inline: auto;
      flex-shrink: 0;
      border-radius: 0;
      border: 1px dashed var(--border);
      background: rgba(255,255,255,0.03);
      align-items: center;
      justify-content: center;
      font-size: 12px;
      color: var(--text-muted);
    }

    /* ── 애드블럭 소프트 메시지 ── */
    .adblock-msg {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px;
      text-align: center;
      height: 100%;
      width: 100%;
    }
    .adblock-msg__icon { font-size: 22px; line-height: 1; }
    .adblock-msg__text {
      font-size: 12px;
      color: var(--text-muted, #9494b2);
      line-height: 1.65;
    }
    .adblock-msg--small {
      flex-direction: row;
      gap: 6px;
      padding: 0 16px;
    }
    .adblock-msg--small .adblock-msg__icon { font-size: 16px; }
    .adblock-msg--small .adblock-msg__text { font-size: 11.5px; }

    #view-game .game-side-panel .ad-slot {
      display: none;
    }
    @media (min-width: 1280px) {
      #view-game .game-side-panel .ad-slot {
        display: flex;
        width: 300px;
        max-width: 300px;
        height: 250px;
        min-height: 250px;
        margin-inline: 0;
      }
    }
    .related-title {
      font-size: 14px;
      font-weight: 800;
      margin-bottom: 10px;
    }
    #view-game .related-title {
      text-align: left;
      width: 100%;
    }
    #view-game .game-side-panel > div:last-child {
      width: 100%;
      min-width: 0;
    }
    #view-game .related-block {
      width: 100%;
      min-width: 0;
    }
    .related-more-btn {
      display: block;
      margin: 18px auto 0;
      padding: 12px 28px;
      border: none;
      border-radius: 999px;
      background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
      color: #fff;
      font-family: inherit;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: -0.02em;
      cursor: pointer;
      box-shadow: 0 4px 18px rgba(109, 40, 217, 0.35);
      transition: filter 0.15s ease, transform 0.12s ease;
    }
    .related-more-btn:hover {
      filter: brightness(1.08);
    }
    .related-more-btn:active {
      transform: scale(0.98);
    }
    .related-more-btn:focus-visible {
      outline: 2px solid #c4b5fd;
      outline-offset: 3px;
    }
    .related-more-btn[hidden] {
      display: none !important;
    }
    /* Recommended games: 145px tiles — <1280 one column; >=1280 two columns */
    #view-game .related-grid {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      min-width: 0;
      width: 100%;
    }
    #view-game .related-grid .game-card--side {
      flex: 0 0 auto;
      width: 145px;
      max-width: 145px;
      min-width: 145px;
      box-sizing: border-box;
      scroll-snap-align: unset;
    }
    #view-game .related-grid .game-card--side .game-thumb-wrap {
      width: 100%;
    }
    #view-game .related-grid .game-card--side .game-title-overlay {
      font-size: 12px;
      padding: 22px 10px 8px 12px;
      -webkit-line-clamp: 2;
    }

    @media (min-width: 1280px) {
      #view-game .related-grid {
        display: grid;
        grid-template-columns: 145px 145px;
        column-gap: 10px;
        row-gap: 14px;
        justify-content: start;
        align-items: stretch;
      }
      #view-game .related-grid .game-card--side {
        width: 145px;
        max-width: 145px;
        min-width: 145px;
      }
      #view-game .related-grid .game-card--side .game-title-overlay {
        font-size: 11px;
        padding: 18px 8px 6px 10px;
        -webkit-line-clamp: 2;
      }
    }

    /*
      추천 게임: .row-scroll--reco 안에 .reco-chunk × N — 묶음마다 (큰 카드 | 2×2) 소형 그리드.
      좌측 정렬 + 가로 스크롤·좌우 버튼은 다른 행과 동일(.row-scroll-outer).
    */

    @media (max-width: 1080px) {
      #view-game .game-layout {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 20px;
      }
      #view-game .player-area {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 1;
      }
      #view-game .game-side-panel {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 2;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
      }
      #view-game .game-info-panel {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 3;
        margin-top: 0;
      }
      #view-game .game-intro-block {
        grid-column: 1 / -1;
        grid-row: auto;
        order: 4;
        margin-top: 0;
      }
      /* ≤1080px에서는 300×250 광고 숨김 */
      #view-game .game-side-panel .ad-slot {
        display: none;
      }
      #view-game .related-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 14px;
        align-items: stretch;
        width: 100%;
      }
      #view-game .related-grid .game-card--side {
        width: 100%;
        max-width: none;
        min-width: 0;
      }
      #view-game .related-block.is-collapsed #related-games .game-card--side:nth-child(n+13) {
        display: none !important;
      }
    }
    @media (max-width: 940px) {
      #view-game .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    @media (max-width: 820px) {
      #view-game .ad-banner-leaderboard {
        display: none;
      }
    }
    @media (max-width: 720px) {
      #view-game .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    @media (max-width: 530px) {
      #view-game .related-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
      }
    }

    .reco-chunk {
      /* 묶음 루트: 자식 .reco-bento 가 동일 토큰 사용 */
      --reco-col-min: 192px;
      --reco-col-max: 336px;
      --reco-gap-x: 19px;
      --reco-gap-y: 12px;
      flex: 0 0 auto;
      scroll-snap-align: start;
      min-width: 0;
      /* 두 열(피처+쿼드) 상한 — 좁은 뷰에서는 가용 폭에 맞춤 */
      width: min(
        calc(var(--reco-col-max) * 2 + var(--reco-gap-x)),
        calc(100vw - var(--rail-collapsed) - 48px)
      );
    }
    .reco-bento {
      display: grid;
      grid-template-columns: minmax(var(--reco-col-min), var(--reco-col-max)) minmax(var(--reco-col-min), var(--reco-col-max));
      gap: var(--reco-gap-y) var(--reco-gap-x);
      align-items: stretch;
      min-width: 0;
      width: 100%;
    }
    .reco-bento .reco-quad {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
      gap: var(--reco-gap-y);
      min-width: 0;
      align-self: stretch;
      box-sizing: border-box;
    }
    .reco-bento .game-card--reco-sm {
      min-width: 0;
      display: block;
      height: auto;
    }
    .reco-bento .game-card--reco-sm .game-thumb-wrap {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      line-height: 0;
    }
    .reco-bento .game-card--reco-sm .game-thumb-wrap img {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .reco-bento .game-card--reco-feature {
      width: 100%;
      max-width: none;
      min-width: 0;
      display: flex;
      flex-direction: column;
      align-self: stretch;
    }
    .reco-bento .game-card--reco-feature .game-thumb-wrap {
      position: relative;
      width: 100%;
      flex: 1 1 auto;
      overflow: hidden;
      line-height: 0;
      background: linear-gradient(165deg, #1e1e24 0%, #121214 100%);
    }
    /* 16:9 가로형 썸네일 전체가 보이도록 — cover는 좌우·상하 잘림 */
    .reco-bento .game-card--reco-feature .game-thumb-wrap img {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }
    .reco-bento .game-card--reco-feature .game-title-overlay {
      font-size: 18px;
      padding: 38px 14px 14px;
    }
    .reco-bento .game-card--reco-sm .game-title-overlay {
      font-size: 13px;
      font-weight: 700;
      padding: 26px 10px 10px;
      -webkit-line-clamp: 2;
    }

    @media (max-width: 768px) {
      .search-wrap { display: none; }
      .topbar-brand small { display: none; }
      .game-card { flex-basis: 160px; }
      .reco-bento {
        grid-template-columns: 1fr;
        gap: 14px;
      }
      .reco-bento .reco-quad {
        width: 100%;
      }
      .reco-bento .game-card--reco-feature {
        max-width: 100%;
        width: 100%;
        display: block;
      }
      .reco-bento .game-card--reco-feature .game-thumb-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
      }
      .reco-bento .game-card--reco-feature .game-thumb-wrap img {
        object-fit: contain;
      }
      .game-layout {
        grid-template-columns: 1fr;
      }
      .player-wrap {
        --ad-banner-h: 50px;
        --ad-gap-after-bar: 12px;
        --chrome-h: 242px;
        --player-max-h: min(55vh, calc(100dvh - var(--chrome-h)));
      }
      .player-wrap.is-portrait {
        --ad-gap-after-bar: 12px;
        --chrome-h: calc(230px + var(--ad-gap-after-bar));
        --player-max-h: min(55vh, calc(100dvh - var(--chrome-h)));
      }
      .ad-banner-leaderboard {
        height: var(--ad-banner-h, 50px);
      }
    }

    /* ── 아바타 크롭 모달 ─────────────────────────────── */
    .avatar-crop-backdrop[hidden],
    .avatar-crop-modal[hidden] { display: none !important; }
    .avatar-crop-backdrop {
      position: fixed; inset: 0; background: rgba(0,0,0,0.7);
      z-index: 3000;
    }
    .avatar-crop-modal {
      position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
      z-index: 3001;
      background: var(--bg-panel); border-radius: 16px;
      padding: 20px 20px 24px; width: 320px;
      display: flex; flex-direction: column; align-items: center; gap: 14px;
      box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    }
    .avatar-crop-head {
      width: 100%; display: flex; align-items: center; justify-content: space-between;
    }
    .avatar-crop-title {
      margin: 0; font-size: 16px; font-weight: 700; color: var(--text);
    }
    .avatar-crop-close-btn {
      background: none; border: none; color: var(--text-muted); font-size: 16px;
      cursor: pointer; padding: 4px 6px; border-radius: 6px; line-height: 1;
    }
    .avatar-crop-close-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
    .avatar-crop-stage {
      width: 280px; height: 280px; border-radius: 12px; overflow: hidden;
      cursor: grab; user-select: none; background: #000;
    }
    .avatar-crop-stage:active { cursor: grabbing; }
    #avatar-crop-canvas { display: block; width: 100%; height: 100%; }
    .avatar-crop-controls {
      width: 100%; display: flex; align-items: center; gap: 10px;
    }
    .avatar-crop-zoom-icon {
      font-size: 13px; color: var(--text-muted); flex-shrink: 0;
    }
    .avatar-crop-range {
      flex: 1; accent-color: var(--brand); cursor: pointer; height: 4px;
    }
    .avatar-crop-hint {
      margin: 0; font-size: 11px; color: var(--text-muted); text-align: center;
    }
    .avatar-crop-actions {
      width: 100%; display: flex; gap: 10px;
    }
    .avatar-crop-btn {
      flex: 1; padding: 10px; border-radius: 10px; border: none;
      font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
      transition: opacity 0.15s;
    }
    .avatar-crop-btn:hover { opacity: 0.85; }
    .avatar-crop-btn--cancel {
      background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border);
    }
    .avatar-crop-btn--confirm {
      background: var(--brand); color: #fff;
    }
