/* TAKE 60 additional styles */
.t60-frame {
    border: 6px solid #EFC100 !important;
    box-sizing: border-box;
}

/* Email gate overlay */
.t60-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.t60-gate-modal {
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 22px;
    max-width: 400px;
    width: 100%;
    padding: 24px;
    text-align: center;
}

.t60-gate-modal h2 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    color: #000000;
}

.t60-gate-field {
    margin-bottom: 16px;
    text-align: left;
}

#JOYELY-email-input {
    width: 100%;
    min-height: 52px;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    background: #FFFFFF;
    color: #000000;
    box-sizing: border-box;
}

#JOYELY-email-input:focus {
    outline: 3px solid #EFC100;
    outline-offset: 2px;
}

.t60-gate-error {
    color: #000000;
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.t60-gate-submit {
    width: 100%;
    min-height: 56px;
    background: #EFC100;
    border: 2px solid #000000;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: #000000;
}

.t60-gate-submit:hover:not(:disabled),
.t60-gate-submit:focus:not(:disabled) {
    background: #ffd700;
}

.t60-gate-submit:disabled {
    background: #B8B8B8;
    border-color: #B8B8B8;
    cursor: not-allowed;
}

.t60-gate-note {
    margin: 16px 0 0 0;
    font-size: 0.9rem;
    color: #000000;
}

/* Hero block */
.t60-hero {
    margin-bottom: 24px;
    text-align: center;
    color: #000000;
}

.t60-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #000000;
}

.t60-hero-tagline {
    font-size: 1.125rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.t60-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    text-align: center;
}

.t60-hero-list li {
    font-size: 1.125rem;
    margin: 8px 0;
    font-weight: 700;
}

.t60-hero-question {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 24px 0 8px 0;
}

.t60-hero-answer {
    font-size: 1.125rem;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.t60-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ensure no horizontal scroll on narrow screens */
@media (max-width: 390px) {
    .t60-gate-modal,
    .t60-hero {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .t60-hero-title {
        font-size: 1.75rem;
    }
    
    .t60-hero-tagline,
    .t60-hero-list li,
    .t60-hero-question,
    .t60-hero-answer {
        font-size: 1rem;
    }
}

/* appended by operator from gate.js note (A6) */
.t60-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* === t60layout r3 === */
#JOYELY-app .card {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto auto auto;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 2px solid var(--black);
    border-radius: 22px;
    background: var(--white);
}
#JOYELY-app .slot-copy,
#JOYELY-app .slot-ack {
    overflow: visible;
    max-height: none;
}
#JOYELY-app .slot-ack {
    padding: 4px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#JOYELY-app #JOYELY-ack:empty {
    display: none;
}
#JOYELY-app .t60-hero {
    margin-bottom: 12px;
}
#JOYELY-app .t60-hero .t60-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #000000;
}
#JOYELY-app .t60-hero .t60-hero-tagline {
    font-size: 1.125rem;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
#JOYELY-app .t60-hero .t60-hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    text-align: center;
}
#JOYELY-app .t60-hero .t60-hero-list li {
    font-size: 1.125rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}
#JOYELY-app .t60-hero .t60-hero-question {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 12px 0 4px 0;
}
#JOYELY-app .t60-hero .t60-hero-answer {
    font-size: 1.125rem;
    margin: 0 0 16px 0;
    line-height: 1.3;
}
#JOYELY-app .t60-hero img.t60-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    width: auto;
    margin: 8px auto;
}
#JOYELY-app .slot-input {
    overflow: visible;
    max-height: none;
}
#JOYELY-app #JOYELY-card[data-screen="1"] #JOYELY-input {
    max-height: 312px;
    overflow-y: auto;
    scrollbar-width: auto;
    scrollbar-color: #000 #EFC100;
    position: relative;
}
#JOYELY-app #JOYELY-card[data-screen="1"] #JOYELY-input::after {
    content: "";
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
    display: block;
}
#JOYELY-app .slot-actions {
    justify-content: flex-start;
    margin-top: 8px;
}
@media (min-width: 481px) {
    #JOYELY-app {
        max-width: 430px;
    }
}
@media (max-width: 480px) {
    #JOYELY-app {
        max-width: none;
    }
}

/* === t60layout r4: hero replaces chair === */
#JOYELY-app #JOYELY-card[data-screen="1"] #JOYELY-copy > img.chair {
    display: none;
}
#JOYELY-app #JOYELY-card[data-screen="1"] .t60-hero {
    display: flex;
    flex-direction: column;
}
#JOYELY-app #JOYELY-card[data-screen="1"] .t60-hero img.t60-logo {
    order: -1;
    max-height: 170px;
    margin: 4px auto 10px;
}

/* Check marks for hero list */
.t60-hero-list .check-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #EFC100;
    color: #111;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.t60-hero-list .check-mark::before {
    content: "✓";
}

/* Ensure hero list items display inline with check marks */
.t60-hero-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

