/*
 * MCRedstone public order wizard — "Guided Start".
 *
 * The shared Livewire configurator keeps its behaviour. Every visual override
 * is scoped to the MCRedstone brand and this page's explicit opt-in marker so
 * the GSH, mcfreehost and SupremeTier funnels retain their existing themes.
 */

body.brand-mcredstone [data-mcr-configurator] {
    --mcr-order-canvas: #070a0d;
    --mcr-order-canvas-soft: #0b1015;
    --mcr-order-surface: #111820;
    --mcr-order-surface-raised: #17212a;
    --mcr-order-stone: #202a34;
    --mcr-order-border: #52606d;
    --mcr-order-text: #f8fafc;
    --mcr-order-muted: #abb6c0;
    --mcr-order-red: #dc2626;
    --mcr-order-red-hot: #f87171;
    --mcr-order-red-deep: #621a19;
    --mcr-order-amber: #fbbf24;
    --mcr-order-green: #9dcc57;
    --mcr-order-display: "Russo One", "Inter", system-ui, sans-serif;
    --mcr-order-shadow: 8px 9px 0 rgb(0 0 0 / 34%);

    position: relative;
    min-height: 100vh;
    overflow: clip;
    color: var(--mcr-order-text);
    background-color: var(--mcr-order-canvas);
    background-image:
        linear-gradient(rgb(255 255 255 / 2.2%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 2.2%) 1px, transparent 1px),
        radial-gradient(circle at 78% 2%, rgb(220 38 38 / 14%), transparent 28rem);
    background-size: 32px 32px, 32px 32px, auto;
}

body.brand-mcredstone [data-mcr-configurator]::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, var(--mcr-order-red-deep) 28%, var(--mcr-order-red) 62%, transparent 94%);
    content: "";
}

body.brand-mcredstone [data-mcr-configurator] > .max-w-7xl {
    max-width: 76rem;
}

body.brand-mcredstone [data-mcr-configurator-intro] {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 2rem;
    align-items: center;
    min-height: 0;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid rgb(82 96 109 / 70%);
    text-align: left;
}

body.brand-mcredstone [data-mcr-configurator-copy] {
    position: relative;
    z-index: 1;
}

body.brand-mcredstone [data-mcr-configurator-copy]::before {
    display: block;
    width: 54px;
    height: 8px;
    margin-bottom: 1.25rem;
    background: var(--mcr-order-red);
    box-shadow: 12px 0 #8d2725, 24px 0 #421719, 36px 0 #211115;
    content: "";
}

body.brand-mcredstone [data-mcr-configurator-intro] h1 {
    max-width: 56rem;
    margin-right: 0;
    margin-left: 0;
    font-family: var(--mcr-order-display);
    /* order-seo (Audit 27.09.): gemischte Schreibweise wie die Startseite, und so klein,
       dass Stepper und Spielwahl auf 1440x900 über den Falz rücken (vorher 67 px Versalien,
       dreizeilig). */
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.08;
    text-shadow: 3px 3px 0 #3b1112;
}

body.brand-mcredstone [data-mcr-configurator-intro] p {
    max-width: 47rem;
    margin-right: 0;
    margin-left: 0;
    color: var(--mcr-order-muted);
    line-height: 1.65;
}

body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-mark {
    position: relative;
    width: 190px;
    height: 148px;
    justify-self: end;
}

body.brand-mcredstone [data-mcr-configurator-intro] .mcr-motif {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 168px;
    height: 140px;
    filter: drop-shadow(10px 12px 0 rgb(0 0 0 / 30%));
}

body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-signal {
    position: absolute;
    top: 34px;
    right: 70px;
    width: 86px;
    height: 58px;
    border-top: 4px solid var(--mcr-order-red);
    border-left: 4px solid var(--mcr-order-red-deep);
    box-shadow: -6px -6px 18px rgb(220 38 38 / 15%);
}

body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-signal::before,
body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-signal::after {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--mcr-order-red-hot);
    box-shadow: 0 0 12px rgb(248 113 113 / 55%);
    content: "";
}

body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-signal::before {
    top: -6px;
    left: -6px;
}

