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

html,
body {
    margin: 0;
    padding: 0;
    background: transparent;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.otw-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

/* —— Classic (dark card) —— */
.otw-classic {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 0.35rem 0.85rem;
    width: 300px;
    min-height: 110px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #3d3420;
    border-radius: 10px;
    background: linear-gradient(145deg, #1a1814 0%, #12100c 100%);
    color: #e8e0d0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.otw-classic:hover {
    border-color: #c9a227;
    transform: translateY(-1px);
}

.otw-classic .otw-brand {
    grid-column: 1 / -1;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8070;
}

.otw-classic .otw-brand span { color: #c9a227; }

.otw-classic .otw-main { min-width: 0; }

.otw-classic .otw-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.otw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
    flex-shrink: 0;
}

.otw-dot.offline {
    background: #ef4444;
    box-shadow: none;
}

.otw-status-text {
    font-size: 0.68rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.otw-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5f0e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.otw-classic .otw-name { max-width: 190px; }

.otw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    color: #9ca3af;
}

.otw-players {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    line-height: 1.1;
}

.otw-players strong {
    font-size: 1.55rem;
    font-weight: 800;
    color: #86efac;
}

.otw-players span {
    font-size: 0.78rem;
    color: #9ca3af;
}

.otw-players em {
    font-size: 0.62rem;
    font-style: normal;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* —— Light —— */
.otw-light {
    background: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%);
    border-color: #d1d5db;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.otw-light:hover { border-color: #c9a227; }

.otw-light .otw-brand { color: #6b7280; }
.otw-light .otw-name { color: #111827; }
.otw-light .otw-meta,
.otw-light .otw-status-text,
.otw-light .otw-players span { color: #6b7280; }
.otw-light .otw-players strong { color: #15803d; }
.otw-light .otw-players em { color: #9ca3af; }

/* —— Compact —— */
.otw-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 260px;
    min-height: 56px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #3d3420;
    border-radius: 8px;
    background: #14120e;
    color: #e8e0d0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.otw-compact:hover {
    border-color: #c9a227;
}

.otw-compact .otw-name {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    max-width: 110px;
}

.otw-compact-players {
    font-size: 0.72rem;
    color: #9ca3af;
    white-space: nowrap;
}

.otw-compact-players strong {
    color: #86efac;
    font-size: 0.95rem;
}

.otw-brand-mini {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c9a227;
    white-space: nowrap;
}

/* —— Banner —— */
.otw-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 468px;
    min-height: 60px;
    padding: 0.55rem 0.85rem;
    border: 1px solid #3d3420;
    border-radius: 8px;
    background: linear-gradient(90deg, #1a1814 0%, #12100c 100%);
    color: #e8e0d0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.otw-banner:hover {
    border-color: #c9a227;
}

.otw-banner-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

.otw-banner .otw-name {
    font-size: 0.88rem;
    max-width: 180px;
}

.otw-banner .otw-meta {
    margin-top: 0.1rem;
    font-size: 0.62rem;
}

.otw-banner-players {
    text-align: center;
    white-space: nowrap;
    line-height: 1.15;
}

.otw-banner-players strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #86efac;
}

.otw-banner-players span {
    font-size: 0.62rem;
    color: #9ca3af;
}

.otw-banner-brand {
    font-size: 0.58rem;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.otw-banner-brand span { color: #c9a227; }
