/* Grizzle — all rules are scoped under .srw */

.srw {
  --srw-bg: #ecebe6;            /* warm paper */
  --srw-text: #1b1b1b;
  --srw-muted: #6b6b66;
  --srw-border: #d2d0c8;
  /* Tiles */
  --srw-tile-empty: #1b1b1b;    /* unplayed circles */
  --srw-tile-empty-text: #ecebe6;
  /* Gradients: these are only ever used as "background", so any CSS gradient or plain colour works */
  --srw-correct: linear-gradient(180deg, #03D866 0%, #008D41 100%);
  --srw-present: linear-gradient(0deg, rgb(253 87 41) 0%, rgb(253 157 69) 100%); /* orange */
  /* Logo circle borders */
  --srw-logo-green-border: #006B30;
  --srw-logo-orange-border: #C2410C;
  --srw-absent: #9a9d93;        /* muted sage grey */
  --srw-absent-text: #1b1b1b;
  /* Keyboard: letters only, no key boxes */
  --srw-key-hover: rgba(0, 0, 0, 0.07);
  --srw-key-used-opacity: 0.28; /* letters ruled out */
  --srw-key-correct-border: #00B854; /* ring around letters found in the right spot */
  /* Film-grain texture on the tiles; set to 0 to turn it off */
  --srw-grain: 0.35;
  --srw-grain-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --srw-font: "Futura PT", Futura, "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --srw-accent: #fa8072; /* salmon */
  /* Header buttons (? and statistics) */
  --srw-icon-color: #F7C21A; /* yellow */
  --srw-dialog-width: 420px; /* width of the Rules and Statistics popups */
  --srw-icon-size: clamp(34px, 11vw, 46px); /* 46px on desktop, a little smaller on narrow phones so the logo has room */
  --srw-toast-bg: #1b1b1b;
  --srw-toast-text: #ffffff;
  /* End-of-game messages */
  --srw-win-bg: linear-gradient(180deg, #FFE98A 0%, #F7C21A 45%, #C98A00 100%); /* gold */
  --srw-win-text: #2a1f00;
  --srw-lose-bg: linear-gradient(180deg, #3a3a3a 0%, #111111 60%, #000000 100%); /* black */
  --srw-lose-text: rgb(253 122 55); /* orange */

  position: relative;
  max-width: 720px; /* wide enough for a ~16-letter phrase on one line on desktop */
  margin: 0 auto;
  padding: 0 8px 16px;
  background: transparent; /* the page behind shows through; --srw-bg is still used for popups and outlines */
  color: var(--srw-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.srw *, .srw *::before, .srw *::after { box-sizing: inherit; }
/* WordPress themes often colour all headings, paragraphs and lists (salmonrun.ink's sets them to #333).
   The #srw id outranks those theme rules, so text inside the game keeps the game's colours. */
#srw :is(h1, h2, h3, h4, p, ul, ol, li, strong) { color: inherit; }
#srw .srw-footer { color: var(--srw-muted); }

/* Dark colours: used when the visitor's device is in dark mode, or always when the game
   has the srw--dark class (the WordPress plugin adds it, since salmonrun.ink is a dark site).
   srw--light forces the light colours instead. */
@media (prefers-color-scheme: dark) {
  .srw:not(.srw--light) {
    --srw-bg: #1d1c1a;
    --srw-text: #efede6;
    --srw-muted: #a3a19a;
    --srw-border: #3a3936;
    --srw-tile-empty: #efede6;
    --srw-tile-empty-text: #1d1c1a;
    --srw-absent: #8c8f86;
    --srw-absent-text: #1d1c1a;
    --srw-key-hover: rgba(255, 255, 255, 0.08);
    --srw-toast-bg: #efede6;
    --srw-toast-text: #1d1c1a;
  }
}
.srw.srw--dark {
  --srw-bg: #1d1c1a;
  --srw-text: #efede6;
  --srw-muted: #a3a19a;
  --srw-border: #3a3936;
  --srw-tile-empty: #efede6;
  --srw-tile-empty-text: #1d1c1a;
  --srw-absent: #8c8f86;
  --srw-absent-text: #1d1c1a;
  --srw-key-hover: rgba(255, 255, 255, 0.08);
  --srw-toast-bg: #efede6;
  --srw-toast-text: #1d1c1a;
}

/* Header */
/* Desktop: ? and statistics on either side, logo in the middle with the Easy/Hard switch underneath */
.srw-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "help  title stats"
    "help  mode  stats";
  align-items: center;
  row-gap: 0;
  border-bottom: 1px solid var(--srw-border);
  padding: 8px 4px 10px;
  margin-bottom: 12px;
}
.srw-header.has-mode { row-gap: 8px; } /* space under the logo only when the switch is showing */
#srw-help-btn  { grid-area: help; }
#srw-stats-btn { grid-area: stats; }
.srw-title {
  grid-area: title;
  min-width: 0;
  margin: 0 8px;
  line-height: 1;
  container-type: inline-size; /* lets the logo size itself to the space between the icons */
}
/* Logo: G R I Z Z L E in circles, matching the game tiles.
   Green letters use the "correct" gradient, I and E the "present" orange gradient.
   Circles are up to 40px, shrinking on narrow screens so all 7 fit. */
.srw-logo {
  --srw-logo-gap: 5px;
  /* 50px circles; the calc() shrinks them on phones so all 7 still fit between the icons */
  --srw-logo-size: min(50px, calc((100cqw - 6 * var(--srw-logo-gap)) / 7));
  display: flex;
  justify-content: center;
  gap: var(--srw-logo-gap);
}
.srw-logo-letter {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--srw-logo-size);
  height: var(--srw-logo-size);
  border-radius: 50%;
  border: 3px solid var(--srw-logo-green-border);
  background: var(--srw-correct);
  background-origin: border-box;
  color: #fff;
  font-family: var(--srw-font);
  font-size: calc(var(--srw-logo-size) * 0.46);
  font-weight: 700;
}
.srw-logo-letter--orange {
  border-color: var(--srw-logo-orange-border);
  background: var(--srw-present);
  background-origin: border-box;
}
/* Same grain texture as the tiles */
.srw-logo-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--srw-grain-image);
  mix-blend-mode: overlay;
  opacity: var(--srw-grain);
  pointer-events: none;
}
/* Text for screen readers and search engines only */
.srw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Help (?) and statistics buttons: colour and size set by --srw-icon-color / --srw-icon-size */
.srw-icon-btn {
  flex: none;
  width: var(--srw-icon-size);
  height: var(--srw-icon-size);
  padding: 0;
  border: 2px solid var(--srw-icon-color);
  border-radius: 50%;
  background: none;
  color: var(--srw-icon-color);
  font-family: var(--srw-font);
  font-size: calc(var(--srw-icon-size) * 0.5);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.srw-icon-btn svg { width: 58%; height: 58%; }
/* Hover: filled yellow circle with dark icon */
.srw-icon-btn:hover { background: var(--srw-icon-color); color: var(--srw-bg); }

/* Answer shape under the logo ("2 Words. Word 1 = 7 letters. Word 2 = 4 letters").
   Phones only: on wider screens the whole answer fits on one line, so the gaps say it already.
   To show it on every screen, delete "display: none;" below. */
.srw-word-info {
  display: none;
  margin: -4px 0 12px;
  text-align: center;
  font-family: var(--srw-font);
  font-size: 0.9rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
#srw .srw-word-info { color: var(--srw-muted); }
#srw .srw-word-info strong { color: var(--srw-icon-color); }
@media (max-width: 600px) {
  .srw-word-info { display: block; }

  /* Phones: the logo gets its own full-width row so its circles can be bigger,
     and the ? and statistics buttons sit side by side underneath it */
  /* Phones: logo on its own full-width row; ?, the Easy/Hard switch and statistics in one row below */
  .srw-header {
    --srw-icon-size: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 10px 0;
  }
  .srw-title { order: -1; flex: 0 0 100%; margin: 0; }

  /* Keyboard stays at the bottom of the screen when the board is taller than the phone
     (long answers wrap onto several lines per guess). Sticky: it sits in its normal place when everything fits. */
  .srw-keyboard {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--srw-bg);
    box-shadow: 0 -10px 14px -6px var(--srw-bg);
  }
  /* When scrolling to the current guess, leave room for the keyboard below it */
  .srw-row { scroll-margin-top: 12px; scroll-margin-bottom: 200px; }
}

/* Easy / Hard switch: only shown on long answers, where the letter reveal applies */
.srw-mode[hidden] { display: none; }
.srw-mode {
  grid-area: mode;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--srw-font);
}
.srw-mode-label {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--srw-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.srw-mode-label.is-active { color: var(--srw-icon-color); }
.srw-mode-switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 2px solid var(--srw-icon-color);
  border-radius: 999px;
  background: rgb(247 194 26 / 0.14);
  cursor: pointer;
}
.srw-mode-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--srw-icon-color);
  transition: transform 0.2s ease;
}
.srw-mode-switch[aria-checked="true"] .srw-mode-knob { transform: translateX(20px); }
/* Locked while today's game is in progress */
.srw-mode.is-locked { opacity: 0.55; }
.srw-mode.is-locked button { cursor: not-allowed; }