/* Emotion list scroll fix */
#JOYELY-card[data-screen="6"] .slot-input {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Keep the one-long-list rule: only emotion list scrolls */
#JOYELY-card[data-screen="6"] .emotion-options {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

/* Ensure Continue button is reachable */
#JOYELY-card[data-screen="6"] .slot-actions {
    margin-top: auto;
    padding-top: 16px;
}

/* iPhone frame adjustments (for when frame is added) */
@media (min-width: 700px) {
    .t60-hero-list .check-mark {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 8px;
    }
}

/* feel2: single emotion picker, no nested scroll (2026-10-02) */
#JOYELY-card[data-screen="6"] .slot-input { max-height: none; overflow: visible; }
.emotion-picker.feel2 { height: auto; gap: 12px; }
#JOYELY-card .emotion-picker.feel2 .emotion-options {
  flex: none; max-height: none; min-height: 0; overflow: visible;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.emotion-picker.feel2 .emotion-options .choice-list { display: contents; }
.emotion-picker.feel2 .emotion-options .choice {
  width: auto; margin: 0; padding: 10px 16px; min-height: 44px;
  border-radius: 999px; font-size: 16px;
}
.emotion-picker.feel2 .emotion-options p { width: 100%; margin: 4px 0; }
.emotion-picker.feel2 input[type="search"] {
  width: 100%; box-sizing: border-box; font-size: 16px; min-height: 44px;
}
.emotion-picker.feel2 .feel-more {
  align-self: flex-start; background: none; border: 0; padding: 8px 0;
  font-size: 16px; font-weight: 600; text-decoration: underline;
  color: inherit; cursor: pointer;
}
.emotion-picker.feel2 .feel-more[hidden] { display: none; }

/* === phone2: phone look on laptops/desktops (2026-10-02) === */
.pre-line { white-space: pre-line; }
@media (min-width: 700px) and (min-height: 560px) {
  html, body { height: 100%; }
  body {
    margin: 0;
    background: #ECECEC;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  #JOYELY-app {
    box-sizing: border-box;
    width: 390px;
    max-width: 390px;
    position: relative;
    height: min(844px, calc(100vh - 48px));
    margin: 0;
    padding-top: 46px;
    background: #FFFFFF;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-radius: 44px;
    box-shadow: 0 0 0 12px #111111, 0 0 0 13px #3A3A3A, 0 30px 70px rgba(0, 0, 0, 0.28);
    scrollbar-width: none;
  }
  #JOYELY-app::-webkit-scrollbar { display: none; }
  body::before {
    content: "";
    position: fixed;
    z-index: 50;
    left: 50%;
    top: calc(50vh - min(422px, 50vh - 24px) + 12px);
    width: 112px;
    height: 32px;
    margin-left: -56px;
    border-radius: 20px;
    background: #111111;
    pointer-events: none;
  }
}

/* === bailey1: stick figures, breathing circle, slider values (2026-10-02) === */
svg.stick { display: block; fill: none; stroke: #111111; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
svg.stick .head { fill: #FFFFFF; }
svg.stick .eye { fill: #111111; stroke: none; }
svg.stick .spark { fill: #EFC100; stroke: none; }
svg.stick .jitter, svg.stick .rain { stroke-width: 2; }
svg.stick .cloud { fill: #DDDDDD; stroke-width: 2; }
svg.stick .bubble { fill: #FFFFFF; stroke-width: 2.2; }
#JOYELY-copy svg.stick-think { width: 110px; height: 124px; margin: 0 auto 6px; }
.feel-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feel-figure {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 0; padding: 8px 2px 6px; min-height: 0; width: auto;
  background: #FFFFFF; border: 2px solid #111111; border-radius: 16px;
  font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer;
}
.feel-figure svg.stick { width: 46px; height: 64px; }
.feel-figure[aria-pressed="true"] { background: #EFC100; }
.feel-figure[aria-pressed="true"] svg.stick .head { fill: #FFF6CC; }
.feel-figure span { overflow-wrap: anywhere; }
.breath { display: flex; flex-direction: column; align-items: center; margin: 4px 0 14px; }
.breath-dot {
  width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle, #EFC100 0 46%, rgba(239, 193, 0, 0.35) 62%, rgba(239, 193, 0, 0) 72%);
  transform: scale(0.6); transition: transform 4s ease-in-out;
}
.breath-dot.in { transform: scale(1); }
.breath-cue { margin: 6px 0 0; font-weight: 600; color: #555555; min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) { .breath-dot { transition: none; } }
fieldset.measurement legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; }
fieldset.measurement .scale-value { font-size: 1.6rem; font-weight: 700; min-width: 1.5em; text-align: right; }

/* bailey1b: bigger figures, inline breathe chips */
.feel-figure svg.stick { width: 58px; height: 76px; }
.feel-figure { font-size: 14px; }
#JOYELY-card[data-screen="4"] .choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
#JOYELY-card[data-screen="4"] .choice-list .choice {
  width: auto; margin: 0; padding: 10px 16px; min-height: 44px; border-radius: 999px;
}
