body {
    /* 背景（ロケーション別）: layouts側で --location-bg をセットする前提 */
    --location-bg: none;

    background-color: #000;
    background-image: var(--location-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #fff;
    font-family: 'メイリオ', sans-serif;

    /* 既存は margin:20px だったが、前作寄せのため中央パネルで余白を持たせる */
    margin: 0;
    padding: 24px 0;

    min-height: 100vh;
    position: relative;
}

/* 背景の暗幕（前作の“重さ”） */
body::before {
    content: "";
    position: fixed;
    inset: 0;

    /* ここが効く：画像が明るくても文字が死なない */
    background: rgba(0, 0, 0, 0.10);

    pointer-events: none;
    z-index: 0;
}

a, button {
    color: #fff;

    /* ボタン軽さを抑えて前作寄せ */
    background: rgba(40, 40, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);

    padding: 6px 12px;
    margin: 4px;

    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;

    font-size: 14px;
}

a:hover, button:hover {
    background: rgba(60, 60, 60, 0.90);
}

/* 見出し：薄線＋少し締める */
h2, h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
    padding-bottom: 6px;
    margin-top: 18px;

    font-weight: 600;
    letter-spacing: 1px;
}

/* 既存: .container は最大幅だけだったが、前作寄せで中央パネル化 */
.container {
    max-width: 860px;
    margin: 0 auto;

    /* 既存ビューが container 内に直で要素を置く前提なので、ここに余白を持たせる */
    padding: 18px 18px 26px;

    /* ガラスっぽい半透明パネル */
    background: rgba(20, 20, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    /* 中央だけ少し浮かせる */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.60);

    /* 暗幕＋背景に対して前作っぽい質感（対応ブラウザのみ） */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    position: relative;
    z-index: 1;
}

nav {
    margin-bottom: 10px;
}

nav a {
    margin-right: 6px;
    font-weight: bold;
}

/* HUDの直下（現在地行など）の色：前作寄せで少し落とす */
nav + div {
    color: #cfcfcf;
    font-size: 14px;
}

button.nav-button {
    color: #fff;

    background: rgba(40, 40, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);

    padding: 6px 12px;
    margin: 4px 4px 4px 0;

    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;

    font-size: 14px;
}

button.nav-button:hover {
    background: rgba(60, 60, 60, 0.90);
}

/* input */
.rh-input {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 10px;
}

.rh-input:disabled {
    opacity: 0.6;
}

/* =========================================================
   Result Card (inventory/dashboard etc.)
   ========================================================= */

.rh-card {
    border: 1px solid rgba(255, 255, 255, 0.18);

    /* “ベタ黒箱”をやめて半透明に（前作寄せ） */
    background: rgba(10, 10, 10, 0.75);

    color: #eaeaea;
    padding: 12px 14px;
    margin: 10px 0 14px;
    border-radius: 4px;
}

.rh-card--narrow {
    max-width: 760px;
}

.rh-card__header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: baseline;
}

.rh-card__title {
    font-weight: 700;
}

.rh-muted {
    color: rgba(255, 255, 255, 0.75);
}

.rh-muted-sm {
    color: rgba(255, 255, 255, 0.60);
    font-size: 12px;
}

.rh-line {
    margin-top: 8px;
    line-height: 1.6;
}

.rh-good {
    color: #8ef18e;
    font-weight: 700;
}

.rh-mp {
    color: #8fc7ff;
    font-weight: 700;
}

.rh-warn {
    color: #ff6b6b;
    font-weight: 700;
}

.rh-details summary {
    cursor: pointer;
    color: #eaeaea;
}

.rh-details {
    margin-top: 10px;
}

.rh-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

/* =========================================================
   Battle
   ========================================================= */

.battle-log-table {
    width: 100%;
    border-collapse: collapse;
}

.battle-log-table th,
.battle-log-table td {
    border: 1px solid #666;
    padding: 8px;
    vertical-align: top;
}

.battle-log-table th {
    background: #111;
}

/* ===== Battle Log (shared) ===== */

.log-card {
    border: 1px solid #666;
    background: #000;
    padding: 10px 12px;
    max-width: 100%;
}

.log-card ul {
    margin: 0;
    padding-left: 18px;
}

.log-card li {
    margin: 4px 0;
    line-height: 1.4;
}

