/* "Surprise me" on the idea screen (views/partials/idea-surprise.php, idea-bank.js) */
html:not(.js) .idea-surprise { display: none; }
/* With scripts on, "Surprise me" replaces the three fixed examples (they stay as the fallback without scripts). */
.js .idea-starters > .starter, .js .idea-starters > .idea-starters-label, .js .try-chips > .starter { display: none; }
.idea-surprise { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; }
/* The size chips only appear once an idea has been given: one line and one button before that. */
.idea-surprise:not(.is-used) .surprise-sizes { display: none; }
.idea-surprise .surprise-note { order: 2; }
.idea-surprise .surprise-sizes { order: 3; width: 100%; }
.surprise-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 20px 9px 16px; overflow: hidden;
  border: 0; border-radius: 999px; cursor: pointer; color: var(--aura-color-brand-on-solid); font: 700 15px var(--aura-font-family-display);
  background: linear-gradient(120deg, var(--aura-color-brand-solid) 0%, var(--aura-color-brand-solid) 45%, var(--md-rose) 100%); background-size: 180% 100%;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--aura-color-brand-solid) 90%, transparent); transition: transform .15s ease, box-shadow .15s ease, background-position .5s ease;
}
.surprise-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: surprise-shine 3.6s ease-in-out infinite; }
.surprise-btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 26px -12px rgba(143, 91, 255, .95); }
.surprise-btn:active { transform: translateY(0) scale(.98); }
.surprise-btn:focus-visible { outline: 3px solid var(--aura-color-focus-ring); outline-offset: 3px; }
.surprise-dice { flex: none; }
.surprise-btn.is-rolling .surprise-dice { animation: surprise-roll .5s ease; }
.surprise-sizes { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.surprise-size { min-height: 32px; padding: 4px 12px; border: 1px solid var(--aura-color-border-strong); border-radius: 999px; background: transparent; color: var(--aura-color-text-muted); font: 600 13px var(--aura-font-family-body); cursor: pointer; transition: border-color .15s, color .15s, background-color .15s; }
.surprise-size:hover { border-color: var(--aura-color-brand-fg); color: var(--aura-color-brand-fg); }
.surprise-size[aria-pressed="true"] { border-color: var(--aura-color-brand-fg); background: var(--aura-color-brand-subtle); color: var(--aura-color-brand-fg); }
.surprise-note { width: 100%; margin: 2px 0 0; font-size: 13px; color: var(--aura-color-text-muted); }
.surprise-note[hidden] { display: none; }
.is-surprised { animation: surprise-pop .5s ease; }
@keyframes surprise-shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
@keyframes surprise-roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.25); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes surprise-pop { 0% { box-shadow: 0 0 0 0 rgba(143, 91, 255, .45); } 100% { box-shadow: 0 0 0 14px rgba(143, 91, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .surprise-btn::after, .surprise-btn.is-rolling .surprise-dice, .is-surprised { animation: none; } .surprise-btn { transition: none; } }

/* Home page idea box: "Surprise me" and the main button share one row in every language; the reassurance line sits below. */
.js .try-chips { display: none; }
.try-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 12px; }
.try-actions .idea-surprise { display: contents; }
html:not(.js) .try-actions .idea-surprise { display: none; }
.try-actions .surprise-btn { order: 1; min-height: 48px; }   /* same height as the main button beside it */
.try-actions > .btn { order: 2; margin-left: auto; }
.try-actions .surprise-note { order: 3; width: 100%; margin: 0; }
.try-actions .surprise-sizes { order: 4; width: 100%; }
.try-hint { display: flex; align-items: center; gap: 6px; margin: 0; }
.try-hint .icon { flex: none; width: 15px; height: 15px; color: var(--aura-color-status-healthy-fg); }
@media (max-width: 520px) {
  .try-actions .surprise-btn, .try-actions > .btn { width: 100%; justify-content: center; margin-left: 0; }
}

/* Deck look: "Surprise me" is the playful second choice, so it is a charcoal pill; the orange stays with the main action. */
.surprise-btn { background: var(--nav-active-bg); color: var(--nav-active-fg); box-shadow: none; }
.surprise-btn:hover { box-shadow: none; opacity: .9; }
.surprise-btn .surprise-dice { color: var(--aura-color-brand-solid); }
.surprise-size:hover, .surprise-size[aria-pressed="true"] { border-color: var(--aura-color-brand-solid); }
