.s24-wish-oracle {
    --wo-gold: #f1d6a8;
    box-sizing: border-box;
    width: min(100%, 900px);
    margin: 24px auto 36px;
    padding: clamp(11px, 4vw, 32px);
    border: 1px solid #b5bf8065;
    border-radius: 22px;
    background: radial-gradient(ellipse at 50% 50%, #25463c, #241d33 74%);
    color: #f4e8e8;
    text-align: center;
}
.s24-wish-oracle [hidden] { display: none !important; }
.s24-wish-oracle h2, .s24-wish-oracle h3 { color: var(--wo-gold); }
.s24-wo-header h2 { font: 650 clamp(24px, 4vw, 35px)/1.2 Georgia, serif; margin: 0 0 12px; }
.s24-wo-header p { margin: 0 auto 10px; max-width: 560px; }
.s24-wo-header a { display: inline-flex; align-items: center; min-height: 44px; color: #d4e3ac; text-decoration: underline; }
.s24-wo-topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-width: 620px;
    margin: 20px auto 8px;
}
.s24-wo-topics button, .s24-wo-actions button {
    color: #f4e8e8;
    background: #31283a;
    border: 1px solid #ceba8a85;
    border-radius: 11px;
    font: inherit;
    cursor: pointer;
    min-height: 44px;
}
.s24-wo-topics button { padding: 6px; min-height: 62px; font-size: 14px; overflow-wrap: anywhere; }
.s24-wo-topics span { display: block; color: var(--wo-gold); font-size: 20px; }
.s24-wo-topics [aria-pressed="true"] { background: #426044; border-color: var(--wo-gold); }
.s24-wo-topics button:disabled { opacity: .76; cursor: default; }
.s24-wo-stage {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: 470/494;
    margin: 0 auto;
    background: radial-gradient(ellipse at 50% 39%, #c8ebb02d, #1a274600 66%);
}
.s24-wo-tree { display: block; width: 100%; height: 100%; }
.s24-wo-apple {
    position: absolute;
    left: var(--wo-x);
    top: var(--wo-y);
    transform: translate(-50%, -50%);
    width: clamp(44px, 12%, 58px);
    aspect-ratio: 1;
    padding: 3px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.s24-wo-apple svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 4px #131322aa); }
.s24-wo-apple:hover:not(:disabled) svg { filter: drop-shadow(0 0 7px #ffd788); }
.s24-wo-apple[data-selected="true"] { z-index: 1; outline: 2px solid var(--wo-gold); background: #ffe5a72e; }
.s24-wish-oracle[data-state="revealing"] .s24-wo-apple[data-selected="true"] svg { animation: s24-wo-open 420ms ease-out; }
.s24-wish-oracle[data-state="result"] .s24-wo-apple:not([data-selected]) { opacity: .48; }
.s24-wish-oracle :is(button, a):focus-visible { outline: 2px solid var(--wo-gold); outline-offset: 3px; }
.s24-wo-status { margin: 8px auto 12px; min-height: 24px; color: #dce7cc; }
.s24-wo-result {
    box-sizing: border-box;
    max-width: 620px;
    margin: 16px auto 0;
    padding: clamp(12px, 3vw, 22px);
    border: 1px solid #c5ab757f;
    border-radius: 15px;
    background: #20192d;
}
.s24-wo-result h3 { margin: 0 0 8px; }
.s24-wo-result p { margin: 8px auto; max-width: 500px; overflow-wrap: anywhere; }
.s24-wo-result [data-wo-tip] { color: #dce7cc; }
.s24-wo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 15px; }
.s24-wo-actions button, .s24-wo-primary { box-sizing: border-box; min-height: 44px; padding: 9px 12px; }
.s24-wo-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    color: #172616 !important;
    background: #dbdaa1;
    font-weight: 750;
    text-decoration: none;
}
@keyframes s24-wo-open { 40% { transform: scale(1.17) rotate(-7deg); } }
@media (max-width: 600px) {
    .s24-wo-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s24-wo-actions > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .s24-wish-oracle .s24-wo-apple svg { animation: none !important; }
}
