/* Illustrated preferences reuse the approved Home artwork. */
.rb-create-wizard-page {
  --wizard-paper:#fff7e9; --wizard-ink:#211815; --wizard-muted:#716052;
  --wizard-accent:#a71922; --wizard-coral:#fa8c70;
  --home-ink:var(--wizard-ink); --home-paper:var(--wizard-paper);
  background:var(--wizard-paper) url('/static/home-assets/story-paper-bg.png') center top/cover fixed;
  color:var(--wizard-ink);
}
html[data-rb-theme="light"] body.rb-create-wizard-page {
  background-color:var(--wizard-paper);
  background-image:linear-gradient(180deg,rgba(255,250,244,.12),rgba(255,250,244,.12)),url('/static/home-assets/story-paper-bg.png');
  background-position:center top,center top;
  background-size:auto,cover;
  background-repeat:no-repeat;
  background-attachment:fixed;
}
[data-rb-theme="dark"] .rb-create-wizard-page {
  --wizard-paper:#171313; --wizard-ink:#fff3de; --wizard-muted:#c6b6a4; --wizard-accent:#edac72;
  background-color:#171313;
  background-image:linear-gradient(#17131324,#17131324),url('/static/home-assets/cover-dark-texture.png');
  background-position:center,center top;
  background-size:auto,auto 100vh;
  background-repeat:no-repeat,repeat-x;
  background-attachment:fixed;
}
.rb-create-wizard-page .wrap { max-width:none; padding:0 0 40px; }
.rb-create-wizard-page .rb-create-header { min-height:84px; padding:12px clamp(18px,4vw,60px); margin:0; border:0; gap:22px; }
.rb-create-wizard-page .rb-create-logo svg { width:42px; height:60px; }
.rb-create-wizard-page .rb-create-header nav { margin-left:auto; }
.rb-create-wizard-page .rb-create-header .rb-create-cta { display:none; }
.rb-create-wizard-page .wrap > .card { width:min(1100px,calc(100% - 32px)); margin:28px auto; }
.rb-sr-only { position:absolute!important; width:1px!important; height:1px!important; overflow:hidden!important; clip-path:inset(50%); padding:0!important; border:0!important; white-space:nowrap; }
.rb-preferences { position:relative; isolation:isolate; overflow:hidden; }
.rb-preferences::before { content:""; position:absolute; z-index:-1; left:0; bottom:0; width:clamp(170px,25vw,370px); aspect-ratio:1; border-radius:50%; background:var(--wizard-coral); opacity:.72; transform:translate(-55%,50%); pointer-events:none; }
.rb-wizard { display:flex; flex-direction:column; min-height:calc(100svh - 84px); gap:0; margin:0; }
.rb-wizard [hidden] { display:none!important; }
.rb-wizard-stage { flex:1; display:grid; position:relative; overflow:hidden; }
.rb-preference-step { grid-area:1/1; width:100%; display:flex; flex-direction:column; padding:6px clamp(20px,5vw,80px) 0; }
.rb-step-heading { text-align:center; flex:none; }
.rb-step-count { margin:0 0 7px; color:#c54820; font:700 20px/1.2 'Oswald','Arial Narrow',sans-serif; letter-spacing:.09em; }
[data-rb-theme="dark"] .rb-step-count { color:#f3a16e; }
.rb-step-heading h2 { margin:0; color:var(--wizard-ink); font:400 clamp(44px,6.3vw,88px)/1 Impact,'Arial Narrow',sans-serif; text-transform:uppercase; letter-spacing:.01em; }
.rb-step-heading h2:focus { outline:none; }
.rb-step-hint { margin:12px 0 0; color:var(--wizard-muted); font-size:14px; line-height:1.5; }
.rb-step-options { display:flex; flex:1; width:100%; align-items:center; flex-direction:column; justify-content:center; padding:18px 0 8px; }
.rb-option-grid { width:100%; max-width:1320px; margin:0 auto; padding:0; border:0; display:grid; grid-template-columns:repeat(var(--option-count),minmax(0,1fr)); gap:clamp(6px,1.5vw,24px); }
.rb-option { display:block; position:relative; cursor:pointer; min-width:0; color:var(--wizard-ink); }
.rb-option > input { position:absolute; width:1px; height:1px; padding:0; opacity:0; left:50%; top:50%; }
.rb-option-content { position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 4px 16px; border:2px solid transparent; border-radius:18px; transition:background .2s,border-color .2s,transform .2s; }
.rb-option-art { display:block; width:100%; height:clamp(185px,35vh,345px); object-fit:contain; transition:transform .22s; }
.rb-step-sabor .rb-option-art { width:120%; max-width:none; height:clamp(140px,25vh,230px); }
.rb-step-sabor .rb-option[data-value="Suave"] .rb-option-art { padding:18px; }
.rb-option[data-value="Amarillo"] .rb-option-art { filter:saturate(.65) brightness(1.08); }
.rb-option[data-value="Marrón"] .rb-option-art { filter:url(#rb-brown-tone); }
.rb-option-name { font:600 clamp(18px,1.9vw,27px)/1.25 'Oswald','Arial Narrow',Arial,sans-serif; text-align:center; }
.rb-option-range { color:var(--wizard-muted); font-size:13px; text-align:center; line-height:1.4; }
.rb-option-check { position:absolute; right:8px; top:8px; display:grid; place-items:center; width:25px; height:25px; background:var(--wizard-accent); color:var(--wizard-paper); border-radius:50%; opacity:0; }
.rb-option input:checked + .rb-option-content { border-color:var(--wizard-accent); background:color-mix(in srgb,var(--wizard-accent) 6%,transparent); }
.rb-option input:checked + .rb-option-content .rb-option-check { opacity:1; }
.rb-option input:focus-visible + .rb-option-content { outline:3px solid var(--wizard-accent); outline-offset:4px; }
@media(hover:hover) { .rb-option:hover .rb-option-art { transform:translateY(-5px); } .rb-option:hover .rb-option-content { background:color-mix(in srgb,var(--wizard-accent) 5%,transparent); } }
.rb-option-fallback { display:grid; place-items:center; height:220px; font:80px 'Oswald',sans-serif; }
.rb-wizard-footer { display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; gap:20px; width:min(1100px,100%); min-height:100px; padding:18px 28px; margin:0 auto; }
.rb-wizard-footer button { grid-column:auto; min-height:48px; padding:14px 28px; border-radius:999px; font:700 14px/1.2 Arial,sans-serif; transition:opacity .2s,background .2s; }
.rb-wizard-footer button span { margin-left:18px; font-size:20px; line-height:14px; }
.rb-wizard-footer .rb-wizard-back { grid-column:1; justify-self:start; padding-left:0; background:transparent; color:var(--wizard-ink); }
.rb-wizard-footer .rb-wizard-back span { margin:0 10px 0 0; }
.rb-wizard-next,.rb-wizard-submit { grid-column:3!important; justify-self:end; background:#a71922; color:#fff!important; white-space:nowrap; }
.rb-wizard-footer button:disabled { opacity:.42; cursor:not-allowed; }
.rb-wizard-status { grid-column:2; grid-row:1; margin:0; text-align:center; color:var(--wizard-muted); font-size:13px; line-height:1.4; }
.rb-wizard-error { margin:0 auto 24px; max-width:600px; padding:0 24px; color:var(--wizard-accent); text-align:center; }
.rb-alcohol-dot { width:18px; height:18px; border-radius:50%; margin:0 0 5px; background:#e78640; }
.rb-alcohol-option[data-value="Social"] .rb-alcohol-dot { background:#92ad83; }
.rb-alcohol-option[data-value="Cero roche"] .rb-alcohol-dot { background:#e1b84f; }
.rb-alcohol-option[data-value="Felicidad líquida"] .rb-alcohol-dot { background:#bd3c36; }
.rb-step-alcohol .rb-step-options { padding-top:12px; }
.rb-step-alcohol .rb-option-grid { max-width:800px; }
.rb-step-alcohol .rb-option-content { padding:12px 8px; }
@media(max-width:760px) {
  .rb-create-wizard-page .rb-create-header { min-height:78px; gap:12px; padding:10px 18px; flex-wrap:nowrap; }
  .rb-create-wizard-page .rb-create-logo svg { width:36px; height:52px; }
  .rb-create-wizard-page .rb-create-header nav { gap:12px; flex:1; }
  .rb-create-wizard-page .rb-create-header nav a { font-size:9px; }
  .rb-create-wizard-page .rb-create-header nav a:not(:first-child) { display:none; }
  .rb-wizard { min-height:calc(100svh - 78px); }
  .rb-preference-step { padding:10px 16px 0; }
  .rb-step-heading h2 { font-size:48px; }
  .rb-step-count { font-size:17px; }
  .rb-step-hint { font-size:12px; margin-top:8px; }
  .rb-option-grid { max-width:560px; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .rb-option-art { height:clamp(115px,20vh,175px); }
  .rb-step-sabor .rb-option-art { height:clamp(95px,14vh,135px); }
  .rb-option-content { padding:5px 2px 9px; gap:4px; border-radius:12px; }
  .rb-option-name { font-size:18px; }
  .rb-option-check { width:20px; height:20px; right:4px; top:4px; font-size:12px; }
  .rb-step-alcohol .rb-option-grid { grid-template-columns:repeat(var(--option-count),minmax(0,1fr)); }
  .rb-step-alcohol .rb-option-content { padding:10px 2px; }
  .rb-option-range { font-size:11px; }
  .rb-wizard-footer { min-height:94px; grid-template-columns:1fr auto; padding:16px 20px; gap:8px 12px; }
  .rb-wizard-footer button { padding:14px 22px; font-size:13px; }
  .rb-wizard-next,.rb-wizard-submit { grid-column:2!important; grid-row:2; }
  .rb-wizard-footer .rb-wizard-back { grid-row:2; }
  .rb-wizard-status { grid-row:1; grid-column:1/-1; font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .rb-wizard *, .rb-wizard *::before { transition:none!important; } }

.rb-gauge-dial { display: block; width: min(100%,1120px); max-height: 48vh; overflow: visible; }
.rb-gauge-rim,.rb-gauge-outline-sketch,.rb-gauge-inner-dash,.rb-gauge-tick { fill: none; stroke: var(--home-ink); stroke-linecap: round; stroke-linejoin: round; }
.rb-gauge-outer-contour { fill: none; stroke: var(--home-ink); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.rb-gauge-rim-front { fill: none; stroke: var(--home-ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.rb-gauge-inner-dash { stroke-width: 3; stroke-dasharray: 8 11; opacity: .9; }
.rb-gauge-outline-sketch { stroke-width: 3; stroke-dasharray: 52 3 36 2 71 3; opacity: .9; }
.rb-gauge-zone-divider { fill: none; stroke: var(--home-ink); stroke-width: 13; stroke-linecap: square; stroke-linejoin: round; }
.rb-gauge-zone-divider-detail { fill: none; stroke: var(--home-paper); stroke-width: 8; stroke-linecap: square; opacity: 1; }
.rb-gauge-band { fill: none; stroke-width: 88; stroke-linecap: butt; }
.rb-gauge-social { stroke: #92ad83; stroke-dasharray: 26 74; }
.rb-gauge-cero { stroke: #e1b84f; stroke-dasharray: 26 74; stroke-dashoffset: -24; }
.rb-gauge-empiladora { stroke: #e78640; stroke-dasharray: 26 74; stroke-dashoffset: -49; }
.rb-gauge-felicidad { stroke: #bd3c36; stroke-dasharray: 26 74; stroke-dashoffset: -74; }
.rb-gauge-tick { stroke-width: 5; }
.rb-gauge-tick-major { stroke-width: 7; }
.rb-gauge-value,.rb-gauge-percent { fill: var(--home-ink); font-family: Oswald,"Arial Narrow",sans-serif; font-weight: 700; text-anchor: middle; }
.rb-gauge-value { font-size: 31px; }
.rb-gauge-value-center { font-size: 34px; }
.rb-gauge-percent { font-size: 30px; }
.rb-gauge-needle { transform-box: view-box; transform-origin: 500px 355px; transform: rotate(var(--needle-angle,-7deg)); transition: transform .08s linear; }
.rb-gauge-needle-shadow { fill: var(--home-ink); stroke: var(--home-paper); stroke-width: 2; stroke-linejoin: round; }
.rb-gauge-needle-fill { fill: #171313; stroke: #0b0909; stroke-width: 1.5; stroke-linejoin: round; }
.rb-gauge-needle-highlight { fill: none; stroke: #fffaf0; stroke-width: 2.3; stroke-linecap: round; opacity: .8; }
.rb-gauge-hub-outer { fill: #211815; stroke: var(--home-paper); stroke-width: 5; }
.rb-gauge-hub-ring { fill: none; stroke: #211815; stroke-width: 4; }
.rb-gauge-hub-inner { fill: #b86f3f; stroke: #211815; stroke-width: 3; }.rb-gauge-legend { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(4px,1.5vw,18px); margin-top: -1.1vh; }
.rb-gauge-option { display: flex; align-items: center; flex-direction: column; padding: 4px; border: 2px solid transparent; text-align: center; transition: border-color .25s,background-color .25s,transform .25s; }
.rb-gauge-option i { width: 17px; height: 17px; margin-bottom: 7px; border-radius: 50%; background: #92ad83; }
.rb-gauge-option:nth-child(2) i { background: #e1b84f; }
.rb-gauge-option:nth-child(3) i { background: #e78640; }
.rb-gauge-option:nth-child(4) i { background: #bd3c36; }
.rb-gauge-option strong { color: var(--home-ink); font-size: clamp(.78rem,1.5vw,1.2rem); }
.rb-gauge-option small { margin-top: 2px; color: var(--home-muted); font-size: clamp(.63rem,1.15vw,.95rem); }
.rb-gauge-option.is-frame,.rb-gauge-option.is-picked { border-color: var(--home-accent); border-radius: 12px; background: color-mix(in srgb,var(--home-accent) 7%,transparent); transform: translateY(-3px); }
.rb-wizard .rb-gauge-dial { display:block; width:min(790px,100%); height:auto; max-height:32vh; overflow:visible; margin:0 auto 4px; }
.rb-wizard .rb-gauge-needle { transition:transform .55s cubic-bezier(.2,.7,.2,1); transform-origin:500px 355px; }
.rb-wizard .rb-gauge-zone-divider-detail { display:none; }
.rb-wizard .rb-gauge-zone-divider { stroke-width:5; }
@media(max-width:760px) { .rb-wizard .rb-gauge-dial { max-height:none; } }
@media(prefers-reduced-motion:reduce) { .rb-wizard .rb-gauge-needle { transition:none; } }

/* Fit the illustrated choices to the scene without deforming their artwork. */
.rb-create-wizard-page .wrap { padding-bottom:0; }
.rb-step-color .rb-option-art { width:145%; max-width:none; height:clamp(210px,39vh,360px); }
.rb-step-alcohol .rb-step-heading h2 { font-size:clamp(44px,5.5vw,76px); }
.rb-wizard .rb-gauge-dial { max-height:40vh; }
@media(max-width:760px) {
  .rb-step-color .rb-option-art { height:clamp(130px,22vh,190px); }
  .rb-step-alcohol .rb-step-heading h2 { font-size:48px; }
  .rb-wizard .rb-gauge-dial { max-height:none; }
}

/* Contextual help beside each scene title. */
.rb-color-filters { position:absolute; pointer-events:none; }
.rb-step-heading { position:relative; z-index:5; }
.rb-title-help { display:table; position:relative; margin:0 auto; }
.rb-wizard .rb-feature-help-button {
  position:absolute; left:calc(100% + 14px); top:50%; transform:translateY(-50%);
  display:grid; place-items:center; width:29px; height:29px; min-height:0;
  padding:0; border:1px solid var(--wizard-accent); border-radius:50%;
  color:var(--wizard-accent); background:transparent;
  font:italic 700 17px/1 Georgia,serif; cursor:pointer;
}
.rb-wizard .rb-feature-help-button:hover,
.rb-wizard .rb-feature-help-button[aria-expanded="true"] {
  background:var(--wizard-accent); color:var(--wizard-paper);
}
.rb-feature-help-popup {
  position:absolute; z-index:10; top:calc(100% + 12px); left:50%; transform:translateX(-50%);
  width:min(460px,calc(100vw - 40px)); padding:18px 20px;
  border:1px solid var(--wizard-accent); border-radius:12px;
  background:var(--wizard-paper); color:var(--wizard-ink);
  box-shadow:0 12px 30px #21181525; text-align:left;
  font:400 14px/1.6 Arial,sans-serif;
}
.rb-alcohol-option .rb-option-content { height:100%; }
@media(max-width:760px) {
  .rb-wizard .rb-feature-help-button { left:calc(100% + 9px); width:25px; height:25px; font-size:15px; }
  .rb-feature-help-popup { font-size:13px; padding:16px; }
}
@media(max-width:480px) {
  .rb-step-alcohol .rb-option-grid, .rb-step-lupulo .rb-option-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

