.tool-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(240, 158, 11, 0.15);
    color: #f6bb55;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.hero-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.hero-note h2 {
    color: #F09E0B;
    margin-bottom: 0.75rem;
}

.hero-note p:last-child {
    margin-bottom: 0;
}

.wheel-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 2rem;
    align-items: start;
}

.control-panel,
.wheel-panel {
    background: #2C3F4A;
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.control-panel h2,
.wheel-panel h2 {
    color: #F09E0B;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #e2e8f0;
    font-weight: 500;
}

#entriesInput {
    width: 100%;
    min-height: 320px;
    padding: 1rem;
    resize: vertical;
    background: #1a252f;
    color: #ffffff;
    border: 1px solid #475569;
    border-radius: 10px;
    font: inherit;
    line-height: 1.5;
}

#entriesInput:focus {
    outline: none;
    border-color: #F09E0B;
    box-shadow: 0 0 0 3px rgba(240, 158, 11, 0.12);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #1a252f;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 1rem;
}

.stat-label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.stat-card strong {
    font-size: 1.35rem;
    color: #ffffff;
}

.toggle-option {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #1a252f;
    border: 1px solid #475569;
    border-radius: 10px;
    color: #e2e8f0;
    cursor: pointer;
}

.toggle-option input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: #F09E0B;
    flex: 0 0 auto;
}

.toggle-option span {
    line-height: 1.45;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.button-group:last-of-type {
    margin-bottom: 0;
}

.button-group button {
    flex: 1;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background: #F09E0B;
    color: #1a252f;
}

.btn-secondary {
    background: #475569;
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid #64748b;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(240, 158, 11, 0.28);
}

.btn-secondary:hover,
.btn-ghost:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wheel-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wheel-stage {
    position: relative;
}

.wheel-stage-toolbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.fullscreen-button {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(240, 158, 11, 0.45);
    border-radius: 999px;
    background: rgba(240, 158, 11, 0.08);
    color: #f8d08a;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.fullscreen-button:hover {
    background: rgba(240, 158, 11, 0.16);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 158, 11, 0.14);
}

.fullscreen-toolbar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.fullscreen-toolbar.hidden {
    display: none;
}

.wheel-stage:fullscreen {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    padding: 2rem;
    display: grid;
    align-content: start;
    justify-items: center;
    overflow-y: auto;
    background:
        radial-gradient(circle at top, rgba(240, 158, 11, 0.12), rgba(26, 37, 47, 0.92) 28%, rgba(15, 23, 42, 0.98) 100%),
        #111827;
}

.wheel-stage:fullscreen .wheel-stage-toolbar,
.wheel-stage:fullscreen .fullscreen-toolbar,
.wheel-stage:fullscreen .result-card,
.wheel-stage:fullscreen .wheel-frame {
    width: min(80vh, 860px);
}

.wheel-stage:fullscreen .fullscreen-toolbar {
    display: flex;
}

.wheel-stage:fullscreen .fullscreen-toolbar .btn-primary,
.wheel-stage:fullscreen .fullscreen-toolbar .btn-ghost {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

.wheel-stage:fullscreen #wheelCanvas {
    width: min(80vh, 860px);
}

.wheel-stage:fullscreen .result-text {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.wheel-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2.5rem;
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 34px solid #F09E0B;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
    z-index: 2;
}

#wheelCanvas {
    width: min(100%, 520px);
    height: auto;
    background: radial-gradient(circle at center, #f8fafc 0%, #dbe4ec 100%);
    border-radius: 50%;
    border: 10px solid #1a252f;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.result-card {
    background: #1a252f;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.result-label {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.result-text {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #F09E0B;
    word-break: break-word;
}

@media (max-width: 980px) {
    .tool-hero,
    .wheel-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .control-panel,
    .wheel-panel {
        padding: 1.25rem;
    }

    .stats-row,
    .button-group {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    #entriesInput {
        min-height: 240px;
    }

    .pointer {
        border-left-width: 14px;
        border-right-width: 14px;
        border-top-width: 28px;
    }

    .wheel-stage:fullscreen {
        padding: 1.25rem;
    }

    .wheel-stage:fullscreen .wheel-stage-toolbar,
    .wheel-stage:fullscreen .fullscreen-toolbar,
    .wheel-stage:fullscreen .result-card,
    .wheel-stage:fullscreen .wheel-frame,
    .wheel-stage:fullscreen #wheelCanvas {
        width: min(100%, 92vw);
    }
}