:root {
    color-scheme: light;
    --ink: #1e1940;
    --muted: #5c5770;
    --purple: #5938d6;
    --purple-dark: #4224af;
    --line: #e8e3f2;
    --paper: #fbfaff;
    --radius: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
img { display: block; }
button, input, select, textarea { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
:focus-visible { outline: 3px solid #7457ee; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 66rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .7rem; background: white; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; padding-block: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.19rem; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.brand span span { color: var(--purple); }
.brand img { flex: none; }
.main-nav { order: 1; flex-basis: 100%; display: flex; justify-content: space-between; gap: .18rem; margin-top: .42rem; }
.main-nav a, .nav-tools { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .5rem; text-decoration: none; font-size: .875rem; font-weight: 680; color: var(--muted); white-space: nowrap; }
.main-nav a[aria-current="page"] { color: var(--purple); box-shadow: inset 0 -2px var(--purple); }
.main-nav a:hover, .nav-tools:hover { color: var(--purple); }
.nav-tools { margin-left: auto; gap: .42rem; color: var(--purple); }
.main { padding-block: 1.25rem 3.5rem; }
.home-hero {
    display: grid; gap: 1.45rem; padding: 1.35rem 1rem 1rem;
    border: 1px solid #e6defa; border-radius: 25px;
    background: radial-gradient(ellipse at 95% 0%, #e8ddff 0%, transparent 56%), #f1ebff;
}
.hero-copy { padding-inline: .3rem; align-self: center; }
h1 { font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.069em; font-weight: 850; text-wrap: balance; }
.hero-phrase { display: inline-block; }
.hero-accent { color: var(--purple); }
.hero-copy p, .page-intro p { margin-top: .8rem; color: var(--muted); max-width: 38ch; font-size: 1rem; }
.wheel-link { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; margin-top: .6rem; color: #443198; font-size: .92rem; font-weight: 720; text-decoration: none; }
.wheel-link:hover { text-decoration: underline; }
.hero-tool, .standalone-tool { min-width: 0; }
.tool-panel {
    min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
    padding: 1rem; box-shadow: 0 9px 30px rgb(51 27 107 / .07);
}
.oracle-tiles { display: flex; justify-content: center; align-items: center; gap: .8rem; margin: .4rem 0 1.25rem; min-height: 66px; }
.oracle-tiles span {
    display: grid; place-items: center; width: 3.8rem; aspect-ratio: 1;
    border: 1px solid #cbdcad; border-radius: 16px; background: #e3f7bd; color: #325820;
    font-size: .8rem; letter-spacing: .075em; font-weight: 850; transform: rotate(-10deg);
}
.oracle-tiles span + span { border-color: #ded4fc; background: #eee7ff; color: #5a39c5; transform: rotate(10deg); }
label, legend { display: block; font-size: .875rem; font-weight: 730; margin-bottom: .32rem; }
.optional { margin-left: .3rem; font-size: .76rem; font-weight: 520; color: var(--muted); }
input:not([type=checkbox]), select, textarea {
    display: block; width: 100%; min-height: 46px; padding: .6rem .68rem; color: var(--ink);
    background: #f9f7fe; border: 1px solid #ded7eb; border-radius: 10px; font-size: 1rem;
}
textarea { resize: vertical; }
.field, .bonus, .checks { margin-bottom: .85rem; }
.fields { display: flex; flex-wrap: wrap; gap: .55rem; }
.fields > div { flex: 1 1 4.5rem; min-width: 0; }
.checks { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .85rem; }
.check { display: inline-flex; align-items: center; gap: .42rem; min-height: 44px; margin: .25rem 0 0; font-weight: 600; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--purple); margin: 0; }
.bonus { margin-top: .7rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--line); font-size: .875rem; }
.bonus summary { min-height: 30px; align-content: center; font-weight: 700; }
.bonus .fields { margin-top: .48rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: .52rem;
    min-height: 46px; padding: .65rem .55rem; font-size: .875rem; font-weight: 730;
    background: var(--purple); color: #fff; border-radius: 10px; border: 1px solid transparent; text-decoration: none;
}
.actions .primary { flex: 1 1 8rem; }
.button:hover { background: var(--purple-dark); color: #fff; }
.button:disabled { opacity: .7; }
.button.secondary { flex: 1 1 8rem; background: #fff; color: var(--purple); border-color: #e1d7f8; }
.button.secondary:hover { background: #f4eeff; }
.tool-error { color: #a0203c; font-size: .875rem; margin-top: .65rem; }
.result:not(:has(output:not(:empty), p:not(:empty))) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.result { margin-top: .85rem; padding: .8rem; border-radius: 12px; background: #f5f1ff; text-align: center; overflow-wrap: anywhere; }
.result output { display: block; font-size: clamp(1.25rem, 5vw, 2.3rem); line-height: 1.2; font-weight: 790; color: var(--ink); }
.result output[data-tone=yes] { color: #365811; }
.result output[data-tone=no] { color: #6a39b0; }
.result-detail, .copy-status, .history { font-size: .85rem; color: var(--muted); }
.result-detail:not(:empty), .copy-status:not(:empty), .history, .share-url { margin-top: .45rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .25rem .65rem; }
.text-button { background: none; border: 0; color: var(--purple); padding: .35rem .15rem; min-height: 44px; font-size: .85rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.section { margin-top: 1.65rem; }
.section h2 { font-size: clamp(1.22rem, 2.5vw, 1.65rem); line-height: 1.2; letter-spacing: -.04em; margin-bottom: .75rem; }
.range-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.range-links a { display: inline-flex; align-items: center; gap: .32rem; justify-content: center; min-width: 50px; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: .45rem .75rem; font-weight: 700; font-size: .875rem; text-decoration: none; }
.range-links a:hover, .range-links a[aria-current="page"] { background: #eee7ff; color: var(--purple); border-color: #d8caf7; }
.tool-grid { display: grid; gap: .65rem; }
.tool-card { display: flex; align-items: center; gap: .72rem; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); padding: .65rem .72rem; min-height: 72px; text-decoration: none; }
.tool-card:hover { border-color: #c9b9f4; color: var(--purple-dark); box-shadow: 0 4px 16px rgb(51 27 107 / .06); }
.tool-icon { display: grid; flex: 0 0 40px; aspect-ratio: 1; place-items: center; border-radius: 12px; font-size: 1.2rem; font-weight: 760; }
.tool-icon.violet { background: #eee6ff; color: #5737c5; }
.tool-icon.mint { background: #e5f2ca; color: #456622; }
.tool-icon.peach { background: #faeadc; color: #8a472a; }
.tool-icon.blue { background: #e5edff; color: #315ca3; }
.card-copy { display: grid; min-width: 0; }
.card-copy strong { font-size: .91rem; line-height: 1.25; }
.card-copy > span { font-size: .81rem; color: var(--muted); margin-top: .08rem; }
.card-arrow { margin-left: auto; color: var(--purple); font-size: .9rem; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .8rem; margin-bottom: .7rem; }
.breadcrumb a { padding-block: .32rem; }
.tool-page { display: grid; gap: 1.15rem; }
.page-intro { align-self: start; }
.page-intro h1 { font-size: clamp(2rem, 4.4vw, 3.7rem); }
.page-intro .button { margin-top: .9rem; }
.standalone-tool .tool-panel { border-color: #e0d6f7; }
.help { max-width: 66ch; padding: 1rem 1.12rem; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.help p { font-size: .94rem; color: var(--muted); }
.help p + p { margin-top: .5rem; }
.range-graphic { display: flex; justify-content: center; align-items: center; gap: .65rem; padding: .55rem 0; color: #6f54c5; }
.range-graphic span:first-child, .range-graphic span:last-child {
    display: grid; place-items: center; width: 3rem; aspect-ratio: 1;
    background: #eee7ff; border-radius: 11px; font-size: 1.3rem; font-weight: 760;
}
.wheel-shell { position: relative; width: min(100%, 11rem); margin: .45rem auto 1rem; }
.wheel-disc {
    display: grid; position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 5px solid #f3efff;
    background: conic-gradient(#d8efa8 0 50%, #e1d3fc 50% 100%);
    transition: transform 1.1s cubic-bezier(.17,.64,.26,1);
}
.wheel-disc span { position: absolute; top: 43%; right: 10%; color: #304b1c; font-weight: 820; font-size: .82rem; }
.wheel-disc span + span { right: auto; left: 12%; color: #4d3092; }
.wheel-disc i { display: grid; place-items: center; position: absolute; inset: 40%; background: #fff; border-radius: 50%; color: var(--purple); font-style: normal; }
.wheel-affirmation { background: conic-gradient(#dfd0fc 0 60deg, #dceea8 60deg 120deg, #ffd9b6 120deg 180deg, #ceddfe 180deg 240deg, #f9d0e4 240deg 300deg, #d4efed 300deg); }
.wheel-pointer { position: absolute; top: -5px; left: calc(50% - 8px); z-index: 1; width: 0; height: 0; border: 8px solid transparent; border-top: 14px solid #392284; }
.color-swatch { aspect-ratio: 3; border-radius: 12px; background: #b29af3; border: 1px solid #33226622; }
.ad { min-height: 100px; margin-block: 1.25rem; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; padding-block: 1rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer-inner nav a { font-size: .85rem; padding-block: .5rem; color: var(--muted); }
.embed-shell { width: min(100% - 1rem, 28rem); margin: .5rem auto; }
.embed-shell h1 { font-size: 1.3rem; margin-bottom: .55rem; letter-spacing: -.035em; }
.embed-shell .tool-panel { padding: .65rem; }
.embed-credit { display: inline-block; font-size: .75rem; padding-block: .3rem; }
.widget-preview { display: grid; gap: .6rem; }
.widget-preview iframe { background: var(--paper); width: 100%; max-width: 100%; height: 305px; border: 1px solid var(--line); border-radius: 11px; }
.embed-code .button { margin-top: .5rem; }
@media (min-width: 34rem) {
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-copy p, .page-intro p { font-size: 1.08rem; }
}
@media (min-width: 46rem) {
    .wrap { width: min(100% - 3rem, 66rem); }
    .header-inner { flex-wrap: nowrap; padding-block: .75rem; }
    .main-nav { order: 0; flex-basis: auto; justify-content: start; gap: .75rem; margin: 0 auto 0 1rem; }
    .nav-tools { margin-left: 0; }
    .main { padding-top: 2.2rem; }
    .home-hero, .tool-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); }
    .home-hero { padding: clamp(1.5rem, 4vw, 3rem); }
    .tool-panel { padding: 1.25rem; }
    .oracle-tiles { margin-block: .7rem 1.35rem; }
    .oracle-tiles span { width: 4.45rem; }
    .section { margin-top: 2.15rem; }
    .footer-inner { justify-content: space-between; }
}
@media (min-width: 61rem) {
    .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
