    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
      background: linear-gradient(180deg, #0e1220 0%, #121830 50%, #0a0e1a 100%);
      color: white;
      height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      user-select: none;
      padding-bottom: calc(64px + var(--ptg-app-content-bottom, env(safe-area-inset-bottom, 0px)));
    }

    .top-bar {
      display: flex; align-items: center;
      /* R3 (2026-06-10): 상단 safe-area 는 공통 .ptg-topbar 가 소비 — 이중 적용 방지 */
      padding: 12px calc(16px + var(--ptg-app-content-right, 0px)) 12px calc(16px + var(--ptg-app-content-left, 0px));
      background: rgba(0,0,0,0.25);
      border-bottom: .5px solid rgba(255,255,255,0.04);
    }
    .top-title { flex: 1; text-align: center; font-size: 18px; font-weight: bold; }

    .scroll-wrap { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 32px; }

    /* ===== 길드 미가입 뷰 (다크 UX — 레퍼런스 gs-banner 아트라인) ===== */
    .noguild-hero {
      position: relative; text-align: center;
      padding: 24px 20px 20px;
      background: linear-gradient(175deg, rgba(90,30,40,0.22) 0%, rgba(40,20,50,0.18) 30%, rgba(14,18,32,0.95) 65%);
      border: .5px solid rgba(160,80,80,0.10);
      border-radius: 14px; margin: 10px 12px 0;
      overflow: hidden;
    }
    .noguild-hero::before {
      content: ''; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
      width: 200px; height: 80px;
      background: radial-gradient(ellipse, rgba(180,60,60,0.12), transparent 70%);
      pointer-events: none;
    }
    .noguild-eyebrow {
      font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
      color: rgba(255,180,160,0.55); margin-bottom: 14px; position: relative; z-index: 1;
    }
    .noguild-title {
      font-size: 22px; font-weight: 900; color: rgba(255,255,255,0.88);
      line-height: 1.35; letter-spacing: -0.3px; margin-bottom: 14px; position: relative; z-index: 1;
    }
    .noguild-title .ton { color: #0098ea; font-weight: 900; }
    .noguild-desc {
      color: rgba(255,255,255,0.25); font-size: 11px; font-weight: 500;
      line-height: 1.5; margin-bottom: 10px; position: relative; z-index: 1;
    }
    .noguild-live {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 12px; font-weight: 700;
      color: rgba(255,255,255,0.45); position: relative; z-index: 1;
    }
    .noguild-live strong { color: rgba(255,255,255,0.70); font-weight: 900; }
    .noguild-live .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(76,216,48,0.65); animation: livePulse 1.5s infinite; }
    @keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

    /* 카운트다운 타이머 박스 — 네온 */
    .noguild-timer {
      margin: 16px 16px 0; padding: 16px 18px;
      background: rgba(0,152,234,0.04); border: .5px solid rgba(0,152,234,0.08);
      border-radius: 14px; text-align: center;
      position: relative; overflow: hidden;
    }
    .noguild-timer::before {
      content: ''; position: absolute; inset: 0; pointer-events: none;
      background: radial-gradient(ellipse at 50% 0%, rgba(0,152,234,0.06), transparent 70%);
    }
    .noguild-timer-label {
      font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
      color: rgba(0,152,234,0.5); margin-bottom: 6px;
    }
    .noguild-timer-digits {
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 28px; font-weight: 900; color: #0098ea;
      letter-spacing: -0.5px; line-height: 1;
      text-shadow: 0 0 24px rgba(0,152,234,0.15);
    }
    .noguild-timer-digits .t-sep { opacity: 0.35; margin: 0 2px; }
    .noguild-timer-digits .t-unit { font-size: 12px; font-weight: 700; opacity: 0.4; margin-left: 2px; letter-spacing: 0; }
    .noguild-timer-sub {
      font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 6px;
    }

    /* ===== 상태 카드 (prelaunch / live_noguild / live_member) ===== */
    .gs-state-card {
      margin: 16px 16px 0; padding: 20px 18px;
      border-radius: 14px; text-align: center;
      position: relative; overflow: hidden;
    }
    .gs-state-card::before {
      content: ''; position: absolute; inset: 0; pointer-events: none;
    }
    /* prelaunch */
    .gs-state-card.prelaunch {
      background: rgba(255,255,255,0.03); border: .5px solid rgba(255,255,255,0.06);
    }
    .gs-state-card.prelaunch::before {
      background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.03), transparent 70%);
    }
    .gs-state-card .gs-card-eyebrow {
      font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
      color: rgba(255,255,255,0.35); margin-bottom: 6px;
    }
    .gs-state-card .gs-card-desc {
      font-size: 12px; color: rgba(255,255,255,0.40); margin-bottom: 12px; line-height: 1.4;
    }
    .gs-state-card .gs-card-big {
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 36px; font-weight: 900; line-height: 1;
      letter-spacing: -1px; margin-bottom: 6px;
    }
    .gs-state-card.prelaunch .gs-card-big { color: rgba(255,255,255,0.50); }
    .gs-state-card .gs-card-sub {
      font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 4px;
    }
    /* live_noguild */
    .gs-state-card.live_noguild {
      background: rgba(0,152,234,0.04); border: .5px solid rgba(0,152,234,0.08);
    }
    .gs-state-card.live_noguild::before {
      background: radial-gradient(ellipse at 50% 0%, rgba(0,152,234,0.06), transparent 70%);
    }
    .gs-state-card.live_noguild .gs-card-eyebrow { color: rgba(0,152,234,0.5); }
    .gs-state-card.live_noguild .gs-card-big { color: #0098ea; text-shadow: 0 0 24px rgba(0,152,234,0.15); }
    .gs-state-card.live_noguild .gs-card-desc { color: rgba(0,152,234,0.5); font-weight: 600; }
    /* live_member */
    .gs-state-card.live_member {
      background: rgba(76,216,48,0.04); border: .5px solid rgba(76,216,48,0.08);
    }
    .gs-state-card.live_member::before {
      background: radial-gradient(ellipse at 50% 0%, rgba(76,216,48,0.06), transparent 70%);
    }
    .gs-state-card.live_member .gs-card-eyebrow { color: rgba(76,216,48,0.5); }
    .gs-state-card.live_member .gs-card-big { color: #4cd830; text-shadow: 0 0 24px rgba(76,216,48,0.15); }
    .gs-state-card.live_member .gs-card-desc { color: rgba(76,216,48,0.5); font-weight: 600; }

    /* prelaunch CTA 잠금형 */
    .noguild-cta.locked {
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
      color: rgba(255,255,255,0.30);
      box-shadow: none; text-shadow: none; cursor: default;
    }
    .noguild-cta.locked::after { display: none; }
    .noguild-cta.locked:active { transform: none; box-shadow: none; }

    /* prelaunch 안내 팝업 */
    .prelaunch-popup {
      position: fixed; inset: 0; z-index: 910;
      background: rgba(0,0,0,0); pointer-events: none;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.25s ease;
      padding: 20px;
    }
    .prelaunch-popup.open { background: rgba(0,0,0,0.6); pointer-events: auto; }
    .prelaunch-popup-box {
      background: linear-gradient(135deg, #1a1e30, #12152a);
      border: .5px solid rgba(255,255,255,0.06);
      border-radius: 16px; padding: 28px 22px; text-align: center;
      width: 100%; max-width: 300px;
      transform: translateY(20px) scale(0.95); opacity: 0;
      transition: transform 0.28s cubic-bezier(0.22, 0.68, 0.35, 1), opacity 0.25s ease;
    }
    .prelaunch-popup.open .prelaunch-popup-box { transform: translateY(0) scale(1); opacity: 1; }

    /* pending 팝업 (신청 직후) */
    .pending-popup {
      position: fixed; inset: 0; z-index: 910;
      background: rgba(0,0,0,0); pointer-events: none;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.25s ease;
      padding: 20px;
    }
    .pending-popup.open { background: rgba(0,0,0,0.6); pointer-events: auto; }
    .pending-popup-box {
      background: linear-gradient(135deg, #1a1e30, #12152a);
      border: .5px solid rgba(255,255,255,0.06);
      border-radius: 16px; padding: 24px 20px; text-align: center;
      width: 100%; max-width: 320px;
      transform: translateY(20px) scale(0.95); opacity: 0;
      transition: transform 0.28s cubic-bezier(0.22, 0.68, 0.35, 1), opacity 0.25s ease;
    }
    .pending-popup.open .pending-popup-box { transform: translateY(0) scale(1); opacity: 1; }
    .pending-popup-title { font-size: 16px; font-weight: 900; color: #e0e4f0; margin-bottom: 6px; }
    .pending-popup-guild { font-size: 14px; font-weight: 800; color: #5ec8ff; margin-bottom: 12px; overflow-wrap: anywhere; word-break: break-word; }
    .pending-popup-badge {
      display: inline-block; font-size: 11px; font-weight: 700;
      padding: 3px 10px; border-radius: 6px;
      background: rgba(212,160,23,0.10); color: #d4a017;
      margin-bottom: 8px;
    }
    .pending-popup-meta { font-size: 12px; color: rgba(200,210,230,0.3); margin-bottom: 16px; }
    .pending-popup-actions { display: flex; gap: 8px; }
    .pending-popup-actions button {
      flex: 1; padding: 12px; border: none; border-radius: 12px;
      font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
    }

    /* ===== Guild Modal System (다크 네이비 팝업 공통) ===== */
    .guild-modal {
      background: linear-gradient(135deg, #1a1e30, #12152a);
      border: .5px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 24px 20px;
      text-align: center;
      width: 100%; max-width: 340px;
      position: relative;
      box-sizing: border-box;
    }
    .guild-modal h2 {
      font-family: 'Nunito', 'Sen', sans-serif;
      color: #e0e4f0;
      font-size: 18px;
      font-weight: 900;
      margin-bottom: 8px;
      letter-spacing: -0.3px;
    }
    .guild-modal__close {
      position: absolute; top: 12px; right: 14px;
      background: rgba(255,255,255,0.06);
      border: none; color: rgba(138,150,184,0.7);
      font-size: 18px; width: 32px; height: 32px;
      border-radius: 8px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      line-height: 1; z-index: 10;
      transition: background 0.15s;
    }
    .guild-modal__close:active { transform: scale(0.85); background: rgba(255,255,255,0.1); }
    .guild-modal__btn {
      display: flex; align-items: center; justify-content: center;
      width: 100%; min-height: 44px; padding: 12px;
      border: none; border-radius: 12px;
      font-size: 14px; font-weight: 800;
      cursor: pointer; font-family: inherit;
      background: linear-gradient(180deg, #1ab0ff, #0090e0 48%, #0078c0);
      color: #fff;
      box-shadow: 0 1px 0 rgba(0,100,180,0.12), 0 0 10px rgba(0,152,234,0.08);
      transition: transform 0.1s;
    }
    .guild-modal__btn:active { transform: translateY(2px) scale(0.97); }
    .guild-modal__btn:disabled { opacity: 0.45; pointer-events: none; }
    .guild-modal__btn--done {
      background: rgba(255,255,255,0.04);
      color: rgba(160,180,210,0.4);
      box-shadow: none;
      border: .5px solid rgba(255,255,255,0.04);
    }

    /* 티어 카드 — 다크 */
    .tier-badge-icon {
      width: 16px; height: 16px; object-fit: contain; vertical-align: middle; margin-right: 2px;
    }

    /* ===== 길드 카드 공통 규격 (추천/검색 통합) — 다크 ===== */
    .recommend-section { padding: 0 16px; margin-top: 8px; }
    .recommend-title { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 600; letter-spacing: .3px; margin-bottom: 8px; }

    /* 공통 카드 프레임 — 다크 */
    .guild-card {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 6px; padding: 14px;
      background: rgba(255,255,255,0.03);
      border: .5px solid rgba(255,255,255,0.04);
      border-radius: 12px;
      transition: background 0.15s;
      border-image: none;
    }
    .guild-card:active { background: rgba(255,255,255,0.06); }
    /* 카드 내 국기 */
    .guild-card-flag { width: 36px; height: 26px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
    /* 카드 내 정보 영역 */
    .guild-card-info { flex: 1; min-width: 0; }
    /* 카드 내 1줄: 길드명 */
    .guild-card-name {
      font-size: 14px; font-weight: 800; color: #fff; line-height: 1.3;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden; text-overflow: ellipsis;
      overflow-wrap: break-word; word-break: normal;
    }
    /* 카드 내 2줄: 인원수 */
    .guild-card-meta {
      display: flex; align-items: center; gap: 6px;
      margin-top: 3px; flex-wrap: nowrap;
    }
    /* 인원수 텍스트 */
    .guild-card-count { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); white-space: nowrap; flex-shrink: 0; }
    /* 카드 내 버튼 */
    .guild-card-btn {
      flex-shrink: 0; min-width: 72px; text-align: center;
      padding: 7px 14px; border-radius: 10px; border: none;
      font-size: 12px; font-weight: 800; cursor: pointer;
      font-family: inherit; white-space: nowrap;
    }
    .guild-card-btn.apply { background: linear-gradient(180deg, #60a8ff, #2070d0 50%, #1860b8); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.15); }
    .guild-card-btn.apply:active { transform: translateY(1px) scale(0.97); box-shadow: none; }
    .guild-card-btn.applied { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); pointer-events: none; }
    .guild-card-btn.full { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.25); pointer-events: none; font-size: 11px; }

    /* 하단 CTA — 레퍼런스 btn-ton 아트라인 */
    .noguild-cta-wrap { padding: 16px 18px; }
    .noguild-cta {
      position: relative; overflow: hidden;
      width: 100%; padding: 15px 20px; border: none; border-radius: 14px;
      background: linear-gradient(180deg, #1ab0ff, #0090e0 48%, #0078c0 100%);
      color: #fff; font-size: 15px; font-weight: 900;
      cursor: pointer; font-family: inherit;
      letter-spacing: .3px;
      white-space: normal; line-height: 1.25; word-break: keep-all; /* i18n: 긴 언어 줄바꿈 (잘림 방지) */
      box-shadow: 0 1px 0 rgba(0,100,180,0.12), 0 0 10px rgba(0,152,234,0.08), 0 4px 14px rgba(0,152,234,0.03);
      text-shadow: 0 1px 0 rgba(0,0,0,0.10);
      transition: all 0.12s cubic-bezier(0.25,0.1,0.25,1);
      min-height: 52px;
    }
    .noguild-cta::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 35%;
      background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
      border-radius: 14px 14px 40% 40%; pointer-events: none;
    }
    .noguild-cta::after {
      content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
      background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.40) 50%, transparent 100%);
      pointer-events: none;
      animation: ctaShimmer 2s linear infinite;
    }
    @keyframes ctaShimmer { 0% { left: -100%; } 100% { left: 100%; } }
    .noguild-cta:active { transform: translateY(2px) scale(0.995); box-shadow: 0 0 0 rgba(0,100,180,0.06), 0 1px 4px rgba(0,152,234,0.03); }
    .noguild-hints { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 8px; }

    /* 버튼 영역 */
    .btn-area { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 8px; }
    .g-btn {
      width: 100%; padding: 14px;
      border-radius: 12px; border: none;
      font-size: 15px; font-weight: bold;
      cursor: pointer; transition: all 0.2s;
      font-family: inherit;
    }
    .g-btn:active { transform: scale(0.95); }
    .btn-create { background: linear-gradient(135deg, #FFB347, #FFA500); color: #5a3e00; }
    .btn-search { background: linear-gradient(135deg, #64B5F6, #42A5F5); color: #1a237e; }
    .btn-invite { background: linear-gradient(135deg, #81C784, #66BB6A); color: #1b5e20; }
    .btn-leave { background: rgba(244,67,54,0.15); color: #f44336; border: 1px solid rgba(244,67,54,0.3); }
    .btn-leader { background: rgba(255,215,0,0.12); color: #FFD700; border: 1px solid rgba(255,215,0,0.3); }
    .btn-disabled { opacity: 0.4; pointer-events: none; }

    /* ===== 바텀시트 — 다크 ===== */
    .bs-dim {
      position: fixed; inset: 0; z-index: 900;
      background: rgba(0,0,0,0); pointer-events: none;
      transition: background 0.25s ease;
    }
    .bs-dim.open { background: rgba(0,0,0,0.6); pointer-events: auto; }
    .bs-sheet {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 901;
      background: linear-gradient(180deg, #1a1e30, #12152a);
      border-radius: 20px 20px 0 0;
      padding: 20px 18px calc(var(--ptg-app-content-bottom, env(safe-area-inset-bottom, 0px)) + 20px);
      transform: translateY(100%);
      transition: transform 0.28s cubic-bezier(0.22, 0.68, 0.35, 1);
      box-shadow: 0 -4px 24px rgba(0,0,0,0.5);
      border-top: .5px solid rgba(255,255,255,0.06);
      /* close 버튼 absolute 기준 */
    }
    .bs-sheet.open { transform: translateY(0); }
    .bs-handle {
      width: 36px; height: 4px; border-radius: 2px;
      background: rgba(255,255,255,0.12); margin: 0 auto 16px;
    }
    .bs-title {
      font-size: 16px; font-weight: 900; color: #fff;
      text-align: center; margin-bottom: 14px;
      letter-spacing: .3px;
    }
    .bs-close {
      position: absolute;
      top: 12px;
      right: 14px;
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: none;
      background: rgba(255,255,255,0.08);
      color: rgba(220,230,255,0.86);
      font-size: 18px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
    }
    .bs-close:active { transform: scale(0.92); background: rgba(255,255,255,0.14); }
    .bs-actions { display: flex; flex-direction: column; gap: 8px; }

    /* 액션 시트 gradient 버튼 */
    .bs-btn {
      width: 100%; padding: 14px; border: none; border-radius: 14px;
      font-size: 15px; font-weight: 900; cursor: pointer;
      font-family: inherit; color: #fff; letter-spacing: .3px;
      text-shadow: 0 1px 0 rgba(0,0,0,0.15);
      position: relative; overflow: hidden;
      display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .bs-btn:active { transform: translateY(1px) scale(0.97); box-shadow: none; }
    .bs-btn-find { background: linear-gradient(180deg, #60a8ff, #2070d0 50%, #1860b8); box-shadow: 0 2px 12px rgba(32,112,208,0.3); }
    .bs-btn-create { background: linear-gradient(180deg, #50e0f0, #18b8d0 50%, #10a0b8); box-shadow: 0 2px 12px rgba(24,184,208,0.3); }
    .bs-btn-pending { background: linear-gradient(180deg, #c080f0, #9040d0 50%, #7830b8); box-shadow: 0 2px 12px rgba(144,64,208,0.3); }

    /* 신청 카드 (바텀시트 내부) — 다크 */
    .app-card {
      display: flex; align-items: center; gap: 12px;
      padding: 14px; background: rgba(255,255,255,0.03);
      border: .5px solid rgba(255,255,255,0.04);
      border-radius: 12px; margin-bottom: 6px;
      transition: background 0.15s;
    }
    .app-card:active { background: rgba(255,255,255,0.06); }
    .app-card-flag { width: 36px; height: 26px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
    .app-card-body { flex: 1; min-width: 0; }
    .app-card-name { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .app-card-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
    .app-card-badge {
      display: inline-block; font-size: 10px; font-weight: 700;
      padding: 2px 6px; border-radius: 4px;
      background: rgba(240,184,24,0.10); color: #f0b818;
      inset: 0 1px 0 rgba(255,255,255,0.04);
    }
    .app-card-meta { font-size: 11px; color: rgba(255,255,255,0.35); }
    .app-card-cancel {
      flex-shrink: 0; padding: 7px 14px; border-radius: 10px; border: none;
      font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
      background: rgba(244,67,54,0.12); color: #f44336;
      transition: background 0.15s;
    }
    .app-card-cancel:active { background: rgba(244,67,54,0.25); transform: translateY(1px); }
    .app-slot { font-size: 11px; color: rgba(255,255,255,0.25); text-align: center; margin-top: 8px; }

    /* ===== 길드 가입 뷰 (프리미엄 다크) ===== */

    /* ===== 길드 메인뷰 (에셋팩 스타일) ===== */
    .gv-section { margin: 8px 12px; }

    /* 길드 헤더 */
    .guild-header {
      margin: 12px 12px 8px;
      border: 20px solid transparent;
      border-image-source: url('/images/common/Frame/BorderFrame_Round20_Single_Dark.png');
      border-image-slice: 20 20 22 20 fill;
      border-image-width: 20px;
      border-image-repeat: round;
      padding: 6px 8px 8px;
      text-align: center;
    }
    .guild-flag-img { width: 30px; height: 24px; border-radius: 0; object-fit: contain; vertical-align: middle; margin-right: 4px; }
    .guild-name-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
    .guild-name {
      font-size: 18px; font-weight: 900; display: flex; align-items: center; gap: 4px;
      max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .guild-tier-badge {
      display: inline-flex; align-items: center; gap: 3px;
      font-size: 11px; font-weight: 800; padding: 2px 8px;
      border-radius: 10px; text-transform: uppercase;
    }
    .guild-tier-badge.diamond { background: rgba(185,242,255,0.2); color: #B9F2FF; }
    .guild-tier-badge.gold { background: rgba(255,215,0,0.2); color: #FFD700; }
    .guild-tier-badge.silver { background: rgba(192,192,192,0.2); color: #C0C0C0; }
    .guild-tier-badge.bronze { background: rgba(205,127,50,0.2); color: #CD7F32; }
    .guild-header-meta {
      display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
      font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 5px;
    }
    .guild-header-meta span { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
    .guild-header-meta .meta-sep { color: rgba(255,255,255,0.2); }
    .guild-header-meta .valid-ok { color: #81c784; font-weight: 700; }
    .guild-header-meta .valid-warn { color: #ef9a9a; font-weight: 700; }
    .guild-ranking-link {
      font-size: 12px; color: #FFD700; cursor: pointer; margin-top: 5px;
      font-weight: 700; display: inline-flex; align-items: center; gap: 3px;
      opacity: 0.85;
    }

    /* 출석 배너 — 제거됨 (길드출석 팝업 + 내 점수 카드로 대체) */

    /* 카운트다운 칩 (헤더 메타행 내 pill) */
    .countdown-chip {
      display: inline-flex; align-items: center; gap: 3px;
      background: rgba(0,0,0,0.18); border-radius: 10px;
      padding: 1px 7px 1px 5px;
      font-size: 11px; font-weight: 700; color: #fff;
      font-family: 'Cairo', sans-serif;
      line-height: 1; vertical-align: middle;
    }
    .countdown-chip img { width: 12px; height: 12px; object-fit: contain; vertical-align: middle; }

    /* 내 점수 요약 strip — ui-resource-bar full-width variant */
    .my-score-strip {
      margin: 0 12px 6px;
      padding: 14px 16px 12px;
      box-sizing: border-box;
      background:
        radial-gradient(ellipse at top, rgba(98, 132, 255, 0.10), transparent 62%),
        linear-gradient(180deg, rgba(29, 37, 63, 0.96) 0%, rgba(17, 23, 41, 0.98) 100%);
      border: 1px solid rgba(122, 148, 212, 0.22);
      border-radius: 16px;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 24px rgba(0,0,0,0.24);
    }
    .my-score-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
    .my-score-title {
      display: flex; align-items: center; gap: 6px;
      font-size: 15px; font-weight: 900; color: #f5f1dc;
      flex-shrink: 0;
      text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    }
    .my-score-title img { width: 22px; height: 22px; object-fit: contain; }
    .my-score-total {
      display: inline-flex; align-items: center;
      padding: 0 12px; height: 34px;
      font-size: 18px; font-weight: 900; color: #ffd98a;
      font-family: 'Cairo', sans-serif;
      background: linear-gradient(180deg, rgba(24,30,52,0.95), rgba(14,19,35,0.98));
      border: 1px solid rgba(255, 214, 128, 0.22);
      border-radius: 10px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
      text-shadow: 0 1px 0 rgba(0,0,0,0.35);
      flex-shrink: 0; box-sizing: border-box;
    }
    .my-score-subs {
      display: grid; grid-template-columns: repeat(3, 1fr);
      margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08);
      gap: 0; text-align: center;
    }
    .my-score-subs .sub-item {
      padding: 0 4px;
      display: flex; flex-direction: column; align-items: center; gap: 1px;
    }
    .my-score-subs .sub-item + .sub-item {
      border-left: 1px solid rgba(255,255,255,0.08);
    }
    .my-score-subs .sub-label {
      font-size: 11px; font-weight: 700; color: rgba(205,214,242,0.72);
    }
    .my-score-subs .sub-val {
      font-size: 15px; font-weight: 900; color: #eef4ff;
      font-family: 'Cairo', sans-serif;
      text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    }

    /* ===== 길드 탭 바 ===== */
    .guild-tab-bar {
      display: flex; margin: 0 12px 8px; border-radius: 10px;
      background: rgba(255,255,255,0.04); border: .5px solid rgba(255,255,255,0.06);
      overflow: hidden;
    }
    .guild-tab {
      flex: 1; padding: 10px 0; text-align: center;
      font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.35);
      cursor: pointer; transition: all 0.2s; position: relative;
      border: none; background: none; font-family: inherit;
    }
    .guild-tab.active {
      color: #fff;
      background: rgba(255,255,255,0.08);
    }
    .guild-tab.active::after {
      content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
      height: 2px; background: #0098ea; border-radius: 2px;
    }
    .guild-tab:active { opacity: 0.7; }

    /* ===== 보상 탭 ===== */
    .reward-tab-card {
      margin: 0 12px 10px; padding: 20px 18px;
      background: rgba(0,152,234,0.04); border: .5px solid rgba(0,152,234,0.08);
      border-radius: 14px; text-align: center;
      position: relative; overflow: hidden;
    }
    .reward-tab-card::before {
      content: ''; position: absolute; inset: 0; pointer-events: none;
      background: radial-gradient(ellipse at 50% 0%, rgba(0,152,234,0.06), transparent 70%);
    }
    .reward-tab-eyebrow {
      font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
      color: rgba(0,152,234,0.5); margin-bottom: 8px; position: relative; z-index: 1;
    }
    .reward-tab-big {
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 32px; font-weight: 900; color: #0098ea; line-height: 1;
      letter-spacing: -1px; position: relative; z-index: 1;
      text-shadow: 0 0 24px rgba(0,152,234,0.15);
    }
    .reward-tab-big .ton-unit { font-size: 14px; font-weight: 700; opacity: 0.6; }
    .reward-tab-sub {
      font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 6px; position: relative; z-index: 1;
    }

    .reward-week-list { margin: 0 12px 10px; }
    .reward-week-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 14px; margin-bottom: 4px;
      background: rgba(255,255,255,0.03); border: .5px solid rgba(255,255,255,0.04);
      border-radius: 10px; transition: background 0.15s;
    }
    .reward-week-row:active { background: rgba(255,255,255,0.06); }
    .reward-week-label {
      font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6);
      display: flex; align-items: center; gap: 6px;
    }
    .reward-week-label .week-badge {
      display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 6px;
      border-radius: 5px; background: rgba(0,152,234,0.12); color: #0098ea;
    }
    .reward-week-ton {
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 15px; font-weight: 900; color: rgba(255,255,255,0.75);
    }
    .reward-week-label .week-desc { font-size: 12px; color: rgba(255,255,255,0.35); }
    .reward-week-ton .ton-sm { font-size: 11px; font-weight: 600; opacity: 0.5; margin-left: 2px; }

    /* 접이식 패널 */
    /* 접이식 패널 — 심플 서브 아코디언 */
    .reward-toggle {
      margin: 0 12px 6px;
      background: rgba(0,0,0,0.18);
      border: 1px solid rgba(255,255,255,0.30);
      border-radius: 8px;
      overflow: hidden;
    }
    .reward-toggle-header {
      padding: 7px 12px; cursor: pointer; display: flex;
      justify-content: space-between; align-items: center;
      font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.75);
    }
    .reward-toggle-header .toggle-left { display: flex; align-items: center; gap: 6px; }
    .reward-toggle-header .toggle-left img { width: 16px; height: 16px; object-fit: contain; }
    .reward-toggle-header .arrow { transition: transform 0.3s; line-height: 1; }
    .reward-toggle-header .arrow img { width: 14px; height: 14px; object-fit: contain; opacity: 0.7; }
    .reward-toggle-header .arrow.open { transform: rotate(180deg); }
    .reward-toggle-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .reward-toggle-body.open { max-height: 800px; }
    .reward-body-inner {
      padding: 0 12px 10px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    /* 유효자 체크리스트 */
    .toggle-status { font-size: 11px; margin-left: 6px; font-weight: 700; }
    .toggle-status.done { color: #4ade80; }
    .toggle-status.progress { color: #facc15; }
    .valid-warn { font-size: 11px; font-weight: 700; color: #f87171; }
    .check-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
    .check-item.done { color: #4CAF50; }
    .check-item.pending { color: #f44336; }
    .check-item .check-icon { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
    .check-item .check-text { flex: 1; color: rgba(255,255,255,0.8); }
    .check-item .check-val { font-weight: 700; font-size: 11px; color: rgba(255,255,255,0.5); font-family: 'Cairo', sans-serif; }
    .valid-result { margin-top: 6px; padding: 5px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 700; }
    .valid-result.pass { background: rgba(76,175,80,0.15); color: #4CAF50; }
    .valid-result.fail { background: rgba(244,67,54,0.15); color: #f44336; }

    /* 보상 분배 */
    .reward-row {
      display: flex; justify-content: space-between; padding: 3px 0;
      font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .reward-row:last-child { border-bottom: none; }
    .reward-row .rr-rank { color: rgba(255,255,255,0.6); }
    .reward-row .rr-pct { font-weight: 700; color: #FFD700; font-family: 'Cairo', sans-serif; }
    .reward-row.unpaid .rr-pct { color: rgba(255,255,255,0.3); }
    .reward-note { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; }

    /* 랭킹 서브뷰 */
    /* ===== 랭킹 포디엄 ===== */
    .podium-wrap { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 16px 12px 8px; }
    .podium-card {
      display: flex; flex-direction: column; align-items: center;
      padding: 12px 8px 10px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
      width: 30%;
      min-width: 0;
    }
    .podium-card.p1 {
      background: rgba(26,176,255,0.06);
      border: 1px solid rgba(26,176,255,0.15);
      box-shadow: 0 0 16px rgba(26,176,255,0.08);
      width: 36%; order: 2;
    }
    .podium-card.p2 {
      background: rgba(45,212,160,0.05);
      border: 1px solid rgba(45,212,160,0.12);
      order: 1;
    }
    .podium-card.p3 {
      background: rgba(212,160,23,0.05);
      border: 1px solid rgba(212,160,23,0.12);
      order: 3;
    }
    .podium-medal { width: 28px; height: 28px; object-fit: contain; }
    .podium-card.p1 .podium-medal { width: 34px; height: 34px; }
    .podium-badge { width: 32px; height: 32px; object-fit: contain; margin: 4px 0; }
    .podium-card.p1 .podium-badge { width: 38px; height: 38px; }
    .podium-flag { width: 22px; height: 16px; object-fit: contain; margin: 2px 0; }
    .podium-name {
      font-family: 'Sen', 'Nunito', sans-serif;
      font-size: 11px; font-weight: 900; color: #fff;
      text-shadow: 0 1px 3px rgba(0,0,0,0.6);
      text-align: center; line-height: 1.2;
      word-break: break-all;
      max-width: 100%;
    }
    .podium-card.p1 .podium-name { font-size: 13px; }
    .podium-score-wrap { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
    .podium-score-icon { width: 14px; height: 14px; object-fit: contain; }
    .podium-score {
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 13px; font-weight: 900; color: #fff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    .podium-card.p1 .podium-score { font-size: 15px; }

    /* ===== 랭킹 리스트 (4위~) ===== */
    .ranking-list { padding: 4px 12px 0; }
    .ranking-list-title {
      font-family: 'Sen', 'Nunito', sans-serif;
      font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 800;
      padding: 10px 12px 6px;
      display: flex; align-items: center; gap: 6px;
    }
    .ranking-list-title img { width: 18px; height: 18px; object-fit: contain; }
    /* ri-row: ui-list-blue/yellow nine-slice 프레임을 다크 플랫으로 덮어쓰기 */
    .ri-row {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 12px;
      margin-bottom: 5px;
      border-image-source: none !important;
      border: 1px solid rgba(255,255,255,0.04) !important;
      background: rgba(255,255,255,0.03) !important;
      border-radius: 12px;
    }
    .ri-row.ui-list-yellow {
      background: rgba(26,176,255,0.06) !important;
      border: 1px solid rgba(26,176,255,0.12) !important;
      border-left: 3px solid rgba(26,176,255,0.4) !important;
    }
    .ri-rank {
      width: 26px; text-align: center; flex-shrink: 0;
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 14px; font-weight: 900; color: rgba(200,210,230,0.55);
    }
    .ri-row.ui-list-yellow .ri-rank { color: #5ec8ff; }
    .ri-flag { width: 22px; height: 16px; object-fit: contain; flex-shrink: 0; }
    .ri-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
    .ri-name {
      font-family: 'Sen', 'Nunito', sans-serif;
      font-size: 13px; font-weight: 800; color: #e0e4f0;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ri-row.ui-list-yellow .ri-name { color: #5ec8ff; }
    .ri-score-wrap { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
    .ri-score-icon { width: 14px; height: 14px; object-fit: contain; }
    .ri-score {
      font-family: 'Cairo', 'Nunito', sans-serif;
      font-size: 13px; font-weight: 900; color: #e0e4f0;
    }
    .ri-row.ui-list-yellow .ri-score { color: #5ec8ff; }
    .ri-mine-sep {
      margin: 4px 12px; padding-top: 6px;
      border-top: 1px dashed rgba(255,255,255,0.2);
      font-size: 11px; color: rgba(255,255,255,0.4); text-align: center;
    }

    /* ===== 티어 보상 아코디언 ===== */
    .tier-reward-accordion { margin: 10px 12px 16px; }
    .tier-reward-header-wrap {
      border: 16px solid transparent;
      border-image-source: url('/images/common/Frame/BannerFrame04_Single.png');
      border-image-slice: 30 30 30 30 fill;
      border-image-width: 16px;
      border-image-repeat: stretch;
      border-radius: 0; background: none;
    }
    .tier-reward-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 4px 6px; cursor: pointer;
      transition: opacity 0.2s;
    }
    .tier-reward-header:active { opacity: 0.7; }
    .tier-reward-header-left {
      display: flex; align-items: center; gap: 8px;
      font-family: 'Sen', 'Nunito', sans-serif;
      font-size: 16px; font-weight: 900; color: #fff;
      text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    .tier-reward-header-left img { width: 32px; height: 32px; object-fit: contain; }
    .tier-reward-header .arrow { transition: transform 0.3s; font-size: 14px; color: rgba(255,255,255,0.7); }
    .tier-reward-header .arrow.open { transform: rotate(180deg); }
    .tier-reward-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0; margin-top: 8px; }
    .tier-reward-body.open { max-height: 800px; }

    /* 티어 카드 — 다크 통합 */
    .tier-card-wrap {
      position: relative; margin-bottom: 6px;
      background: linear-gradient(152deg, rgba(24,28,46,0.85), rgba(18,22,36,0.90));
      border: .5px solid rgba(255,255,255,0.035);
      border-radius: 11px;
      border-image: none;
      box-shadow: 0 1px 1px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08), inset 0 0.5px 0 rgba(255,255,255,0.02);
      transition: transform 0.3s cubic-bezier(0.25,0.1,0.25,1);
    }
    .tier-card-wrap:active { transform: scale(0.988); }
    .tier-card-wrap::after { display: none; }
    .tier-card-inner {
      display: flex; align-items: center; gap: 12px;
      padding: 16px; position: relative; z-index: 1;
    }
    /* 아이콘 프레임 — 다크 */
    .tier-icon-frame {
      width: 42px; height: 42px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; border-radius: 12px;
      border: none; border-image: none;
    }
    .tier-icon-frame img { width: 28px; height: 28px; object-fit: contain; }
    .tier-icon-frame.diamond { background: linear-gradient(135deg, rgba(180,224,255,0.12), rgba(180,224,255,0.04)); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    .tier-icon-frame.gold { background: linear-gradient(135deg, rgba(240,184,24,0.12), rgba(240,184,24,0.04)); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    .tier-icon-frame.silver { background: linear-gradient(135deg, rgba(192,200,216,0.12), rgba(192,200,216,0.04)); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    .tier-icon-frame.bronze { background: linear-gradient(135deg, rgba(212,165,116,0.12), rgba(212,165,116,0.04)); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

    /* 티어별 글로우 */
    .tier-card-wrap.diamond { box-shadow: 0 0 16px rgba(180,224,255,0.06); border-color: rgba(180,224,255,0.08); }
    .tier-card-wrap.gold { box-shadow: 0 0 10px rgba(240,184,24,0.05); border-color: rgba(240,184,24,0.06); }
    .tier-card-wrap.diamond, .tier-card-wrap.gold { filter: none; }

    .tier-reward-text { flex: 1; min-width: 0; }
    .tier-reward-label {
      font-size: 14px; font-weight: 900;
      display: flex; align-items: center; gap: 6px;
    }
    .tier-card-wrap.diamond .tier-reward-label { color: #b4e0ff; }
    .tier-card-wrap.gold .tier-reward-label { color: #f0b818; }
    .tier-card-wrap.silver .tier-reward-label { color: #c0c8d8; }
    .tier-card-wrap.bronze .tier-reward-label { color: #d4a574; }
    .tier-reward-desc {
      font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); margin-top: 2px;
      /* QA수정: 단일행 ellipsis 는 긴 로케일(ru '… призового фонда')에서 보상비율 설명을 통째로 잘림 → 최대 2줄 허용 */
      display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
      white-space: normal; word-break: keep-all; overflow-wrap: anywhere;
    }
    .tier-reward-right { text-align: right; flex-shrink: 0; }
    .tier-reward-ton { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.28); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1px; }
    .tier-reward-ton-label { font-size: 12px; font-weight: 800; color: rgba(0,152,234,0.85); }
    .ranking-note { font-size: 12px; color: #b0bec5; text-shadow: 0 1px 2px rgba(0,0,0,0.3); text-align: center; padding: 8px 12px 4px; }

    /* 멤버 리스트 */
    .member-section { margin: 0 12px 6px; }
    .member-section-header {
      display: flex; align-items: center; gap: 6px;
      font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 700; margin-bottom: 8px;
    }
    .member-section-header img { width: 20px; height: 20px; object-fit: contain; }
    .member-item {
      display: flex; align-items: center; padding: 10px 12px;
      margin-bottom: 4px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.04);
      border-radius: 12px;
    }
    .member-item.me {
      background: rgba(26,176,255,0.06);
      border: 1px solid rgba(26,176,255,0.12);
      border-left: 3px solid rgba(26,176,255,0.4);
    }
    .member-rank {
      width: 26px; font-size: 16px; font-weight: 900; color: rgba(200,210,230,0.55);
      text-align: center; margin-right: 6px; flex-shrink: 0;
      font-family: 'Cairo', sans-serif;
    }
    .member-item.me .member-rank { color: #5ec8ff; }
    .member-rank .medal-icon { width: 24px; height: 24px; object-fit: contain; display: block; }
    .member-info { flex: 1; min-width: 0; }
    .member-name {
      font-size: 14px; font-weight: 900; color: #e0e4f0;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      display: flex; align-items: center; gap: 4px;
    }
    .member-item.me .member-name { color: #5ec8ff; }
    .member-name .crown-icon { width: 16px; height: 16px; object-fit: contain; }
    .valid-badge { width: 14px; height: 14px; object-fit: contain; margin-right: 4px; flex-shrink: 0; }
    .member-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; margin-left: 8px; }
    .member-score-num {
      font-size: 15px; font-weight: 900; color: #e0e4f0;
      font-family: 'Cairo', sans-serif;
    }
    .member-item.me .member-score-num { color: #5ec8ff; }
    .member-reward-badge {
      font-size: 10px; font-weight: 800; padding: 2px 8px;
      border-radius: 8px; font-family: 'Cairo', sans-serif;
    }
    .member-reward-badge.paid { background: rgba(26,176,255,0.08); color: #5ec8ff; }
    .member-item.me .member-reward-badge.paid { background: rgba(45,212,160,0.08); color: #2dd4a0; }
    .member-reward-badge.unpaid { background: rgba(255,255,255,0.03); color: rgba(200,210,230,0.3); }
    .member-warn-badge {
      display: inline-block;
      font-size: 11px; font-weight: 800; padding: 3px 8px;
      border-radius: 8px;
      background: #3a1a1a; color: #ff6b6b;
      border: 1px solid #5a2020;
      white-space: nowrap; margin-top: 3px;
      line-height: 1.3;
    }
    .kick-btn {
      padding: 6px 12px; border-radius: 10px;
      border: 1.5px solid #6a2a2a;
      background: #4a1a1a; color: #ff8a8a;
      font-size: 12px; font-weight: 800;
      cursor: pointer; font-family: inherit;
      margin-left: 8px; flex-shrink: 0; white-space: nowrap;
    }
    .kick-btn:active { transform: scale(0.92); background: #5a2020; }

    /* DEV 토글 */
    .dev-toggle {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); color: #aaa;
      font-size: 10px; padding: 4px 10px; border-radius: 6px;
      cursor: pointer; font-family: inherit;
    }

    /* 팝업 오버레이 */
    .popup-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.7); z-index: 300;
      display: none; align-items: center; justify-content: center;
      padding: 20px;
    }
    .popup-overlay.show { display: flex; }
    .popup-box {
      background: linear-gradient(135deg, #1a1e30, #12152a);
      border: .5px solid rgba(255,255,255,0.06);
      border-radius: 16px; padding: 24px;
      width: 100%; max-width: 360px;
      max-height: 80vh; overflow-y: auto;
    }
    .popup-box h3 { text-align: center; color: #fff; margin-bottom: 16px; font-size: 18px; }
    .popup-box input[type="text"] {
      width: 100%; padding: 12px; border-radius: 10px;
      border: .5px solid rgba(255,255,255,0.06);
      background: rgba(255,255,255,0.04); color: white;
      font-size: 15px; font-family: inherit;
      margin-bottom: 8px; outline: none;
      transition: border-color 0.15s;
    }
    .popup-box input[type="text"]:focus { border-color: rgba(0,152,234,0.4); }
    .char-count { text-align: right; font-size: 11px; color: #888; margin-bottom: 12px; }
    .popup-box.dark {
      background: #111; border: 1px solid rgba(255,255,255,0.1);
    }

    /* ===== 출석 전 팝업 (확인용) — 다크 네이비 ===== */
    #attendancePopup .guild-modal { max-width: 336px; padding: 18px 18px 16px; }
    #attendancePopup h2 {
      font-size: 20px;
      margin: 0 40px 8px;
      color: #e0e4f0;
    }
    .ga-subtitle {
      margin: 0 auto 16px;
    }

    /* ── 가로형 로드맵 ── */
    .ga-roadmap {
      position: relative;
      padding: 2px 10px 0;
      margin: 10px 0 8px;
    }

    /* 진행선 (노드 뒤, 같은 축) */
    .ga-track {
      position: absolute;
      top: 15px;
      left: 18px; right: 18px;
      height: 5px;
      background: #1e2340;
      border-radius: 2.5px;
      z-index: 0;
    }
    .ga-track-fill {
      position: absolute;
      top: 0; left: 0; bottom: 0;
      background: linear-gradient(90deg, #0090e0, #1ab0ff);
      border-radius: 2.5px;
      transition: width 0.3s;
    }

    /* 노드 행: 7열 고정 grid */
    .ga-nodes {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      position: relative;
      z-index: 1;
    }
    .ga-node {
      display: flex; flex-direction: column;
      align-items: center;
      min-width: 0;
      overflow: hidden;
    }

    /* 노드 원형 — 다크 네이비 */
    .ga-node-circle {
      width: 30px; height: 30px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      background: #1e2340;
      border: 2.5px solid #2a3158;
      position: relative;
    }
    .ga-node-circle img { width: 18px; height: 18px; object-fit: contain; }

    /* 완료 노드 */
    .ga-node.done .ga-node-circle {
      background: rgba(45,212,160,0.12); border-color: #2dd4a0;
    }
    /* 오늘 노드 */
    .ga-node.today .ga-node-circle {
      background: rgba(26,176,255,0.12); border-color: #1ab0ff;
      box-shadow: 0 0 10px rgba(26,176,255,0.35);
    }
    /* 잠금 노드 */
    .ga-node.locked .ga-node-circle {
      opacity: 0.35;
    }
    /* D7 보너스 노드 */
    .ga-node.bonus .ga-node-circle {
      border-color: #d4a017;
      background: rgba(212,160,23,0.1);
    }
    .ga-node.bonus.done .ga-node-circle {
      background: rgba(45,212,160,0.15);
      border-color: #2dd4a0;
    }

    /* 노드 아래 라벨 — 다크 */
    .ga-node-label {
      font-size: 11px; font-weight: 900; color: rgba(200,210,230,0.6);
      margin-top: 4px; line-height: 1;
    }
    .ga-node.done .ga-node-label { color: #2dd4a0; }
    .ga-node.today .ga-node-label { color: #5ec8ff; }
    .ga-node.locked .ga-node-label { color: rgba(200,210,230,0.25); }

    /* 보너스 라벨 (D7 아래) — 다크 */
    .ga-bonus-tag {
      font-size: 10px; font-weight: 900; color: #d4a017;
      line-height: 1; margin-top: 1px; letter-spacing: -0.3px;
    }

    /* 점수 힌트 — 다크 */
    .ga-score-hint {
      font-size: 14px; color: #5ec8ff; font-weight: 800;
      text-align: center; margin: 10px 0 6px;
    }
    /* 하단 안내 — 다크 */
    .ga-note {
      color: rgba(200,210,230,0.55); font-size: 12px; margin-top: 6px; line-height: 1.4;
      text-align: center; font-weight: 800;
    }
    .ga-note-sub {
      color: rgba(200,210,230,0.35); font-size: 11px; line-height: 1.4;
      text-align: center; font-weight: 700;
      margin-top: 3px;
    }
    /* ── attendancePopup overrides (레이아웃 — 다크) ── */
    #attendancePopup .ga-track {
      top: 16px;
      left: 7%; right: 7%;
      height: 6px;
      background: #1e2340;
      border-radius: 999px;
      overflow: hidden;
    }
    #attendancePopup .ga-track-fill { border-radius: 999px; }
    #attendancePopup .ga-node-circle {
      width: 32px; height: 32px;
      border-width: 2.5px;
      flex-shrink: 0;
    }
    #attendancePopup .ga-node-circle img { width: 18px; height: 18px; }
    .ga-node-today-mark {
      font-size: 16px; font-weight: 900; color: #1ab0ff; line-height: 1;
    }
    #attendancePopup .ga-node-label { font-size: 11px; margin-top: 4px; }
    #attendancePopup .ga-node.locked .ga-node-label { color: rgba(200,210,230,0.25); }
    #attendancePopup .ga-bonus-tag {
      font-size: 8px; font-weight: 900; color: #d4a017;
      line-height: 1; margin-top: 2px; letter-spacing: -0.2px;
      text-align: center; white-space: nowrap;
    }
    #attendancePopup .ga-score-hint {
      margin: 12px auto 8px;
    }
    #attendancePopup .ga-note { font-size: 13px; margin-top: 8px; line-height: 1.45; }
    #attendancePopup .ga-note-sub { line-height: 1.45; margin: 2px 6px 0; }
    /* Final attendance roadmap layout — 다크 */
    #attendancePopup .guild-modal {
      max-width: 328px;
      padding: 18px 18px 18px;
    }
    #attendancePopup h2 {
      margin: 0 40px 10px;
      font-size: 20px;
    }
    .ga-subtitle {
      margin: 0 0 14px;
      text-align: center;
      font-size: 15px;
      font-weight: 900;
      line-height: 1.35;
      letter-spacing: -0.2px;
    }
    .ga-subtitle.can-claim { color: #5ec8ff; }
    .ga-subtitle.done { color: #2dd4a0; }
    #attendancePopup .ga-track,
    #attendancePopup .ga-track-fill {
      display: none;
    }
    #attendancePopup .ga-roadmap {
      margin: 10px 0 12px;
      padding: 0;
    }
    #attendancePopup .ga-rows {
      display: grid;
      gap: 14px;
      justify-items: center;
    }
    #attendancePopup .ga-row {
      position: relative;
      display: grid;
      align-items: start;
      justify-items: center;
    }
    #attendancePopup .ga-row::before {
      content: '';
      position: absolute;
      top: 18px;
      height: 4px;
      border-radius: 999px;
      background: var(--line-bg, #1e2340);
      z-index: 0;
    }
    #attendancePopup .ga-row-top {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      width: 60%;
      column-gap: 14px;
    }
    #attendancePopup .ga-row-top::before {
      left: 16%; right: 16%;
    }
    #attendancePopup .ga-row-bottom {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      width: 82%;
      column-gap: 10px;
    }
    #attendancePopup .ga-row-bottom::before {
      left: 10%; right: 10%;
    }
    #attendancePopup .ga-node {
      position: relative;
      z-index: 1;
      padding: 0;
      overflow: visible;
    }
    #attendancePopup .ga-node-circle {
      width: 36px;
      height: 36px;
      border-width: 3px;
      flex-shrink: 0;
      background: #1e2340;
    }
    #attendancePopup .ga-node-circle img {
      width: 19px;
      height: 19px;
    }
    .ga-node-today-mark {
      font-size: 18px;
      font-weight: 900;
      color: #1ab0ff;
      line-height: 1;
    }
    #attendancePopup .ga-node-label {
      font-size: 11px;
      margin-top: 6px;
      line-height: 1;
    }
    #attendancePopup .ga-node.locked .ga-node-label {
      color: rgba(200,210,230,0.25);
    }
    #attendancePopup .ga-bonus-tag {
      display: block;
      margin-top: 3px;
      font-size: 9px;
      line-height: 1;
      font-weight: 900;
      color: #d4a017;
      text-align: center;
      white-space: nowrap;
    }
    .ga-score-hint {
      display: inline-flex;
      align-items: baseline;
      gap: 2px;
      text-align: center;
      margin: 12px 0 10px;
      background: rgba(26,176,255,0.08);
      border: 1px solid rgba(26,176,255,0.18);
      border-radius: 16px;
      padding: 5px 16px;
    }
    .ga-hint-label {
      font-size: 13px; font-weight: 700; color: rgba(200,210,230,0.5);
      letter-spacing: -0.2px;
    }
    .ga-hint-score {
      font-size: 18px; font-weight: 900; color: #5ec8ff;
      font-family: 'Cairo', sans-serif;
      letter-spacing: -0.3px;
    }
    /* ===== 출석 후 보상 팝업 — 다크 ===== */
    #attendanceRewardPopup .guild-modal { max-width: 280px; }
    .ga-reward-icon {
      margin-bottom: 4px; font-size: 28px; line-height: 1;
      width: 44px; height: 44px; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center;
      background: rgba(45,212,160,0.12); color: #2dd4a0;
      border: 2px solid rgba(45,212,160,0.25);
    }
    .ga-reward-main {
      font-size: 28px; font-weight: 900; color: #5ec8ff;
      font-family: 'Cairo', sans-serif;
    }
    .ga-reward-sub {
      font-size: 13px; color: rgba(200,210,230,0.45); font-weight: 600;
      margin-top: 2px;
    }
    .ga-reward-bonus {
      font-size: 14px; color: #d4a017; font-weight: 800;
      margin-top: 6px; padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .ga-reward-total {
      font-size: 20px; font-weight: 900; color: #2dd4a0;
      margin-top: 4px;
      font-family: 'Cairo', sans-serif;
    }

    /* 출석 요약 배너 — 제거됨 */

    /* 국기 그리드 */
    .flag-grid {
      display: grid; grid-template-columns: repeat(6, 1fr);
      gap: 8px; margin-bottom: 16px;
    }
    .flag-item {
      width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
      border-radius: 10px; cursor: pointer;
      background: rgba(255,255,255,0.04);
      border: .5px solid rgba(255,255,255,0.04); transition: all 0.15s;
      overflow: hidden;
    }
    .flag-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
    .flag-item.selected { border-color: rgba(0,152,234,0.5); background: rgba(0,152,234,0.08); }
    .flag-item:active { transform: scale(0.9); }

    /* 검색 — 다크 */
    .search-input {
      width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
      border: .5px solid rgba(255,255,255,0.06);
      background: rgba(255,255,255,0.04); color: #fff;
      font-size: 14px; font-family: inherit;
      margin: 12px 16px; outline: none;
      transition: border-color 0.15s;
    }
    .search-input:focus { border-color: rgba(0,152,234,0.4); }
    .search-results { padding: 0 16px; }
    /* 유저 검색 초대용 카드 (길드 카드와 별도) */
    .user-search-item {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 6px; padding: 10px 12px;
      background: rgba(255,255,255,0.06); border-radius: 10px;
    }
    .user-search-item .us-info { flex: 1; min-width: 0; }
    .user-search-item .us-name { font-size: 14px; font-weight: 800; color: #fff; }
    .user-search-item .us-meta { font-size: 11px; color: #888; }
    .user-search-item .us-btn {
      padding: 6px 12px; border-radius: 8px; border: none;
      font-size: 12px; font-weight: 800; cursor: pointer;
      font-family: inherit; flex-shrink: 0; min-width: 60px; text-align: center;
    }
    .us-btn-apply { background: linear-gradient(135deg, #81C784, #66BB6A); color: #1b5e20; }
    .us-btn-disabled { background: rgba(255,255,255,0.05); color: #666; pointer-events: none; }

    /* 초대 목록 */
    .invite-item {
      display: flex; align-items: center;
      padding: 10px 12px; background: rgba(255,255,255,0.04);
      border-radius: 10px; margin-bottom: 6px;
    }
    .invite-info { flex: 1; min-width: 0; }
    .invite-name { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .invite-meta { font-size: 11px; color: #888; }
    .invite-actions { display: flex; gap: 6px; }
    .inv-btn {
      padding: 6px 10px; border-radius: 8px; border: none;
      font-size: 12px; font-weight: bold; cursor: pointer;
      font-family: inherit;
    }
    .inv-accept { background: #4CAF50; color: white; }
    .inv-reject { background: rgba(244,67,54,0.2); color: #f44336; }

    .empty-state { text-align: center; padding: 40px 20px; color: #666; }
    .empty-state .emoji { font-size: 50px; margin-bottom: 12px; }
    .empty-state p { font-size: 14px; line-height: 1.6; }

    .sub-header {
      display: flex; align-items: center; padding: 10px 16px;
      background: rgba(0,0,0,0.25);
      border-bottom: .5px solid rgba(255,255,255,0.04);
    }
    .sub-header .back-btn {
      background: none; border: none; color: white;
      font-size: 18px; cursor: pointer; margin-right: 8px;
    }
    .sub-header .sub-title { font-size: 16px; font-weight: bold; }

    /* 토스트 */
    /* .toast → ui-theme.css 공유 컴포넌트(2-B)로 통일 */
    .toast.show { opacity: 1; }

    /* Bottom nav styles live in ui-theme.css under `.bottom-nav.bottom-nav-ref02`. */

    /* ═══════════════════════════════════════════════════════════════════
       GUILD UI REDESIGN v3 — shell/art only (docs/guild-ui-redesign/*.md)
       ref: UIUX_레퍼런스_02 (검은 베이스 + 국소 halo + glass CTA +
            mask-composite outline frame + saturated-blur sheet)
       ― 모든 id/class/js/동적 텍스트/숫자 포맷 계약은 그대로 유지
       ― DM Sans primary · tabular-nums · 9-slice는 2곳(.guild-header,
         .tier-reward-header-wrap)만 유지, 그 외는 equivalent frame rule
       ═══════════════════════════════════════════════════════════════════ */

    /* --- Phase 0 · tokens (ref02 수치 반영) --- */
    :root {
      /* safe-area */
      --gu-sa-top:    var(--ptg-app-content-top, env(safe-area-inset-top, 0px));
      --gu-sa-bot:    var(--ptg-app-content-bottom, env(safe-area-inset-bottom, 0px));
      --gu-sa-left:   var(--ptg-app-content-left, env(safe-area-inset-left, 0px));
      --gu-sa-right:  var(--ptg-app-content-right, env(safe-area-inset-right, 0px));

      /* fluid viewport-linked heights */
      --gu-h-xs: min(28px, 3.5vh);
      --gu-h-sm: min(36px, 4.5vh);
      --gu-h-md: min(44px, 5.5vh);
      --gu-h-lg: min(52px, 6.5vh);
      --gu-h-xl: min(56px, 7vh);

      /* base palette (ref02) */
      --gu-bg:    #050505;
      --gu-bg2:   #0a0a0a;
      --gu-card:  #111111;
      --gu-card2: #161616;
      --gu-bdr:   #252d46;
      --gu-bdr2:  #344058;
      --gu-tx:    #e8ecf8;
      --gu-tx2:   #c8d0e4;
      --gu-dim:   #8a96b8;
      --gu-mut:   #586484;

      /* accent palette */
      --gu-ton:   #0098ea;
      --gu-ton2:  #0078c0;
      --gu-ton-g: linear-gradient(135deg, #18a8f8, #0070d0);
      --gu-gold:  #f0b818;
      --gu-green: #4cd830;
      --gu-rose:  #ff6b8a;
      --gu-red:   #ff4c5c;

      /* legacy alias — downstream 셀렉터가 계속 쓰므로 유지 */
      --gu-ink:      var(--gu-tx);
      --gu-ink-soft: rgba(232,236,248,0.72);
      --gu-ink-mute: var(--gu-dim);
      --gu-ink-dim:  var(--gu-mut);
      --gu-ton-soft: #18a8f8;

      /* halos (ref02 gT / gG / gP 3-tier, 국소용) */
      --gu-gT1: 0 0 6px  rgba(0,152,234,0.05);
      --gu-gT2: 0 0 10px rgba(0,152,234,0.08), 0 4px 14px rgba(0,152,234,0.03);
      --gu-gT3: 0 0 16px rgba(0,152,234,0.10), 0 0 36px rgba(0,152,234,0.03);
      --gu-gG1: 0 0 6px  rgba(240,184,24,0.05);
      --gu-gG2: 0 0 10px rgba(240,184,24,0.08), 0 4px 14px rgba(240,184,24,0.03);
      --gu-gG3: 0 0 16px rgba(240,184,24,0.10), 0 0 36px rgba(240,184,24,0.03);
      --gu-gP1: 0 0 6px  rgba(76,216,48,0.05);
      --gu-gP2: 0 0 10px rgba(76,216,48,0.08), 0 4px 14px rgba(76,216,48,0.03);
      --gu-gP3: 0 0 16px rgba(76,216,48,0.10), 0 0 36px rgba(76,216,48,0.03);

      /* surface slots alias to card bases */
      --gu-surf-1: var(--gu-card);
      --gu-surf-2: var(--gu-card2);
      --gu-surf-3: rgba(255,255,255,0.03);

      /* stroke weights */
      --gu-stroke-hi:  1px solid rgba(255,255,255,0.10);
      --gu-stroke-mid: .5px solid rgba(255,255,255,0.08);
      --gu-stroke-lo:  .5px solid rgba(255,255,255,0.04);

      /* radius scale (ref02 14/11/9) */
      --gu-r:   14px;
      --gu-r2:  11px;
      --gu-r3:   9px;
      --gu-r-lg: var(--gu-r);
      --gu-r-md: var(--gu-r2);
      --gu-r-sm: var(--gu-r3);

      /* motion */
      --gu-ease: cubic-bezier(0.22, 0.68, 0.35, 1);

      /* fonts — DM Sans primary · Nunito fallback 체인 뒷쪽 */
      --gu-font:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Nunito', sans-serif;
      --gu-font-num: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    /* --- Phase 1 · body / top-bar / scroll-wrap / sub-header · edge-only safe-area ---
       원칙: viewport edge에 직접 닿는 레이어만 sa 소비.
       - .top-bar       : 상단 edge  → sa-top + inline
       - .scroll-wrap   : 좌우 edge  → sa-inline
       - .bs-sheet      : 하단 edge  → sa-bot + inline
       - .popup-overlay : viewport cover → 4방향
       - .sub-header    : scroll-wrap 내부 콘텐츠 헤더 → sa 미적용
       - body           : 중첩 레이어 → sa 미적용 (전역 glow도 제거) */
    body {
      font-family: var(--gu-font);
      background: var(--gu-bg);
      color: var(--gu-tx);
    }
    .top-bar {
      padding-top:    12px; /* R3 (2026-06-10): 상단 safe-area 는 공통 .ptg-topbar 가 소비 */
      padding-right:  calc(16px + var(--gu-sa-right));
      padding-bottom: 12px;
      padding-left:   calc(16px + var(--gu-sa-left));
      background: linear-gradient(180deg, rgba(5,5,5,0.82), rgba(5,5,5,0.50));
      border-bottom: var(--gu-stroke-lo);
      backdrop-filter: blur(14px) saturate(1.15);
      -webkit-backdrop-filter: blur(14px) saturate(1.15);
    }
    .top-title {
      font-family: var(--gu-font);
      font-weight: 900; font-size: 17px;
      letter-spacing: 0.2px;
      color: var(--gu-tx);
    }
    .scroll-wrap {
      padding-left:  var(--gu-sa-left);
      padding-right: var(--gu-sa-right);
    }
    .sub-header {
      padding: 10px 16px;
      background: linear-gradient(180deg, rgba(5,5,5,0.82), rgba(5,5,5,0.50));
      border-bottom: var(--gu-stroke-lo);
      backdrop-filter: blur(14px) saturate(1.15);
      -webkit-backdrop-filter: blur(14px) saturate(1.15);
    }
    .sub-header .sub-title {
      font-family: var(--gu-font);
      font-weight: 900; font-size: 15px;
      letter-spacing: 0.2px;
      color: var(--gu-tx);
    }
    .sub-header .back-btn {
      width: 32px; height: 32px; border-radius: 8px;
      background: rgba(255,255,255,0.06);
      border: .5px solid rgba(255,255,255,0.04);
      color: var(--gu-dim);
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 18px; line-height: 1;
    }
    .sub-header .back-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.10); }

    /* --- Landing shell-light engine: ref02 pattern — animate conic angle only, pseudo box stays fixed (no slash) --- */
    @property --gcAngle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
    @keyframes gcBorderSpin { to { --gcAngle: 360deg; } }

    /* --- Landing: seasonal hero (.noguild-hero) — ref02 gs-banner warm bronze/ember + --gcAngle border-light --- */
    .noguild-hero {
      position: relative;
      padding: min(20px, 2.5vh) 16px 22px;
      margin: 14px 14px 0;
      border-radius: var(--gu-r-lg);
      background: linear-gradient(175deg,
        rgba(10,10,10,0.97) 0%,
        rgba(6,6,6,0.99) 100%);
      border: .5px solid rgba(255,255,255,0.06);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 16px 40px rgba(0,0,0,0.40);
      overflow: hidden;
    }
    .noguild-hero::before {
      content: '';
      position: absolute;
      top: -20px;
      left: 50%;
      width: 200px;
      height: 80px;
      transform: translateX(-50%);
      background: radial-gradient(ellipse, rgba(240,64,64,0.06), transparent 70%);
      pointer-events: none;
      z-index: 0;
    }
    .noguild-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      z-index: 0;
      pointer-events: none;
      padding: 2px;
      animation: gcBorderSpin 6s linear infinite;
      background: conic-gradient(from var(--gcAngle, 0deg),
        transparent 25%,
        rgba(255,100,100,0.40) 37%,
        rgba(255,140,100,0.60) 50%,
        rgba(255,100,100,0.40) 63%,
        transparent 75%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }
    .noguild-hero > * { position: relative; z-index: 1; }
    .noguild-eyebrow {
      font-family: var(--gu-font);
      font-size: 10px; font-weight: 800; letter-spacing: 2.6px;
      text-transform: uppercase;
      color: rgba(255,180,160,0.70);
      margin-bottom: 14px;
    }
    .noguild-title {
      font-family: var(--gu-font);
      font-size: min(23px, 3.0vh); font-weight: 900;
      line-height: 1.3; letter-spacing: -0.3px;
      color: var(--gu-tx);
      margin-bottom: 14px;
    }
    .noguild-title .ton {
      color: var(--gu-ton);
      text-shadow: 0 0 20px rgba(0,152,234,0.18);
      font-variant-numeric: tabular-nums;
    }
    .noguild-desc { color: var(--gu-dim); font-size: 11.5px; line-height: 1.55; }
    .noguild-live { font-size: 12px; color: var(--gu-tx2); font-variant-numeric: tabular-nums; }
    .noguild-live strong { color: var(--gu-tx); }
    .noguild-live .dot { background: var(--gu-green); box-shadow: 0 0 8px rgba(76,216,48,0.30); }

    /* --- Landing: timer card — ref02 dense black row with tabular-nums --- */
    .noguild-timer {
      margin: 14px 14px 0; padding: 16px 18px;
      border-radius: var(--gu-r-md);
      background: rgba(8,8,8,0.95);
      position: relative;
    }
    .noguild-timer::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .noguild-timer > * { position: relative; z-index: 1; }
    .noguild-timer-label {
      font-family: var(--gu-font);
      font-size: 10px; letter-spacing: 1.8px; font-weight: 700;
      color: var(--gu-ton);
      opacity: 0.82;
    }
    .noguild-timer-digits {
      font-family: var(--gu-font-num);
      font-size: min(30px, 4vh); font-weight: 900; letter-spacing: -0.5px;
      color: var(--gu-ton);
      font-variant-numeric: tabular-nums;
      text-shadow: 0 0 20px rgba(0,152,234,0.20);
    }
    .noguild-timer-sub { color: var(--gu-dim); }

    /* --- Landing: state card — ref02 gs-entry cool TON blue family (3상태 통일) + conic border spin --- */
    .gs-state-card {
      margin: 14px 14px 0; padding: 22px 20px;
      border-radius: var(--gu-r-md);
      background: rgba(8,8,8,0.96);
      position: relative;
      overflow: hidden;
      box-shadow:
        0 0 20px rgba(0,152,234,0.08),
        0 0 50px rgba(0,152,234,0.03);
    }
    .gs-state-card::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none; z-index: 0;
    }
    .gs-state-card::after {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1.5px;
      background: conic-gradient(from var(--gcAngle, 0deg),
        transparent 25%,
        rgba(0,152,234,0.40) 37%,
        rgba(60,200,255,0.62) 50%,
        rgba(0,152,234,0.40) 63%,
        transparent 75%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none; z-index: 2;
      animation: gcBorderSpin 9s linear infinite;
    }
    .gs-state-card > * { position: relative; z-index: 1; }
    .gs-state-card .gs-card-eyebrow {
      font-family: var(--gu-font);
      font-size: 10px; letter-spacing: 1.8px; font-weight: 800;
      opacity: 0.9;
    }
    .gs-state-card .gs-card-big {
      font-family: var(--gu-font-num);
      font-size: min(42px, 5.5vh); font-weight: 900; letter-spacing: -1px;
      font-variant-numeric: tabular-nums;
    }
    .gs-state-card .gs-card-desc { font-family: var(--gu-font); font-weight: 600; color: var(--gu-tx2); }
    .gs-state-card.live_noguild {
      background:
        radial-gradient(ellipse at 50% -10%, rgba(0,152,234,0.12), transparent 55%),
        rgba(8,8,8,0.96);
    }
    .gs-state-card.live_noguild::before {
      background: linear-gradient(135deg, rgba(0,152,234,0.22), rgba(0,152,234,0.04));
    }
    .gs-state-card.live_noguild .gs-card-big { color: var(--gu-ton); text-shadow: 0 0 24px rgba(0,152,234,0.32); }
    .gs-state-card.live_noguild .gs-card-eyebrow { color: rgba(94,200,255,0.80); }
    .gs-state-card.live_member {
      background:
        radial-gradient(ellipse at 50% -10%, rgba(0,152,234,0.10), transparent 55%),
        rgba(8,8,8,0.96);
    }
    .gs-state-card.live_member::before {
      background: linear-gradient(135deg, rgba(0,152,234,0.20), rgba(0,152,234,0.04));
    }
    .gs-state-card.live_member .gs-card-big { color: var(--gu-ton); text-shadow: 0 0 22px rgba(0,152,234,0.28); }
    .gs-state-card.live_member .gs-card-eyebrow { color: rgba(94,200,255,0.80); }
    .gs-state-card.prelaunch {
      background:
        radial-gradient(ellipse at 50% -10%, rgba(0,152,234,0.05), transparent 55%),
        rgba(8,8,8,0.96);
    }
    .gs-state-card.prelaunch::before {
      background: linear-gradient(135deg, rgba(0,152,234,0.14), rgba(0,152,234,0.03));
    }
    .gs-state-card.prelaunch .gs-card-big { color: rgba(94,200,255,0.72); text-shadow: 0 0 18px rgba(0,152,234,0.20); }
    .gs-state-card.prelaunch .gs-card-eyebrow { color: rgba(94,200,255,0.70); }

    /* --- Landing: primary CTA — ref02 glass blue-text (replaces blue solid slab) --- */
    .noguild-cta {
      min-height: var(--gu-h-lg);
      border-radius: var(--gu-r-md);
      background:
        linear-gradient(180deg,
          rgba(255,255,255,0.07) 0%,
          rgba(255,255,255,0.01) 50%,
          rgba(255,255,255,0.03) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.12);
      border-top: 1px solid rgba(255,255,255,0.18);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      color: var(--gu-ton);
      text-shadow: 0 0 8px rgba(0,152,234,0.30);
      box-shadow:
        0 6px 24px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(255,255,255,0.03);
      letter-spacing: 0.4px;
      font-family: var(--gu-font);
      font-weight: 900;
    }
    .noguild-cta:active {
      transform: translateY(1px);
      box-shadow:
        0 2px 8px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.10);
    }
    .noguild-cta.locked {
      background: rgba(255,255,255,0.03);
      border: .5px solid rgba(255,255,255,0.06);
      box-shadow: none;
      color: var(--gu-mut);
      text-shadow: none;
    }

    /* --- Landing action block surround —
       state card와 tier list 사이에서 CTA wrap이 "landing action zone"으로 읽히도록
       top hairline + ambient halo 추가. additive only, 기존 padding/텍스트 미수정. --- */
    .noguild-cta-wrap {
      position: relative;
      padding: 18px 18px 22px;
    }
    .noguild-cta-wrap::before {
      content: '';
      position: absolute;
      inset: 4px 10px 8px;
      border-radius: 20px;
      background:
        radial-gradient(ellipse 78% 62% at 50% 100%, rgba(0,152,234,0.09), transparent 72%),
        radial-gradient(ellipse 60% 42% at 50% 0%, rgba(240,184,24,0.045), transparent 76%);
      pointer-events: none;
      z-index: 0;
    }
    .noguild-cta-wrap::after {
      content: '';
      position: absolute;
      left: 20px; right: 20px; top: 0;
      height: 1px;
      background: linear-gradient(90deg,
        transparent 8%,
        rgba(255,255,255,0.10) 50%,
        transparent 92%);
      pointer-events: none;
      z-index: 0;
    }
    .noguild-cta-wrap > * { position: relative; z-index: 1; }

    /* --- shared popup overlay family — ref02 filmy dim + blur(18px) saturate(1.15) ---
       viewport cover 레이어 → 4방향 safe-area 모두 소비 */
    .popup-overlay {
      background: rgba(5,5,5,0.82);
      backdrop-filter: blur(18px) saturate(1.15);
      -webkit-backdrop-filter: blur(18px) saturate(1.15);
      padding:
        calc(20px + var(--gu-sa-top))
        calc(20px + var(--gu-sa-right))
        calc(20px + var(--gu-sa-bot))
        calc(20px + var(--gu-sa-left));
    }
    /* popup-box: ref02 black base + top hairline streak */
    .popup-box {
      background: var(--gu-bg2);
      border: .5px solid rgba(255,255,255,0.08);
      border-radius: var(--gu-r);
      position: relative;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 24px 60px rgba(0,0,0,0.70);
    }
    .popup-box::after { display: none; } /* P-3 헤더밴드가 상단 처리 대체 */
    .popup-box h3 {
      font-family: var(--gu-font);
      font-weight: 900; font-size: 17px;
      color: #eef3fc;
      letter-spacing: -0.1px;
      /* P-3 헤더 밴드: 카드 상단을 가로지름 (padding 24px 기준 음수마진, overflow:auto 유지 위해 라운드로 클립 안 함) */
      margin: -24px -24px 16px;
      padding: 14px 16px;
      background: #1b2440;
      border-radius: var(--gu-r) var(--gu-r) 0 0;
      text-align: center;
    }
    .pop-close, .guild-modal__close {
      background: rgba(255,255,255,0.08);
      border: .5px solid rgba(255,255,255,0.06);
      color: var(--gu-dim);
      border-radius: 8px;
      transition: background 0.15s, transform 0.1s;
    }
    .pop-close:hover, .guild-modal__close:hover { background: rgba(255,255,255,0.14); }
    .guild-modal {
      background: var(--gu-bg2);
      border: .5px solid rgba(255,255,255,0.08);
      border-radius: var(--gu-r);
      padding: 26px 22px 22px;
      position: relative;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 24px 60px rgba(0,0,0,0.70);
    }
    .guild-modal::after {
      content: ''; position: absolute; top: 0; left: 12px; right: 12px;
      height: 1px; pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    }
    .guild-modal h2 {
      font-family: var(--gu-font);
      font-weight: 900; font-size: 19px;
      letter-spacing: -0.2px;
      color: var(--gu-tx);
    }
    /* guild-modal__btn — ref02 glass CTA */
    .guild-modal__btn {
      min-height: var(--gu-h-md);
      border-radius: var(--gu-r-md);
      font-family: var(--gu-font);
      font-weight: 900; letter-spacing: 0.3px;
      background:
        linear-gradient(180deg,
          rgba(255,255,255,0.07) 0%,
          rgba(255,255,255,0.01) 50%,
          rgba(255,255,255,0.03) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.12);
      border-top: 1px solid rgba(255,255,255,0.18);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      color: var(--gu-ton);
      text-shadow: 0 0 8px rgba(0,152,234,0.30);
      box-shadow:
        0 6px 24px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(255,255,255,0.03);
    }
    .guild-modal__btn:active { transform: translateY(1px); }

    /* --- prelaunch / pending / success popup shells --- */
    .prelaunch-popup-box,
    .pending-popup-box {
      background: var(--gu-bg2);
      border: .5px solid rgba(255,255,255,0.08);
      border-radius: var(--gu-r);
      padding: 26px 22px;
      position: relative;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 24px 60px rgba(0,0,0,0.70);
    }
    .prelaunch-popup-box::after,
    .pending-popup-box::after {
      content: ''; position: absolute; top: 0; left: 12px; right: 12px;
      height: 1px; pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    }
    .pending-popup-title { font-family: var(--gu-font); font-weight: 900; color: var(--gu-tx); }
    .pending-popup-guild { font-family: var(--gu-font); color: var(--gu-ton); text-shadow: 0 0 14px rgba(0,152,234,0.30); }
    .pending-popup-badge {
      background: rgba(240,184,24,0.12); color: var(--gu-gold);
      border: .5px solid rgba(240,184,24,0.20);
      border-radius: 999px; padding: 3px 12px;
    }

    /* --- shared bottom sheet family — ref02 blur(24px) saturate(1.2) --- */
    .bs-dim { background: rgba(0,0,0,0); }
    .bs-dim.open {
      background: rgba(5,5,5,0.82);
      backdrop-filter: blur(18px) saturate(1.15);
      -webkit-backdrop-filter: blur(18px) saturate(1.15);
    }
    /* bottom sheet → 하단 edge + 좌우 edge safe-area 소비 */
    .bs-sheet {
      background: var(--gu-bg2);
      backdrop-filter: blur(24px) saturate(1.2);
      -webkit-backdrop-filter: blur(24px) saturate(1.2);
      border-top: .5px solid rgba(255,255,255,0.08);
      border-radius: 20px 20px 0 0;
      padding:
        18px
        calc(20px + var(--gu-sa-right))
        calc(22px + var(--gu-sa-bot))
        calc(20px + var(--gu-sa-left));
      box-shadow: 0 -14px 44px rgba(0,0,0,0.65);
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 901;
      max-height: min(82vh, calc(100dvh - var(--gu-sa-top) - 16px));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .bs-sheet::after {
      content: ''; position: absolute; top: 0; left: 16px; right: 16px;
      height: 1px; pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
    }
    .bs-handle { width: 40px; height: 4px; background: rgba(255,255,255,0.16); border-radius: 2px; }
    .bs-title {
      font-family: var(--gu-font);
      font-weight: 900; font-size: 16px;
      color: var(--gu-tx);
      letter-spacing: -0.1px;
    }
    /* bs-btn family — ref02 glass CTA (accent-text variants) */
    .bs-btn {
      min-height: var(--gu-h-md);
      font-family: var(--gu-font);
      font-weight: 900;
      border-radius: var(--gu-r-md);
      background:
        linear-gradient(180deg,
          rgba(255,255,255,0.07) 0%,
          rgba(255,255,255,0.01) 50%,
          rgba(255,255,255,0.03) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.12);
      border-top: 1px solid rgba(255,255,255,0.18);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      box-shadow:
        0 6px 24px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(255,255,255,0.03);
      position: relative;
    }
    .bs-btn:active { transform: translateY(1px); }
    .bs-btn-find    { color: var(--gu-ton);   text-shadow: 0 0 8px rgba(0,152,234,0.30); }
    .bs-btn-create  { color: #5be4ee;         text-shadow: 0 0 8px rgba(24,184,208,0.30); }
    .bs-btn-pending { color: #ce8df5;         text-shadow: 0 0 8px rgba(140,63,208,0.30); }

    /* --- Landing: guild card (dense ref02 row with mask-composite outline + streak) --- */
    .guild-card {
      padding: 13px 14px;
      border-radius: var(--gu-r2);
      background: rgba(8,8,8,0.95);
      position: relative;
      transition: transform 0.1s;
      overflow: hidden;
    }
    .guild-card::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .guild-card::after {
      content: ''; position: absolute; top: 0; left: 12px; right: 12px;
      height: 1px; pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    }
    .guild-card > * { position: relative; z-index: 1; }
    .guild-card:active { transform: scale(0.995); }
    .guild-card-name { font-family: var(--gu-font); color: var(--gu-tx); font-weight: 800; }
    /* guild-card-btn — row-level CTA: 메인 CTA 대비 한 단계 낮은 위계
       (padding 작게, blur 약하게, halo 없음) */
    .guild-card-btn {
      border-radius: var(--gu-r3);
      font-family: var(--gu-font);
      font-weight: 800;
      font-size: 12px;
      padding: 6px 12px;
    }
    .guild-card-btn.apply {
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      border: .5px solid rgba(0,152,234,0.24);
      color: var(--gu-ton);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .guild-card-btn.apply:active { transform: translateY(1px); }

    /* --- My applications sheet (managed-list) — ref02 dense row --- */
    .app-card {
      padding: 13px 14px;
      border-radius: var(--gu-r2);
      background: rgba(8,8,8,0.95);
      position: relative;
      overflow: hidden;
    }
    .app-card::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .app-card > * { position: relative; z-index: 1; }
    .app-card-name { font-family: var(--gu-font); color: var(--gu-tx); }
    .app-card-badge {
      background: rgba(240,184,24,0.10);
      color: var(--gu-gold);
      border: .5px solid rgba(240,184,24,0.20);
      border-radius: 999px;
      padding: 2px 10px;
      font-weight: 700;
    }
    /* app-card-cancel — row-level: 낮은 위계 */
    .app-card-cancel {
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      color: var(--gu-rose);
      border: .5px solid rgba(255,107,138,0.28);
      border-radius: var(--gu-r3);
      font-family: var(--gu-font);
      font-weight: 800;
      font-size: 12px;
      padding: 6px 11px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .app-card-cancel:active { transform: translateY(1px); }
    .app-slot { color: var(--gu-mut); font-family: var(--gu-font); }

    /* --- Search: input + results --- */
    .search-input {
      background: rgba(8,8,8,0.95);
      border: .5px solid rgba(255,255,255,0.08);
      border-radius: var(--gu-r2);
      color: var(--gu-tx);
      font-family: var(--gu-font);
      padding: 13px 16px;
      margin: 12px 14px;
      width: calc(100% - 28px);
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .search-input:focus {
      border-color: rgba(0,152,234,0.42);
      box-shadow: 0 0 0 3px rgba(0,152,234,0.10);
    }
    .search-input::placeholder { color: var(--gu-mut); }

    /* --- My Guild: header (compact hero with layered framing) ---
       9-slice frame rule: 원본 border-image(BorderFrame_Round20_Single_Dark.png,
       border-image-slice: 20 20 22 20 fill)를 그대로 살린다.
       overlay는 외곽 halo(box-shadow)만 얹고, border/background/padding/border-radius는
       9-slice fill을 덮지 않도록 override하지 않는다. */
    /* guild-header — 9-slice 프레임이 주인공, halo 는 보조. blue 제거, 중립 그림자만 */
    .guild-header {
      position: relative;
      box-shadow:
        0 14px 34px rgba(0,0,0,0.35),
        0 0 16px rgba(240,184,24,0.06);
    }
    .guild-name { font-family: var(--gu-font); color: var(--gu-tx); font-weight: 900; letter-spacing: -0.2px; }
    .guild-tier-badge {
      font-family: var(--gu-font); font-weight: 800;
      border-radius: 999px; padding: 3px 10px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .guild-tier-badge.diamond { background: rgba(185,242,255,0.12); color: #b9f2ff; border: .5px solid rgba(185,242,255,0.20); }
    .guild-tier-badge.gold    { background: rgba(240,184,24,0.12); color: var(--gu-gold); border: .5px solid rgba(240,184,24,0.20); }
    .guild-tier-badge.silver  { background: rgba(200,208,224,0.10); color: #c8d0e0; border: .5px solid rgba(200,208,224,0.18); }
    .guild-tier-badge.bronze  { background: rgba(212,165,116,0.12); color: #d4a574; border: .5px solid rgba(212,165,116,0.20); }
    .guild-header-meta { color: var(--gu-tx2); }
    .guild-ranking-link {
      color: var(--gu-gold);
      text-shadow: 0 0 10px rgba(240,184,24,0.32);
    }
    .countdown-chip {
      background: rgba(0,152,234,0.08);
      border: .5px solid rgba(0,152,234,0.18);
      color: var(--gu-ton);
      padding: 2px 10px 2px 8px;
      font-variant-numeric: tabular-nums;
    }

    /* --- My Guild: state card (my-score-strip) — ref02 black + gold halo + mask-composite outline --- */
    .my-score-strip {
      margin: 0 14px 8px;
      padding: 16px 18px 14px;
      border-radius: var(--gu-r);
      background:
        radial-gradient(ellipse at 50% 0%, rgba(240,184,24,0.10), transparent 55%),
        rgba(8,8,8,0.96);
      position: relative;
      overflow: hidden;
      box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    }
    .my-score-strip::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(240,184,24,0.24), rgba(240,184,24,0.04));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .my-score-strip > * { position: relative; z-index: 1; }
    .my-score-title { font-family: var(--gu-font); color: #ffe8a8; text-shadow: 0 0 14px rgba(240,184,24,0.30); }
    .my-score-total {
      font-family: var(--gu-font-num);
      font-variant-numeric: tabular-nums;
      background: linear-gradient(180deg, rgba(30,24,14,0.85), rgba(16,12,4,0.92));
      border: .5px solid rgba(240,184,24,0.28);
      color: #ffd98a;
      text-shadow: 0 0 14px rgba(240,184,24,0.32);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .my-score-subs { border-top-color: rgba(255,255,255,0.06); }
    .my-score-subs .sub-label { color: var(--gu-tx2); font-family: var(--gu-font); }
    .my-score-subs .sub-val   { color: var(--gu-tx); font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; }

    /* --- My Guild: segmented tab bar — ref02 compact premium --- */
    .guild-tab-bar {
      margin: 0 14px 10px;
      padding: 4px;
      background: rgba(255,255,255,0.03);
      border: .5px solid rgba(255,255,255,0.06);
      border-radius: var(--gu-r);
      overflow: hidden;
    }
    .guild-tab {
      font-family: var(--gu-font);
      border-radius: var(--gu-r3);
      padding: 9px 0;
      color: var(--gu-dim);
      transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    }
    .guild-tab.active {
      background:
        linear-gradient(180deg,
          rgba(255,255,255,0.07) 0%,
          rgba(255,255,255,0.01) 50%,
          rgba(255,255,255,0.03) 100%);
      color: var(--gu-tx);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.14),
        inset 0 -1px 0 rgba(255,255,255,0.04);
    }
    .guild-tab.active::after { display: none; }

    /* --- My Guild: valid checklist / reward accordion (status tab) --- */
    .reward-toggle {
      background: rgba(8,8,8,0.95);
      border-radius: var(--gu-r2);
      position: relative;
      overflow: hidden;
    }
    .reward-toggle::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .reward-toggle > * { position: relative; z-index: 1; }
    .reward-toggle-header { font-family: var(--gu-font); color: var(--gu-tx2); padding: 10px 14px; }
    .reward-body-inner { padding: 4px 14px 12px; border-top-color: rgba(255,255,255,0.05); }
    .check-item .check-text { color: var(--gu-tx2); }
    .check-item .check-val  { font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; color: var(--gu-dim); }

    /* --- My Guild: members list — ref02 mask-composite row + TON halo (me) --- */
    .member-item {
      background: rgba(8,8,8,0.95);
      border-radius: var(--gu-r2);
      position: relative;
      overflow: hidden;
    }
    .member-item::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .member-item > * { position: relative; z-index: 1; }
    .member-item.me {
      background:
        radial-gradient(ellipse at 0% 50%, rgba(0,152,234,0.12), transparent 70%),
        rgba(8,8,8,0.95);
      border: 0 !important;
      border-left: 0 !important;
    }
    .member-item.me::before {
      background: linear-gradient(135deg, rgba(0,152,234,0.48), rgba(0,152,234,0.06));
    }
    /* upstream old accent (#5ec8ff) → ref02 ton (#0098ea) 로 통일 */
    .member-item.me .member-rank,
    .member-item.me .member-name,
    .member-item.me .member-score-num { color: var(--gu-ton) !important; }
    .member-item.me .member-reward-badge.paid {
      background: rgba(0,152,234,0.10) !important;
      color: var(--gu-ton) !important;
      border: .5px solid rgba(0,152,234,0.20);
    }
    .member-name { font-family: var(--gu-font); color: var(--gu-tx); }
    .member-score-num { font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; }
    .member-reward-badge.paid {
      background: rgba(0,152,234,0.10);
      color: var(--gu-ton);
      border: .5px solid rgba(0,152,234,0.20);
    }
    .member-warn-badge {
      background: rgba(255,107,138,0.10);
      color: var(--gu-rose);
      border: .5px solid rgba(255,107,138,0.24);
      border-radius: 999px;
      padding: 3px 10px;
    }
    /* kick-btn — row-level danger: 낮은 위계 */
    .kick-btn {
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      color: var(--gu-rose);
      border: .5px solid rgba(255,107,138,0.28);
      border-radius: var(--gu-r3);
      font-family: var(--gu-font); font-weight: 800;
      font-size: 12px;
      padding: 6px 11px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .kick-btn:active { transform: translateY(1px); }

    /* --- My Guild: reward tab card + rows — ref02 financial-summary surface --- */
    .reward-tab-card {
      margin: 0 14px 10px; padding: 22px 20px;
      border-radius: var(--gu-r);
      background:
        radial-gradient(ellipse at 50% 0%, rgba(0,152,234,0.12), transparent 55%),
        rgba(8,8,8,0.96);
      position: relative;
      overflow: hidden;
      box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    }
    .reward-tab-card::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(0,152,234,0.28), rgba(0,152,234,0.04));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .reward-tab-card > * { position: relative; z-index: 1; }
    .reward-tab-big {
      font-family: var(--gu-font-num);
      font-variant-numeric: tabular-nums;
      color: var(--gu-ton);
      text-shadow: 0 0 24px rgba(0,152,234,0.38);
      letter-spacing: -1px;
    }
    .reward-week-row {
      background: rgba(8,8,8,0.95);
      border-radius: var(--gu-r2);
      position: relative;
      overflow: hidden;
    }
    .reward-week-row::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .reward-week-row > * { position: relative; z-index: 1; }
    .reward-week-label { font-family: var(--gu-font); }
    .reward-week-ton { font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; color: var(--gu-tx); }
    .reward-week-label .week-badge {
      background: rgba(0,152,234,0.12);
      color: var(--gu-ton);
      border: .5px solid rgba(0,152,234,0.20);
      border-radius: 999px; padding: 2px 8px;
    }

    /* --- Ranking: podium (spectacle — one place Guild allows drama) --- */
    .podium-wrap { gap: 8px; padding: 18px 14px 10px; }
    .podium-card {
      background:
        radial-gradient(ellipse at 50% -20%, rgba(255,255,255,0.06), transparent 60%),
        rgba(8,8,8,0.96);
      border-radius: var(--gu-r);
      padding: 14px 10px 12px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    }
    .podium-card::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none; z-index: 0;
    }
    .podium-card > * { position: relative; z-index: 1; }
    .podium-card.p1 {
      background:
        radial-gradient(ellipse at 50% -30%, rgba(240,184,24,0.22), transparent 65%),
        linear-gradient(160deg, rgba(42,32,10,0.94), rgba(18,12,2,0.98));
      box-shadow:
        0 14px 32px rgba(0,0,0,0.45),
        0 0 28px rgba(240,184,24,0.10);
    }
    .podium-card.p1::before {
      background: linear-gradient(135deg, rgba(240,184,24,0.48), rgba(240,184,24,0.06));
    }
    .podium-card.p2 {
      background:
        radial-gradient(ellipse at 50% -30%, rgba(192,200,216,0.14), transparent 65%),
        linear-gradient(160deg, rgba(22,26,38,0.94), rgba(10,12,20,0.98));
    }
    .podium-card.p2::before {
      background: linear-gradient(135deg, rgba(192,200,216,0.32), rgba(192,200,216,0.04));
    }
    .podium-card.p3 {
      background:
        radial-gradient(ellipse at 50% -30%, rgba(212,165,116,0.14), transparent 65%),
        linear-gradient(160deg, rgba(32,22,12,0.94), rgba(14,10,4,0.98));
    }
    .podium-card.p3::before {
      background: linear-gradient(135deg, rgba(212,165,116,0.32), rgba(212,165,116,0.04));
    }
    .podium-name { font-family: var(--gu-font); }
    .podium-card.p1 .podium-name { color: #ffe8a8; text-shadow: 0 0 10px rgba(240,184,24,0.40); }
    .podium-score { font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; }
    .podium-card.p1 .podium-score { color: #ffd98a; text-shadow: 0 0 10px rgba(240,184,24,0.32); }

    /* --- Ranking: list rows — ref02 dense competitive list + mask-composite outline --- */
    .ri-row {
      border-radius: var(--gu-r2) !important;
      padding: 11px 12px !important;
      position: relative;
      overflow: hidden;
    }
    .ri-row::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .ri-row > * { position: relative; z-index: 1; }
    .ri-row.ui-list-yellow {
      background:
        radial-gradient(ellipse at 0% 50%, rgba(0,152,234,0.14), transparent 70%),
        rgba(8,8,8,0.95) !important;
      border: 0 !important;
      border-left: 0 !important;
    }
    .ri-row.ui-list-yellow::before {
      background: linear-gradient(135deg, rgba(0,152,234,0.48), rgba(0,152,234,0.06));
    }
    .ri-rank { font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; }
    .ri-name { font-family: var(--gu-font); color: var(--gu-tx); }
    .ri-score { font-family: var(--gu-font-num); font-variant-numeric: tabular-nums; }
    /* upstream old accent (#5ec8ff) → ref02 ton (#0098ea) 로 통일 */
    .ri-row.ui-list-yellow .ri-rank,
    .ri-row.ui-list-yellow .ri-name,
    .ri-row.ui-list-yellow .ri-score { color: var(--gu-ton) !important; }

    /* --- Tier reward accordion refined shell ---
       9-slice frame rule: 원본 border-image(BannerFrame04_Single.png,
       border-image-slice: 30 30 30 30 fill)를 그대로 살린다.
       overlay는 외곽 halo(box-shadow)만 얹는다. */
    .tier-reward-accordion { margin: 12px 14px 18px; }
    .tier-reward-header-wrap {
      box-shadow:
        0 8px 20px rgba(0,0,0,0.30),
        var(--gu-gG2);
    }
    .tier-reward-header-left { font-family: var(--gu-font); color: var(--gu-tx); }
    .tier-card-wrap {
      background: rgba(8,8,8,0.95) !important;
      border: none !important;
      border-radius: var(--gu-r2);
      position: relative;
      overflow: hidden;
    }
    /* Tier row edge-light frame — all rows carry a slow opacity breathe so list reads as alive */
    .tier-card-wrap::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 2px;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
      z-index: 1;
    }
    /* Tier row top hairline — overrides upstream `::after { display:none }` */
    .tier-card-wrap::after {
      content: ''; position: absolute;
      top: 0; left: 10%; right: 10%; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
      pointer-events: none;
      z-index: 2;
      display: block;
    }
    .tier-card-wrap > * { position: relative; z-index: 3; }
    .tier-card-wrap.diamond::before {
      background: conic-gradient(from var(--gcAngle, 0deg),
        transparent 25%,
        rgba(180,224,255,0.45) 37%,
        rgba(180,224,255,0.70) 50%,
        rgba(180,224,255,0.45) 63%,
        transparent 75%);
      animation: gcBorderSpin 5s linear infinite;
    }
    .tier-card-wrap.gold::before {
      background: conic-gradient(from var(--gcAngle, 0deg),
        transparent 25%,
        rgba(240,184,24,0.45) 37%,
        rgba(240,184,24,0.70) 50%,
        rgba(240,184,24,0.45) 63%,
        transparent 75%);
      animation: gcBorderSpin 6s linear infinite;
    }
    .tier-card-wrap.silver::before {
      background: conic-gradient(from var(--gcAngle, 0deg),
        transparent 25%,
        rgba(192,200,216,0.35) 37%,
        rgba(192,200,216,0.55) 50%,
        rgba(192,200,216,0.35) 63%,
        transparent 75%);
      animation: gcBorderSpin 8s linear infinite;
    }
    .tier-card-wrap.bronze::before {
      background: conic-gradient(from var(--gcAngle, 0deg),
        transparent 25%,
        rgba(212,165,116,0.30) 37%,
        rgba(212,165,116,0.50) 50%,
        rgba(212,165,116,0.30) 63%,
        transparent 75%);
      animation: gcBorderSpin 10s linear infinite;
    }
    /* Current row: stronger blue hairline pulse without replacing tier-specific frame color */
    .tier-card-wrap.current::after {
      background: linear-gradient(90deg, transparent, rgba(94,200,255,0.40), transparent);
      animation: tierCurrentPulse 4.5s ease-in-out infinite;
    }
    @keyframes tierCurrentPulse {
      0%, 100% { opacity: 1; }
      50%      { opacity: 0.55; }
    }
    .tier-card-wrap.current {
      box-shadow: 0 0 20px rgba(0,152,234,0.16);
    }
    .tier-reward-label { font-family: var(--gu-font); }
    .tier-reward-ton-label { font-family: var(--gu-font); color: var(--gu-ton); font-variant-numeric: tabular-nums; }

    /* --- Owner flows: invite row + inv-btn family (ref02 glass accent) --- */
    .invite-item {
      background: rgba(8,8,8,0.95);
      border-radius: var(--gu-r2);
      padding: 11px 13px;
      position: relative;
      overflow: hidden;
    }
    .invite-item::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .invite-item > * { position: relative; z-index: 1; }
    .invite-name { font-family: var(--gu-font); color: var(--gu-tx); }
    /* inv-btn — row-level: 낮은 위계 (padding 축소, blur 약, halo 없음) */
    .inv-btn {
      border-radius: var(--gu-r3);
      font-family: var(--gu-font);
      font-weight: 800;
      font-size: 12px;
      padding: 6px 11px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      background: rgba(255,255,255,0.04);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .inv-accept {
      color: var(--gu-green);
      border: .5px solid rgba(76,216,48,0.28);
    }
    .inv-accept:active { transform: translateY(1px); }
    .inv-reject {
      color: var(--gu-rose);
      border: .5px solid rgba(255,107,138,0.28);
    }
    .inv-reject:active { transform: translateY(1px); }

    /* --- Confirm / Delegate popup family (decision) — glass CTA variants --- */
    /* confirmPopup은 bottom sheet(bs-dim 900 / bs-sheet 901) 위에서 열릴 수 있으므로 확실히 위로 올림.
       공용 .popup-overlay는 건드리지 않고 #confirmPopup specificity로만 한정. */
    #confirmPopup { z-index: 950; }
    #confirmPopup .popup-box,
    #delegatePopup .popup-box { max-width: 340px; padding: 26px 22px; }
    #confirmPopup .g-btn,
    #delegatePopup .g-btn {
      font-family: var(--gu-font);
      border-radius: var(--gu-r-md);
      min-height: var(--gu-h-md);
      font-weight: 900;
    }
    #confirmPopup .btn-leave {
      background:
        linear-gradient(180deg,
          rgba(255,255,255,0.06) 0%,
          rgba(255,255,255,0.01) 50%,
          rgba(255,255,255,0.03) 100%);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      color: var(--gu-rose);
      border: 1px solid rgba(255,107,138,0.24);
      border-top: 1px solid rgba(255,107,138,0.32);
      border-bottom: 1px solid rgba(255,107,138,0.10);
      text-shadow: 0 0 8px rgba(255,107,138,0.28);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
    }
    #confirmPopup .btn-leave:active { transform: translateY(1px); }
    #delegatePopup h3 {
      font-family: var(--gu-font);
      color: var(--gu-tx);
      letter-spacing: -0.2px;
    }
    #delegatePopup .invite-item { margin-bottom: 8px; }
    #delegatePopup .inv-accept { min-width: 64px; }

    /* --- Empty state + utility --- */
    .empty-state { color: var(--gu-ink-mute); font-family: var(--gu-font); padding: 48px 20px; }
    .empty-state p { color: var(--gu-ink-soft); }

    /* --- Flag grid refine --- */
    .flag-item {
      background: var(--gu-surf-3);
      border: var(--gu-stroke-mid);
      border-radius: var(--gu-r-sm);
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
    }
    .flag-item.selected {
      background: rgba(26,176,255,0.12);
      border-color: rgba(26,176,255,0.45);
      box-shadow: var(--gu-gT3);
    }

    /* --- User search (inviter side) row — ref02 dense + glass CTA --- */
    .user-search-item {
      background: rgba(8,8,8,0.95);
      border-radius: var(--gu-r2);
      padding: 11px 13px;
      position: relative;
      overflow: hidden;
    }
    .user-search-item::before {
      content: ''; position: absolute; inset: 0;
      border-radius: inherit; padding: 1px;
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor; mask-composite: exclude;
      pointer-events: none;
    }
    .user-search-item > * { position: relative; z-index: 1; }
    .user-search-item .us-name { font-family: var(--gu-font); color: var(--gu-tx); }
    /* us-btn-apply — row-level: 낮은 위계 */
    .us-btn-apply {
      background: rgba(255,255,255,0.04);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      color: var(--gu-green);
      border: .5px solid rgba(76,216,48,0.28);
      border-radius: var(--gu-r3);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
      font-family: var(--gu-font);
      font-weight: 800;
      font-size: 12px;
      padding: 6px 11px;
    }
    .us-btn-apply:active { transform: translateY(1px); }
    .us-btn-disabled {
      background: rgba(255,255,255,0.03);
      color: var(--gu-mut);
      border: .5px solid rgba(255,255,255,0.06);
    }

    /* --- Toast refine --- */
    /* .toast refine → ui-theme.css 공유 컴포넌트(2-B)로 통일 */

    /* --- Attendance popup polish (keep logic, change shell only) --- */
    #attendancePopup .ga-subtitle { font-family: var(--gu-font); }
    #attendancePopup .ga-node-label { font-family: var(--gu-font); }
    #attendancePopup .ga-bonus-tag { font-family: var(--gu-font); }
    .ga-hint-score { font-family: var(--gu-font-num); }
    .ga-reward-main { font-family: var(--gu-font-num); }
    .ga-reward-total { font-family: var(--gu-font-num); }

    /* --- DEV toggle respect safe-area --- */
    .dev-toggle {
      background: rgba(255,255,255,0.08);
      border: var(--gu-stroke-mid);
      color: var(--gu-ink-soft);
      border-radius: 10px;
      font-family: var(--gu-font);
    }

    /* --- M9. :focus-visible + disabled (공용 접근성 규칙) --- */
    .noguild-cta:focus-visible,
    .bs-btn:focus-visible,
    .guild-modal__btn:focus-visible,
    .guild-card-btn.apply:focus-visible,
    .inv-btn:focus-visible,
    .kick-btn:focus-visible,
    .app-card-cancel:focus-visible,
    .us-btn-apply:focus-visible,
    #confirmPopup .btn-leave:focus-visible {
      outline: 2px solid var(--gu-ton);
      outline-offset: 2px;
    }
    .noguild-cta:disabled,
    .noguild-cta[aria-disabled="true"],
    .bs-btn:disabled,
    .bs-btn[aria-disabled="true"],
    .guild-modal__btn:disabled,
    .guild-modal__btn[aria-disabled="true"],
    .guild-card-btn.apply:disabled,
    .guild-card-btn.apply[aria-disabled="true"],
    .guild-card-btn.apply.applied,
    .inv-btn:disabled,
    .inv-btn[aria-disabled="true"],
    .us-btn-apply:disabled,
    .us-btn-apply[aria-disabled="true"],
    .us-btn-disabled,
    .app-card-cancel:disabled,
    .app-card-cancel[aria-disabled="true"],
    .kick-btn:disabled,
    .kick-btn[aria-disabled="true"] {
      opacity: 0.5;
      pointer-events: none;
      color: var(--gu-mut);
      text-shadow: none;
      box-shadow: none;
    }

    /* --- Reduced motion guard --- */
    @media (prefers-reduced-motion: reduce) {
      .noguild-hero::after,
      .gs-state-card::after,
      .guild-header::before { animation: none; }
      .noguild-cta::after, .bs-btn::after { animation: none; }
      .tier-card-wrap::before,
      .tier-card-wrap.current::after { animation: none; }
    }

    /* ══════════════════════════════════════════════════════════════════
       H4. @supports fallbacks
       - 아트 약화는 허용, 텍스트/콘텐츠 가독성 저하는 불가
       - mask-composite 미지원 → ::before outline layer 숨김 + 단순 border
       - backdrop-filter 미지원 → glass CTA/popup/sheet 를 다크 솔리드로
       ══════════════════════════════════════════════════════════════════ */
    @supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
      .guild-card::before,
      .app-card::before,
      .invite-item::before,
      .user-search-item::before,
      .member-item::before,
      .ri-row::before,
      .reward-toggle::before,
      .reward-week-row::before,
      .tier-card-wrap::before,
      .podium-card::before,
      .noguild-hero::after,
      .gs-state-card::before,
      .gs-state-card::after,
      .my-score-strip::before,
      .reward-tab-card::before,
      .noguild-timer::before { display: none !important; }
      .guild-card,
      .app-card,
      .invite-item,
      .user-search-item,
      .member-item,
      .reward-toggle,
      .reward-week-row,
      .tier-card-wrap,
      .podium-card,
      .gs-state-card,
      .my-score-strip,
      .reward-tab-card,
      .noguild-timer { border: .5px solid rgba(255,255,255,0.08); }
      .ri-row { border: .5px solid rgba(255,255,255,0.08) !important; }
      .member-item.me { border: 1px solid rgba(0,152,234,0.32) !important; }
      .ri-row.ui-list-yellow { border: 1px solid rgba(0,152,234,0.32) !important; }
      .tier-card-wrap.current { border: 1px solid rgba(0,152,234,0.36); }
      .podium-card.p1 { border: 1px solid rgba(240,184,24,0.40); }
      .podium-card.p2 { border: 1px solid rgba(192,200,216,0.28); }
      .podium-card.p3 { border: 1px solid rgba(212,165,116,0.28); }
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      .popup-overlay,
      .bs-dim.open { background: rgba(5,5,5,0.92); }
      .bs-sheet { background: #0d0d0d; }
      .noguild-cta,
      .guild-modal__btn,
      .bs-btn,
      .guild-card-btn.apply,
      .inv-btn,
      .kick-btn,
      .app-card-cancel,
      .us-btn-apply,
      #confirmPopup .btn-leave {
        background: rgba(20,24,32,0.92);
      }
      .noguild-cta,
      .guild-modal__btn,
      .bs-btn-find { border: 1px solid rgba(0,152,234,0.38); }
      .bs-btn-create { border: 1px solid rgba(24,184,208,0.38); }
      .bs-btn-pending { border: 1px solid rgba(140,63,208,0.38); }
      .inv-accept,
      .us-btn-apply { border: 1px solid rgba(76,216,48,0.38); }
      .inv-reject,
      .kick-btn,
      .app-card-cancel,
      #confirmPopup .btn-leave { border: 1px solid rgba(255,107,138,0.38); }
    }

    /* --- Narrow-phone safeguards (320–375) --- */
    @media (max-width: 375px) {
      .noguild-hero { padding: 18px 14px 20px; margin: 12px 12px 0; }
      .noguild-title { font-size: 20px; }
      .noguild-timer { margin: 12px 12px 0; padding: 14px 16px; }
      .noguild-timer-digits { font-size: 26px; }
      .gs-state-card { margin: 12px 12px 0; padding: 20px 16px; }
      .gs-state-card .gs-card-big { font-size: 34px; }
      .reward-tab-card { padding: 20px 16px; }
      .my-score-strip { padding: 14px 16px 12px; }
      .guild-card, .app-card, .invite-item, .user-search-item, .member-item { padding: 11px 12px; }
      .podium-card { padding: 12px 8px 10px; }
      .podium-card.p1 .podium-name { font-size: 12px; }
      .ri-row { padding: 10px 10px !important; }
    }
    @media (max-width: 340px) {
      .noguild-title { font-size: 18px; }
      .noguild-eyebrow { font-size: 9px; letter-spacing: 2px; }
      .gs-state-card .gs-card-big { font-size: 30px; }
      .noguild-timer-digits { font-size: 24px; }
      .guild-tab { padding: 8px 0; font-size: 12px; }
      .countdown-chip { padding: 2px 8px 2px 6px; font-size: 11px; }
    }
    /* --- Tall-phone enhancement (iPhone Pro Max, Pixel XL) --- */
    @media (min-height: 820px) {
      .noguild-hero { padding: 24px 18px 26px; }
      .gs-state-card { padding: 26px 22px; }
      .gs-state-card .gs-card-big { font-size: min(46px, 6vh); }
    }