*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --color-primary: #02c2cd;
    --color-secondary: #525fdf;
    --color-accent: #6d24f9;
    --color-background: #050914;
    --color-card: rgba(8, 21, 40, 0.9);
    --brand-gradient: linear-gradient(135deg, #02c2cd 0%, #18a5d2 28%, #525fdf 58%, #6d24f9 82%, #732eed 100%);
    --ink: #f7fbff;
    --muted: #aebbd0;
    --line: rgba(255, 255, 255, 0.1);
    --line-bright: rgba(92, 226, 246, 0.34);
    --surface: rgba(8, 21, 40, 0.84);
    --surface-solid: #0a172a;
    --danger: #ff668b;
    --success: #55e6bd;
    --warning: #ffd56a;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Trebuchet MS", "Segoe UI", ui-sans-serif, sans-serif;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-background);
    background-image:
        var(--site-background-image, none),
        radial-gradient(circle at 14% 18%, rgba(2, 194, 205, 0.17), transparent 29rem),
        radial-gradient(circle at 86% 28%, rgba(109, 36, 249, 0.2), transparent 34rem),
        linear-gradient(180deg, #050914 0%, #06101f 48%, #050914 100%);
    background-attachment: fixed;
    background-position: center, center, center, center;
    background-repeat: no-repeat;
    background-size: cover, auto, auto, auto;
}

.site-loader {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: #dffcff;
    background: radial-gradient(circle at 50% 42%, rgba(82, 95, 223, 0.22), transparent 34%), #050914;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.18em;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-loader.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.site-loader img {
    width: min(320px, 78vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(2, 194, 205, 0.25));
    animation: loader-pulse 1.1s ease-in-out infinite alternate;
}

.site-loader > span {
    display: none;
}

.site-loader.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

@keyframes loader-pulse {
    from { transform: translateY(2px) scale(0.98); }
    to { transform: translateY(-2px) scale(1.02); }
}

body::before {
    position: fixed;
    z-index: 0;
    inset: -30% 0 0;
    pointer-events: none;
    content: "";
    opacity: 0.24;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 88px,
        rgba(24, 165, 210, 0.42) 89px,
        rgba(109, 36, 249, 0.7) 90px,
        transparent 92px,
        transparent 176px
    );
    background-size: 530px 100%;
    filter: blur(0.3px);
    animation: neon-rain 10s linear infinite;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 82%, transparent);
}

