/* ============================================
   INNER PAGES — shared styles
   ============================================ */

/* Page hero */
.page-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--pink-hot), transparent 60%);
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(40px);
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--gold), transparent 60%);
    opacity: 0.15;
    border-radius: 50%;
    filter: blur(60px);
}

.page-title {
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 0.95;
    margin: 0.5rem 0 1.5rem;
    color: white;
    text-shadow: 0 4px 0 var(--purple), 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
}

.page-sub {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.15rem;
    line-height: 1.6;
    position: relative;
}

.section-heading {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    text-shadow: 0 4px 0 var(--purple);
    margin-bottom: 3rem;
}

/* ============================================
   LEVELS PAGE
   ============================================ */

.stars-meter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--gold);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    color: var(--gold);
    font-family: var(--font-mono);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.star-icon {
    font-size: 1.2rem;
}

.stars-meter strong {
    font-size: 1.2rem;
}

.stars-meter span {
    color: var(--text-dim);
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}

.level-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(246, 185, 74, 0.12);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.level-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: top;
}

.level-row:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.level-row:hover::before {
    transform: scaleY(1);
}

.level-row-num {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: white;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.level-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.level-row h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.level-row-badge {
    padding: 4px 12px;
    border-radius: 50px;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.level-row.boss .level-row-badge {
    background: rgba(226, 91, 91, 0.2);
    color: var(--red);
}

.level-row-info p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.level-row-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.level-by {
    font-size: 0.85rem !important;
    color: var(--text-dim) !important;
    font-style: italic;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
}

.level-by strong {
    color: var(--gold);
    font-style: normal;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--bg-deep);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--gold-glow);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--gold-glow);
}

@media (max-width: 700px) {
    .level-row {
        grid-template-columns: auto 1fr;
        grid-template-areas: "num info" "btn btn";
    }
    .level-row-num { grid-area: num; width: 56px; height: 56px; font-size: 1.6rem; }
    .level-row-info { grid-area: info; }
    .level-row-action { grid-area: btn; justify-self: end; }
}

.coming-soon {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 28px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(255, 61, 138, 0.25);
}

.coming-soon-inner h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.coming-soon-inner h3 em {
    background: var(--gold);
    color: var(--bg-deep);
    padding: 2px 12px;
    font-style: normal;
    border-radius: 6px;
}

.coming-soon-inner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

/* ============================================
   ORIGIN STORY PAGE
   ============================================ */

.story-panels {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.story-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.story-panel.reverse {
    grid-template-columns: 1fr 1.4fr;
}

.story-panel.reverse .panel-content { order: 2; }
.story-panel.reverse .panel-art { order: 1; }

.panel-num {
    position: absolute;
    top: -2rem;
    left: 0;
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(246, 185, 74, 0.15);
    letter-spacing: 4px;
    z-index: 0;
}

.story-panel.reverse .panel-num { left: auto; right: 0; }

.panel-content {
    position: relative;
    z-index: 1;
}

.panel-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.panel-content p {
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.panel-content em {
    color: var(--pink-hot);
    font-weight: 600;
    font-style: italic;
}

.panel-content strong {
    color: var(--gold);
}

.panel-art {
    display: flex;
    justify-content: center;
}

.art-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.art-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(246, 185, 74, 0.4);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.art-circle.zap {
    animation: zapShake 0.8s ease-in-out infinite;
}

@keyframes zapShake {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    50% { transform: rotate(2deg) scale(1.04); }
}

@media (max-width: 768px) {
    .story-panel,
    .story-panel.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .story-panel.reverse .panel-content { order: 0; }
    .story-panel.reverse .panel-art { order: -1; }
    .art-circle { width: 200px; height: 200px; }
    .panel-num { font-size: 3.5rem; top: -1rem; }
}

.cartoon-tease {
    margin-top: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-mid), var(--purple));
    border: 2px solid var(--gold);
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 0 60px var(--gold-glow);
}

.cartoon-tease h3 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--gold);
    margin: 0.5rem 0 1rem;
    letter-spacing: 2px;
}

.cartoon-tease p {
    color: var(--text-soft);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   SUBMIT IDEA PAGE
   ============================================ */

.parent-gate {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid var(--gold);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 0 60px var(--gold-glow);
}

.gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: wave 2.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.parent-gate h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
}

.parent-gate p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.parent-gate strong {
    color: var(--gold);
}

.gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0 1.5rem;
}