/* Board
   JS sets --srw-letters (letter count) and --srw-gaps (total gap width in px).
   Tiles shrink to fit the phrase on one line, down to a minimum size;
   past that, whole words wrap onto a second line. */
.srw-main { display: flex; justify-content: center; margin-bottom: 16px; }
.srw-board {
  --srw-letters: 5;
  --srw-gaps: 20px;
  --srw-tile-gap: 7px;
  --srw-word-gap: 20px;
  container-type: inline-size;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.srw-board.is-wrapped { gap: 18px; }
.srw-row {
  --srw-tile: clamp(26px, calc((100cqw - var(--srw-gaps)) / var(--srw-letters)), 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--srw-word-gap);
  row-gap: var(--srw-tile-gap);
}
.srw-word { display: flex; gap: var(--srw-tile-gap); position: relative; }
/* Hyphenated answers ("Spider-Man"): a dash centred in the gap after the word */
.srw-word--hyphen::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--srw-word-gap) / -2 - 4px);
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--srw-text);
  transform: translateY(-50%);
}
/* Full stops ("Mr. Grizz"): a dot low in the gap after the word, like a printed full stop */
.srw-word--dot::after {
  content: "";
  position: absolute;
  bottom: calc(var(--srw-tile, 36px) * 0.1);
  right: calc(var(--srw-word-gap) / -2 - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--srw-text);
}
.srw-row.is-shaking { animation: srw-shake 0.5s; }
.srw-row.is-winning .srw-tile { animation: srw-bounce 0.5s ease forwards; }

