/* assets/css/wheel.css — «Колесо путешествий».
   Палитра/геометрия — перенос референс-макета (см. wheel.js). */

.wheel-page { padding: 52px 0 90px; }
.wheel-page__head { max-width: 700px; margin-bottom: 34px; }
.wheel-page__eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.wheel-page__head h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.6px; margin: 8px 0 12px; }
.wheel-page__head p { font-size: 15px; color: var(--text-2); line-height: 1.6; }

.wheel-card { border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(28,26,23,.16); background: #fff; border: 1px solid #E9E3D9; position: relative; }
@media (min-width: 900px) { .wheel-card { display: grid; grid-template-columns: 300px 1fr; min-height: 600px; } }

/* ---- фильтры ---- */
.wheel-filters { background: #FBFAF8; padding: 28px 22px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid #ECE6DC; }
.wheel-filters__title { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.wheel-filters__hint { font-size: 12px; color: #9A938A; margin-top: 3px; }
.wheel-fgroup__label { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #9A938A; }
.wheel-fgroup__label span { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; }
.wheel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wheel-chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid #E4DED2; background: #fff; color: #3A352E; white-space: nowrap; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s; }
.wheel-chip:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(28,26,23,.1); }
.wheel-chip:not(:disabled):active { transform: scale(.96); }
.wheel-chip.is-on { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(194,65,12,.24); }
.wheel-chip:disabled { border-color: #ECE6DC; background: #F3EEE5; color: #C9C1B2; opacity: .6; cursor: not-allowed; }

/* ---- сцена колеса ---- */
.wheel-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; overflow: hidden; background: #1C1A17; min-height: 480px; }
.wheel-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(194,65,12,.16), transparent 60%); }
.wheel-wrap { position: relative; width: 320px; height: 320px; }
.wheel-pointer { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); z-index: 6; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid #EA6A2E; filter: drop-shadow(0 3px 6px rgba(234,106,46,.5)); }
.wheel-disc { will-change: transform; transform-origin: center center; width: 320px; height: 320px; border-radius: 50%; position: relative; overflow: hidden; box-shadow: 0 0 0 6px #1C1A17, 0 0 0 8px #34302A, 0 25px 60px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .wheel-disc { transition: none !important; } }
.wheel-sector { position: absolute; inset: 0; }
.wheel-sector__photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wheel-sector__tint { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .6; }
.wheel-sector__labelwrap { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.wheel-sector__label { margin-top: 25px; transition: opacity .25s; background: rgba(28,26,23,.55); border-radius: 9px; padding: 4px 8px; text-align: center; }
.wheel-sector__flag { font-size: 19px; line-height: 1; }
.wheel-sector__name { font-size: 9px; font-weight: 700; color: #fff; margin-top: 2px; white-space: nowrap; }
.wheel-hub { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F0894F, #C2410C 60%, #7C2D12); border: 3px solid #1C1A17; display: flex; align-items: center; justify-content: center; z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.4); color: #fff; }

.wheel-controls { display: flex; align-items: center; gap: 12px; margin-top: 26px; position: relative; z-index: 3; }
.wheel-mute { width: 42px; height: 42px; border-radius: 50%; background: #26231F; border: 1px solid #3A352E; color: #C9C1B5; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.wheel-mute:hover { transform: translateY(-2px); }
.wheel-mute::before { content: ''; width: 17px; height: 17px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E") center/contain no-repeat; }
.wheel-mute.is-muted::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M23 9l-6 6M17 9l6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M23 9l-6 6M17 9l6 6'/%3E%3C/svg%3E"); }
.wheel-spin { border: none; border-radius: 15px; padding: 15px 30px; font-family: var(--serif); font-weight: 600; font-size: 15px; cursor: pointer; background: var(--accent); color: #fff; animation: wheelGlow 2.4s ease-in-out infinite; transition: transform .15s, box-shadow .2s, filter .15s; }
.wheel-spin:hover:not(:disabled) { transform: translateY(-2px); }
.wheel-spin:active:not(:disabled) { transform: scale(.97); }
.wheel-spin:disabled { background: #3A352E; color: #7A7266; cursor: not-allowed; animation: none; }
@keyframes wheelGlow { 0%,100% { box-shadow: 0 10px 26px rgba(194,65,12,.32), 0 0 0 0 rgba(194,65,12,.35); } 50% { box-shadow: 0 10px 26px rgba(194,65,12,.32), 0 0 0 9px rgba(194,65,12,0); } }

/* ---- результат ---- */
.wheel-result { grid-column: 1 / -1; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px; z-index: 20; }
.wheel-result[hidden] { display: none !important; }
.wheel-result__confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wheel-result__card { animation: wheelCardReveal .6s cubic-bezier(.16,1,.3,1) both; width: 400px; max-width: 100%; border-radius: 24px; overflow: hidden; background: rgba(28,26,23,.76); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 70px rgba(0,0,0,.5); position: relative; }
@keyframes wheelCardReveal { from { clip-path: circle(0% at 50% 50%); opacity: 0; } to { clip-path: circle(75% at 50% 50%); opacity: 1; } }
@keyframes wheelFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wheel-result__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(28,26,23,.55); color: #F5F2EA; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.wheel-result__close:hover { background: rgba(28,26,23,.85); transform: scale(1.06); }
/* Часть фото — флаг страны (Wikipedia отдаёт его вместо пейзажа для многих
   стран): cover его обрежет/исказит, поэтому contain + тёмная подложка —
   флаг вписывается целиком, у пейзажных фото просто чуть уже заметны поля. */
.wheel-result__photo { height: 130px; background-size: contain; background-repeat: no-repeat; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; animation: wheelFadeUp .5s ease both; background-color: #2A2620; }
.wheel-result__photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,23,.1), rgba(28,26,23,.55)); }
.wheel-result__photo span { font-size: 52px; position: relative; }
.wheel-result__body { padding: 22px 24px 24px; }
.wheel-result__name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: #F5F2EA; animation: wheelFadeUp .5s ease both; animation-delay: 90ms; }
.wheel-result__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; animation: wheelFadeUp .5s ease both; animation-delay: 180ms; }
.wheel-result__tag { font-size: 11.5px; font-weight: 700; color: #F0B79A; background: rgba(194,65,12,.18); border: 1px solid rgba(234,106,46,.35); border-radius: 999px; padding: 4px 10px; }
.wheel-result__actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; animation: wheelFadeUp .5s ease both; animation-delay: 260ms; }
.wheel-result__cta { flex: 1; text-align: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; padding: 13px; border-radius: 12px; text-decoration: none; box-shadow: 0 8px 22px rgba(194,65,12,.32); }
.wheel-result__cta[hidden] { display: none !important; }
.wheel-result__respin { background: transparent; border: 1px solid #454138; color: #D9D3C7; border-radius: 12px; padding: 13px 16px; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.wheel-result__share { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: #26231F; border: 1px solid #3A352E; color: #D9D3C7; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wheel-result__share::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.5l6.8-3.9M8.6 13.5l6.8 3.9'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.5l6.8-3.9M8.6 13.5l6.8 3.9'/%3E%3C/svg%3E") center/contain no-repeat; }

@media (max-width: 640px) {
  .wheel-wrap, .wheel-disc { width: 260px; height: 260px; }
  .wheel-stage { min-height: 400px; padding: 22px; }
}