.battle-log-entry {
    list-style: none;
    margin: 8px 0;
    padding: 8px 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.battle-log-entry--player-attack {
    border-left-color: rgba(142, 241, 142, 0.65);
}

.battle-log-entry--player-spell {
    border-left-color: rgba(143, 199, 255, 0.72);
}

.battle-log-entry--enemy-attack {
    border-left-color: rgba(255, 129, 129, 0.65);
}

.battle-log-entry--enemy-spell {
    border-left-color: rgba(255, 152, 108, 0.68);
}

.battle-log-entry--status {
    border-left-color: rgba(255, 214, 122, 0.70);
}

.battle-log-entry--system {
    border-left-color: rgba(210, 210, 210, 0.58);
}

.battle-log-line {
    margin: 2px 0;
    line-height: 1.45;
}

.battle-log-line--action {
    font-size: 15px;
    color: #f2f2f2;
}

.battle-log-line--context {
    font-size: 13px;
    color: rgba(255, 236, 177, 0.88);
}

.battle-log-line--result {
    font-size: 14px;
    color: #ffffff;
}

.log-muted { color: #bbb; }
.log-good  { color: #4caf50; font-weight: bold; }
.log-bad   { color: #ff6b6b; font-weight: bold; }

.rh-pre {
    background: rgba(10, 10, 10, 0.75);
    color: #eaeaea;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px;
    margin-top: 8px;
    white-space: pre-wrap;
    overflow: auto;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
}

/* =========================================================
   Dashboard (old-style panels)
   ========================================================= */

/* 既存で .rh-panel が複数回定義されていたので、最終形をここで揃える */
.rh-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
    border-radius: 4px;
}

.rh-badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #eaeaea;
    background: rgba(10, 10, 10, 0.75);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
}

.rh-badge--warn {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.rh-badge--active {
    background: rgba(90, 90, 90, 0.9);
}

.rh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rh-table th,
.rh-table td {
    border: 1px solid #444;
    padding: 6px 8px;
}

.rh-table th {
    background: #111;
}

/* =========================================================
   Header HUD line (前作風)
   ========================================================= */

.rh-hudline {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 6px 0;

    font-size: 16px;
    color: #ffffff;

    /* なるべく1行で見せる */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    box-sizing: border-box;
}

/* =========================================================
   Craft
   ========================================================= */

.craft-filters {
    margin-bottom: 14px;
}

.craft-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.craft-tabs .rh-badge {
    text-decoration: none;
}

.craft-filter-form {
    display: grid;
    gap: 10px;
}

.craft-filter-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.craft-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.craft-input {
    width: 100%;
}

.craft-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.craft-card {
    margin: 0;
}

.craft-card__head {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.craft-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.craft-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.craft-rate-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.craft-materials {
    margin-top: 8px;
    display: grid;
    gap: 5px;
}

.craft-material {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
}

.craft-material--ok {
    color: #8ef18e;
}

.craft-material--ng {
    color: #ff6b6b;
}

.craft-actions {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.craft-affix-details {
    margin-top: 0;
}

.craft-affix-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

/* =========================================================
   Shop
   ========================================================= */

.rh-shop-page {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.rh-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 12, 12, 0.62);
    border-radius: 6px;
    padding: 12px 14px;
}

.rh-shop-title {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 22px;
    letter-spacing: 0.04em;
}

.rh-shop-meta {
    margin-top: 10px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.rh-shop-tabs {
    margin-bottom: 2px;
    padding: 0;
    border: none;
    background: transparent;
}

.rh-shop-tab {
    margin: 0;
    min-width: 92px;
    text-align: center;
    text-decoration: none;
}

.rh-shop-tab.is-active {
    font-weight: 700;
}

.rh-shop-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.62);
    border-radius: 6px;
    padding: 12px;
    margin-top: 0;
}

.rh-shop-section {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(9, 9, 9, 0.52);
    border-radius: 6px;
    padding: 10px 12px;
}

.rh-shop-section + .rh-shop-section {
    margin-top: 10px;
}

.rh-shop-section--filter {
    background: rgba(12, 12, 12, 0.56);
}

.rh-shop-section--bulk {
    background: rgba(14, 14, 14, 0.60);
    border-color: rgba(255, 255, 255, 0.18);
}

.rh-shop-section--table {
    padding: 0;
    overflow: hidden;
}

.rh-shop-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1.55fr) minmax(160px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 0;
}

.rh-shop-filter input[type="text"],
.rh-shop-filter select {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    border-radius: 4px;
}

.rh-shop-filter input[type="text"]:focus,
.rh-shop-filter select:focus,
.rh-shop-table .rh-shop-qty:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.10);
}