body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-signal::after {
    top: -6px;
    right: -5px;
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] {
    --theme-accent-r: 220;
    --theme-accent-g: 38;
    --theme-accent-b: 38;
    --gaming-500: 220 38 38;
    --theme-bg-card: rgb(17 24 32 / 96%);
    --theme-bg-deep: #070a0d;
    --theme-border: rgb(112 126 140 / 42%);
    --theme-border-active: rgb(248 113 113 / 78%);
    --theme-glow: transparent;
    --theme-step-shadow: none;
    --theme-cta-bg: #b91c1c;
    --theme-progress: #dc2626;
    --theme-text-accent: #fca5a5;
    --theme-on-accent: #fff;
    --theme-on-cta: #fff;
    --theme-pattern:
        linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress {
    justify-content: stretch;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--mcr-order-border);
    border-left: 5px solid var(--mcr-order-red-deep);
    border-radius: 2px;
    background: rgb(11 16 21 / 92%);
    box-shadow: 5px 6px 0 rgb(0 0 0 / 28%);
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-step {
    min-width: 6.5rem;
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-circle {
    border-radius: 2px;
    box-shadow: 3px 3px 0 rgb(0 0 0 / 38%);
    font-family: var(--mcr-order-display);
    font-weight: 400;
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-circle.is-future {
    border-color: var(--mcr-order-border);
    background: var(--mcr-order-stone);
    color: #aeb8c3;
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-circle.is-active,
body.brand-mcredstone [data-mcr-configurator] .wizard-progress-circle.is-done {
    background: #b91c1c;
    box-shadow: 3px 3px 0 #421011;
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-line {
    height: 4px;
    border-radius: 0;
    background: #303c47;
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-line.is-done {
    background: linear-gradient(90deg, #991b1b, var(--mcr-order-red));
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-label {
    color: #c4cdd5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.035em;
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="modpack-first-entry"],
body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] > .wizard-step-bg,
body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] [x-data="priceCounter()"].bg-professional-800 {
    position: relative;
    border-color: var(--mcr-order-border) !important;
    border-radius: 3px !important;
    background: linear-gradient(145deg, rgb(23 33 42 / 98%), rgb(12 18 24 / 98%)) !important;
    box-shadow: var(--mcr-order-shadow);
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="modpack-first-entry"] {
    position: relative;
    border-left: 5px solid var(--mcr-order-red-deep) !important;
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="modpack-first-entry"]::after,
body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] > .wizard-step-bg::after,
body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] [x-data="priceCounter()"].bg-professional-800::after {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 15px;
    height: 15px;
    border-bottom: 1px solid var(--mcr-order-border);
    border-left: 1px solid var(--mcr-order-border);
    background: var(--mcr-order-canvas);
    content: "";
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="modpack-first-entry"] h2,
body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] h2 {
    font-family: var(--mcr-order-display);
    font-weight: 400;
    letter-spacing: 0.025em;
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] [x-data="priceCounter()"].bg-professional-800 {
    border-top: 3px solid var(--mcr-order-red-deep) !important;
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] [x-data="priceCounter()"].bg-professional-800 > div[style*="--theme-bg-card"] {
    border-radius: 2px !important;
    background: #0b1015 !important;
    box-shadow: inset 4px 0 0 var(--mcr-order-red-deep);
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] .text-professional-400,
body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] [x-data="priceCounter()"].bg-professional-800 .text-professional-400 {
    color: var(--mcr-order-muted);
}

body.brand-mcredstone [data-mcr-configurator] [data-testid^="game-select-"] {
    border: 1px solid var(--mcr-order-border);
    border-radius: 2px;
    background: var(--mcr-order-surface);
    box-shadow: 4px 5px 0 rgb(0 0 0 / 34%);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

body.brand-mcredstone [data-mcr-configurator] [data-testid^="game-select-"]:not(:disabled):hover {
    border-color: #8593a0;
    box-shadow: 3px 4px 0 rgb(0 0 0 / 46%);
    transform: translate(-1px, -1px);
}

body.brand-mcredstone [data-mcr-configurator] [data-testid^="game-select-"].ring-2 {
    border-color: var(--mcr-order-red-hot);
    box-shadow: inset 0 0 0 2px var(--mcr-order-red-deep), 4px 5px 0 rgb(0 0 0 / 42%);
}

body.brand-mcredstone [data-mcr-configurator] [data-testid^="game-select-"] > div:last-child {
    border-top: 1px solid rgb(112 126 140 / 34%);
    background: linear-gradient(145deg, var(--mcr-order-surface-raised), var(--mcr-order-surface));
}

body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] > .wizard-step-bg {
    position: relative;
    border-top: 3px solid var(--mcr-order-red-deep) !important;
}

body.brand-mcredstone [data-mcr-configurator] [data-step2-section] {
    scroll-margin-top: calc(var(--nav-h, 4rem) + 1.25rem);
}

body.brand-mcredstone [data-mcr-configurator] :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"]), select, textarea) {
    border-color: var(--mcr-order-border);
    border-radius: 2px;
    color: var(--mcr-order-text);
    background-color: var(--mcr-order-canvas-soft);
}

body.brand-mcredstone [data-mcr-configurator] :is(input, select, textarea):focus {
    border-color: #3b82f6;
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: none;
}

body.brand-mcredstone [data-mcr-configurator] input[type="range"] {
    accent-color: var(--mcr-order-red);
}

body.brand-mcredstone [data-mcr-configurator] :is(button, a).bg-gaming-600,
body.brand-mcredstone [data-mcr-configurator] .wizard-cta {
    border: 1px solid var(--mcr-order-red-hot);
    border-radius: 2px;
    color: #fff;
    background: #b91c1c;
    box-shadow: 3px 4px 0 #421011;
    font-weight: 750;
    letter-spacing: 0.015em;
}

body.brand-mcredstone [data-mcr-configurator] :is(button, a).bg-gaming-600:hover,
body.brand-mcredstone [data-mcr-configurator] .wizard-cta:hover {
    opacity: 1;
    background: #991b1b;
    box-shadow: 2px 3px 0 #421011;
    transform: translate(1px, 1px);
}

body.brand-mcredstone [data-mcr-configurator] :is(button, a).bg-professional-700,
body.brand-mcredstone [data-mcr-configurator] [data-step2-section="billing"] button:not(.bg-gaming-600) {
    border: 1px solid var(--mcr-order-border);
    border-radius: 2px;
    background-color: var(--mcr-order-stone);
}

body.brand-mcredstone [data-mcr-configurator] .configurator-mobile-action {
    border-color: var(--mcr-order-border);
    border-radius: 3px 3px 0 0;
    background: rgb(11 16 21 / 98%);
    box-shadow: 0 -12px 36px rgb(0 0 0 / 48%), inset 0 3px var(--mcr-order-red-deep);
}

body.brand-mcredstone [data-mcr-configurator] :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
    box-shadow: none;
}

