/* Everythingle additions on top of the reference stylesheet (framed.css). */
.site-link {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgb(148 163 184);
  white-space: nowrap;
  user-select: none;
}
@media (max-width: 420px) { .site-link { font-size: 13px; } }

/* Watermark while playing: centred in the play column, between the frame tabs
   and the guess box, so a 9:16 crop of the game keeps it. */
.fr-watermark {
  display: flex;
  justify-content: center;
  margin: -2px 0 6px;
  pointer-events: none;
  user-select: none;
}
.fr-watermark span {
  padding: 1px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(241, 245, 249, 0.6);
}
/* Reveal answer: quiet text button under the guesses */
.fr-reveal {
  align-self: center;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(148 163 184);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fr-reveal:hover { color: rgb(241 245 249); background: rgb(30 41 59); }

/* Tab row: mode tab on the left, year chip on the right */
.fr-tabrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.fr-ico { width: 16px; height: 16px; flex-shrink: 0; }
.fr-ico-sm { width: 12px; height: 12px; }
.fr-years { position: relative; margin-bottom: 4px; }
.fr-years-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(30 41 59);
  border: 1px solid rgb(51 65 85);
  color: rgb(226 232 240);
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  white-space: nowrap;
}
.fr-years-chip:hover, .fr-years-chip[aria-expanded="true"] { background: rgb(51 65 85); color: #fff; }
.fr-years-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  width: 290px; max-width: calc(100vw - 16px);
  padding: 12px;
  border-radius: 8px;
  background: rgb(15 23 42);
  border: 1px solid rgb(51 65 85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  color: rgb(241 245 249);
}
.fr-years-panel[hidden] { display: none; }
.fr-years-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: rgb(148 163 184); margin-bottom: 8px; }
.fr-years-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fr-years-preset {
  padding: 3px 9px; border-radius: 4px;
  background: rgb(51 65 85); color: rgb(226 232 240);
  font-size: 12px; font-weight: 600;
}
.fr-years-preset:hover { background: rgb(71 85 105); }
.fr-years-preset.on { background: rgb(185 28 28); color: #fff; }
.fr-years-row { display: flex; align-items: flex-end; gap: 8px; }
.fr-years-row label { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: rgb(148 163 184); }
.fr-years-row select {
  width: 100%; padding: 4px 6px; border-radius: 4px;
  background: rgb(30 41 59); border: 1px solid rgb(71 85 105);
  color: #fff; font-size: 14px;
}
.fr-years-dash { padding-bottom: 6px; color: rgb(100 116 139); }
.fr-years-count { margin: 10px 0 8px; font-size: 13px; color: rgb(203 213 225); text-align: center; }
.fr-years-go {
  width: 100%; padding: 7px 8px; border-radius: 2px;
  background: rgb(185 28 28); color: #fff;
  font-size: 13px; font-weight: 700;
}
.fr-years-go:hover { background: rgb(153 27 27); }
.fr-years-go:disabled { background: rgb(51 65 85); color: rgb(148 163 184); cursor: not-allowed; }

.fr-frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
