:root {
    color-scheme: dark;
    --ink: #050607;
    --ink-2: #090a0d;
    --panel: rgba(10, 11, 14, .96);
    --panel-2: rgba(13, 15, 19, .96);
    --panel-3: rgba(12, 12, 14, .98);
    --line: rgba(197, 204, 214, .20);
    --line-soft: rgba(197, 204, 214, .12);
    --line-strong: rgba(197, 204, 214, .34);
    --text: #f1f4ee;
    --muted: #a2abb5;
    --amber: #d3b27b;
    --teal: #9fa6b2;
    --signal: #c56f5f;
    --cream: #f5f0e7;
    --steel: #9fa6b2;
    --steel-strong: #c5ccd6;
    --metal: linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 34%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .034) 0 1px, transparent 1px 9px),
        linear-gradient(180deg, rgba(18, 20, 25, .98), rgba(6, 7, 9, .98));
    --metal-soft: linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 36%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 8px),
        rgba(12, 13, 16, .95);
    --shadow: 0 22px 80px rgba(0, 0, 0, .46);
    --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
    overflow-x: clip;
}

body {
    position: relative;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .032) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(98deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #050607 0%, #0b0d11 45%, #050607 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 calc(100% - 1px), rgba(197, 204, 214, .055) calc(100% - 1px)) 0 0 / clamp(110px, 12vw, 180px) 100%,
        linear-gradient(0deg, transparent 0 calc(100% - 1px), rgba(197, 204, 214, .035) calc(100% - 1px)) 0 0 / 100% 86px;
    opacity: .55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.topbar {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background:
        linear-gradient(180deg, rgba(17, 19, 24, .94), rgba(5, 6, 7, .88)),
        repeating-linear-gradient(100deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 8px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: inset 0 -1px rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .28);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 4px;
    background: linear-gradient(135deg, rgba(159, 166, 178, .18), rgba(211, 178, 123, .11));
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 12px 30px rgba(0, 0, 0, .28);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.nav a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-form { margin: 0; }

.nav-form button {
    padding: 6px 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav a:hover,
.nav a.is-active,
.nav-form button:hover {
    color: var(--text);
    border-color: var(--steel-strong);
}

.hero,
.page-hero,
.product-hero {
    display: grid;
    align-items: end;
    padding: 120px clamp(20px, 5vw, 72px) 72px;
}

.hero {
    min-height: 92vh;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, .98) 0%, rgba(5, 6, 7, .80) 47%, rgba(5, 6, 7, .38) 100%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px),
        var(--hero-image, url("/images/product-shots/dauntless-vm-topology.png")) center right / cover no-repeat;
}

.page-hero,
.product-hero {
    min-height: 58vh;
    background:
        linear-gradient(90deg, rgba(5, 6, 7, .98) 0%, rgba(5, 6, 7, .86) 50%, rgba(5, 6, 7, .44) 100%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 9px),
        var(--hero-image, url("/images/product-shots/dauntless-vm-topology.png")) center right / cover no-repeat;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: inset 0 -1px rgba(255, 255, 255, .04);
}

.product-line-hero {
    min-height: 42vh;
    padding-bottom: 48px;
}

.product-line-hero h1 {
    font-size: clamp(40px, 6vw, 74px);
}

.hero-inner,
.page-hero-inner {
    width: min(980px, 100%);
}

.hero-copy-spacer {
    height: clamp(126px, 13vw, 174px);
    margin-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--steel-strong);
    font: 700 13px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, var(--steel), var(--amber));
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 980px;
    margin: 18px 0;
    font-size: clamp(48px, 8vw, 104px);
    line-height: .9;
    letter-spacing: 0;
    font-family: Rockwell, Georgia, "Times New Roman", serif;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .34), 0 0 28px rgba(197, 204, 214, .08);
}

.page-hero h1,
.product-hero h1 {
    font-size: clamp(42px, 7vw, 86px);
}

