:root {
    --ws-bg-0: #070707;
    --ws-bg-1: #131313;
    --ws-panel: #151515;
    --ws-panel-soft: #1a1a1a;
    --ws-border: rgba(239, 68, 68, 0.35);
    --ws-text: #f4f4f5;
    --ws-muted: #a1a1aa;
    --ws-danger: #dc2626;
    --ws-danger-soft: #f87171;
    --ekj-muted: var(--ws-muted);
}

html,
body {
    min-height: 100%;
}

html {
    background-color: #0f0c0c;
}

body {
    background-color: #0f0c0c;
    background:
        radial-gradient(1200px 520px at -8% -14%, rgba(220, 38, 38, 0.36), transparent 64%),
        radial-gradient(1000px 520px at 108% -6%, rgba(127, 29, 29, 0.3), transparent 66%),
        linear-gradient(180deg, #181010 0%, #130d0d 40%, #0f0c0c 100%);
    color: var(--ws-text);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    font-kerning: normal;
}

.ws-main {
    width: 100%;
}

a {
    color: #fca5a5;
}

a:hover {
    color: #fecaca;
}

.navbar .ws-nav-separator {
    color: rgba(248, 113, 113, 0.8) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    line-height: 1;
    cursor: default;
}

.container,
.container-fluid {
    position: relative;
}

.btn {
    border-radius: 10px;
}

.hover-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    border: none;
    overflow: hidden;
    cursor: pointer;
}

.hover-card img {
    transition: transform 0.35s ease;
}

.hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 56px rgba(0, 0, 0, 0.52);
}

.hover-card:hover img {
    transform: scale(1.06);
}

.fancy-btn {
    font-size: clamp(2rem, 4vw, 4rem);
    padding: 1rem 3rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: linear-gradient(180deg, #c41f1f, #991b1b);
    color: white;
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.42);
    transition: all 0.28s ease;
    letter-spacing: 1px;
}

.fancy-btn-sm {
    font-size: clamp(1rem, 2vw, 2rem);
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.fancy-btn-lg {
    font-size: clamp(3rem, 6vw, 6rem);
    padding: 1.5rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.fancy-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.58);
    background: linear-gradient(180deg, #b91c1c, #7f1d1d);
    color: white;
}

.text-secondary {
    color: var(--ws-muted) !important;
}

/* Games Corporate Identity */
.ws-game-shell {
    min-height: auto;
    color: var(--ws-text);
    background:
        radial-gradient(950px 350px at 0% -10%, rgba(220, 38, 38, 0.26), transparent 72%),
        radial-gradient(900px 400px at 100% 0%, rgba(127, 29, 29, 0.23), transparent 70%),
        linear-gradient(180deg, var(--ws-bg-1), var(--ws-bg-0));
    border-radius: 22px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    padding: 1.2rem;
}

.ws-game-head,
.ekj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ws-game-brand,
.ekj-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ws-game-brand img,
.ekj-brand img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 30px rgba(127, 29, 29, 0.55);
}

.ws-game-title,
.ekj-title,
.quiz-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.7vw, 2rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ws-game-sub,
.ekj-sub,
.quiz-sub {
    margin: 0.1rem 0 0;
    color: var(--ws-muted);
}

.ws-game-info-btn,
.ekj-info-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(248, 113, 113, 0.6);
    background: rgba(220, 38, 38, 0.14);
    color: #fff;
}

.ekj-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1rem;
}

.ekj-grid-single {
    grid-template-columns: 1fr;
}

.ekj-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
}

.ekj-word-stage {
    min-height: 320px;
    display: grid;
    place-items: center;
}

.ekj-word-box {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.12), rgba(0, 0, 0, 0.22));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    padding: clamp(1rem, 4vw, 2.2rem);
    text-align: center;
}

.ekj-word {
    margin: 0;
    font-size: clamp(2rem, 7vw, 5rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0.03em;
    word-break: break-word;
}

.ekj-word-placeholder {
    color: var(--ekj-muted);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.ekj-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ws-game-btn,
.ekj-btn,
.quiz-btn {
    width: auto;
    min-width: 210px;
    border: 1px solid #ef4444;
    border-radius: 12px;
    background: #b91c1c;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.14s ease, background 0.2s ease;
}

.ws-game-btn:hover,
.ekj-btn:hover,
.quiz-btn:hover {
    background: #991b1b;
    transform: translateY(-1px);
}

.ekj-btn-outline {
    background: transparent;
    border-color: rgba(239, 68, 68, 0.65);
}

.ekj-btn-outline:hover {
    background: rgba(220, 38, 38, 0.2);
}

.ekj-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.ekj-pill {
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.55);
    background: rgba(220, 38, 38, 0.16);
    color: #fff;
    font-size: 0.84rem;
    padding: 0.3rem 0.6rem;
}

.ekj-session-list {
    max-height: 360px;
    overflow-y: auto;
    display: grid;
    gap: 0.5rem;
    margin-top: 0.65rem;
    scrollbar-width: none;
}

.ekj-session-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.ekj-session-item {
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    padding: 0.62rem 0.78rem;
}

.ekj-session-item:hover {
    border-color: rgba(248, 113, 113, 0.75);
    background: rgba(127, 29, 29, 0.28);
}

.ekj-session-id {
    font-weight: 700;
}

.ekj-session-date {
    color: var(--ekj-muted);
    font-size: 0.8rem;
}

.ekj-arrow {
    font-size: 1.2rem;
    opacity: 0.85;
}

.ws-game-shell.ws-game-shell--narrow {
    max-width: 760px;
    margin: 0 auto;
}

.quiz-panel {
    border: none;
    background: transparent;
    padding: 0;
}

.quiz-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1rem;
}

.quiz-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.quiz-pill {
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(37, 99, 235, 0.14);
    color: #fff;
    font-size: 0.86rem;
    padding: 0.35rem 0.65rem;
}

.quiz-question {
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(15, 23, 42, 0.3);
    padding: 0.95rem;
    margin-bottom: 0.9rem;
}

.quiz-answer-grid {
    display: grid;
    gap: 0.65rem;
}

.option-card {
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(20, 28, 40, 0.78);
    color: #f4f4f5;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.option-card.selected {
    border: 2px solid #3b82f6;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.option-card.correct {
    border: 2px solid #22c55e !important;
    background: rgba(34, 197, 94, 0.2) !important;
}

.option-card.wrong {
    border: 2px solid #ef4444 !important;
    background: rgba(220, 38, 38, 0.23) !important;
}

.quiz-btn:disabled {
    opacity: 0.45;
}

.quiz-feedback {
    min-height: 1.8rem;
    font-weight: 700;
}

.quiz-result {
    text-align: center;
}

.quiz-result-score {
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 900;
}

.quiz-select {
    border: 1px solid rgba(96, 165, 250, 0.32) !important;
    background-color: #111 !important;
    color: #fff !important;
}

.quiz-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.6) !important;
}

.quiz-error {
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(30, 64, 175, 0.18);
    color: #dbeafe;
}

.ws-room-list {
    display: grid;
    gap: 0.6rem;
}

.ws-room-item {
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    background: rgba(0, 0, 0, 0.24);
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ws-room-item-main {
    display: grid;
    gap: 0.05rem;
}

.ws-room-code {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ws-room-meta {
    color: var(--ws-muted);
    font-size: 0.86rem;
}

@media (max-width: 992px) {
    .ekj-grid,
    .quiz-layout {
        grid-template-columns: 1fr;
    }

    .ekj-word-stage {
        min-height: 230px;
    }
}