.rh-shop-btn {
    margin: 0;
    min-height: 38px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rh-shop-btn--primary {
    background: rgba(72, 72, 72, 0.90);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.rh-shop-btn--primary:hover {
    background: rgba(90, 90, 90, 0.94);
}

.rh-shop-btn--ghost {
    background: rgba(33, 33, 33, 0.86);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
}

.rh-shop-btn--ghost:hover {
    background: rgba(50, 50, 50, 0.92);
}

.rh-shop-btn--action {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(45, 45, 45, 0.90);
}

.rh-shop-btn--action:hover {
    background: rgba(66, 66, 66, 0.96);
}

.rh-shop-btn--bulk {
    min-width: 156px;
}

.rh-shop-table td {
    vertical-align: middle;
}

.rh-shop-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: rgba(8, 8, 8, 0.45);
}

.rh-shop-table th,
.rh-shop-table td {
    border-color: rgba(255, 255, 255, 0.11);
    padding: 10px 11px;
}

.rh-shop-table th {
    background: rgba(20, 20, 20, 0.88);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.rh-shop-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.rh-shop-table tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

.rh-shop-table td:first-child,
.rh-shop-table td:nth-child(2) {
    line-height: 1.45;
}

.rh-shop-table .rh-muted {
    font-size: 12px;
    margin-top: 3px;
}

.rh-shop-table form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rh-shop-table .rh-shop-qty {
    height: 34px;
    padding: 6px 8px;
}

.rh-shop-col-check {
    text-align: center;
    width: 52px;
    padding-left: 6px;
    padding-right: 6px;
}

.rh-shop-col-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.rh-shop-note {
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.35;
}

.rh-shop-bulk-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.rh-shop-bulk-stat {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 20, 20, 0.66);
    font-weight: 600;
}

/* =========================
   Guest Home
   ========================= */
.rh-home-hero {
    margin-top: 6px;
}

.rh-home-kicker {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.08em;
    font-size: 12px;
}

.rh-home-title {
    margin-top: 6px;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: 0.03em;
    color: #f0dfab;
}

.rh-home-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.rh-home-section {
    margin-top: 12px;
}

.rh-home-section h2 {
    margin-top: 0;
}

.rh-home-feature-grid,
.rh-home-preview-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.rh-home-feature,
.rh-home-preview {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 5px;
    background: rgba(20, 20, 20, 0.78);
    padding: 10px 12px;
}

.rh-home-feature h3,
.rh-home-preview h3 {
    margin-top: 0;
    color: #f2e4b4;
    border-bottom-color: rgba(255, 255, 255, 0.24);
}

.rh-home-feature p,
.rh-home-preview p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

.rh-home-section > h2 {
    color: #f0dfab;
}

.rh-home-preview__image {
    position: relative;
    overflow: hidden;
    height: 150px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.82);
}

.rh-home-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) contrast(1.08) brightness(1.14);
}