body::after {
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at center, #000, transparent 80%);
    mask-image: radial-gradient(circle at center, #000, transparent 80%);
}

@keyframes neon-rain {
    from { transform: translateY(-18%); }
    to { transform: translateY(18%); }
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.public-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #001216;
    border-radius: 10px;
    background: #7cf7ff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    min-height: 110px;
    border-bottom: 1px solid rgba(76, 221, 241, 0.14);
    background: rgba(3, 7, 17, 0.88);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.nav-row {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: clamp(190px, 18vw, 232px);
    height: 66px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(2, 194, 205, 0.2));
    animation: logo-float 5s ease-in-out infinite;
}

.brand span {
    display: none;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.4vw, 1.48rem);
    font-weight: 900;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand small {
    display: block;
    margin-bottom: -3px;
    color: #69eaf4;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.24em;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:active:not(:disabled) {
    transform: translateY(0);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
.text-button:focus-visible,
.sound-toggle:focus-visible,
.dialog-close:focus-visible,
.pagination a:focus-visible {
    outline: 3px solid rgba(101, 239, 250, 0.72);
    outline-offset: 3px;
}

.button--primary {
    border-color: rgba(133, 245, 255, 0.35);
    background: var(--brand-gradient);
    box-shadow: 0 10px 28px rgba(82, 95, 223, 0.24), inset 0 1px rgba(255, 255, 255, 0.24);
}

.button--primary:hover:not(:disabled) {
    box-shadow: 0 14px 34px rgba(82, 95, 223, 0.34), inset 0 1px rgba(255, 255, 255, 0.28);
}

.button--quiet {
    border-color: var(--line-bright);
    background: rgba(255, 255, 255, 0.045);
}

.button--quiet:hover:not(:disabled) {
    border-color: rgba(103, 239, 250, 0.62);
    background: rgba(2, 194, 205, 0.1);
}

.button--compact {
    min-height: 40px;
    padding: 8px 13px;
    border-color: rgba(90, 231, 245, 0.25);
    background: rgba(13, 37, 62, 0.85);
    font-size: 0.88rem;
}

.button--wide {
    width: 100%;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-top: 28px;
}

.stat-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(10, 33, 54, 0.91), rgba(6, 15, 31, 0.88));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.stat-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.stat-card--featured {
    border-color: rgba(109, 214, 244, 0.28);
    background: linear-gradient(145deg, rgba(27, 38, 91, 0.92), rgba(12, 20, 52, 0.9));
    transform: translateY(-6px);
}

.stat-card__label,
.stat-card small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.stat-card strong {
    display: block;
    margin: 1px 0;
    color: #eafcff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    text-shadow: 0 0 20px rgba(2, 194, 205, 0.18);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: 24px 0 48px;
}

.glass-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.spin-card,
.winners-card {
    padding: clamp(20px, 3vw, 30px);
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading--center {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #6cebf4;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(1.65rem, 3.8vw, 2.55rem);
}

h2 {
    font-size: clamp(1.45rem, 3.2vw, 2.2rem);
}

.section-heading p,
.legal-card > .prose,
.dialog-content > .prose {
    color: var(--muted);
}

.section-heading p {
    max-width: 52ch;
    margin: 10px auto 0;
    font-size: 0.94rem;
}

.wheel-stage {
    width: min(100%, 455px);
    aspect-ratio: 1;
    position: relative;
    isolation: isolate;
    margin: 10px auto 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 58%, rgba(83, 226, 242, 0.16) 59%, transparent 65%),
        conic-gradient(from 15deg, #4ee9f2, #525fdf, #8f37ff, #18a5d2, #4ee9f2);
    box-shadow: 0 0 0 6px rgba(5, 9, 20, 0.8), 0 0 0 8px rgba(92, 229, 244, 0.32), 0 24px 64px rgba(0, 0, 0, 0.44), 0 0 44px rgba(82, 95, 223, 0.2);
}

.wheel-stage::before,
.wheel-stage::after {
    position: absolute;
    z-index: 3;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.wheel-stage::before {
    inset: 1.8%;
    border: 2px solid rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 0 22px rgba(2, 194, 205, 0.28);
}

.wheel-stage::after {
    inset: 5.2%;
    border: 1px dashed rgba(255, 255, 255, 0.48);
}

.wheel-rotor {
    position: absolute;
    z-index: 1;
    inset: 3.7%;
    border-radius: 50%;
    overflow: hidden;
    transform-origin: 50% 50%;
    will-change: transform;
}

.prize-wheel {
    --wheel-label-font-size: 3.35px;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.3));
}

.prize-wheel--dense {
    --wheel-label-font-size: 2.55px;
}

.prize-wheel--crowded {
    --wheel-label-font-size: 2.25px;
}

.prize-wheel--micro {
    --wheel-label-font-size: 1.95px;
}

.prize-wheel--dense .wheel-segment text,
.prize-wheel--crowded .wheel-segment text,
.prize-wheel--micro .wheel-segment text {
    letter-spacing: 0;
}

.wheel-segment path,
.wheel-segment circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 0.35;
}

.wheel-segment text,
.wheel-empty-label {
    fill: #fff;
    font-family: var(--font-body);
    font-size: var(--wheel-label-font-size);
    font-weight: 900;
    letter-spacing: 0.02em;
    paint-order: stroke;
    stroke: rgba(4, 8, 20, 0.46);
    stroke-width: 0.45px;
    stroke-linejoin: round;
}

.wheel-empty-label {
    font-size: 4px;
}