.hero p,
.page-hero p,
.product-hero p {
    max-width: 760px;
    margin: 0;
    color: #dce7e1;
    font-size: clamp(18px, 2vw, 23px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    background: var(--metal-soft);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 12px 26px rgba(0, 0, 0, .24);
}

.button.primary {
    background: linear-gradient(180deg, #d6bf90, #a88349);
    color: #090806;
    border-color: rgba(246, 225, 179, .72);
}

.button.signal {
    background: var(--signal);
    color: #fff8f3;
    border-color: var(--signal);
}

.button:hover { transform: translateY(-1px); }

.button.full-width,
.full-width {
    width: 100%;
}

.button-action {
    position: relative;
    display: inline-flex;
}

.button-toast {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    z-index: 2;
    min-width: 230px;
    padding: 9px 12px;
    color: var(--cream);
    background: rgba(8, 9, 12, .97);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

.button-action.is-toast-visible .button-toast {
    opacity: 1;
    transform: translate(-50%, 0);
}

main section,
.band {
    padding: 76px clamp(20px, 5vw, 72px);
}

.relationship-band {
    padding-block: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .012)),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 9px),
        #080a0d;
    border-block: 1px solid var(--line-strong);
}

.relationship-inner {
    display: grid;
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.relationship-copy p {
    margin: 12px 0 0;
    color: var(--muted);
}

.relationship-marks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.relationship-mark {
    display: grid;
    align-content: center;
    min-height: 82px;
    padding: 12px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.relationship-mark strong {
    color: var(--cream);
    font-size: 18px;
    line-height: 1.1;
}

.relationship-mark span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.relationship-mark-logo {
    overflow: hidden;
    padding: 0;
    background: #f5f0e7;
}

.relationship-mark-logo img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    object-position: center;
}

.relationship-mark-logo span {
    margin: 0;
    padding: 6px 10px 8px;
    color: #141414;
    background: rgba(245, 240, 231, .96);
}

.band-dark {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), transparent),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 9px),
        var(--ink-2);
    border-block: 1px solid var(--line-strong);
}

.container {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto 28px;
}

h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1;
    letter-spacing: 0;
    font-family: Rockwell, Georgia, "Times New Roman", serif;
}

.section-head p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
    display: grid;
    gap: 18px;
    max-width: var(--max);
    margin: 0 auto;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    overflow: hidden;
    background: var(--metal);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .07);
}

.card figure {
    height: 220px;
    margin: 0;
    background: #050607;
    border-bottom: 1px solid var(--line);
}

.card figure.tall { height: 340px; }

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-link {
    display: block;
    color: inherit;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.product-card-link:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow), 0 0 0 1px rgba(197, 204, 214, .12), inset 0 1px rgba(255, 255, 255, .08);
}

.product-card-link:hover .card-cta {
    transform: none;
}

.product-stack-list {
    display: grid;
    gap: 10px;
    height: 100%;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(159, 166, 178, .16), transparent 40%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 9px),
        #07090c;
}

.product-stack-list div {
    display: grid;
    align-content: center;
    min-height: 88px;
    padding: 12px;
    background: rgba(255, 255, 255, .046);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-stack-list strong {
    color: var(--cream);
    font-size: 18px;
}

.product-stack-list span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.card-body { padding: 22px; }

.card h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.label {
    margin: 4px 0 14px;
    color: var(--steel-strong);
    font-weight: 800;
}

.card p,
.muted {
    color: var(--muted);
}

.compact {
    margin: 8px 0 0;
    font-size: 14px;
}

[data-tone="error"] {
    color: #ffb2aa;
}

.divider {
    height: 1px;
    margin: 20px 0;
    background: var(--line);
}

.mono,
code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    overflow-wrap: anywhere;
}

.chips,
.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.chips li,
.check-list li {
    padding: 6px 9px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    color: #c9d0d9;
    border-radius: 4px;
    font-size: 13px;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
}

.split img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .06);
}

.stack {
    display: grid;
    gap: 12px;
}

