/* =====================================================================
   سرای آرامش — گردونه شانس
   Flow: details → preloader → wheel → result → "not satisfied?"
   Palette: brand greens from the logo + wheel colours from gardoone.gif
   ===================================================================== */
@font-face {
    font-family: "Estedad";
    src: url("../fonts/Estedad-arabic-wght.woff2") format("woff2-variations"),
         url("../fonts/Estedad-arabic-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
    font-family: "Estedad";
    src: url("../fonts/Estedad-latin-wght.woff2") format("woff2-variations"),
         url("../fonts/Estedad-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
    --brand: #0A9678;
    --brand-600: #087F66;
    --brand-light: #5DD6A8;
    --brand-deep: #063C38;
    --brand-night: #042A27;
    --ink: #10302C;
    --ink-soft: #4A6360;
    --orange: #F25A0C;
    --orange-600: #D84A04;
    --plum: #8A2B57;
    --gold: #FFC93C;
    --pointer: #2B6CF6;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --danger: #C62828;
    --danger-bg: #FDECEC;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(4, 42, 39, .12);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .35);
    --focus: 0 0 0 3px #fff, 0 0 0 6px var(--pointer);
    --font: "Estedad", Tahoma, "Segoe UI", sans-serif;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    font-family: var(--font); font-size: 16px; line-height: 1.85; font-weight: 400;
    color: #fff; overflow-x: hidden;
    background:
        radial-gradient(1100px 620px at 80% 20%, rgba(242,90,12,.18), transparent 60%),
        radial-gradient(900px 700px at 5% 0%, rgba(93,214,168,.16), transparent 60%),
        linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-night) 100%) fixed;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.45; margin: 0 0 .4em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 520px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* ---------------- Header ---------------- */
.site-header { padding-block: 14px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: clamp(118px, 15vw, 160px); height: auto; }
.sound-toggle {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.sound-toggle:hover { background: rgba(255,255,255,.16); }
.sound-toggle svg { width: 22px; height: 22px; }
.sound-toggle .ico-off { display: none; }
.sound-toggle[aria-pressed="false"] .ico-on { display: none; }
.sound-toggle[aria-pressed="false"] .ico-off { display: block; }

/* ---------------- Screens ---------------- */
.app { flex: 1; display: flex; flex-direction: column; }
.screen { flex: 1; padding: clamp(8px, 3vw, 28px) 0 clamp(32px, 5vw, 56px); }
.screen.is-entering { animation: screen-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- Card & form ---------------- */
.card { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(20px, 4vw, 32px); }
.enter-card { text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
    font-size: 13.5px; font-weight: 600; color: var(--orange-600);
    background: rgba(242,90,12,.08); padding: 3px 14px; border-radius: 999px;
}
.eyebrow svg { width: 17px; height: 17px; }
.enter-card .enter-title { font-size: clamp(23px, 6vw, 28px); font-weight: 800; color: var(--ink); margin-bottom: 2px; padding-inline: 40px; }
.enter-card .enter-title span { color: var(--brand); }
.enter-modal { width: min(440px, calc(100vw - 24px)); }
.enter-modal .modal-box { padding-top: 26px; }
.wheel-heading { text-align: center; font-size: clamp(24px, 5vw, 34px); margin-bottom: 12px; }
.wheel-heading span { color: var(--brand-light); }
.guest-bar { justify-content: center; text-align: center; padding: 8px 8px 8px 18px; }
.guest-bar p { font-size: 15px; color: rgba(255,255,255,.88); }
.btn-enter { min-height: 42px; padding: 4px 18px; font-size: 15px; }
.enter-lead { color: var(--ink-soft); margin-bottom: 20px; }
.enter-form { text-align: right; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select {
    width: 100%; min-height: 54px; padding: 10px 16px;
    border: 1.5px solid #CFDCD9; border-radius: var(--radius-sm); background: #FBFDFC; color: var(--ink);
    font-size: 16.5px; font-weight: 500;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #9AACA9; font-weight: 400; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(10,150,120,.15); }
.field input[dir="ltr"] { text-align: left; letter-spacing: 1px; }
.field input[dir="ltr"]::placeholder { text-align: right; letter-spacing: 0; direction: ltr; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-left: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
    background-position: 20px 50%, 26px 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: var(--danger-bg); }
.field-hint { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.7; }
.field-error { font-size: 14px; color: var(--danger); font-weight: 600; margin: 6px 0 0; line-height: 1.7; }
.field-error:empty { display: none; }

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 10px 22px; border-radius: 999px; border: 0; cursor: pointer;
    font-weight: 700; font-size: 16px; text-decoration: none; color: inherit;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn small { font-weight: 500; opacity: .9; font-size: 14px; }
.btn-primary { background: linear-gradient(180deg, #FF7A2F, var(--orange) 55%, var(--orange-600)); color: #fff; box-shadow: 0 8px 22px rgba(242,90,12,.38), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 12px 28px rgba(242,90,12,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-gold { background: linear-gradient(180deg, #FFD866, var(--gold)); color: #3B1426; box-shadow: 0 8px 22px rgba(255,201,60,.35); }
.btn-gold:hover:not(:disabled) { background: #FFD45F; }
.btn-ghost { background: #EEF4F3; color: var(--ink); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-link { background: none; color: var(--brand-light); text-decoration: underline; text-underline-offset: 5px; min-height: 44px; padding-inline: 8px; font-weight: 600; }
.btn-xl { width: 100%; min-height: 60px; font-size: 18px; }
.btn-block { width: 100%; min-height: 54px; }
.btn .spinner { display: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { font-size: 15px; font-weight: 600; margin: 12px 0 0; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); background: var(--danger-bg); padding: 10px 12px; border-radius: 10px; }
.form-status.is-info { color: var(--brand-light); }
.card .form-status.is-info { color: var(--brand-600); }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 15px; text-align: right; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: #E7F6F2; color: var(--brand-600); }
form[inert] { opacity: .55; }

.limit-box { text-align: right; border-top: 1px dashed #D9E3E1; margin-top: 8px; padding-top: 16px; }
.limit-title { font-weight: 700; color: var(--danger); }
.result-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.result-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FFF4E6; border-radius: 12px; padding: 10px 14px; }
.result-list .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; flex: none; }

/* ---------------- Preloader ---------------- */
.preloader {
    position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 45%, #0B5A52, var(--brand-night) 70%);
    animation: fade-in .25s ease-out;
}
.preloader.is-leaving { animation: fade-out .35s ease-in forwards; }
.preloader-inner { text-align: center; }
.preloader-wheel {
    width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; position: relative;
    background: conic-gradient(var(--orange) 0 45deg, #FFE4CC 0 90deg, var(--plum) 0 135deg, var(--brand) 0 180deg,
                               var(--orange) 0 225deg, #FFE4CC 0 270deg, var(--brand) 0 315deg, var(--plum) 0 360deg);
    border: 6px solid var(--gold); box-shadow: 0 0 0 6px rgba(255,201,60,.25), 0 0 40px rgba(255,201,60,.35);
    animation: spin 1.1s cubic-bezier(.5, .1, .5, .9) infinite;
}
.preloader-wheel span { position: absolute; inset: 36%; border-radius: 50%; background: #fff; }
.preloader-text { font-weight: 600; font-size: 17px; }
.preloader-bar { width: 200px; height: 6px; margin: 0 auto; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--gold); animation: bar 1.2s ease-in-out infinite; }
@keyframes bar { 0% { transform: translateX(160%); } 100% { transform: translateX(-260%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------------- Wheel screen ---------------- */
.player-bar {
    display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px; padding: 6px 8px 6px 20px; max-width: 620px; margin: 0 auto 18px;
}
.player-bar p { margin: 0; }
.player-hello { font-weight: 500; }
.player-chances { font-size: 14.5px; color: rgba(255,255,255,.8); margin-inline-start: auto !important; }
.player-chances strong { color: var(--gold); font-size: 17px; }
.btn-exit { min-height: 40px; padding: 4px 16px; font-size: 14.5px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-exit:hover { background: rgba(255,255,255,.2); }

.wheel-wrap { display: flex; flex-direction: column; align-items: center; }
.wheel {
    position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
    user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.wheel-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wheel-rotor {
    position: absolute; inset: 10.55%; border-radius: 50%; overflow: hidden;
    transform: rotate(0deg); will-change: transform; backface-visibility: hidden;
}
.wheel-svg { width: 100%; height: 100%; }
.seg-label { font-family: var(--font); }
.wheel-pointer {
    position: absolute; top: 2.4%; left: 50%; width: 9.4%; z-index: 3;
    transform: translateX(-50%); transform-origin: 50% 30%;
    filter: drop-shadow(0 0 6px rgba(43,108,246,.9)) drop-shadow(0 4px 5px rgba(0,0,0,.45));
}
.wheel-pointer.tick { animation: pointer-tick .14s ease-out; }
@keyframes pointer-tick { 0% { transform: translateX(-50%) rotate(0); } 35% { transform: translateX(-50%) rotate(-16deg); } 100% { transform: translateX(-50%) rotate(0); } }
.wheel-hub {
    position: absolute; z-index: 2; top: 50%; left: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%);
    border-radius: 50%; border: 5px solid #fff; cursor: pointer; color: #fff;
    background: radial-gradient(circle at 35% 30%, #19C29C, var(--brand) 55%, var(--brand-600));
    box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 -4px 10px rgba(0,0,0,.2);
    font-weight: 800; font-size: clamp(13px, 2.6vw, 19px); padding: 0;
}
.wheel-hub:disabled { cursor: default; }
.wheel.is-spinning .wheel-hub { pointer-events: none; }
.wheel.is-ready .wheel-hub { animation: hub-pulse 2.4s ease-in-out infinite; }
@keyframes hub-pulse { 0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 rgba(93,214,168,.6); } 50% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 14px rgba(93,214,168,0); } }
.wheel.is-won .seg:not(.is-winner) { opacity: .5; transition: opacity .4s; }
.spin-btn { width: min(100%, 360px); margin-top: 18px; }

.guide { max-width: 860px; margin: clamp(32px, 5vw, 48px) auto 0; text-align: center; }
.guide h2 { font-size: clamp(19px, 3vw, 23px); margin-bottom: 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: right; }
.step { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; padding: 16px; }
.step h3 { font-size: 16px; margin-bottom: 2px; }
.step p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.8); line-height: 1.8; }
.step strong { color: var(--gold); font-weight: 700; }
.step-num { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-deep); font-weight: 800; }

/* ---------------- After-spin screen ---------------- */
.after-prize { text-align: center; margin-bottom: 18px; }
.after-prize-label { margin: 0; color: rgba(255,255,255,.75); font-size: 14.5px; }
.after-prize-name { font-size: clamp(20px, 5vw, 26px); font-weight: 800; color: var(--gold); margin: 0 0 2px; line-height: 1.6; }
.unhappy-card {
    position: relative; overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 6px rgba(255,201,60,.18), var(--shadow-lg);
    animation: glow 2.6s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 6px rgba(255,201,60,.18), var(--shadow-lg); } 50% { box-shadow: 0 0 0 12px rgba(255,201,60,.08), var(--shadow-lg); } }
.unhappy-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.unhappy-emoji { font-size: 46px; line-height: 1; flex: none; }
.unhappy-head h2 { font-size: clamp(21px, 5vw, 25px); color: var(--plum); margin-bottom: 2px; }
.unhappy-head p { margin: 0; color: var(--ink-soft); }
.locked-mobile { font-size: 14px; color: var(--ink-soft); margin: -4px 0 14px; }
.locked-mobile strong { color: var(--ink); letter-spacing: 1px; }
.request-success { text-align: center; padding: 8px 0 0; }
.success-check { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.success-title { font-size: 18px; font-weight: 800; color: var(--brand-600); margin-bottom: 4px; }
.request-success p:last-child { color: var(--ink-soft); margin: 0; }
.after-actions { display: grid; gap: 10px; margin-top: 18px; }

/* ---------------- Footer ---------------- */
.site-footer { padding: 22px 0 18px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.12); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-title { margin: 0; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.85); }
.copyright { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.55); }

.social-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 16px; border-radius: 14px;
    text-decoration: none; color: #fff; font-weight: 700; transition: transform .15s, filter .2s;
}
.social-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.social-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.2); flex: none; }
.social-icon svg { width: 19px; height: 19px; }
.social-text { display: flex; flex-direction: column; line-height: 1.4; }
.social-text small { display: none; }
.social-eitaa { background: linear-gradient(135deg, #F7931E, #E4701A); }
.social-telegram { background: linear-gradient(135deg, #2AABEE, #1E8BC3); }
.social-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.social-row { grid-template-columns: repeat(3, minmax(0, 150px)); justify-content: center; }
.social-modal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.social-modal .social-btn { flex-direction: column; gap: 4px; padding: 10px 6px; font-size: 14px; }

/* ---------------- Modal ---------------- */
.modal {
    border: 0; padding: 0; background: transparent; color: var(--ink);
    width: min(460px, calc(100vw - 24px)); max-width: none;
    max-height: calc(100dvh - 24px); overflow: visible;
}
.modal::backdrop { background: rgba(4, 30, 28, .75); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] .modal-box { animation: pop-in .38s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.modal-box {
    position: relative; z-index: 1; background: #fff; border-radius: 24px; padding: 22px 18px 18px;
    max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: #F1F5F4; color: var(--ink); cursor: pointer; display: grid; place-items: center; z-index: 2;
}
.modal-close svg { width: 22px; height: 22px; }
.modal h2 { font-size: 21px; text-align: center; padding-inline: 40px; }
.modal-next { margin-top: 14px; font-size: 17px; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; }
.result-head { text-align: center; }
.result-emoji { font-size: 52px; line-height: 1; margin-bottom: 4px; animation: bounce 1s ease-in-out .3s 2; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px) rotate(-8deg); } }
.ticket { margin: 10px 0 14px; padding: 16px 14px 10px; border-radius: 18px; text-align: center; background: linear-gradient(160deg, #FFF4E6, #FFE4CC); border: 2px dashed rgba(242,90,12,.45); }
.ticket-label { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--orange-600); }
.ticket-prize { font-size: clamp(20px, 5vw, 25px); font-weight: 800; line-height: 1.6; margin: 2px 0 10px; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 0; font-size: 14px; text-align: right; }
.ticket-meta div { background: rgba(255,255,255,.7); border-radius: 10px; padding: 6px 10px; min-width: 0; }
.ticket-meta dt { font-size: 12px; color: var(--ink-soft); }
.ticket-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ticket-meta dd[dir="ltr"] { text-align: right; }
.ticket-meta .code { letter-spacing: 2px; color: var(--brand-600); }
.ticket-brand { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); }
.instruction { background: #E9F6F2; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; }
.instruction p { margin: 0; }
.instruction-title { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--brand-600); margin-bottom: 4px !important; }
.instruction-title svg { width: 20px; height: 20px; }
.result-modal.is-previous .result-emoji { animation: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    .steps { grid-template-columns: 1fr; }
    .player-bar { border-radius: 18px; padding: 10px 14px; }
}
@media (max-width: 425px) {
    body { font-size: 15.5px; }
    .wheel { width: 100%; }
    .player-hello { flex-basis: 100%; }
    .player-chances { margin-inline-start: 0 !important; }
    .btn-exit { margin-inline-start: auto; }
    .social-row { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .social-row .social-btn { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 13.5px; }
    .modal-box { padding: 20px 14px 14px; border-radius: 20px; }
    .result-emoji { font-size: 44px; }
    .unhappy-emoji { font-size: 38px; }
}
@media (max-width: 360px) {
    .ticket-meta { grid-template-columns: 1fr; }
    .social-modal { grid-template-columns: 1fr; }
    .social-modal .social-btn { flex-direction: row; min-height: 46px; }
}
@media (min-width: 1440px) {
    .wheel { width: min(100%, 600px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------- "Not happy?" button beside the wheel + request modal ---------------- */
.my-prizes { width: min(100%, 420px); margin-top: 14px; display: grid; gap: 10px; text-align: center; }
.my-prizes-line { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; }
.my-prizes-line strong { color: var(--gold); }
.my-prizes-line .btn-link { min-height: 36px; padding-inline: 6px; font-size: 14.5px; }
.btn-unhappy {
    width: 100%; min-height: 56px; font-size: 17px;
    background: linear-gradient(135deg, #A3346A, var(--plum) 55%, #5B1F3F); color: #fff;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(255,201,60,.22), 0 10px 24px rgba(0,0,0,.3);
    animation: unhappy-glow 2.6s ease-in-out infinite;
}
.btn-unhappy:hover:not(:disabled) { filter: brightness(1.08); }
@keyframes unhappy-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(255,201,60,.22), 0 10px 24px rgba(0,0,0,.3); } 50% { box-shadow: 0 0 0 9px rgba(255,201,60,.06), 0 10px 24px rgba(0,0,0,.3); } }
.modal-actions { display: grid; gap: 8px; margin-top: 14px; }
.request-modal .unhappy-head { padding-inline-end: 34px; }
.spins-left { background: #FFF4E6; border: 2px dashed rgba(242,90,12,.45); border-radius: 16px; padding: 14px; text-align: center; }
.spins-left-title { font-size: 17px; font-weight: 800; color: var(--orange-600); margin-bottom: 6px; }
.spins-left p:not(.spins-left-title) { color: var(--ink-soft); font-size: 14.5px; }
.request-modal .result-list li { font-size: 14.5px; }
.request-modal .result-list .tag-spin { font-size: 12.5px; color: var(--orange-600); font-weight: 700; white-space: nowrap; }
