/* ═══════════════════════════════════════════════
   PROJECT:  HTM Mystery Wheel (heavenlytouchmaids.com)
   FILE:     assets/css/htm-mystery-wheel.css
   VERSION:  v1.00
   UPDATED:  2026-10-09 02:13 PM CT
   CHANGES:  Initial build.
   ═══════════════════════════════════════════════ */

/* Colours: brand blue #1853B9, deep blue #0F2F6B (text / focus), light blue #E8F1FF,
   brand green #33A029 (borders only), dark green #1F5E1A (text on light green #EAF7E8),
   pointer #ca4a1f. All text is 16px or larger. No italics anywhere. */

.htm-mw {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 0 16px;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    font-style: normal;
}

.htm-mw * {
    font-style: normal;
}

.htm-mw-title {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 .5rem;
    color: #0F2F6B;
}

.htm-mw-intro {
    font-size: 18px;
    margin: 0 0 1.25rem;
}

/* Wheel */
.htm-mw-wheel-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.25rem;
}

.htm-mw-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 38px solid #ca4a1f;
    z-index: 2;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}

.htm-mw-wheel {
    display: block;
    width: 100%;
    height: auto;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    will-change: transform;
}

.htm-mw-slice-text {
    font-family: inherit;
    font-weight: 700;
    font-size: 22px;      /* 22 SVG units; at the narrowest phone width (288px wheel) this renders at 17.6px */
    font-style: normal;
}

/* Reduced motion: never animate the wheel */
@media (prefers-reduced-motion: reduce) {
    .htm-mw .htm-mw-wheel {
        transition: none !important;
    }
}

/* Spin button */
.htm-mw-actions {
    margin: 0 0 .75rem;
}

.htm-mw-spin {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    background: #1853B9;
    border: 0;
    border-radius: 8px;
    padding: 14px 36px;
    min-height: 48px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease;
}

.htm-mw-spin:hover {
    background: #0F2F6B;
    color: #FFFFFF;
}

.htm-mw-spin:focus {
    outline: 3px solid #0F2F6B;
    outline-offset: 3px;
}

.htm-mw-spin:focus:not(:focus-visible) {
    outline: none;
}

.htm-mw-spin:focus-visible {
    outline: 3px solid #0F2F6B;
    outline-offset: 3px;
}

.htm-mw-spin[disabled] {
    background: #5F6368;
    color: #FFFFFF;
    cursor: not-allowed;
}

/* Live region */
.htm-mw-live {
    min-height: 1.5em;
    font-size: 18px;
    font-weight: 600;
    color: #0F2F6B;
    margin: 0 0 1rem;
}

/* Result card */
.htm-mw-result {
    border: 3px solid #33A029;
    background: #EAF7E8;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.htm-mw-result[hidden] {
    display: none;
}

.htm-mw-result:focus {
    outline: 3px solid #1F5E1A;
    outline-offset: 3px;
}

.htm-mw-result-title {
    font-size: 22px;
    line-height: 1.25;
    color: #1F5E1A;
    margin: 0 0 .5rem;
}

.htm-mw-result-label {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #0F2F6B;
    margin: 0 0 .5rem;
}

.htm-mw-result-note {
    font-size: 18px;
    margin: 0;
    color: #1B1B1B;
}

/* Visually hidden, still read by screen readers */
.htm-mw-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