/* Tiles: solid circles. Unplayed circles are filled (dark on light mode, light on dark mode);
   after a guess they turn green, orange or grey. */
.srw-tile {
  position: relative;
  width: var(--srw-tile, 36px);
  height: var(--srw-tile, 36px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--srw-tile-empty);
  color: var(--srw-tile-empty-text);
  font-family: var(--srw-font);
  font-size: calc(var(--srw-tile, 36px) * 0.42);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
  overflow: hidden;
}
/* Grain texture laid over every tile */
.srw-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--srw-grain-image);
  mix-blend-mode: overlay;
  opacity: var(--srw-grain);
  pointer-events: none;
}
/* Letter typed but not yet submitted: a ring around the circle */
.srw-tile[data-state="tbd"] {
  box-shadow: 0 0 0 2px var(--srw-bg), 0 0 0 4px var(--srw-tile-empty);
  animation: srw-pop 0.12s;
}
.srw-tile[data-state="correct"],
.srw-tile[data-state="present"] { color: #fff; }
.srw-tile[data-state="correct"] { background: var(--srw-correct); }
.srw-tile[data-state="present"] { background: var(--srw-present); }
.srw-tile[data-state="absent"]  { background: var(--srw-absent); color: var(--srw-absent-text); }
.srw-tile.is-flipping { animation: srw-flip 0.5s ease-in-out; }
/* Letters filled in for free by the reveal rule look the same as any other correct letter.
   To mark them differently, add a style here, e.g. .srw-tile.is-locked { box-shadow: inset 0 0 0 3px var(--srw-accent); } */
.srw-tile.is-revealed { animation: srw-pop 0.3s ease; }
.srw-tile--sm { width: 36px; height: 36px; font-size: 1rem; flex: none; }

/* Keyboard: plain letters, no key boxes. Used letters take the result colour;
   ruled-out letters fade. A soft circle appears behind a key on hover or press. */
.srw-keyboard {
  display: flex; flex-direction: column; gap: 4px; user-select: none;
  max-width: 440px; margin: 0 auto;
}
.srw-key-row { display: flex; gap: 2px; justify-content: center; }
.srw-key-row--mid { padding: 0 5%; }
.srw-key {
  position: relative;
  isolation: isolate;
  flex: 1;
  height: 50px;
  border: 0;
  background: none;
  color: var(--srw-text);
  font-family: var(--srw-font);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: opacity 0.2s, transform 0.08s;
}
.srw-key::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 999px;
  background: var(--srw-key-hover);
  opacity: 0;
  transition: opacity 0.15s;
}
@media (hover: hover) { .srw-key:hover::before { opacity: 1; } }
.srw-key:active { transform: scale(0.92); }
.srw-key:active::before { opacity: 1; }
.srw-key--wide { flex: 1.6; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; }
/* Gradient-coloured letters for correct and present */
.srw-key[data-state="correct"],
.srw-key[data-state="present"] {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.srw-key[data-state="correct"] { background-image: var(--srw-correct); }
.srw-key[data-state="present"] { background-image: var(--srw-present); }
.srw-key[data-state="absent"]  { opacity: var(--srw-key-used-opacity); }
/* Letters found in the right spot get a green border, in the same rounded shape as the key hover highlight */
.srw-key[data-state="correct"]::before {
  border: 2px solid var(--srw-key-correct-border);
  background: transparent;
  opacity: 1;
}

/* Enter key: a yellow pill button, matching the ? and statistics buttons */
.srw-key[data-key="Enter"] {
  flex: 2.2; /* a bit wider than the other keys so the larger text fits */
  align-self: center;
  height: 40px;
  margin: 0 4px 0 0;
  border: 2px solid var(--srw-icon-color);
  border-radius: 999px;
  background: rgb(247 194 26 / 0.14);
  color: var(--srw-icon-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
@media (max-width: 360px) {
  .srw-key[data-key="Enter"] { font-size: 0.78rem; letter-spacing: 0.03em; }
}
.srw-key[data-key="Enter"]::before { display: none; } /* no hover circle; the pill has its own hover */
@media (hover: hover) {
  .srw-key[data-key="Enter"]:hover { background: var(--srw-icon-color); color: var(--srw-bg); }
}
.srw-key[data-key="Enter"]:active { background: var(--srw-icon-color); color: var(--srw-bg); }

/* Toast */
.srw-toast {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.srw-toast--dialog { top: 12px; }
.srw-toast-msg {
  background: var(--srw-toast-bg);
  color: var(--srw-toast-text);
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.srw-toast-msg.is-fading { opacity: 0; }

/* End-of-game messages. The wording is set in salmonrun-wordle.js (CONFIG.winMessage / loseMessage). */
.srw-toast-msg--win,
.srw-toast-msg--lose {
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--srw-font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* outline in the page colour so the pill stands out from the green/orange tiles behind it */
  box-shadow: 0 0 0 3px var(--srw-bg), 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: srw-toast-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.srw-toast-msg--win  { background: var(--srw-win-bg);  color: var(--srw-win-text); }   /* "Booyah!" */
.srw-toast-msg--lose { background: var(--srw-lose-bg); color: var(--srw-lose-text);    /* "That's a wrap!" */
  border: 1px solid rgb(253 122 55 / 0.45); }
/* The answer, shown under "That's a wrap!" after a loss */
.srw-toast-msg--answer { letter-spacing: 0.08em; }

@keyframes srw-toast-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Footer */
.srw-footer { text-align: center; color: var(--srw-muted); font-size: 0.8rem; margin: 16px 0 0; }
.srw-link {
  background: none; border: 0; padding: 0; color: var(--srw-accent);
  font: inherit; text-decoration: underline; cursor: pointer;
}

/* Dialogs */
.srw-dialog {
  /* Rules and Statistics popups share this width */
  width: min(92vw, var(--srw-dialog-width));
  max-width: calc(100vw - 24px);
  border: 0;
  border-radius: 8px;
  padding: 24px;
  background: var(--srw-bg);
  color: var(--srw-text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  max-height: 85vh;
  overflow-y: auto; /* the rules popup scrolls on short screens */
  /* Slim scrollbar so the rules text isn't narrower than the statistics popup's content */
  scrollbar-width: thin;
  scrollbar-color: var(--srw-muted) transparent;
  scrollbar-gutter: stable; /* both popups keep the same space for it, so their content is the same width */
}
.srw-dialog::-webkit-scrollbar { width: 6px; }
.srw-dialog::-webkit-scrollbar-thumb { background: var(--srw-muted); border-radius: 3px; }
.srw-dialog::-webkit-scrollbar-track { background: transparent; }

#srw-help section { margin: 0; padding: 0; } /* in case the theme styles <section> */

/* Rules popup on tablets and desktops: wider, with "Salmon Run words" and "How to play"
   side by side so there's far less scrolling. Phones keep one column at the same width as Statistics. */
@media (min-width: 760px) {
  #srw-help { --srw-dialog-width: 860px; }
  #srw-help .srw-rules-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 36px;
    align-items: start;
  }
  #srw-help .srw-rules-cols h3 { margin-top: 4px; }
}
.srw-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.srw-dialog h2 { margin: 0 0 12px; font-size: 1.25rem; }
.srw-dialog h3 { margin: 16px 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.srw-dialog p { font-size: 0.95rem; line-height: 1.45; }
/* Rules list in the help popup (#srw so theme list styles don't remove the bullets) */
#srw .srw-rules { margin: 0 0 8px; padding: 0 0 0 1.2em; list-style: disc; }
#srw .srw-rules li { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.45; }
.srw-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 1.6rem; line-height: 1;
  color: var(--srw-text); cursor: pointer;
}
.srw-example { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 0.9rem; }

.srw-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 4px; }
.srw-stat-row strong { display: block; font-size: 1.8rem; font-weight: 400; }
.srw-stat-row span { font-size: 0.7rem; color: var(--srw-muted); }

.srw-dist { display: flex; flex-direction: column; gap: 4px; }
.srw-dist-row { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.srw-dist-row > span { width: 10px; }
.srw-dist-bar {
  min-width: 22px;
  padding: 2px 6px;
  text-align: right;
  font-weight: 700;
  color: #fff;
  background: var(--srw-absent);
}
.srw-dist-bar.is-current { background: var(--srw-correct); }

.srw-result { text-align: center; margin-top: 16px; }
.srw-share {
  border: 0; border-radius: 999px; padding: 12px 32px;
  background: var(--srw-correct); color: #fff;
  font-size: 1rem; font-weight: 700; cursor: pointer;
}

/* Daily reminders section in the Statistics popup */
.srw-remind {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--srw-border);
  text-align: center;
}
#srw .srw-remind-text { margin: 0 0 12px; font-size: 0.9rem; color: var(--srw-muted); }
.srw-remind-btn {
  border: 2px solid var(--srw-icon-color);
  border-radius: 999px;
  padding: 10px 24px;
  background: rgb(247 194 26 / 0.14);
  color: var(--srw-icon-color);
  font-family: var(--srw-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.srw-remind-btn:hover:not(:disabled) { background: var(--srw-icon-color); color: var(--srw-bg); }
.srw-remind-btn:disabled { opacity: 0.6; cursor: default; }
#srw .srw-remind-ios {
  margin: 0 auto;
  padding-left: 1.3em;
  max-width: 300px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Animations */
@keyframes srw-pop { 50% { transform: scale(1.1); } }
@keyframes srw-flip {
  0% { transform: rotateX(0); }
  50% { transform: rotateX(-90deg); }
  100% { transform: rotateX(0); }
}
@keyframes srw-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@keyframes srw-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  70% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .srw-tile, .srw-row { animation: none !important; }
}

@media (max-height: 640px) {
  .srw-key { height: 48px; }
}
