
@font-face {
    font-family: 'MaruBuri';
    src: url('./fonts/MaruBuri-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MaruBuri';
    src: url('./fonts/MaruBuri-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'MaruBuri';
    src: url('./fonts/MaruBuri-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'MaruBuri';
    src: url('./fonts/MaruBuri-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'MaruBuri';
    src: url('./fonts/MaruBuri-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

* {
    font-family: 'MaruBuri', sans-serif !important;
}

*{box-sizing:border-box}body{margin:0;font-family:"Pretendard","Noto Sans KR",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f5f8;color:#18202f;letter-spacing:-.02em}.hidden{display:none!important}.auth-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#1e293b,#334155)}.auth-card{width:min(430px,92vw);background:#fff;border-radius:24px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.25)}h1,h2{margin:0 0 10px}.muted,.hint{color:#64748b}.tabs,.rank-tabs{display:flex;gap:8px;margin:16px 0}.tab{border:0;background:#e2e8f0;border-radius:999px;padding:9px 14px;cursor:pointer}.tab.active{background:#2563eb;color:#fff}.auth-form{display:grid;gap:8px}.auth-form input,.chat-form input{border:1px solid #cbd5e1;border-radius:12px;padding:12px;font-size:15px}.primary{background:#2563eb;color:#fff;border:0}.danger{background:#dc2626!important;color:#fff!important;border:0!important}.ghost{background:#fff;border:1px solid #cbd5e1}.full{width:100%;padding:13px;border-radius:14px;margin-top:8px}button{border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:10px 12px;cursor:pointer;font-weight:700}button:disabled{opacity:.45;cursor:not-allowed}.msg{min-height:20px;color:#dc2626}.game{min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 22px;background:linear-gradient(135deg,#ffffff,#f8fbff);border-bottom:1px solid #dbe5f1;position:sticky;top:0;z-index:5;box-shadow:0 8px 24px rgba(15,23,42,.05)}.badge{display:inline-block;background:#eef2ff;color:#3730a3;border-radius:999px;padding:4px 10px}.stats{display:flex;gap:12px;flex-wrap:wrap}.stats div{background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:11px 17px;min-width:155px;box-shadow:0 8px 18px rgba(37,99,235,.07)}.stats small{display:block;color:#64748b;font-size:12px;margin-bottom:3px}.stats strong{font-size:19px;color:#0f172a;font-variant-numeric:tabular-nums}.layout{display:grid;grid-template-columns:minmax(0,1.6fr) 340px;grid-template-areas:"map detail" "ranking chat";gap:16px;padding:16px}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:16px;box-shadow:0 8px 30px rgba(15,23,42,.06)}.map-panel{grid-area:map}.detail-panel{grid-area:detail}.ranking-panel{grid-area:ranking}.chat-panel{grid-area:chat}.panel-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.panel-title span{color:#64748b;font-size:13px}.region-toolbar{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:12px 0}.region-toolbar label{display:grid;gap:5px}.region-toolbar small{color:#64748b;font-weight:800}.region-toolbar select{border:1px solid #cbd5e1;border-radius:13px;padding:10px 12px;background:#fff;font-weight:800;color:#1e293b}.region-page-title{display:flex;justify-content:space-between;align-items:center;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:15px;padding:10px 13px;margin:4px 0 10px}.region-page-title strong{font-size:15px}.region-page-title span{background:#fff;border:1px solid #dbeafe;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:900}.map-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(96px,1fr));gap:8px;max-height:580px;overflow:auto;padding:10px;background:#f8fafc;border-radius:16px}.land{min-height:62px;border-radius:12px;border:1px solid #cbd5e1;background:#e2e8f0;font-size:12px;line-height:1.15;padding:6px 8px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;white-space:normal}.land.owned{background:#dbeafe;border-color:#60a5fa}.land.other{background:#fee2e2;border-color:#f87171}.land.selected{outline:3px solid #f59e0b}.land-icon{font-size:20px;line-height:1}.land-name{display:block;width:100%;font-weight:900;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.land-lot{display:block;width:100%;font-size:11px;color:#475569;font-weight:800;letter-spacing:-.03em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.land-detail{background:#f8fafc;border-radius:16px;padding:14px;min-height:170px;line-height:1.7}.actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.admin-panel{margin-top:18px;border-top:1px dashed #cbd5e1;padding-top:14px;display:grid;gap:8px}.chat-log{height:250px;overflow:auto;background:#0f172a;color:#e5e7eb;border-radius:16px;padding:12px;font-size:14px}.chat-line{margin:0 0 8px}.prefix-news{color:#ef4444;font-weight:900}.prefix-admin{color:#60a5fa;font-weight:900}.prefix-notice{color:#facc15;font-weight:900}.notice-text{font-weight:900}.chat-form{display:flex;gap:8px;margin-top:10px}.chat-form input{flex:1}#rankingList{padding-left:24px;line-height:1.9}.rank-money{float:right;font-weight:800;color:#2563eb}@media(max-width:900px){.topbar{align-items:flex-start;flex-direction:column}.layout{grid-template-columns:1fr;grid-template-areas:"map" "detail" "ranking" "chat"}.region-toolbar{grid-template-columns:1fr}.map-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));}.land{font-size:9px}.stats div{min-width:140px}}
.build-options{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:10px;margin-top:8px;display:grid;gap:6px}
.build-options label{font-size:12px;color:#64748b;font-weight:900}
.build-options select{border:1px solid #cbd5e1;border-radius:12px;padding:10px;font-weight:800;background:#fff}
.synergy-good{color:#16a34a;font-weight:900}
.synergy-bad{color:#dc2626;font-weight:900}
.sell-note{display:block;color:#64748b;font-size:12px;margin-top:6px;line-height:1.45}

.top-actions{display:flex;gap:8px;align-items:center}
.admin-panel.hidden{display:none!important}
.admin-notice-box{display:grid;gap:6px;margin:10px 0;padding:10px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc}
.admin-notice-box input{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px}
.land .land-icon{display:block;font-size:18px;line-height:1;margin-bottom:3px}
.sliding-notice{position:sticky;top:0;z-index:20;background:#111827;color:#fff;overflow:hidden;white-space:nowrap;border-bottom:3px solid #ef4444}
.sliding-notice span{display:inline-block;padding:10px 0;font-weight:800;animation:slideNotice 15s linear infinite}
@keyframes slideNotice{from{transform:translateX(100vw)}to{transform:translateX(-100%)}}
.my-info-panel{grid-column:1 / -1}
.my-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:14px}
.my-info-card{padding:12px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.my-property-list{display:grid;gap:8px;max-height:300px;overflow:auto}
.my-property-item{padding:10px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}


/* v10 패치: 우측 패널 버튼이 화면 밖으로 나가지 않도록 최소 폭/넘침 제어 */
.detail-panel{min-width:0;overflow:hidden}
.detail-panel button,.detail-panel select,.detail-panel input{max-width:100%;min-width:0}
.actions{width:100%;overflow:hidden}
.actions button{width:100%;white-space:normal;line-height:1.35;word-break:keep-all}
.admin-panel button{width:100%;white-space:normal;line-height:1.35;word-break:keep-all}
.land-detail{overflow-wrap:anywhere;word-break:keep-all}
.upgrade-cost{display:inline-block;margin:4px 0;padding:5px 8px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:800}
@media(max-width:900px){.detail-panel{width:100%}.top-actions{flex-wrap:wrap}}

.land-filter-toolbar{
  margin-top: 8px;
  align-items: end;
}
.check-label{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #dbe3ef;
  border-radius:12px;
  background:#fff;
  font-weight:700;
  color:#26364f;
}
.check-label input{
  width:18px;
  height:18px;
}


.rank-notice{margin:8px 0 12px;padding:10px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;color:#9a3412;font-size:13px;line-height:1.45}
.nick-link,.chat-nick{border:0;background:transparent;padding:0;border-radius:0;color:#2563eb;font-weight:800;cursor:pointer}
.nick-link:hover,.chat-nick:hover{text-decoration:underline}
.chat-nick.prefix-news{color:#dc2626}.chat-nick.prefix-admin{color:#7c3aed}.chat-nick.prefix-notice{color:#b45309}
.user-modal{position:fixed;inset:0;background:rgba(15,23,42,.48);display:grid;place-items:center;z-index:50;padding:18px}
.user-modal-card{position:relative;width:min(640px,94vw);max-height:82vh;overflow:auto;background:#fff;border-radius:22px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.3)}
.modal-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:999px;padding:0;font-size:22px;line-height:1}
.user-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.user-summary-grid div{border:1px solid #dbeafe;background:#f8fbff;border-radius:14px;padding:12px}
.user-summary-grid small{display:block;color:#64748b;margin-bottom:4px}
.user-summary-grid strong{font-variant-numeric:tabular-nums}
.user-owned-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.user-owned-list li{border:1px solid #e2e8f0;border-radius:14px;padding:10px;background:#fff}
.user-owned-list span,.user-owned-list small{display:block;margin-top:3px;color:#475569}
.empty-owned{color:#64748b}

.work-btn{background:#16a34a;color:#fff;border:0;box-shadow:0 8px 18px rgba(22,163,74,.16)}
.work-btn:disabled{background:#94a3b8;color:#fff;opacity:.75}
.top-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}


/* online presence patch */
.chat-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.chat-head h2{margin:0}.online-users-btn{font-size:12px;padding:7px 10px;border-radius:999px;background:#f8fafc;color:#334155}
.presence-toolbar{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px}
.presence-label{font-size:12px;font-weight:900;color:#64748b}.presence-select{flex:1;border:1px solid #cbd5e1;border-radius:12px;padding:8px 10px;background:#fff;font-weight:800;color:#1e293b}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:5px;vertical-align:middle;box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.status-online{background:#22c55e}.status-away{background:#f59e0b}.status-dnd{background:#ef4444}
.nick-with-status{display:inline-flex;align-items:center;gap:4px}.rank-status-dot{margin-right:6px}.online-user-list{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px;max-height:56vh;overflow:auto}.online-user-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:14px;padding:10px;background:#fff}.online-user-list button{border:0;background:transparent;padding:0;color:#2563eb;font-weight:900}.online-count-box{padding:12px;border-radius:16px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-weight:900}.user-action-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.user-action-row button{padding:9px 12px}.presence-hint{font-size:12px;color:#64748b;margin-top:6px;line-height:1.45}


/* mailbox patch */
.chat-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mailbox-btn{font-size:12px;padding:7px 10px;border-radius:999px;background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.mailbox-ready-box{margin-top:14px;padding:28px 16px;text-align:center;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b;font-weight:900}
.mailbox-modal-card{width:min(420px,92vw)}
@media(max-width:900px){.chat-head{align-items:flex-start}.chat-head-actions{justify-content:flex-start}}


/* personal assistant patch */
.assistant-btn{background:#7c3aed;color:#fff;border:0;box-shadow:0 8px 18px rgba(124,58,237,.16)}
.assistant-modal-card{width:min(980px,96vw)}
.assistant-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.assistant-header p{margin:4px 0 0;color:#64748b;line-height:1.45}
.assistant-current{border:1px solid #ddd6fe;background:#f5f3ff;border-radius:18px;padding:12px;min-width:230px;color:#4c1d95;font-weight:900}
.assistant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.assistant-card{border:1px solid #e2e8f0;border-radius:18px;overflow:hidden;background:#fff;display:flex;flex-direction:column;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.assistant-card.hired{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.12)}
.assistant-card img{width:100%;height:auto;display:block;object-fit:contain;background:#f8fafc}
.assistant-body{padding:12px;display:grid;gap:7px;flex:1}
.assistant-body h3{margin:0;font-size:18px}.assistant-meta{color:#64748b;font-size:12px;line-height:1.45}.assistant-theme{font-weight:900;color:#4c1d95}.assistant-pay{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px;font-size:13px;line-height:1.5}.assistant-desc{font-size:13px;color:#334155;line-height:1.5}.assistant-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}.hire-btn{background:#16a34a;color:#fff;border:0}.fire-btn{background:#dc2626;color:#fff;border:0}.assistant-event-box{margin:14px 0;padding:14px;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}.assistant-event-box h3{margin:0 0 8px}.assistant-event-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-top:10px}.assistant-event-actions button{background:#fff;color:#9a3412;border-color:#fdba74}.assistant-help-list{margin:10px 0 14px;padding:12px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;color:#334155;line-height:1.6;font-size:13px}
@media(max-width:900px){.assistant-header{flex-direction:column}.assistant-current{width:100%}.assistant-card img{height:auto}}

/* land price history + save/load patch */
.selected-land-history{margin:8px 0 10px;padding:10px;border:1px solid #dbeafe;background:#eff6ff;border-radius:14px;line-height:1.45}
.land-history-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;max-height:180px;overflow:auto}
.land-history-list li{display:grid;grid-template-columns:76px 82px 1fr;gap:6px;align-items:center;padding:7px 8px;border-radius:10px;background:#fff;border:1px solid #e2e8f0;font-size:12px}
.land-history-list b{font-weight:900}.land-history-list small{color:#475569;font-size:11px;line-height:1.35}.history-up b{color:#dc2626}.history-down b{color:#2563eb}.land-history-empty{margin-top:8px;color:#64748b;font-size:12px}.property-history{margin-top:8px;padding:8px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.property-history summary{cursor:pointer;font-weight:900;color:#1e40af}.property-history .land-history-list{max-height:220px}.top-actions input[type=file]{display:none!important}
@media(max-width:640px){.land-history-list li{grid-template-columns:1fr;gap:2px}.top-actions button{flex:1 1 auto}}
.my-property-link{
  width:100%;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
}
.my-property-link:hover{
  border-color:#94a3b8;
  transform:translateY(-1px);
}


/* admin user management patch */
.admin-users-modal-card{width:min(1180px,96vw)}
.admin-users-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.admin-users-header h2{margin:0 0 4px}
.admin-users-header p{margin:0;color:#64748b;line-height:1.45}
.admin-users-header strong{padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;white-space:nowrap}
.admin-users-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.admin-users-table{width:100%;border-collapse:collapse;min-width:980px;font-size:13px}
.admin-users-table th,.admin-users-table td{padding:8px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:middle}
.admin-users-table th{position:sticky;top:0;background:#f8fafc;color:#475569;z-index:1}
.admin-users-table tr:last-child td{border-bottom:0}
.admin-edit-input{width:100%;min-width:92px;padding:8px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-weight:700;color:#1e293b}
.admin-edit-input.money{min-width:140px;font-variant-numeric:tabular-nums}
.admin-save-user-btn{padding:8px 11px;border-radius:10px;background:#2563eb;color:#fff;border:0;white-space:nowrap}
.admin-users-help{margin:12px 0 0;color:#64748b;font-size:12px;line-height:1.45}
@media(max-width:700px){.admin-users-header{flex-direction:column}.admin-users-modal-card{padding:18px}.admin-users-table{font-size:12px}}


.coupon-modal-card{width:min(460px,92vw)}
.coupon-help{margin:0 0 14px;color:#64748b;line-height:1.45}
.coupon-form{display:flex;gap:8px;align-items:center}
.coupon-form input{flex:1;min-width:0;text-transform:uppercase}
.coupon-msg{min-height:20px;margin:12px 0 0;font-weight:700}
@media(max-width:520px){.coupon-form{flex-direction:column;align-items:stretch}}

/* auth convenience patch */
.auth-card{width:min(480px,92vw)}
.auth-card h1{font-size:26px;letter-spacing:-.04em}
.auth-card .muted{line-height:1.45;margin-top:4px}
.auth-input-row{display:flex;gap:8px;align-items:center}
.auth-input-row input{flex:1;min-width:0}
.mini-btn{white-space:nowrap;padding:11px 12px;border-radius:12px;background:#f8fafc;color:#334155;border:1px solid #cbd5e1;font-size:13px}
.field-msg{min-height:18px;line-height:1.35;color:#dc2626;font-weight:800;margin-top:-4px}
.field-msg.ok{color:#16a34a}
.auth-form label{font-weight:900;color:#334155;margin-top:2px}
.auth-form .ghost.full{margin-top:0;background:#f8fafc;color:#334155}
.auth-form .primary.full{font-size:15px;font-weight:900}
.auth-form input:focus{outline:3px solid rgba(37,99,235,.16);border-color:#2563eb}
.hint{line-height:1.45;font-size:13px}
@media(max-width:480px){.auth-card{padding:22px;border-radius:20px}.auth-input-row{flex-direction:column;align-items:stretch}.mini-btn{width:100%}}


/* v0.2 top HUD convenience/readability patch */
.hud-topbar{align-items:center;gap:14px;padding:10px 14px;background:linear-gradient(135deg,#eaf6ff 0%,#f8fbff 42%,#eef6ff 100%);border-bottom:1px solid rgba(59,130,246,.28);box-shadow:0 8px 26px rgba(15,23,42,.10);backdrop-filter:blur(12px)}
.hud-profile{display:flex;align-items:center;gap:10px;min-width:248px;padding:8px 14px 8px 8px;border:1px solid rgba(148,163,184,.55);border-radius:22px;background:linear-gradient(135deg,#0f172a,#1e293b);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 10px 22px rgba(15,23,42,.14);color:#fff}
.hud-avatar{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;border-radius:999px;background:radial-gradient(circle at 30% 25%,#fef3c7,#38bdf8 48%,#0f172a 72%);border:3px solid rgba(255,255,255,.8);box-shadow:0 0 0 3px rgba(45,212,191,.45);font-size:26px}
.hud-profile-text h1{font-size:16px;line-height:1.15;margin:0 0 5px;color:#fff;white-space:nowrap}.hud-badge{background:rgba(255,255,255,.12);color:#e0f2fe;border:1px solid rgba(255,255,255,.18);font-size:12px;padding:3px 9px}
.hud-stats{flex:1;display:grid;grid-template-columns:minmax(220px,1.25fr) repeat(3,minmax(145px,.8fr));gap:10px;min-width:0}.hud-stats div{position:relative;min-width:0;padding:10px 13px 10px 44px;border-radius:18px;background:linear-gradient(135deg,#111827,#1f2937);border:1px solid rgba(203,213,225,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 8px 18px rgba(15,23,42,.12);overflow:hidden}.hud-stats div::after{content:"";position:absolute;inset:1px;border-radius:17px;background:linear-gradient(90deg,rgba(255,255,255,.07),transparent 52%);pointer-events:none}.hud-stats .hud-money{background:linear-gradient(135deg,#172554,#0f172a)}.hud-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:22px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3));z-index:1}.hud-stats small{position:relative;z-index:1;color:#bfdbfe;font-size:11px;font-weight:900;margin:0 0 3px}.hud-stats strong{position:relative;z-index:1;display:block;color:#f8fafc;font-size:17px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.5)}.hud-stats .hud-money strong{color:#facc15;font-size:20px}.hud-actions{display:flex;gap:7px;flex-wrap:nowrap;justify-content:flex-end;align-items:center}.hud-actions button{min-width:58px;height:56px;padding:7px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:14px;background:linear-gradient(135deg,#f8fafc,#e2e8f0);border:1px solid rgba(148,163,184,.75);box-shadow:0 7px 16px rgba(15,23,42,.10);color:#0f172a;font-size:18px;line-height:1}.hud-actions button span{font-size:11px;font-weight:900;white-space:nowrap}.hud-actions .hud-action-main{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border-color:#93c5fd}.hud-actions button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.16)}
@media(max-width:1180px){.hud-topbar{align-items:stretch;flex-direction:column}.hud-profile{width:100%}.hud-stats{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.hud-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.hud-actions button{flex:1 1 92px}}
@media(max-width:640px){.hud-topbar{padding:8px}.hud-profile{min-width:0;border-radius:18px}.hud-profile-text h1{font-size:14px}.hud-avatar{width:46px;height:46px;flex-basis:46px}.hud-stats{grid-template-columns:1fr;gap:7px}.hud-stats div{padding:9px 12px 9px 42px}.hud-stats strong,.hud-stats .hud-money strong{font-size:16px}.hud-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.hud-actions button{min-width:0;height:52px;padding:6px 4px}.hud-actions button span{font-size:10px}}


/* v0.2 profile nickname/avatar patch */
.hud-avatar{border:0;cursor:pointer;padding:0;overflow:hidden;position:relative}
.hud-avatar:hover{filter:brightness(1.08);transform:translateY(-1px)}
.hud-avatar img{width:100%;height:100%;object-fit:cover;border-radius:999px;display:block}
#profileAvatarFallback{font-size:26px;line-height:1}
.hud-profile-text h1#hudNickname{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:1000;letter-spacing:-.03em}
.hud-badge{display:inline-flex;align-items:center;gap:4px;max-width:max-content}
@media(max-width:640px){.hud-profile-text h1#hudNickname{max-width:calc(100vw - 120px);font-size:15px}.hud-avatar::after{font-size:9px;padding:1px 5px}}


/* v0.2 profile avatar upload-only patch */
.hud-avatar{background:linear-gradient(135deg,#0f172a,#1e293b)!important;}
#profileAvatarFallback{display:none!important;}
.hud-avatar img.hidden{display:none!important;}

.my-info-modal-card{width:min(760px,94vw)}
.my-info-modal-card h2{margin:0 0 14px}


/* landmark gold UI patch */
.land.landmark-ready{
  position:relative;
  border-color:#f59e0b;
  background:linear-gradient(135deg,#fff7cc,#ffffff 52%,#fde68a);
  box-shadow:0 0 0 2px rgba(245,158,11,.18),0 0 18px rgba(245,158,11,.42);
  animation:landmarkGlow 1.8s ease-in-out infinite;
}
.land.landmark-ready::after{
  content:"LANDMARK";
  position:absolute;
  left:6px;
  right:6px;
  top:4px;
  padding:2px 3px;
  border-radius:999px;
  background:#f59e0b;
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.02em;
}
.land.landmark-ready .land-icon{margin-top:13px;color:#b45309}
.land.landmark-built{
  border-color:#d97706;
  background:linear-gradient(135deg,#fbbf24,#fff7ed 58%,#fef3c7);
  box-shadow:0 0 0 2px rgba(217,119,6,.22),0 8px 24px rgba(217,119,6,.25);
}
.land.landmark-built .land-name,.land.landmark-ready .land-name{color:#78350f}
.landmark-info{
  margin:8px 0 10px;
  padding:10px 12px;
  border:1px solid #f59e0b;
  border-radius:14px;
  background:linear-gradient(135deg,#fffbeb,#fff7ed);
  color:#78350f;
  font-weight:800;
  line-height:1.55;
  box-shadow:0 8px 20px rgba(245,158,11,.12);
}
.landmark-built-info{
  border-color:#d97706;
  background:linear-gradient(135deg,#fef3c7,#fff7ed);
}
@keyframes landmarkGlow{
  0%,100%{box-shadow:0 0 0 2px rgba(245,158,11,.18),0 0 14px rgba(245,158,11,.34)}
  50%{box-shadow:0 0 0 3px rgba(245,158,11,.28),0 0 28px rgba(245,158,11,.72)}
}


.coin-modal-card{
width:min(760px,94vw);
background:#111827;
border:1px solid rgba(255,255,255,.12);
color:#fff;
}
.coin-panel{
width:100%;
}
.coin-header h3{
margin:0 0 6px;
color:#fff;
}
.coin-header p,.coin-sub{
color:#cbd5e1;
font-size:12px;
}
.coin-row{
background:rgba(255,255,255,.05);
border-radius:12px;
padding:10px;
margin-top:10px;
}
.coin-main{
display:flex;
justify-content:space-between;
align-items:center;
gap:8px;
color:#fff;
font-size:13px;
}
.coin-up{color:#22c55e;font-weight:bold;}
.coin-down{color:#ef4444;font-weight:bold;}
.coin-actions{
display:flex;
gap:6px;
margin-top:8px;
}
.coin-actions input{
flex:1;
background:#1f2937;
border:none;
border-radius:8px;
padding:8px;
color:#fff;
}
.coin-actions button{
background:#2563eb;
color:#fff;
border:none;
border-radius:8px;
padding:8px 10px;
cursor:pointer;
font-size:12px;
}

/* ===== 코인 메뉴 편의성/시각 개선 ===== */
.coin-modal-card{
  width:min(980px,96vw) !important;
  max-height:88vh;
  overflow:auto;
  background:linear-gradient(145deg,#0f172a,#111827 55%,#172554) !important;
  border:1px solid rgba(148,163,184,.22) !important;
  color:#fff !important;
  box-shadow:0 30px 90px rgba(15,23,42,.55);
}
.coin-panel{width:100%;}
.coin-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}
.coin-header h3{margin:0 0 6px !important;color:#fff !important;font-size:20px;}
.coin-header p{margin:0;color:#94a3b8 !important;font-size:12px;}
.coin-summary-box{
  min-width:210px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  text-align:right;
}
.coin-summary-box small,.coin-wallet-strip small{display:block;color:#94a3b8;font-size:11px;margin-bottom:4px;}
.coin-summary-box strong{display:block;font-size:19px;margin-bottom:4px;}
.coin-summary-box span{font-size:12px;font-weight:800;}
.coin-wallet-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:12px;
}
.coin-wallet-strip>div{
  padding:10px 12px;
  border-radius:14px;
  background:rgba(15,23,42,.72);
  border:1px solid rgba(148,163,184,.16);
}
.coin-wallet-strip b{font-size:13px;color:#e5e7eb;}
.coin-market-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.coin-row{
  position:relative;
  overflow:hidden;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(148,163,184,.15);
  border-radius:18px !important;
  padding:12px !important;
  margin-top:0 !important;
}
.coin-row.coin-owned{border-color:rgba(34,197,94,.42);background:rgba(34,197,94,.08) !important;}
.coin-main{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#fff !important;font-size:13px;}
.coin-name{display:flex;align-items:center;gap:10px;min-width:0;}
.coin-name small{display:block;color:#94a3b8;font-size:11px;margin-top:2px;}
.coin-badge{
  display:inline-flex;
  width:34px;height:34px;
  align-items:center;justify-content:center;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);
  font-weight:900;
}
.coin-price{text-align:right;}
.coin-price strong{display:block;font-size:14px;margin-bottom:2px;}
.coin-price span{font-size:12px;}
.coin-up{color:#22c55e !important;font-weight:bold;}
.coin-down{color:#ef4444 !important;font-weight:bold;}
.coin-sparkline{height:42px;display:flex;align-items:flex-end;gap:2px;margin:10px 0 8px;opacity:.78;}
.coin-sparkline i{flex:1;min-width:2px;border-radius:999px;background:rgba(148,163,184,.45);}
.coin-sub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px 10px;
  padding:8px 0 2px;
  color:#cbd5e1;
  font-size:11px;
}
.coin-sub-grid span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.coin-sub-grid b{color:#fff;}
.coin-actions{display:grid !important;grid-template-columns:1fr repeat(3,46px) 58px 58px;gap:6px !important;margin-top:10px !important;}
.coin-actions input{
  min-width:0;
  background:#020617 !important;
  border:1px solid rgba(148,163,184,.2) !important;
  border-radius:10px !important;
  padding:9px !important;
  color:#fff !important;
}
.coin-actions button{
  background:#334155 !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:10px !important;
  padding:8px 6px !important;
  cursor:pointer;
  font-size:11px !important;
  font-weight:800;
}
.coin-actions .coin-buy-btn{background:#2563eb !important;}
.coin-actions .coin-sell-btn{background:#7f1d1d !important;}
@media(max-width:760px){
  .coin-header{display:block;}
  .coin-summary-box{text-align:left;margin-top:10px;}
  .coin-wallet-strip{grid-template-columns:1fr;}
  .coin-market-list{grid-template-columns:1fr;}
  .coin-actions{grid-template-columns:1fr repeat(3,42px) 54px 54px;}
}


.openchat-link{
  display:block;
  margin:12px auto 18px;
  padding:12px;
  border-radius:12px;
  text-align:center;
  text-decoration:none;
  font-weight:700;
  background:#FEE500;
  color:#191919;
  transition:0.2s;
  max-width:320px;
}
.openchat-link:hover{
  transform:translateY(-1px);
  opacity:0.92;
}




.donation-modal-card{
  max-width:460px;
  text-align:center;
}
.donation-modal-text{
  color:#475569;
  line-height:1.6;
}
.donation-modal-box{
  margin:16px 0;
  padding:16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.donation-modal-account{
  margin-top:8px;
  font-size:22px;
  font-weight:900;
  color:#0f172a;
  letter-spacing:1px;
}
.donation-modal-owner{
  margin-top:6px;
  color:#334155;
  font-weight:700;
}
.donation-modal-reward{
  color:#334155;
  font-weight:700;
}
.donation-modal-guide{
  color:#64748b;
  font-size:14px;
  font-weight:700;
}


/* ===== Mobile compact header patch: nickname + cash only by default ===== */
.mobile-menu-toggle{display:none}

@media(max-width:640px){
  .hud-topbar{
    gap:6px !important;
    padding:6px 8px !important;
  }
  .hud-profile{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    padding:7px 8px !important;
  }
  .hud-avatar{
    width:42px !important;
    height:42px !important;
    flex-basis:42px !important;
  }
  .hud-profile-text{
    min-width:0;
  }
  .hud-profile-text h1#hudNickname{
    max-width:100% !important;
    font-size:15px !important;
    margin:0 !important;
  }
  .hud-badge{
    display:none !important;
  }
  .mobile-menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:70px;
    height:38px;
    padding:0 10px;
    border-radius:999px;
    background:#0f172a;
    color:#fff;
    border:0;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
  }
  .hud-stats{
    width:100%;
    grid-template-columns:1fr !important;
    gap:0 !important;
  }
  .hud-stats div:not(.hud-money){
    display:none !important;
  }
  .hud-stats .hud-money{
    min-width:0 !important;
    padding:8px 12px 8px 40px !important;
    border-radius:16px !important;
  }
  .hud-stats .hud-money small{
    font-size:11px !important;
    margin-bottom:1px !important;
  }
  .hud-stats .hud-money strong{
    font-size:16px !important;
  }
  .hud-topbar:not(.mobile-menu-open) .hud-actions{
    display:none !important;
  }
  .hud-topbar.mobile-menu-open .hud-actions{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:6px !important;
    width:100%;
  }
  .hud-topbar.mobile-menu-open .hud-actions button{
    height:46px !important;
    padding:5px 3px !important;
  }
}


.profile-start-row{display:flex;align-items:center;gap:14px;margin:4px 0 8px}
.start-avatar{width:82px;height:82px;border-radius:24px;overflow:hidden;display:grid;place-items:center;background:#eef2ff;border:1px solid #c7d2fe;font-size:30px;padding:0;flex:0 0 auto}
.start-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.auth-select{border:1px solid #cbd5e1;border-radius:12px;padding:12px;font-size:15px;background:#fff}
.small-hint{font-size:12px;margin:6px 0 0}


/* ===== v1.4 mobile UI comfort patch: layout only, game logic untouched ===== */
:root{
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-safe-top: env(safe-area-inset-top, 0px);
}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}
button,
select,
input{
  touch-action:manipulation;
}
button:active{
  transform:scale(.985);
}
@media(max-width:640px){
  body{
    background:#edf2f7;
    overflow-x:hidden;
  }
  .auth-screen{
    min-height:100svh;
    padding:calc(12px + var(--mobile-safe-top)) 12px calc(12px + var(--mobile-safe-bottom));
    place-items:start center;
  }
  .auth-card{
    width:100% !important;
    max-width:460px;
    margin-top:8px;
    padding:18px !important;
    border-radius:22px !important;
  }
  .auth-card h1{
    font-size:22px !important;
    line-height:1.18;
  }
  .auth-form label{
    font-size:13px;
    font-weight:900;
    color:#334155;
  }
  .auth-form input,
  .auth-select,
  .chat-form input,
  .coupon-form input,
  .admin-notice-box input,
  .coin-actions input{
    min-height:44px;
    font-size:16px !important; /* iPhone 입력 확대 방지 */
  }

  .game{
    min-height:100svh;
  }
  .sliding-notice{
    top:0;
    font-size:13px;
  }
  .hud-topbar{
    position:sticky;
    top:0;
    z-index:40;
    padding-top:calc(6px + var(--mobile-safe-top)) !important;
    box-shadow:0 10px 26px rgba(15,23,42,.14);
    border-bottom:1px solid rgba(148,163,184,.42);
  }
  .mobile-menu-toggle{
    min-height:40px;
  }
  .hud-topbar.mobile-menu-open .hud-actions{
    padding:8px;
    border-radius:18px;
    background:rgba(255,255,255,.72);
    box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);
  }
  .hud-topbar.mobile-menu-open .hud-actions button{
    min-width:0 !important;
    min-height:50px !important;
    border-radius:14px !important;
    font-size:19px !important;
  }
  .hud-topbar.mobile-menu-open .hud-actions button span{
    font-size:10.5px !important;
  }

  .layout{
    display:flex !important;
    flex-direction:column;
    gap:10px !important;
    padding:10px 8px calc(18px + var(--mobile-safe-bottom)) !important;
  }
  .panel{
    border-radius:18px !important;
    padding:12px !important;
    box-shadow:0 6px 18px rgba(15,23,42,.055);
  }
  .panel-title{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }
  .panel-title h2,
  .panel h2{
    font-size:18px;
    line-height:1.2;
  }
  .panel-title span{
    font-size:12px;
    line-height:1.35;
  }

  .region-toolbar{
    gap:8px !important;
    margin:9px 0 !important;
  }
  .region-toolbar select,
  .check-label{
    min-height:44px;
    font-size:15px;
  }
  .land-filter-toolbar{
    grid-template-columns:1fr !important;
  }
  .region-page-title{
    position:sticky;
    top:calc(108px + var(--mobile-safe-top));
    z-index:8;
    margin:8px 0;
    padding:8px 10px;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(37,99,235,.10);
  }
  .map-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
    max-height:none !important;
    overflow:visible !important;
    padding:8px !important;
    border-radius:14px !important;
  }
  .land{
    min-height:72px !important;
    padding:6px 4px !important;
    border-radius:13px !important;
    font-size:11px !important;
  }
  .land-icon{
    font-size:21px !important;
  }
  .land-name{
    font-size:11px;
  }
  .land-lot,
  .land-price{
    font-size:10px !important;
  }
  .land.selected{
    outline-width:3px !important;
    outline-offset:1px;
  }

  .detail-panel{
    position:static;
  }
  .land-detail{
    font-size:13px;
    line-height:1.45;
  }
  .actions{
    grid-template-columns:1fr 1fr !important;
    gap:7px !important;
  }
  .actions button,
  .actions select{
    min-height:46px;
    padding:9px 8px !important;
    font-size:13px !important;
    border-radius:13px !important;
  }
  #buyBtn,
  #buildOptions{
    grid-column:1 / -1;
  }
  #sellLandBtn{
    grid-column:1 / -1;
  }
  .admin-panel{
    gap:7px;
  }
  .admin-panel button{
    min-height:44px;
  }

  .ranking-panel{
    order:3;
  }
  #rankingList{
    padding-left:22px;
    font-size:13px;
    line-height:1.75;
  }
  .rank-money{
    float:none;
    display:block;
    font-size:12px;
  }

  .chat-panel{
    order:4;
  }
  .chat-head{
    gap:8px;
  }
  .chat-head-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    gap:7px;
  }
  .chat-head-actions button{
    min-height:42px;
  }
  .presence-toolbar{
    align-items:stretch;
  }
  .presence-select{
    min-height:42px;
  }
  .chat-log{
    height:42svh !important;
    min-height:230px;
    padding:10px !important;
    font-size:13px !important;
    -webkit-overflow-scrolling:touch;
  }
  .chat-form{
    position:sticky;
    bottom:calc(6px + var(--mobile-safe-bottom));
    z-index:6;
    padding:7px;
    margin:10px -4px -4px;
    background:rgba(255,255,255,.94);
    border:1px solid #e2e8f0;
    border-radius:16px;
    box-shadow:0 8px 22px rgba(15,23,42,.10);
  }
  .chat-form button{
    min-width:64px;
    min-height:44px;
  }

  .user-modal{
    padding:calc(10px + var(--mobile-safe-top)) 8px calc(10px + var(--mobile-safe-bottom)) !important;
    align-items:end;
    place-items:end center;
  }
  .user-modal-card{
    width:100% !important;
    max-height:88svh !important;
    border-radius:22px 22px 16px 16px !important;
    padding:46px 16px 18px !important;
    -webkit-overflow-scrolling:touch;
  }
  .modal-close{
    right:12px !important;
    top:10px !important;
    width:40px !important;
    height:40px !important;
    font-size:24px !important;
    background:#0f172a !important;
    color:#fff !important;
    border:0 !important;
  }
  .user-summary-grid{
    grid-template-columns:1fr !important;
  }
  .coupon-form{
    gap:8px;
  }
}

@media(max-width:380px){
  .map-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .hud-topbar.mobile-menu-open .hud-actions{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .actions{
    grid-template-columns:1fr !important;
  }
}

/* ===== requested UI cleanup: collapsible top actions, no chat panel, ranking in menu ===== */
.hud-topbar{align-items:flex-start}
.hud-profile{width:100%}
.mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:42px}
.hud-actions{display:none;width:100%;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;margin-top:10px}
.hud-topbar.mobile-menu-open .hud-actions{display:grid}
.hud-topbar.mobile-menu-open{flex-wrap:wrap}
.hud-actions button{min-height:44px}
.layout{grid-template-columns:minmax(0,1.6fr) 340px;grid-template-areas:"map detail";align-items:start}
.ranking-panel,.chat-panel{display:none!important}
.ranking-menu-card{width:min(560px,94vw);max-height:82vh;overflow:auto}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
#rankingList{padding-left:22px;margin:10px 0 0}
#rankingList li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e2e8f0}
.nick-link{border:0;background:transparent;padding:0;text-align:left}
.rank-money{font-weight:900;color:#2563eb;white-space:nowrap}
@media (max-width: 900px){
  .layout{grid-template-columns:1fr;grid-template-areas:"map" "detail";padding:10px}
  .hud-topbar{gap:10px}
}
@media (max-width: 640px){
  .hud-topbar{display:flex;padding:10px 12px}
  .hud-stats{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .hud-stats div{min-width:0;padding:8px 9px;border-radius:14px}
  .hud-stats small{font-size:10px}
  .hud-stats strong{font-size:14px}
  .hud-actions{grid-template-columns:repeat(3,1fr)}
  .hud-actions button{font-size:12px;padding:8px 6px}
  .map-grid{max-height:58vh}
}


/* ===== Request patch: ranking as popup + thinner top stats only ===== */
#rankingMenuModal.modal{
  position:fixed !important;
  inset:0 !important;
  z-index:120 !important;
  display:grid !important;
  place-items:center !important;
  padding:18px !important;
  background:rgba(15,23,42,.58) !important;
  backdrop-filter:blur(4px);
}
#rankingMenuModal.modal.hidden{
  display:none !important;
}
#rankingMenuModal .ranking-menu-card{
  width:min(560px,94vw) !important;
  max-height:min(78vh,680px) !important;
  overflow:auto !important;
  background:#fff !important;
  border-radius:22px !important;
  padding:18px !important;
  box-shadow:0 24px 80px rgba(0,0,0,.34) !important;
}
#rankingMenuModal .modal-head{
  position:sticky;
  top:0;
  z-index:2;
  background:#fff;
  padding-bottom:8px;
}
#rankingMenuModal #rankingList li{
  float:none !important;
}

/* 상단 보유금/수익/시간 표시줄을 얇게 정리 */
.hud-stats{
  gap:6px !important;
}
.hud-stats div{
  min-height:42px !important;
  padding:7px 10px 7px 34px !important;
  border-radius:13px !important;
}
.hud-stats div::after{
  border-radius:12px !important;
}
.hud-icon{
  left:9px !important;
  font-size:17px !important;
}
.hud-stats small{
  font-size:10px !important;
  line-height:1 !important;
  margin:0 0 2px !important;
}
.hud-stats strong{
  font-size:14px !important;
  line-height:1.05 !important;
}
.hud-stats .hud-money strong{
  font-size:15px !important;
}

@media(max-width:640px){
  .hud-topbar{
    padding:5px 8px !important;
    gap:5px !important;
  }
  .hud-stats{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:5px !important;
  }
  .hud-stats div,
  .hud-stats div:not(.hud-money),
  .hud-stats .hud-money{
    display:block !important;
    min-width:0 !important;
    min-height:34px !important;
    padding:5px 7px 5px 27px !important;
    border-radius:11px !important;
  }
  .hud-stats div::after{
    border-radius:10px !important;
  }
  .hud-icon{
    left:7px !important;
    font-size:14px !important;
  }
  .hud-stats small{
    font-size:9px !important;
    margin-bottom:1px !important;
  }
  .hud-stats strong,
  .hud-stats .hud-money strong{
    font-size:12px !important;
    line-height:1.05 !important;
  }
  #rankingMenuModal.modal{
    align-items:end !important;
    padding:10px !important;
    padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #rankingMenuModal .ranking-menu-card{
    width:100% !important;
    max-height:82svh !important;
    border-radius:22px 22px 18px 18px !important;
    padding:14px !important;
  }
  #rankingMenuModal .modal-head h2{
    font-size:18px !important;
    margin:0 !important;
  }
  #rankingMenuModal .rank-tabs{
    margin:10px 0 !important;
  }
  #rankingMenuModal #rankingList{
    padding-left:18px !important;
  }
  #rankingMenuModal #rankingList li{
    gap:8px !important;
    padding:9px 0 !important;
    font-size:13px !important;
  }
}