.gate-fine {
    font-size: 0.85rem !important;
    color: var(--text-dim) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    font-style: italic;
}

.info-card {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(246, 185, 74, 0.2);
}

.info-card h3 {
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

/* The form */
.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.form-step {
    display: inline-block;
    background: rgba(246, 185, 74, 0.15);
    border: 1px solid var(--gold);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.form-intro h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 0 var(--purple);
}

.form-intro p {
    color: var(--text-soft);
}

.idea-form {
    max-width: 760px;
    margin: 0 auto;
}

.form-section-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(246, 185, 74, 0.15);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section-box.parent-box {
    border-color: rgba(255, 61, 138, 0.4);
    background: rgba(255, 61, 138, 0.05);
}

.form-section-box legend {
    background: var(--gold);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.form-section-box.parent-box legend {
    background: var(--pink-hot);
    color: white;
}

.parent-intro {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.field {
    margin-bottom: 1.5rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field label {
    display: block;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0, 0, 0, 0.6);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

.field select option {
    background: var(--bg-mid);
    color: white;
}

.hint {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.consent-checks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: background 0.2s;
}

.check:hover {
    background: rgba(255, 255, 255, 0.04);
}

.check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--pink-hot);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.check span {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.check em {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.check a {
    color: var(--gold);
    text-decoration: underline;
}

.submit-row {
    text-align: center;
    margin-top: 1rem;
}

.submit-btn {
    font-size: 1.1rem !important;
    padding: 1.1rem 2.5rem !important;
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
    .form-section-box { padding: 1.5rem 1.25rem; }
}

.success-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--gold), var(--pink-hot));
    border-radius: 28px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--bg-deep);
    box-shadow: 0 20px 60px var(--gold-glow);
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.success-card h2 {
    color: var(--bg-deep);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.success-card p {
    color: rgba(26, 11, 46, 0.9);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.success-cat {
    font-size: 3rem !important;
    margin: 1.5rem 0 !important;
}

.success-card .btn {
    margin-top: 1.5rem;
    background: var(--bg-deep);
    color: var(--gold);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
    align-items: stretch;
}

.contact-card-wrap {
    display: flex;
    flex-direction: column;
}

.contact-card-wrap .contact-card {
    flex: 1;
}

.contact-meta-below {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
    padding: 0 0.5rem;
}

.contact-meta-below a {
    color: var(--gold);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

.contact-card {
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(246, 185, 74, 0.15);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    transform: rotate(-4deg);
    transition: transform 0.3s;
}

.contact-card:hover .contact-icon {
    transform: rotate(6deg) scale(1.05);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-card > p {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.contact-meta {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.contact-meta a { color: var(--gold); }

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(246, 185, 74, 0.12);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border 0.2s;
}

.faq-item[open] {
    border-color: var(--gold);
}

.faq-item summary {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 1.5rem 1.2rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.faq-item a {
    color: var(--gold);
}

/* ============================================
   LEGAL PAGES (privacy / terms)
   ============================================ */

.legal-doc {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-soft);
}

.legal-doc h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin: 2.5rem 0 1rem;
}

.legal-doc h3 {
    color: var(--cream);
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.legal-doc p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-doc ul {
    margin: 0.5rem 0 1.5rem 1.5rem;
}

.legal-doc li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-doc a {
    color: var(--gold);
    text-decoration: underline;
}

.legal-doc strong {
    color: var(--cream);
}

.legal-tldr {
    background: linear-gradient(135deg, var(--pink-hot), var(--purple-light));
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 12px 40px rgba(255, 61, 138, 0.2);
}

.legal-tldr h3 {
    color: white !important;
    margin-top: 0 !important;
    font-family: var(--font-display);
    font-size: 1.4rem !important;
    letter-spacing: 1.5px;
    margin-bottom: 1rem !important;
}

.legal-tldr ul {
    margin: 0 0 0 1.5rem;
}

.legal-tldr li {
    color: rgba(255, 255, 255, 0.95);
}

.legal-tldr strong {
    color: var(--gold) !important;
}

.legal-tldr a {
    color: var(--gold) !important;
}

.legal-foot-note {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(246, 185, 74, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}

.legal-foot-note p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   FORM ERROR DISPLAY
   ============================================ */

.form-error {
    background: rgba(226, 91, 91, 0.15);
    border: 2px solid var(--red);
    color: #ffb8b8;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: left;
    animation: shake 0.4s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