.rh-home-preview__zoomable {
    cursor: zoom-in;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.rh-home-preview__zoomable:hover {
    transform: scale(1.02);
    filter: saturate(0.92) contrast(1.08);
}

body.rh-image-zoom-open {
    overflow: hidden;
}

.rh-image-zoom[hidden] {
    display: none;
}

.rh-image-zoom {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.rh-image-zoom__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.rh-image-zoom__stage {
    position: relative;
    z-index: 1;
    margin: 0;
    width: min(1100px, 94vw);
    max-height: 92vh;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4vh;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.95);
}

.rh-image-zoom__img {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.rh-image-zoom__caption {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.rh-image-zoom__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    margin: 0;
    padding: 6px 10px;
    border-radius: 4px;
}

.rh-home-bottom-cta {
    margin-top: 14px;
}

@media (max-width: 860px) {
    .rh-shop-filter {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .rh-shop-filter > button,
    .rh-shop-filter > a {
        width: 100%;
        text-align: center;
    }

    .rh-shop-table {
        font-size: 12px;
    }

    .rh-shop-table th,
    .rh-shop-table td {
        padding: 9px 8px;
    }

    .rh-home-title {
        font-size: 34px;
    }
}

@media (max-width: 620px) {
    .rh-shop-filter {
        grid-template-columns: 1fr;
    }

    .rh-shop-tab {
        min-width: 92px;
    }

    .rh-shop-bulk-bar {
        gap: 8px;
    }

    .rh-shop-bulk-stat {
        width: 100%;
    }

    .rh-home-feature-grid,
    .rh-home-preview-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   Top Header (前作風)
   ========================= */
.rh-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 6px 4px 12px;
    margin-bottom: 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.rh-brand {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.rh-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-top-actions__logout {
    margin: 0;
    display: flex;
    align-items: center;
}

/* topbar内は余白を詰める */
.rh-topbar .nav-button,
.rh-topbar a,
.rh-topbar button {
    margin: 0;
}

/* 画面が狭い時は折り返し */
@media (max-width: 520px) {
    .rh-topbar {
        flex-wrap: wrap;
    }
}

/* =========================
   Cooldown Widget
   ========================= */
.rh-cooldown-widget {
    position: fixed;
    right: 14px;
    top: calc(14px + env(safe-area-inset-top, 0px));
    width: 198px;
    z-index: 9980;
    background: rgba(8, 8, 8, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    color: #eaeaea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.rh-cooldown-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.rh-cooldown-widget__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rh-cooldown-widget__actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rh-cooldown-widget__btn {
    margin: 0;
    width: 22px;
    height: 22px;
    line-height: 1;
    padding: 0;
    border-radius: 4px;
    font-size: 12px;
}

.rh-cooldown-widget__body {
    padding: 8px;
}

.rh-cooldown-widget__status {
    font-size: 13px;
    line-height: 1.3;
    min-height: 17px;
}

.rh-cooldown-widget__status.is-cooling {
    color: #ffe38a;
}

.rh-cooldown-widget__status.is-ready {
    color: rgba(255, 255, 255, 0.86);
}

.rh-cooldown-widget.is-minimized .rh-cooldown-widget__body {
    display: none;
}

.rh-cooldown-widget.is-minimized .rh-cooldown-widget__title {
    font-size: 11px;
}

.rh-cooldown-widget.is-minimized {
    width: auto;
    min-width: 106px;
}

.rh-cooldown-widget.is-dragging {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 680px) {
    .rh-cooldown-widget {
        right: 8px;
        top: calc(8px + env(safe-area-inset-top, 0px));
        width: 172px;
    }

    .rh-cooldown-widget__header {
        padding: 6px;
    }

    .rh-cooldown-widget__title {
        font-size: 11px;
    }

    .rh-cooldown-widget__status {
        font-size: 12px;
    }

}

/* =========================
   Online Players Widget
   ========================= */
.rh-online-players-widget {
    position: fixed;
    right: 14px;
    top: calc(106px + env(safe-area-inset-top, 0px));
    width: 240px;
    z-index: 9979;
    background: rgba(8, 8, 8, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    color: #eaeaea;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.rh-online-players-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.rh-online-players-widget__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rh-online-players-widget__actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rh-online-players-widget__btn {
    margin: 0;
    width: 22px;
    height: 22px;
    line-height: 1;
    padding: 0;
    border-radius: 4px;
    font-size: 12px;
}

.rh-online-players-widget__body {
    padding: 8px;
}

.rh-online-players-widget__summary {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

.rh-online-players-widget__list-wrap {
    margin-top: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 7px;
}

.rh-online-players-widget__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    max-height: 120px;
    overflow-x: hidden;
    overflow-y: auto;
}

.rh-online-players-widget__chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(20, 20, 20, 0.72);
    color: #f0f0f0;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rh-online-players-widget__empty {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.35;
}

.rh-online-players-widget.is-minimized .rh-online-players-widget__body {
    display: none;
}

.rh-online-players-widget.is-minimized .rh-online-players-widget__title {
    font-size: 11px;
}

.rh-online-players-widget.is-minimized {
    width: auto;
    min-width: 106px;
}

.rh-online-players-widget.is-dragging {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 680px) {
    .rh-online-players-widget {
        right: 8px;
        top: calc(96px + env(safe-area-inset-top, 0px));
        width: 198px;
    }

    .rh-online-players-widget__header {
        padding: 6px;
    }

    .rh-online-players-widget__title {
        font-size: 11px;
    }
}