/*
 * order-seo (Audit 27.09., mcr.md, Schritt 1): MCR verkauft nur Java und Bedrock.
 * - Zwei Kacheln füllen die Zeile statt 148 px schmal links neben 480 px Leerfläche.
 * - Die Kategorie-Leiste („Alle Spiele“ / „Sandbox“) ist bei einer einzigen Kategorie
 *   ohne Funktion und entfällt; mit drei oder mehr Knöpfen bleibt sie stehen.
 * - Kein Text unter 12 px (Badges, Schrittbeschriftung, „Gesamt“).
 * Nur Darstellung — Auswahl, Preis, Gutschein und Checkout bleiben unberührt.
 */
body.brand-mcredstone [data-mcr-configurator] .grid:has(> [data-testid^="game-select-"]):not(:has(> [data-testid^="game-select-"]:nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.brand-mcredstone [data-mcr-configurator] .grid:has(> [data-testid^="game-select-"]):not(:has(> [data-testid^="game-select-"]:nth-child(3))) [data-testid^="game-select-"] > div:first-of-type {
    height: 8.5rem;
}

body.brand-mcredstone [data-mcr-configurator] div:has(> button[wire\:click="setCategory('all')"]):not(:has(> button:nth-of-type(3))) {
    display: none;
}

body.brand-mcredstone [data-mcr-configurator] .text-\[10px\] {
    font-size: 0.75rem;
    line-height: 1.1rem;
}

body.brand-mcredstone [data-mcr-configurator] .wizard-progress-label {
    font-size: 0.75rem;
}

body.brand-mcredstone [data-mcr-configurator] .bg-yellow-500\/90 {
    background: #1b1206;
    color: #fde68a;
    box-shadow: inset 0 0 0 1px rgb(251 191 36 / 60%);
}

@media (width <= 767px) {
    body.brand-mcredstone [data-mcr-configurator] {
        padding-top: 1.5rem;
        background-size: 24px 24px, 24px 24px, auto;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] {
        margin-bottom: 1.5rem;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 0.75rem;
        min-height: 0;
        padding-top: 0.5rem;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] h1 {
        font-size: clamp(1.65rem, 7.4vw, 2.2rem);
        text-shadow: 2px 2px 0 #3b1112;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] p {
        font-size: 0.95rem;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-mark {
        width: 92px;
        height: 104px;
        align-self: end;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] .mcr-motif {
        width: 100px;
        height: 84px;
    }

    body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-signal {
        top: 8px;
        right: 34px;
        width: 48px;
        height: 42px;
    }

    body.brand-mcredstone [data-mcr-configurator] .wizard-progress {
        padding-inline: 0.5rem;
    }

    body.brand-mcredstone [data-mcr-configurator] .wizard-progress-step {
        min-width: 2.75rem;
    }

    body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] > .wizard-step-bg {
        padding: 1.1rem;
    }
}

@media (width <= 430px) {
    body.brand-mcredstone [data-mcr-configurator-intro] {
        grid-template-columns: minmax(0, 1fr);
    }

    body.brand-mcredstone [data-mcr-configurator-intro] .mcr-configurator-mark {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.brand-mcredstone [data-mcr-configurator] *,
    body.brand-mcredstone [data-mcr-configurator] *::before,
    body.brand-mcredstone [data-mcr-configurator] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    body.brand-mcredstone [data-mcr-configurator] .wizard-progress,
    body.brand-mcredstone [data-mcr-configurator] [data-testid="modpack-first-entry"],
    body.brand-mcredstone [data-mcr-configurator] [data-testid="wizard-step-2"] > .wizard-step-bg,
    body.brand-mcredstone [data-mcr-configurator] [data-testid="server-configurator"] [x-data="priceCounter()"].bg-professional-800,
    body.brand-mcredstone [data-mcr-configurator] [data-testid^="game-select-"] {
        border-color: CanvasText !important;
        box-shadow: none;
    }
}