.callout {
    padding: 18px;
    background: var(--metal-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--steel-strong);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.callout strong {
    display: block;
    margin-bottom: 6px;
}

.callout span,
.callout p {
    color: var(--muted);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
    max-width: 760px;
}

.stat {
    padding: 14px;
    background: var(--metal-soft);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.stat strong {
    display: block;
    color: var(--cream);
    font-size: 28px;
    line-height: 1;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.metric-grid {
    max-width: none;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    background: var(--metal-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.crm-grid {
    align-items: start;
    max-width: none;
}

.compact-table {
    max-height: 440px;
    overflow: auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 24px;
    max-width: var(--max);
    margin: 0 auto;
}

.brief-panel {
    padding: 24px;
    background: var(--metal);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .07);
}

.brief-panel h2,
.brief-panel h3 {
    margin-top: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
}

.team-card {
    min-height: 250px;
    padding: 20px;
    background: var(--metal);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.team-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.team-card .title {
    margin: 0 0 14px;
    color: var(--steel-strong);
    font-weight: 800;
}

.team-card p {
    margin: 0;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.compact-form {
    grid-template-columns: 1fr;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full { grid-column: 1 / -1; }

.field label {
    color: var(--cream);
    font-weight: 800;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(0, 0, 0, .04)),
        #06070a;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(197, 204, 214, .28);
    border-color: var(--steel-strong);
}

.error {
    color: #ffb2aa;
    font-size: 14px;
}

.status {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(197, 204, 214, .10);
    border: 1px solid rgba(197, 204, 214, .35);
    color: #eef3f7;
    border-radius: 6px;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.code-grid code,
.secret-block code {
    display: block;
    padding: 9px 10px;
    color: var(--cream);
    background: #050607;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.qr-panel {
    display: grid;
    place-items: center;
    padding: 18px;
    background: #f9fafb;
    border-radius: 8px;
}

.qr-panel svg,
.qr-panel img {
    width: min(260px, 100%);
    height: auto;
}

.secret-block {
    display: grid;
    gap: 6px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .06);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
}

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--cream);
    background: #08090c;
}

.data-table td {
    color: #cad8d1;
}

.inline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-controls select,
.inline-controls input[type="checkbox"] {
    width: auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cream);
    background: rgba(255, 255, 255, .045);
    font-size: 13px;
    font-weight: 800;
}

.audit-list {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 16px 0 0;
}

.audit-list dt {
    color: var(--muted);
    font-weight: 800;
}

.audit-list dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.wallet-tile {
    display: grid;
    gap: 4px;
    min-height: 112px;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.wallet-tile span,
.wallet-tile small {
    color: var(--muted);
}

.wallet-tile strong {
    color: var(--cream);
    font-size: 30px;
    line-height: 1;
}

.service-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.service-list li {
    padding: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.service-list strong {
    display: block;
    color: var(--cream);
}

.service-list span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer {
    padding: 34px clamp(20px, 5vw, 72px);
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .024), transparent),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 9px),
        #050607;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.footer a {
    color: var(--amber);
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.game-hero {
    min-height: 50vh;
}

.game-showcase-grid {
    display: grid;
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
    gap: 18px;
    max-width: var(--max);
    margin: 0 auto;
}

.game-card .label {
    color: var(--amber);
}

.game-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .page-hero,
    .product-hero {
        min-height: 76vh;
        padding-top: 72px;
    }

    .grid-3,
    .grid-4,
    .grid-2,
    .split,
    .detail-grid,
    .gallery,
    .stat-row,
    .form-grid,
    .search-panel,
    .audit-list,
    .relationship-inner,
    .relationship-marks,
    .game-showcase-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .card figure.tall {
        height: 240px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .hero,
    .page-hero,
    .product-hero {
        min-height: auto;
        padding: 74px 20px 50px;
        background-position: 58% center;
    }

    .hero-inner,
    .page-hero-inner {
        width: min(100%, 350px);
    }

    .hero-copy-spacer {
        height: 92px;
    }

    h1,
    .page-hero h1,
    .product-hero h1 {
        max-width: 100%;
        font-size: 38px;
        line-height: 1;
        text-wrap: balance;
    }

    .hero p,
    .page-hero p,
    .product-hero p {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.45;
    }

    main section,
    .band {
        padding-block: 52px;
    }

    .button {
        width: 100%;
    }

    .button-action {
        width: 100%;
    }

    .button-toast {
        max-width: min(280px, calc(100vw - 48px));
        min-width: 0;
        white-space: normal;
    }
}

@media (max-width: 380px) {
    h1,
    .page-hero h1,
    .product-hero h1 {
        font-size: 34px;
    }
}

/* Campaign events live inside the small CRM, with the same restrained console
   language but a clearer staged-builder rhythm. */
.event-hero {
    --hero-image: linear-gradient(110deg, rgba(8, 11, 15, .96), rgba(8, 11, 15, .68)),
        url('/images/concept-art/05-toys-and-auras.png');
}

.control-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 10, 13, .78);
}

.control-tabs a {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
}

.control-tabs a:hover,
.control-tabs a.is-active {
    color: var(--text);
    background: rgba(88, 229, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(88, 229, 255, .18);
}

.event-builder {
    display: grid;
    gap: 20px;
}

.builder-step,
.event-panel {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 18, 23, .98), rgba(8, 10, 13, .98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.builder-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 22px;
    padding: 26px;
}

.step-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(88, 229, 255, .35);
    border-radius: 50%;
    color: #8eeeff;
    background: rgba(88, 229, 255, .08);
    font-size: 20px;
    font-weight: 800;
}

.step-content h2,
.event-panel h2 {
    margin: 4px 0 8px;
}

.step-content > p,
.section-heading p {
    margin: 0 0 20px;
    color: var(--muted);
}

.game-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.game-choice {
    position: relative;
    cursor: pointer;
}

.game-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.game-choice span {
    display: grid;
    gap: 4px;
    min-height: 86px;
    align-content: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.game-choice small,
.reward-copy small,
.reward-group summary small,
.builder-submit span,
.reward-game-heading span {
    color: var(--muted);
}

.game-choice input:checked + span {
    border-color: rgba(88, 229, 255, .72);
    background: rgba(88, 229, 255, .1);
    transform: translateY(-2px);
}

.reward-game {
    display: grid;
    gap: 12px;
}

.reward-game[hidden] {
    display: none;
}

.reward-game-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reward-game-heading {
    padding: 14px 16px;
    border-left: 3px solid #58e5ff;
    background: rgba(88, 229, 255, .045);
}

.reward-game-heading strong,
.reward-game-heading span {
    display: block;
}

.reward-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(0, 0, 0, .16);
}

.reward-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.reward-group summary::-webkit-details-marker {
    display: none;
}

.reward-group summary strong,
.reward-group summary small {
    display: block;
}

.reward-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.reward-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
}

