/* Guess the Price — Millionaire-style studio */

body.page-guess {
    background: #04040f;
}

body.page-guess .site-header,
body.page-guess .top-bar {
    border-bottom-color: rgba(255, 153, 0, 0.15);
}

.guess-page {
    position: relative;
    padding: 1.5rem 0 4rem;
    overflow: hidden;
    min-height: 70vh;
}

.guess-studio-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 50% 18%, rgba(88, 48, 180, 0.45) 0%, transparent 62%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(20, 10, 60, 0.9) 0%, transparent 55%),
        radial-gradient(circle at 50% 35%, rgba(255, 180, 60, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #0a0535 0%, #12082a 35%, #060418 100%);
    z-index: 0;
}

.guess-layout {
    position: relative;
    z-index: 1;
    max-width: 1140px;
}

.guess-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .guess-header {
        text-align: left;
    }
}

.guess-kicker {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #ffb347;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 18px rgba(255, 153, 0, 0.35);
}

.guess-title-main {
    display: inline-block;
    background: linear-gradient(180deg, #fff8e7 0%, #ffd27a 45%, #e8a020 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.guess-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 5vw, 2.85rem);
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

.guess-intro {
    color: rgba(220, 210, 255, 0.82);
    margin: 0.65rem 0 0;
    max-width: 36rem;
    font-size: 0.98rem;
}

.guess-scoreboard {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(180deg, rgba(25, 15, 70, 0.95), rgba(10, 8, 35, 0.98));
    border: 2px solid rgba(255, 153, 0, 0.45);
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(100, 60, 200, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.guess-scoreboard-compact .score-item {
    min-width: 3.5rem;
    padding: 0 0.35rem;
    border-right: 1px solid rgba(255, 153, 0, 0.15);
}

.guess-scoreboard-compact .score-item:last-child {
    border-right: none;
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(200, 190, 230, 0.65);
}

.score-item strong {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: #ffc966;
    text-shadow: 0 0 12px rgba(255, 180, 60, 0.35);
}

.guess-main {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 900px) {
    .guess-main {
        grid-template-columns: 1fr;
    }
    .guess-sidebar {
        order: 3;
    }
}

.guess-studio {
    min-height: 420px;
}

.guess-panel {
    background: linear-gradient(165deg, rgba(30, 18, 80, 0.92) 0%, rgba(12, 8, 40, 0.96) 100%);
    border: 2px solid rgba(255, 153, 0, 0.35);
    border-radius: 14px;
    box-shadow:
        0 0 40px rgba(80, 40, 160, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.guess-loading {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(220, 210, 255, 0.85);
}

.guess-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 153, 0, 0.2);
    border-top-color: #ffb347;
    border-radius: 50%;
    animation: guess-spin 0.75s linear infinite;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.25);
}

@keyframes guess-spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

.guess-question-panel {
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.guess-monitor {
    position: relative;
    padding: 0.65rem;
    background: linear-gradient(180deg, #1a0a45 0%, #0d0628 100%);
    border-bottom: 2px solid rgba(255, 153, 0, 0.25);
}

.guess-monitor::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 200, 100, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.guess-property-image {
    position: relative;
    height: 240px;
    border-radius: 8px;
    background: #0a0618 center/cover no-repeat;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45);
}

.guess-property-image.no-image {
    background: linear-gradient(135deg, #1a1040, #2a1860);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guess-property-image.no-image::after {
    content: 'Property image';
    color: rgba(200, 190, 230, 0.45);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guess-property-body {
    padding: 1.25rem 1.35rem 1.35rem;
}

.guess-type-chip {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffb347;
    border: 1px solid rgba(255, 153, 0, 0.45);
    border-radius: 999px;
    background: rgba(255, 153, 0, 0.08);
}

.guess-property-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    margin: 0.65rem 0 0.35rem;
    color: #fff8ef;
    line-height: 1.25;
}

.guess-location {
    color: #ffc966;
    font-size: 0.92rem;
    margin: 0 0 0.85rem;
    font-weight: 500;
}

.guess-summary {
    color: rgba(225, 218, 245, 0.88);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.guess-hectares {
    margin: 0.75rem 0 0;
    color: rgba(180, 170, 210, 0.75);
    font-size: 0.85rem;
}

.guess-prompt {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #fff8ef;
    margin: 0 0 1rem;
    text-shadow: 0 0 20px rgba(120, 80, 200, 0.4);
    letter-spacing: 0.02em;
}

.guess-lifelines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.guess-lifeline {
    min-width: 5.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 153, 0, 0.65);
    background: radial-gradient(circle at 30% 25%, rgba(255, 200, 100, 0.18), rgba(20, 10, 60, 0.95) 65%);
    color: #ffe8b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 16px rgba(255, 153, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guess-lifeline:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 153, 0, 0.35);
    border-color: #ffb347;
}

.guess-lifeline:disabled,
.guess-lifeline.used {
    opacity: 0.35;
    cursor: default;
    transform: none;
    filter: grayscale(0.4);
}

.guess-lifeline-label {
    display: block;
    white-space: nowrap;
}

.guess-lifeline-panel {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 153, 0, 0.35);
    background: rgba(10, 6, 35, 0.85);
    color: rgba(230, 220, 255, 0.92);
    font-size: 0.9rem;
}

.guess-lifeline-panel.hidden {
    display: none !important;
}

.guess-audience-title,
.guess-phone-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffb347;
    margin: 0 0 0.65rem;
}

.guess-audience-row {
    display: grid;
    grid-template-columns: 1.6rem 1fr 2.5rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}

.guess-audience-bar-wrap {
    height: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.guess-audience-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffb347, #e87800);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.guess-audience-pct {
    text-align: right;
    color: #ffc966;
    font-weight: 700;
}

.guess-phone-quote {
    margin: 0;
    line-height: 1.55;
    font-style: italic;
}

.guess-phone-friend {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: rgba(180, 170, 210, 0.75);
}

.guess-options {
    display: grid;
    gap: 0.75rem;
}

/* Millionaire lozenge answers */
.guess-option {
    position: relative;
    display: grid;
    grid-template-columns: 3rem 1fr;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.75rem 1.25rem 0.75rem 1rem;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #fff8ef;
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    font-weight: 600;
    background: transparent;
    transition: transform 0.15s ease, filter 0.15s ease;
    isolation: isolate;
}

.guess-option::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #2a1878 0%, #120840 48%, #0a0530 100%);
    clip-path: polygon(1.2rem 0%, calc(100% - 1.2rem) 0%, 100% 50%, calc(100% - 1.2rem) 100%, 1.2rem 100%, 0% 50%);
    border: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.guess-option::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, #ffb347 0%, #e87800 50%, #ffb347 100%);
    clip-path: polygon(1.2rem 0%, calc(100% - 1.2rem) 0%, 100% 50%, calc(100% - 1.2rem) 100%, 1.2rem 100%, 0% 50%);
    transform: scale(1.012);
    opacity: 0.95;
}

.guess-option:hover:not(:disabled) {
    transform: scale(1.015);
    filter: brightness(1.08);
}

.guess-option:hover:not(:disabled)::before {
    background: linear-gradient(180deg, #3a2898 0%, #1a1060 48%, #120850 100%);
}

.guess-option:disabled {
    cursor: default;
}

.guess-option.correct::before {
    background: linear-gradient(180deg, #1a7040 0%, #0d4028 100%);
}

.guess-option.correct::after {
    background: linear-gradient(180deg, #6fd68a 0%, #2a9a50 50%, #6fd68a 100%);
}

.guess-option.wrong::before {
    background: linear-gradient(180deg, #702020 0%, #401010 100%);
}

.guess-option.wrong::after {
    background: linear-gradient(180deg, #e87878 0%, #b03030 50%, #e87878 100%);
}

.guess-option.dimmed {
    opacity: 0.38;
    filter: grayscale(0.3);
}

.guess-option.removed {
    display: none !important;
}

.guess-option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 2px solid #ffb347;
    color: #ffb347;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.2);
}

.guess-option-price {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.guess-result {
    text-align: center;
    padding: 2rem 1.25rem;
}

.guess-result-icon {
    font-size: 2.75rem;
    margin-bottom: 0.35rem;
    line-height: 1;
}

.guess-result h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    margin: 0 0 0.5rem;
    color: #fff8ef;
}

.guess-result p {
    color: rgba(220, 210, 255, 0.88);
    margin: 0;
}

.guess-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.35rem;
}

.guess-btn-primary {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.35);
}

.guess-btn-secondary {
    border-color: rgba(255, 153, 0, 0.55) !important;
    color: #ffc966 !important;
}

/* Prize ladder (millionaire money tree style) */
.guess-ladder {
    background: linear-gradient(180deg, rgba(18, 10, 55, 0.98), rgba(8, 5, 28, 0.99));
    border: 2px solid rgba(255, 153, 0, 0.4);
    border-radius: 12px;
    padding: 0.85rem 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 28px rgba(80, 40, 160, 0.3);
}

.guess-ladder-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #ffb347;
    margin: 0 0 0.65rem;
}

.guess-ladder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ladder-rung {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: rgba(180, 170, 210, 0.7);
    font-size: 0.78rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ladder-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: rgba(200, 190, 230, 0.55);
    text-align: center;
}

.ladder-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ladder-rung.passed {
    color: rgba(220, 210, 255, 0.85);
    background: rgba(255, 153, 0, 0.06);
}

.ladder-rung.passed .ladder-value {
    color: #ffc966;
}

.ladder-rung.active {
    color: #fff8ef;
    background: linear-gradient(90deg, rgba(255, 153, 0, 0.22), rgba(255, 153, 0, 0.06));
    border-color: rgba(255, 153, 0, 0.55);
    box-shadow: 0 0 16px rgba(255, 153, 0, 0.2);
}

.ladder-rung.active .ladder-value {
    color: #ffb347;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.4);
}

.guess-how {
    padding: 1.15rem;
    margin-top: 0;
}

.guess-how h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin: 0 0 0.65rem;
    color: #ffc966;
}

.guess-how ol {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(210, 200, 235, 0.82);
    font-size: 0.88rem;
    line-height: 1.55;
}

.guess-note {
    margin: 0.85rem 0 0;
    font-size: 0.76rem;
    color: rgba(160, 150, 190, 0.75);
}

.guess-empty {
    text-align: center;
    padding: 3rem 1.25rem;
    color: rgba(220, 210, 255, 0.85);
}

/* AdSense on dark studio */
body.page-guess .adsense-placeholder {
    background: rgba(20, 12, 50, 0.6);
    border-color: rgba(255, 153, 0, 0.2);
}

.adsense-unit,
.adsense-placeholder {
    min-height: 90px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-placeholder {
    border: 1px dashed rgba(255, 153, 0, 0.25);
    border-radius: var(--radius);
    color: rgba(180, 170, 210, 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-sidebar .adsense-placeholder,
.ad-sidebar .adsense-unit {
    min-height: 250px;
}

/* Legal pages (shared file) */
.legal-page .narrow {
    max-width: 720px;
}

.legal-page h1 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 2rem 0 0.75rem;
    color: var(--gold);
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.65;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    min-width: 240px;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
}
