.rm { --rm-ink: #26231f; --rm-muted: #6b655d; --rm-line: #e4ddd2; --rm-bg: #f6f2ec;
      background: var(--rm-bg); color: var(--rm-ink); font-family: inherit; padding: 28px 16px 56px; min-height: calc(100vh - 120px); position: relative; overflow-x: clip; }
@supports (height: 100dvh) { .rm { min-height: calc(100dvh - 120px); } }
.rm * { box-sizing: border-box; }
.rm [hidden] { display: none !important; }
.rm h1, .rm h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.2; margin: 0 0 12px; }
.rm h1 { font-size: clamp(30px, 6vw, 46px); }
.rm h2 { font-size: 24px; }
.rm-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--rm-muted); margin: 0 0 12px; }
.rm-sub { color: var(--rm-muted); line-height: 1.55; margin: 0 auto 22px; max-width: 460px; }
.rm-micro { color: var(--rm-muted); font-size: 13px; margin: 18px auto 0; max-width: 360px; }
.rm-note { text-align: center; }

.rm-intro, .rm-done { max-width: 560px; margin: 40px auto 0; text-align: center; }
.rm-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.rm-sizes button { background: #fff; border: 1px solid var(--rm-line); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; color: var(--rm-ink); cursor: pointer; }
.rm-sizes button[aria-pressed="true"] { background: var(--rm-accent); border-color: var(--rm-accent); color: #fff; }
.rm-sizes button:focus-visible, .rm-btn:focus-visible, .rm-round:focus-visible, .rm-link:focus-visible, .rm-saved-btn:focus-visible { outline: 2px solid var(--rm-accent); outline-offset: 2px; }
.rm-btn { display: inline-block; background: var(--rm-accent); color: #fff; border: 1px solid var(--rm-accent); border-radius: 999px; padding: 14px 34px; font: inherit; font-size: 14px;
          letter-spacing: .1em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.rm-btn-ghost { background: transparent; color: var(--rm-accent); }
.rm-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--rm-muted); text-decoration: underline; cursor: pointer; }

.rm-play { max-width: 560px; margin: 0 auto; }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.rm-count { color: var(--rm-muted); }
.rm h1.rm-top-title { margin: 0; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none; line-height: 1.3; color: var(--rm-ink); }
.rm-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 4px; scrollbar-width: none; }
.rm-filter::-webkit-scrollbar { display: none; }
.rm-filter button { flex: none; background: #fff; border: 1px solid var(--rm-line); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 13px; color: var(--rm-ink); cursor: pointer; }
.rm-filter button[aria-pressed="true"] { background: var(--rm-accent); border-color: var(--rm-accent); color: #fff; }
.rm-filter button:focus-visible { outline: 2px solid var(--rm-accent); outline-offset: 2px; }
.rm-saved-btn { background: #fff; border: 1px solid var(--rm-line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--rm-ink); }
.rm-saved-btn b { margin-left: 4px; color: var(--rm-accent); }
.rm-taste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--rm-muted); }
.rm-taste span.rm-chip, .rm-chip { background: #fff; border: 1px solid var(--rm-line); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--rm-ink); }
.rm-taste-big { justify-content: center; margin: 0 0 24px; }

.rm-stage { position: relative; width: 100%; height: min(76vh, 720px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@supports (height: 100dvh) { .rm-stage { height: min(76dvh, 720px); } }
.rm-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #e4ddd2; box-shadow: 0 16px 40px rgba(38, 35, 31, .18); will-change: transform; cursor: grab; touch-action: none; }
.rm-card.rm-behind { pointer-events: none; transition: transform .25s, opacity .25s; }
.rm-card.rm-next { transform: scale(.95) translateY(14px); }
.rm-card.rm-third { transform: scale(.9) translateY(28px); opacity: .7; }
.rm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.rm-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 16px; color: #fff; background: linear-gradient(to top, rgba(20, 16, 12, .78), rgba(20, 16, 12, 0)); pointer-events: none; }
.rm-info h3 { margin: 0 0 3px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.rm-info p { margin: 0; font-size: 13px; opacity: .88; }
.rm-why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rm-why i { font-style: normal; font-size: 11px; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px 9px; }
.rm-pct { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--rm-ink); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.rm-dots { position: absolute; top: 14px; right: 14px; display: flex; gap: 5px; }
.rm-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.rm-dots i.on { background: #fff; }
.rm-links { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.rm-links a { background: #fff; color: var(--rm-ink); border-radius: 999px; padding: 7px 13px; font-size: 12px; text-decoration: none; font-weight: 600; }
.rm-stamp { position: absolute; top: 46px; padding: 6px 14px; border: 3px solid; border-radius: 8px; font-size: 22px; font-weight: 800; letter-spacing: .1em; opacity: 0; pointer-events: none; }
.rm-stamp-save { left: 18px; color: #2f8f5b; border-color: #2f8f5b; transform: rotate(-12deg); }
.rm-stamp-pass { right: 18px; color: #c0392b; border-color: #c0392b; transform: rotate(12deg); }
.rm-stamp-love { left: 50%; margin-left: -48px; color: #d4a017; border-color: #d4a017; }
.rm-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--rm-muted); }

.rm-actions { display: flex; justify-content: center; gap: 16px; margin: 14px 0 6px; padding: 10px 0 4px; position: sticky; bottom: 0; z-index: 5; background: linear-gradient(to bottom, rgba(246, 242, 236, 0), var(--rm-bg) 38%); }
.rm-round { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--rm-line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--rm-ink); display: grid; place-items: center; }
.rm-round:disabled { opacity: .4; cursor: default; }
.rm-pass { color: #c0392b; } .rm-love { color: #d4a017; width: 62px; height: 62px; font-size: 26px; } .rm-save { background: var(--rm-accent); border-color: var(--rm-accent); color: #fff; }
.rm-undo { width: 46px; height: 46px; font-size: 20px; align-self: center; }
.rm-hint { text-align: center; color: var(--rm-muted); font-size: 12px; margin: 6px 0 0; }
.rm-done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.rm-saved { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 78vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; padding: 20px 18px 28px; box-shadow: 0 -12px 40px rgba(0, 0, 0, .22); }
.rm-saved-head { display: flex; justify-content: space-between; align-items: baseline; }
.rm-saved-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.rm-saved-list li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rm-saved-list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #e4ddd2; }
.rm-saved-list b { font-weight: 600; line-height: 1.3; }
.rm-saved-list .rm-row { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rm-saved-list a { color: var(--rm-accent); }
.rm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 900px) {
  .rm-play { max-width: 640px; }
  .rm-stage { height: min(76vh, 760px); }
  @supports (height: 100dvh) { .rm-stage { height: min(76dvh, 760px); } }
  .rm-saved { left: auto; right: 24px; bottom: 24px; width: 420px; border-radius: 20px; max-height: 80vh; }
}
@media (min-width: 1000px) {
  .rm-play { max-width: 920px; display: grid; grid-template-columns: 230px minmax(0, 640px); column-gap: 32px; justify-content: center; align-items: start; }
  .rm-play > .rm-top { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
  .rm-play > .rm-filter { grid-column: 1; grid-row: 2; flex-wrap: wrap; overflow: visible; margin: 0 0 14px; }
  .rm-play > .rm-taste { grid-column: 1; grid-row: 3; margin: 0; }
  .rm-play > .rm-stage { grid-column: 2; grid-row: 1 / span 4; height: max(480px, min(calc(100vh - 290px), 760px)); }
  .rm-play > .rm-actions { grid-column: 2; grid-row: 5; }
  .rm-play > .rm-hint { grid-column: 2; grid-row: 6; }
  @supports (height: 100dvh) { .rm-play > .rm-stage { height: max(480px, min(calc(100dvh - 290px), 760px)); } }
}
@media (prefers-reduced-motion: reduce) { .rm-card.rm-behind { transition: none; } }

/* The buttons float over the bottom edge of the card, so the card can use the whole height of the window. */
.rm-actions { position: relative; z-index: 6; margin: -84px 0 36px; padding: 0; background: none; pointer-events: none; }
.rm-actions .rm-round { pointer-events: auto; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.rm-actions .rm-save { box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(0, 0, 0, .22); }
.rm-info { padding-bottom: 96px; }
.rm-links { bottom: 96px; }
.rm-stage { height: max(440px, min(calc(100vh - 250px), 760px)); }
@supports (height: 100dvh) { .rm-stage { height: max(440px, min(calc(100dvh - 250px), 760px)); } }
.rm-hint { margin-top: 14px; }
@media (min-width: 1000px) {
  .rm-play > .rm-stage { --rm-h: max(520px, min(calc(100vh - 190px), 780px)); height: var(--rm-h); width: min(640px, calc(var(--rm-h) * .84)); justify-self: center; }
  @supports (height: 100dvh) { .rm-play > .rm-stage { --rm-h: max(520px, min(calc(100dvh - 190px), 780px)); } }
  .rm-play > .rm-actions { grid-column: 2; grid-row: 5; }
}
