/* sekinin/style.css */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: 100%;
    font-family: system-ui, sans-serif;
    background: #0f172a;
    color: #f8fafc;
}

body {
    overflow: hidden;
}

canvas#gameCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #0b1220;
}

#nickname-overlay,
#lobby-overlay,
#center-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20;
}

#lobby-overlay.hidden,
#center-dialog.hidden {
    display: none;
}

#nickname-overlay > div,
#lobby-overlay > div,
#center-dialog > div {
    width: min(90vw, 24rem);
    padding: 1.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    color: #111827;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

#status-text {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 30;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.85);
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}

#ui-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

#player-area {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 1rem;
    pointer-events: auto;
}

#hand-container {
    display: flex;
    gap: 0.5rem;
    max-width: 70vw;
    overflow-x: auto;
    padding: 0 0.5rem;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 1rem;
    padding: 0.9rem 1.2rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

#btn-enter-company,
#dialog-btn {
    background: #2563eb;
    color: #fff;
    width: 100%;
}

#btn-enter-company:hover,
#dialog-btn:hover {
    background: #1d4ed8;
}

#btn-take {
    background: #111827;
    color: #ef4444;
    border: 2px solid #ef4444;
}

#btn-take:hover {
    background: #1f2937;
}

#btn-take:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input#nickname-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
}

.hidden {
    display: none !important;
}