.wheel-rim {
    fill: none;
    stroke: rgba(193, 252, 255, 0.85);
    stroke-width: 1.2;
}

.wheel-hub {
    width: 27%;
    aspect-ratio: 1;
    position: absolute;
    z-index: 5;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    border: 2px solid rgba(202, 252, 255, 0.7);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 27%, #18345c 0%, #07152b 56%, #030814 100%);
    box-shadow: 0 0 0 7px rgba(7, 15, 33, 0.64), 0 8px 28px rgba(0, 0, 0, 0.52), inset 0 2px rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
}

.wheel-hub img {
    width: 88%;
    height: auto;
    max-height: 64%;
    object-fit: contain;
}

.wheel-pointer {
    width: 16%;
    aspect-ratio: 0.8;
    position: absolute;
    z-index: 8;
    top: -4.5%;
    left: 50%;
    filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.45));
    transform: translateX(-50%);
}

.wheel-pointer::before {
    position: absolute;
    inset: 0;
    content: "";
    clip-path: polygon(50% 100%, 8% 26%, 23% 7%, 77% 7%, 92% 26%);
    background: linear-gradient(140deg, #bffcff 0%, #21c9e1 32%, #525fdf 62%, #922cff 100%);
}

.wheel-pointer span {
    width: 38%;
    aspect-ratio: 1;
    position: absolute;
    z-index: 1;
    top: 16%;
    left: 31%;
    border-radius: 50%;
    background: radial-gradient(circle at 33% 28%, #fff 0 7%, #6ff8ff 16%, #5865ec 48%, #380b70 82%);
    box-shadow: inset 0 0 7px rgba(255, 255, 255, 0.7);
}

.spin-form > label:first-child,
.search-form > label {
    display: block;
    margin-bottom: 7px;
    color: #dbe8f6;
    font-size: 0.84rem;
    font-weight: 750;
}

.voucher-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(96, 231, 245, 0.3);
    border-radius: 15px;
    background: rgba(3, 10, 24, 0.82);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.voucher-icon {
    display: grid;
    place-items: center;
    color: #6cebf4;
    border-right: 1px solid var(--line);
    font-size: 1.1rem;
}

.voucher-row input,
.search-row input,
.page-size-form select {
    min-width: 0;
    color: var(--ink);
    border: 1px solid rgba(118, 229, 245, 0.2);
    border-radius: 11px;
    background: rgba(4, 14, 31, 0.9);
}

.voucher-row input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-transform: uppercase;
}

.voucher-row input::placeholder,
.search-row input::placeholder {
    color: #74859f;
}

.spin-button {
    min-width: 106px;
    margin: 4px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.terms-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.wheel-legend {
    margin: -8px auto 18px;
    color: var(--muted);
    font-size: 0.82rem;
}

.wheel-legend summary {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    color: #8eeff5;
    cursor: pointer;
}

.wheel-legend ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 24px;
    margin: 12px 0 0;
    padding-left: 28px;
    text-align: left;
}

.text-button {
    padding: 0;
    color: #7ceef5;
    border: 0;
    background: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spin-feedback {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
}

#spin-message {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

#spin-message.is-error { color: #ff9aae; }
#spin-message.is-success { color: #66e8c2; }
#spin-message.is-working { color: #76eef6; }

.sound-toggle {
    min-height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.pending-reset {
    flex: 0 0 auto;
    font-size: 0.78rem;
}

.sound-toggle[aria-pressed="true"] {
    color: #dfffff;
    border-color: rgba(74, 232, 245, 0.4);
    background: rgba(2, 194, 205, 0.12);
}

.sound-toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.winners-card {
    align-self: stretch;
}

.winners-card h2 {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.search-form {
    min-width: 0;
    flex: 1;
}

.search-row {
    display: flex;
    gap: 7px;
}

.search-row input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
}

.page-size-form {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 5px 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.winner-sort-form {
    grid-template-columns: auto minmax(96px, auto) minmax(96px, auto) auto;
}

.page-size-form select {
    min-height: 40px;
    padding: 7px 28px 7px 10px;
}

.page-size-submit {
    grid-column: 1 / -1;
}

.table-wrap {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.winner-table {
    width: 100%;
    border-collapse: collapse;
    color: #e8f2ff;
    font-size: 0.88rem;
}

.winner-table th,
.winner-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: middle;
}

.winner-table th {
    color: #dcecff;
    background: rgba(8, 25, 48, 0.98);
    font-size: 0.76rem;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.winner-table th a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.winner-table th a:hover {
    color: #7aebf5;
}

.winner-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.025);
}

.winner-table tbody tr:hover {
    background: rgba(2, 194, 205, 0.065);
}

.winner-table tbody tr:last-child td {
    border-bottom: 0;
}

.winner-table time {
    color: #b8c7da;
    white-space: nowrap;
}

.empty-row td {
    padding: 38px 14px;
    color: var(--muted);
    text-align: center;
}

.prize-pill {
    display: inline-flex;
    max-width: 190px;
    align-items: center;
    padding: 4px 9px;
    overflow: hidden;
    color: #c9fff0;
    border: 1px solid rgba(85, 230, 189, 0.28);
    border-radius: 999px;
    background: rgba(32, 153, 120, 0.16);
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prize-pill--retry {
    color: #ffd1da;
    border-color: rgba(255, 102, 139, 0.24);
    background: rgba(255, 102, 139, 0.12);
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
}

.table-footer > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.pagination a,
.pagination > span {
    min-width: 35px;
    height: 35px;
    display: inline-grid;
    place-items: center;
    color: #cbd8e9;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
}

.pagination a:hover,
.pagination .is-current {
    color: #fff;
    border-color: rgba(84, 230, 245, 0.4);
    background: linear-gradient(135deg, rgba(2, 194, 205, 0.3), rgba(109, 36, 249, 0.38));
}

.pagination > span[aria-disabled="true"],
.pagination__ellipsis {
    opacity: 0.42;
}

.notice {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.notice--warning {
    color: #ffe8ad;
    border-color: rgba(255, 213, 106, 0.25);
    background: rgba(255, 213, 106, 0.08);
}

.welcome-section {
    overflow: hidden;
    border-block: 1px solid rgba(89, 232, 245, 0.15);
    background:
        radial-gradient(circle at 50% -40%, rgba(2, 194, 205, 0.24), transparent 48%),
        linear-gradient(135deg, rgba(16, 39, 68, 0.96), rgba(31, 21, 72, 0.97));
}

.welcome-section__inner {
    max-width: 820px;
    padding-block: clamp(56px, 9vw, 92px);
    text-align: center;
}

.welcome-section h2 {
    margin-bottom: 18px;
}

.prose {
    color: var(--muted);
    line-height: 1.8;
}

.welcome-section .prose {
    margin: 0 auto 26px;
}

.prose--left {
    text-align: left;
}

.trust-strip {
    border-bottom: 1px solid var(--line);
    background: rgba(3, 8, 19, 0.72);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-block: 24px;
}

.trust-grid span {
    padding: 14px 16px;
    color: var(--muted);
    border-left: 2px solid rgba(76, 229, 242, 0.5);
    font-size: 0.82rem;
}

.trust-grid strong {
    display: block;
    color: #e8f9ff;
    font-size: 0.92rem;
}

.site-footer {
    background: #030711;
}

.footer-grid {
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 30px;
    padding-block: 42px;
}

.brand--footer img {
    width: 210px;
    height: 62px;
    animation: none;
}

.brand--footer span {
    font-size: 1rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.site-footer nav a,
.text-link,
.breadcrumbs a {
    color: #b9c9da;
    text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"],
.text-link:hover,
.breadcrumbs a:hover {
    color: #76eef6;
}

.site-footer p {
    margin: 0;
    color: #8291a7;
    font-size: 0.8rem;
    text-align: right;
}

.floating-contact {
    min-height: 50px;
    position: fixed;
    z-index: 50;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 10px;
    color: #fff;
    border: 1px solid rgba(117, 243, 252, 0.42);
    border-radius: 999px;
    background: rgba(8, 25, 48, 0.94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.floating-contact span:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-gradient);
}

.floating-contact span:last-child {
    font-size: 0.82rem;
    font-weight: 850;
}

.site-dialog {
    width: min(560px, calc(100% - 30px));
    max-height: min(82vh, 780px);
    padding: 0;
    overflow: auto;
    color: var(--ink);
    border: 1px solid rgba(96, 235, 247, 0.28);
    border-radius: 22px;
    background: #071326;
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62), 0 0 40px rgba(82, 95, 223, 0.18);
}

.site-dialog::backdrop {
    background: rgba(1, 4, 12, 0.83);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.site-dialog[open] {
    animation: dialog-in 220ms ease-out;
}

@keyframes dialog-in {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-content {
    position: relative;
    padding: clamp(24px, 5vw, 38px);
    text-align: center;
}

.dialog-content h2 {
    margin-bottom: 14px;
}

.dialog-logo {
    width: min(260px, 76vw);
    height: auto;
    max-height: 86px;
    margin: -7px auto 8px;
    object-fit: contain;
    filter: drop-shadow(0 0 17px rgba(20, 205, 225, 0.24));
}

.dialog-close {
    width: 38px;
    height: 38px;
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    color: #c5d4e5;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 1.4rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.site-dialog--welcome {
    width: min(470px, calc(100% - 30px));
    overflow-x: hidden;
    overflow-y: auto;
}

.site-dialog--welcome .dialog-content {
    padding: 30px 34px 34px;
}

.dialog-glow {
    height: 4px;
    background: var(--brand-gradient);
}

.result-prize {
    display: block;
    margin: 12px 0 20px;
    padding: 15px;
    color: #e8feff;
    border: 1px solid rgba(92, 236, 247, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(2, 194, 205, 0.12), rgba(109, 36, 249, 0.16));
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 5vw, 2rem);
}

.result-voucher {
    color: var(--muted);
    font-size: 0.84rem;
}

.site-dialog--result {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.site-dialog--result .dialog-content {
    z-index: 1;
}

.confetti-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
}

.legal-layout {
    min-height: calc(100vh - 340px);
    padding-block: 36px 70px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #8091a9;
    font-size: 0.84rem;
}

.legal-card {
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(24px, 6vw, 58px);
}

.legal-card h1 {
    margin-bottom: 24px;
}

.prose--legal {
    line-height: 2;
    white-space: normal;
}

.legal-actions {
    margin-top: 32px;
}

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

.privacy-points article,
.contact-topic {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
}

.privacy-points strong,
.privacy-points span {
    display: block;
}

.privacy-points strong {
    margin-bottom: 7px;
    color: #dffcff;
}

.privacy-points span,
.contact-topic p {
    color: var(--muted);
    font-size: 0.86rem;
}

.contact-card {
    max-width: 700px;
    text-align: center;
}

.contact-topic {
    margin: 24px 0;
    text-align: left;
}

.contact-topic h2 {
    font-size: 1.16rem;
}

.contact-orb {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin: 28px auto;
    border: 1px solid rgba(107, 237, 248, 0.32);
    border-radius: 50%;
    background: radial-gradient(circle at 34% 25%, rgba(136, 249, 255, 0.34), rgba(82, 95, 223, 0.25) 42%, rgba(9, 21, 44, 0.9) 70%);
    box-shadow: 0 0 42px rgba(82, 95, 223, 0.24);
}

.contact-orb span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-gradient);
    font-size: 1.7rem;
}

.visually-hidden {
    width: 1px !important;
    height: 1px !important;
    position: absolute !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .spin-card,
    .winners-card {
        width: min(100%, 760px);
        margin-inline: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .brand--footer {
        justify-self: center;
    }

    .site-footer p {
        text-align: center;
    }
}

@media (max-width: 720px) {
    .public-shell {
        width: min(100% - 24px, 660px);
    }

    .site-header,
    .nav-row {
        min-height: 96px;
    }

    .nav-row {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-block: 9px;
    }

    .brand {
        flex: 1 1 100%;
        justify-content: center;
    }

    .brand img {
        width: min(218px, 72vw);
        height: 58px;
    }

    .brand span {
        font-size: 1rem;
    }

    .nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-actions .button {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 0.86rem;
    }

    .stat-strip {
        gap: 7px;
        padding-top: 18px;
    }

    .stat-card {
        padding: 12px 5px;
        border-radius: 13px;
    }

    .stat-card--featured {
        transform: translateY(-3px);
    }

    .stat-card__label {
        font-size: 0.58rem;
        letter-spacing: 0.04em;
    }

    .stat-card small {
        display: none;
    }

    .stat-card strong {
        font-size: clamp(1.2rem, 7vw, 1.75rem);
    }

    .hero-grid {
        gap: 14px;
        padding-top: 15px;
    }

    .spin-card,
    .winners-card {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .page-size-form {
        grid-template-columns: auto 1fr auto;
    }

    .winner-sort-form {
        grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    }

    .page-size-submit {
        grid-column: auto;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .winner-table {
        min-width: 620px;
    }

    .table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        justify-content: flex-start;
    }

    .trust-grid,
    .privacy-points {
        grid-template-columns: 1fr;
    }

    .trust-grid span {
        padding-block: 9px;
    }

    .dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .wheel-stage {
        width: min(100%, 352px);
        margin-top: 4px;
    }

    .prize-wheel {
        --wheel-label-font-size: 3.15px;
    }

    .prize-wheel--dense {
        --wheel-label-font-size: 2.45px;
    }

    .prize-wheel--crowded {
        --wheel-label-font-size: 2.15px;
    }

    .prize-wheel--micro {
        --wheel-label-font-size: 1.85px;
    }

    .wheel-legend ol {
        grid-template-columns: 1fr;
    }

    .voucher-row {
        grid-template-columns: 44px minmax(0, 1fr);
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .voucher-icon,
    .voucher-row input {
        min-height: 50px;
        border-top: 1px solid rgba(96, 231, 245, 0.3);
        border-bottom: 1px solid rgba(96, 231, 245, 0.3);
        background: rgba(3, 10, 24, 0.86);
    }

    .voucher-icon {
        border-left: 1px solid rgba(96, 231, 245, 0.3);
        border-radius: 13px 0 0 13px;
    }

    .voucher-row input {
        border-right: 1px solid rgba(96, 231, 245, 0.3);
        border-radius: 0 13px 13px 0;
    }

    .spin-button {
        width: 100%;
        min-height: 48px;
        grid-column: 1 / -1;
        margin: 9px 0 0;
    }

    .spin-feedback {
        align-items: flex-start;
        flex-direction: column;
    }

    .sound-toggle {
        align-self: flex-end;
    }

    .search-row {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .search-row input {
        grid-column: 1 / -1;
    }

    .page-size-form {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .winner-sort-form {
        grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    }

    .winner-sort-form .button {
        grid-column: 1 / -1;
    }

    .floating-contact {
        width: 52px;
        height: 52px;
        min-height: 0;
        justify-content: center;
        padding: 0;
    }

    .floating-contact span:first-child {
        width: 38px;
        height: 38px;
    }

    .floating-contact span:last-child {
        display: none;
    }

    .site-dialog--welcome .dialog-content,
    .dialog-content {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body::before,
    .brand img {
        animation: none;
    }
}

@media print {
    body {
        color: #111;
        background: #fff;
    }

    body::before,
    body::after,
    .site-header,
    .floating-contact,
    .site-footer,
    .button {
        display: none !important;
    }

    .glass-card {
        color: #111;
        border: 1px solid #bbb;
        background: #fff;
        box-shadow: none;
    }
}