.reward-option:has(> input:checked) {
    border-color: rgba(88, 229, 255, .55);
    background: rgba(88, 229, 255, .075);
}

.reward-option > input {
    width: 18px;
    height: 18px;
    accent-color: #58e5ff;
}

.reward-copy {
    display: grid;
    gap: 3px;
}

.quantity-field {
    display: grid;
    gap: 3px;
    justify-items: center;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.quantity-field input {
    width: 62px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #090b0e;
}

.builder-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    border: 1px solid rgba(88, 229, 255, .24);
    border-radius: 18px;
    background: rgba(88, 229, 255, .055);
}

.builder-submit strong,
.builder-submit span {
    display: block;
}

.event-summary-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.event-panel {
    padding: 24px;
}

.event-panel .table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.event-panel .data-table {
    min-width: 720px;
}

.reward-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.reward-summary-grid article {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.reward-summary-grid span {
    color: var(--muted);
    font-size: 13px;
}

.reward-summary-grid b {
    color: #8eeeff;
    font-size: 12px;
}

.duration-field > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.code-submit-field {
    align-self: end;
}

.campaign-code {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid rgba(88, 229, 255, .3);
    border-radius: 8px;
    color: #b6f5ff;
    background: rgba(88, 229, 255, .07);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
}

.usage-meter {
    width: 120px;
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.usage-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #58e5ff;
}

.event-status.status-active {
    color: #a6ffd0;
    border-color: rgba(83, 244, 156, .3);
}

.event-status.status-paused,
.event-status.status-draft {
    color: #ffd68a;
    border-color: rgba(255, 190, 73, .3);
}

.error-summary {
    border-color: rgba(255, 91, 111, .35);
    color: #ffc2ca;
    background: rgba(255, 91, 111, .08);
}

.error-summary ul {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .game-choice-grid,
    .reward-option-grid,
    .event-summary-grid,
    .reward-summary-grid {
        grid-template-columns: 1fr;
    }

    .builder-submit,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .builder-step {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .builder-submit {
        padding: 18px;
    }

    .event-panel {
        padding: 18px;
    }

    .reward-option {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .quantity-field {
        grid-column: 2;
        grid-template-columns: auto 70px;
        align-items: center;
        justify-self: start;
    }
}
