:root {
  --sim-good: #3ddc84;
  --sim-good-text: #003311;
  --sim-good-tint: #9eeec2;
  --sim-good-edge: #1f7a47;
  --sim-frame: #0b0c10;
  --sim-route: #00ffff;
  --sim-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sim-display-style: italic;
  --landing-free: #ffd21f;
  --landing-free-text: #1c1600;
  --color-white: #fff;
  --bg-main: #f5f7fb;
  --text-primary: #171a21;
  --text-secondary: #4d5667;
  --text-secondary-dark: #3d4450;
  --text-tertiary: #555e6c;
  --brand-primary: #042141;
  --brand-primary-hover: #153154;
  --brand-primary-edge: #021428;
  --brand-secondary: #e0e6f1;
  --bg-card-header: #e5ebf4;
  --text-nav: #f2f5f9;
  --nav-border: #9eb0c8;
  
  --border-light: #eef2f8;
  --border-default: #dfe5ef;
  --border-dark: #d3dceb;
  --border-tabs: #d6e0ef;
  --border-btn: #d5dbe7;
  
  --action-primary: #2f6bc4;
  --action-secondary: #7ea3dc;
  --focus-ring: color-mix(in srgb, var(--action-primary) 20%, transparent);
  --bg-hover: #f1f4f9;
  --bg-tab: #f3f6fc;
  --switch-bg: #c6cfde;
  
  --state-info-bg: #e7f1ff;
  --state-info-text: #1f4b8f;
  --border-info: #c5daf5;
  --bg-info-light: #eef5ff;
  
  --state-success-bg: #e9f7ee;
  --state-success-text: #1f6b38;
  
  --state-error-bg: #ffe8ea;
  --state-error-text: #8f1f2e;
  
  --state-pending-bg: #fff4e5;
  --state-pending-text: #7c4a00;
}

:root {
  color-scheme: light;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--action-primary);
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 76px 14px 20px;
}

body.admin-page .container {
  max-width: 1200px;
}

.top-nav-shell {
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-primary) 16%, transparent);
  display: grid;
  gap: 0;
  grid-template-columns: auto minmax(0, 1fr);
  left: 0;
  margin-bottom: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 60;
}

.top-nav-logo-column {
  align-items: center;
  background: var(--brand-secondary);
  border: 1px solid var(--border-dark);
  border-right: none;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.top-nav {
  align-items: center;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: var(--text-nav);
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 14px;
}

.top-nav-logo {
  display: block;
  height: 60px;
  max-height: 100%;
  object-fit: contain;
  width: 60px;
}

.site-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.top-nav-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.toast-stack {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  position: sticky;
  top: 56px;
  z-index: 40;
}

.toast-pill {
  border-radius: 999px;
  box-shadow: 0 4px 14px #00000014;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
}

.toast-error {
  background: var(--state-error-bg);
  color: var(--state-error-text);
}

.toast-info {
  background: var(--state-info-bg);
  color: var(--state-info-text);
}

.toast-success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.waiting-header {
  align-items: center;
  display: grid;
  grid-template-areas: "promo count";
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px 16px;
  margin-bottom: 14px;
}

.waiting-count {
  display: grid;
  gap: 12px;
  grid-area: count;
}

.game-promo {
  container-type: inline-size;
  display: block;
  grid-area: promo;
  position: relative;
  text-decoration: none;
}

.game-promo-picture {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* The font size follows the picture's width, so the longest label (Vietnamese, about 16.1 times
   its font size wide) still fits on one line, 12 px from each edge. A longer label needs a bigger
   divisor. */
.game-promo .landing-cta.game-promo-cta {
  bottom: 12px;
  font-size: clamp(13px, calc((100cqi - 24px) / 16.5), 18px);
  left: 12px;
  min-height: 0;
  min-width: 0;
  padding: 0 2.2em 0 1em;
  position: absolute;
  white-space: nowrap;
}

/* The game's button is as tall as Gaimen Hunter's beside it: the 14 px words of "Get my
   appointment!" (line height 1.35), its 10 px padding and 1 px border. */
.waitlist-cta,
.game-promo .landing-cta.game-promo-cta {
  box-sizing: border-box;
  height: 41px;
}

/* Rounded with the picture. Its word is centered on the triangle's centroid, about 21 px in from
   each short side, so it sits in the middle of the yellow. */
.game-promo .landing-corner {
  border-top-right-radius: 12px;
  height: 64px;
  width: 64px;
}

.game-promo .landing-corner-label {
  left: 15px;
  top: 16px;
  width: 56px;
}

.game-promo .landing-corner-label b {
  font-size: 11px;
}

@media (max-width: 599px) {
  .waiting-header {
    grid-template-areas:
      "count"
      "promo";
    grid-template-columns: minmax(0, 1fr);
  }
}

.metric-pill {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  box-sizing: border-box;
  width: 100%;
}

.big-number {
  font-size: 30px;
  font-weight: 700;
}

.waitlist-cta {
  background-color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--brand-primary) 20%, transparent);
  color: var(--color-white);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
}

.waitlist-cta:hover {
  background-color: var(--brand-primary-hover);
}

.content-pill {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  overflow: hidden;
}

.content-pill-reader {
  background: var(--bg-card-header);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  padding: 10px 14px;
}

.my-page-header-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.my-page-header-actions {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 200px;
}

.content-pill-body {
  padding: 14px 16px;
}

.help-article-body {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.55;
}

.help-article-body p {
  margin: 0 0 12px;
}

.help-article-body p:last-child {
  margin-bottom: 0;
}

.help-article-body a,
.subaddress-help-dialog-title a,
.content-pill-reader a {
  color: var(--state-info-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.help-article-body a:hover,
.subaddress-help-dialog-title a:hover {
  color: var(--action-primary);
}

/* On the card header's tint the action blue is 4.4:1; navy is 13.5:1 (and 7.1:1 at rest). */
.content-pill-reader a:hover {
  color: var(--brand-primary);
}

.help-article-body em {
  font-style: normal;
  font-weight: 700;
}

.table-pill {
  margin-top: 12px;
}

body.admin-page .table-scroll {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  width: 100%;
}

body.admin-page .table-scroll .slots-table {
  min-width: 100%;
  width: max-content;
}

/* Wrap long headers at word boundaries without shrinking the whole table (max-width on th is unreliable with max-content). */
body.admin-page .table-scroll .slots-table thead th {
  line-height: 1.35;
  vertical-align: bottom;
}

body.admin-page .table-scroll .slots-table thead th .admin-th-wrap {
  display: inline-block;
  max-width: 4rem;
  overflow-wrap: normal;
  vertical-align: bottom;
  white-space: normal;
  word-break: normal;
}

/* Home: give “When” most of the row width (otherwise it stays content-sized and looks cramped). */
.slots-table--home {
  table-layout: fixed;
  width: 100%;
}

.slots-table--home .slots-col-day {
  width: 22%;
}

.slots-table--home .slots-col-location {
  width: 24%;
}

/* A set width, never a share: two characters of the heading beside the cell's padding, so a
   Japanese or Chinese heading wraps two characters to a line, not one. "When" takes the rest. */
.slots-table--home .slots-col-count {
  width: 3.75rem;
}

.slots-table--home th:last-child,
.slots-table--home td:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
}

.slots-table--home td:last-child strong {
  text-decoration: underline;
}

.slots-table {
  background: var(--color-white);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--border-light);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}

th {
  font-weight: 600;
}

.slots-table tr:last-child td {
  border-bottom: none;
}

.admin-open-row td {
  font-weight: 700;
}

body.admin-page .admin-open-slots-section.location-preferences-section {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

body.admin-page .admin-open-slots-section .content-pill-reader {
  border-radius: 15px 15px 0 0;
}

body.admin-page .admin-open-slots-section .preference-table {
  table-layout: fixed;
  width: 100%;
}

body.admin-page .admin-open-slots-section .preference-table tbody tr:last-child td {
  border-bottom: none;
}

body.admin-page .admin-open-slot-count {
  font-weight: 700;
}

body.admin-page .admin-page-links {
  display: flex;
  gap: 8px;
  margin: 0;
}

body.admin-page .admin-code-form {
  align-items: start;
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

body.admin-page .admin-code-field {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 4px;
}

body.admin-page .admin-code-field > span {
  font-weight: 600;
}

body.admin-page .admin-code-field input,
body.admin-page .admin-code-field select {
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  box-sizing: border-box;
  font: inherit;
  height: 34px;
  padding: 0 8px;
  width: 100%;
}

body.admin-page .admin-code-field small {
  color: var(--text-tertiary);
  font-size: 12px;
}

body.admin-page .admin-code-note {
  grid-column: span 2;
}

body.admin-page .admin-code-check {
  align-items: center;
  align-self: center;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}

body.admin-page .admin-code-actions,
body.admin-page .admin-code-error {
  grid-column: 1 / -1;
  margin: 0;
}

body.admin-page .admin-code-error {
  background: var(--state-error-bg);
  border-radius: 8px;
  color: var(--state-error-text);
  font-size: 13px;
  padding: 8px 10px;
}

body.admin-page .admin-code-toggle {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

body.admin-page .admin-code-off td {
  color: var(--text-tertiary);
}

body.admin-page .admin-code-link {
  font-size: 12px;
  margin-left: 6px;
}

body.admin-page .admin-code-copy {
  background: none;
  border: 0;
  color: var(--action-primary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  margin-left: 6px;
  padding: 0;
  text-decoration: underline;
}

body.admin-page .admin-code-length {
  border: 0;
  margin: 0;
  padding: 0;
}

body.admin-page .admin-code-length legend {
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0;
}

body.admin-page .admin-code-length input[type="radio"] {
  height: auto;
  width: auto;
}

body.admin-page .admin-code-length input[type="number"] {
  width: 6em;
}

body.admin-page .admin-code-summary p {
  font-size: 14px;
  margin: 0 0 6px;
}

body.admin-page .admin-code-qr {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 0;
}

/* The SVG brings its own white background and black modules, which scanners need. */
body.admin-page .admin-code-qr-image svg {
  border: 1px solid var(--border-btn);
  border-radius: 8px;
  display: block;
  height: 200px;
  max-width: 100%;
  width: 200px;
}

body.admin-page .admin-partner-note {
  max-width: 48ch;
  white-space: pre-wrap;
}

body.admin-page .admin-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 480px) {
  body.admin-page .admin-code-note {
    grid-column: auto;
  }
}

body.admin-page .admin-signup-mode {
  white-space: nowrap;
}

.app-pill-button {
  appearance: none;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--border-btn);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  height: 34px;
  justify-content: center;
  padding: 0 13px;
  text-decoration: none;
  white-space: nowrap;
}

.app-pill-button:hover {
  background: var(--bg-hover);
}

.auth-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.login-shell {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px auto 0;
  max-width: 430px;
  width: 100%;
}

.login-logo {
  border-radius: 999px;
  display: block;
  height: 240px;
  object-fit: cover;
  width: 240px;
}

.login-title {
  font-size: 26px;
  margin: 2px 0 8px;
  text-align: center;
}

.login-form {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.auth-pill-form {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-control-width {
  width: 100%;
}

.gsi-material-button.auth-control-width {
  max-width: none;
  width: 100%;
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  background-color: #f2f2f2;
  background-image: none;
  border: none;
  border-radius: 20px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  display: inline-flex;
  font-family: "Roboto", arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  letter-spacing: 0.25px;
  margin: 2px 0;
  max-width: 400px;
  min-width: min-content;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition: background-color 0.218s, border-color 0.218s, box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
}

.gsi-material-button:hover {
  background-color: #e8e8e8;
}

.gsi-material-button:focus-visible {
  box-shadow: 0 0 0 3px #4285f433;
}

.gsi-material-button-content-wrapper {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.gsi-material-button-icon {
  display: inline-flex;
  height: 18px;
  width: 18px;
}

.gsi-material-button-icon svg {
  height: 18px;
  width: 18px;
}

.google-pill-button {
  justify-content: center;
  position: relative;
}

.google-pill-button .gsi-material-button-content-wrapper {
  justify-content: center;
  width: 100%;
}

.google-pill-button .gsi-material-button-icon {
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.email-pill-button {
  background-color: var(--color-white);
  border: 1px solid var(--border-btn);
  color: var(--text-primary);
  justify-content: center;
}

.email-pill-button:hover {
  background-color: var(--bg-hover);
}

.email-pill-input {
  appearance: none;
  background-color: var(--color-white);
  border: 1px solid var(--border-btn);
  border-radius: 20px;
  box-sizing: border-box;
  color: var(--text-primary);
  font-size: 14px;
  height: 40px;
  outline: none;
  padding: 0 14px;
}

.email-pill-input:focus {
  border-color: var(--action-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.hidden-credential-trap {
  height: 0;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: -9999px;
  width: 0;
}

.placeholder-main {
  max-width: 100%;
}

.app-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 16px;
}

.app-card.content-pill {
  padding: 0;
}

.language-picker {
  position: relative;
}

.language-picker-trigger {
  align-items: center;
  background: var(--brand-primary);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  color: var(--text-nav);
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  list-style: none;
  width: 34px;
}

.language-picker-trigger::-webkit-details-marker {
  display: none;
}

.language-picker-trigger svg {
  fill: none;
  height: 18px;
  stroke: var(--text-nav);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 18px;
}

.top-nav .app-pill-button {
  background: var(--brand-primary);
  border-color: var(--nav-border);
  color: var(--text-nav);
}

.top-nav .app-pill-button:hover {
  background: var(--brand-primary-hover);
}

.language-picker-menu {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--text-primary) 12%, transparent);
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 7px;
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 100;
}

.language-picker-form {
  margin: 0;
}

.language-picker-item {
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.language-picker-item:hover {
  background: var(--bg-hover);
}

.language-picker-item.is-active {
  background: var(--state-info-bg);
  color: var(--state-info-text);
}

.my-page-settings {
  display: grid;
  gap: 14px;
}

.welcome-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.welcome-bid-stack {
  max-width: 100%;
}

.welcome-text {
  margin: 0;
  min-width: 0;
}

.switch-row {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  max-width: 100%;
  position: relative;
}

.switch-row-control-only {
  display: inline-flex;
  height: 22px;
  position: relative;
  vertical-align: middle;
  width: 40px;
}

.settings-field-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.settings-field-stack .settings-field {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.settings-field-stack .settings-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.switch-input {
  cursor: pointer;
  height: 22px;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 40px;
  z-index: 1;
}

.switch-slider {
  background: var(--switch-bg);
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
  height: 22px;
  position: relative;
  transition: background-color 0.2s;
  width: 40px;
}

.switch-slider::before {
  background: var(--color-white);
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.2s;
  width: 18px;
}

.switch-input:checked + .switch-slider {
  background: var(--action-primary);
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(18px);
}

.settings-section {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.location-preferences-section {
  gap: 0;
  overflow: hidden;
  padding: 0;
  scroll-margin-top: 80px;
}

.location-preferences-section .content-pill-reader {
  border-radius: 15px 15px 0 0;
}

.location-preferences-section .preference-table {
  table-layout: fixed;
  width: 100%;
}

.location-preferences-section .preference-table tbody tr:last-child td {
  border-bottom: none;
}

.location-preferences-section .preference-table tfoot.slot-window-dates td {
  border-bottom: none;
  border-top: 1px solid var(--border-light);
  padding: 16px 8px;
  text-align: left;
}

.slot-window-dates-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
}

.slot-window-date-cell {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  max-width: 9.5rem;
  min-width: 0;
}

.slot-window-date-label {
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.slot-window-date-input {
  border: 1px solid var(--border-light);
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 6px;
  width: 100%;
}

.slot-window-date-input::-webkit-datetime-edit {
  padding: 0;
}

.slot-window-date-input::-webkit-calendar-picker-indicator {
  margin-left: 0;
  padding: 0;
}

.slot-window-date-input.is-empty,
.slot-window-date-input.is-empty:focus {
  color: transparent;
}

.slot-window-date-input.is-empty::-webkit-datetime-edit,
.slot-window-date-input.is-empty::-webkit-datetime-edit-fields-wrapper {
  opacity: 0;
}

.location-preferences-section.needs-location-selection {
  animation: location-nudge-pulse 1.4s ease-in-out infinite;
  border-color: var(--action-primary);
}

.location-preferences-nudge {
  align-items: flex-start;
  animation: location-nudge-banner-pulse 1.4s ease-in-out infinite;
  background: linear-gradient(90deg, var(--state-info-bg), var(--border-info), var(--state-info-bg));
  background-size: 200% 100%;
  border-bottom: 1px solid var(--action-secondary);
  color: var(--state-info-text);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.45;
  padding: 12px 14px;
}

.location-preferences-nudge-arrow {
  animation: location-nudge-arrow-bounce 1s ease-in-out infinite;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

@keyframes location-nudge-pulse {
  0%,
  100% {
    border-color: var(--action-primary);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--action-primary) 20%, transparent),
      0 0 0 3px color-mix(in srgb, var(--action-primary) 40%, transparent),
      0 0 20px 6px color-mix(in srgb, var(--action-primary) 27%, transparent),
      0 0 40px 12px color-mix(in srgb, var(--action-secondary) 20%, transparent);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--action-primary) 33%, transparent));
  }

  50% {
    border-color: var(--state-info-text);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--action-primary) 27%, transparent),
      0 0 0 6px color-mix(in srgb, var(--action-primary) 53%, transparent),
      0 0 32px 14px color-mix(in srgb, var(--action-primary) 33%, transparent),
      0 0 56px 22px color-mix(in srgb, var(--action-primary) 27%, transparent);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--action-primary) 40%, transparent)) drop-shadow(0 0 28px color-mix(in srgb, var(--action-primary) 27%, transparent));
  }
}

@keyframes location-nudge-banner-pulse {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes location-nudge-arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

.settings-section-tabs {
  border: none;
  border-radius: 0;
  gap: 0;
  padding: 0;
}

.settings-label {
  color: var(--text-primary);
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.signup-with-email {
  overflow-wrap: anywhere;
}

#signup-with-verified-chip {
  flex-shrink: 0;
  white-space: nowrap;
}

.settings-tabs {
  align-items: flex-end;
  border-bottom: 1px solid var(--border-tabs);
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
}

.settings-tab {
  background: var(--bg-tab);
  border: 1px solid var(--border-tabs);
  border-bottom: 1px solid var(--border-tabs);
  border-radius: 10px 10px 0 0;
  color: var(--text-secondary);
  height: 36px;
  padding: 0 14px;
}

.settings-tab.is-active {
  background: var(--color-white);
  border-color: var(--action-secondary);
  border-bottom-color: var(--color-white);
  color: var(--state-info-text);
  position: relative;
  top: 1px;
}

.settings-tab-panel {
  background: var(--color-white);
  border: 1px solid var(--border-tabs);
  border-radius: 0 0 10px 10px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.settings-tab-panel[hidden] {
  display: none;
}

/* When signup tabs are hidden, the notify panel stands alone — round all corners. */
.settings-section-tabs--notify-only .settings-tab-panel {
  border-color: var(--border-light);
  border-radius: 16px;
}

.nested-option {
  margin-left: 18px;
}

.guarantee-subaddress-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.recommended-pill {
  background: var(--bg-info-light);
  border: none;
  border-radius: 999px;
  color: var(--state-info-text);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  padding: 4px 9px;
  vertical-align: middle;
  white-space: nowrap;
}

.guarantee-switch-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-signup-intro {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.settings-subaddress-help {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.settings-subaddress-help a {
  color: var(--state-info-text);
}

.settings-subaddress-help a:hover {
  color: var(--action-primary);
}

.subaddress-help-link {
  background: none;
  border: none;
  color: var(--state-info-text);
  cursor: pointer;
  font: inherit;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subaddress-help-link:hover {
  color: var(--action-primary);
}

@keyframes subaddress-help-backdrop-in {
  from {
    background: transparent;
  }

  to {
    background: color-mix(in srgb, var(--text-primary) 45%, transparent);
  }
}

@keyframes subaddress-help-panel-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.subaddress-help-dialog {
  background: transparent;
  border: none;
  color: inherit;
  margin: auto;
  max-height: min(85vh, 640px);
  max-width: min(520px, calc(100vw - 32px));
  padding: 0;
}

.subaddress-help-dialog::backdrop {
  background: color-mix(in srgb, var(--text-primary) 45%, transparent);
}

.subaddress-help-dialog[open]::backdrop {
  animation: subaddress-help-backdrop-in 0.22s ease-out both;
}

.subaddress-help-dialog-panel {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text-primary) 18%, transparent);
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 640px);
  min-height: 0;
  padding: 20px 20px 16px;
  position: relative;
}

.subaddress-help-dialog[open] .subaddress-help-dialog-panel {
  animation: subaddress-help-panel-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .subaddress-help-dialog[open]::backdrop,
  .subaddress-help-dialog[open] .subaddress-help-dialog-panel {
    animation: none;
  }
}

.subaddress-help-dialog-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 36px 12px 0;
}

.subaddress-help-dialog-close {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
}

.subaddress-help-dialog-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.subaddress-help-dialog-body {
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  overflow-y: auto;
}

.subaddress-verify-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-chip {
  align-items: center;
  background: var(--bg-hover);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  padding: 4px 9px;
  text-align: center;
  vertical-align: middle;
}

/* Preserve native hidden behavior against component display declarations. */
[hidden] {
  display: none !important;
}

.status-chip-success {
  background: var(--state-success-bg);
  color: var(--state-success-text);
}

.status-chip-pending {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.status-chip-error {
  background: var(--state-error-bg);
  color: var(--state-error-text);
}

.settings-feedback,
.subaddress-action-feedback {
  font-size: 12px;
  margin: 0;
}

.settings-feedback {
  min-height: 16px;
  min-width: 72px;
  text-align: right;
  white-space: nowrap;
}

.subaddress-action-feedback:empty {
  display: none;
}

.settings-feedback.is-error,
.subaddress-action-feedback.is-error {
  color: var(--state-error-text);
}

.is-disabled {
  opacity: 0.6;
}

.preference-table {
  border-collapse: collapse;
  width: 100%;
}

.preference-table th,
.preference-table td {
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  padding: 8px;
  text-align: center;
}

.preference-table th:first-child,
.preference-table td:first-child {
  text-align: left;
}

@media (max-width: 640px) {
  .site-title-suffix {
    display: none;
  }

  .welcome-row {
    gap: 10px;
  }

  .settings-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: stretch;
  }

  .settings-tab {
    flex: 1 1 0;
    font-size: 12px;
    line-height: 1.2;
    min-height: 40px;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
    white-space: normal;
  }

  .settings-tab-panel {
    max-height: min(72vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .slot-window-date-cell {
    max-width: 7.25rem;
  }

  .slot-window-date-input {
    font-size: 11px;
    padding: 3px 4px;
  }

  .nested-option {
    margin-left: 0;
  }
}

.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--action-primary);
  text-decoration: underline;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  height: 18px;
  width: 18px;
}

.footer-social-link svg {
  display: block;
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.footer-links .footer-social-link:hover {
  color: var(--action-primary);
  text-decoration: none;
}

.footer-separator {
  color: var(--border-default);
}

.footer-copyright {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--border-default) 80%, transparent);
  border-radius: 16px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--text-primary) 15%, transparent);
  padding: 16px;
  z-index: 1000;
  box-sizing: border-box;
  animation: cookie-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* On the landing page the banner can float over the simulation's near-black column, where its light
   glass would turn gray under the navy Accept. There it is solid white, so navy sits on light. */
body.landing-page .cookie-banner {
  background: var(--color-white);
}

@keyframes cookie-slide-up {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-banner-fade-out {
  opacity: 0;
  transform: translate(-50%, 20px);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary-dark);
}

.cookie-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cookie-banner-privacy-link {
  align-self: flex-start;
  color: var(--action-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner-privacy-link:hover {
  color: var(--brand-primary-hover);
}

.cookie-banner-content a {
  color: var(--action-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-accept-btn {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--color-white);
}

.cookie-accept-btn:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

@media (min-width: 480px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .cookie-banner-copy {
    flex: 1;
  }
  .cookie-banner-content p {
    flex: unset;
  }
  .cookie-banner-buttons {
    flex-shrink: 0;
  }
}

.document-main {
  max-width: 100%;
  margin-top: 4px;
}

.document-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.document-body {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.6;
}

.document-body h2,
.document-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-primary);
}

.document-body p {
  margin: 0 0 16px;
}

.document-body p:last-child {
  margin-bottom: 0;
}

.description-pill {
  margin-top: 14px;
  margin-bottom: 14px;
}

.site-description-body {
  color: var(--text-secondary-dark);
  font-size: 13px;
  line-height: 1.5;
}

.site-description-body a {
  color: var(--action-primary);
  text-decoration: underline;
  font-weight: 500;
}

.site-description-body a:hover {
  color: var(--brand-primary-hover);
}

.description-lead {
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.description-list {
  margin: 0;
  padding-left: 20px;
}

.description-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.description-list li:last-child {
  margin-bottom: 0;
}

.blogs-pill {
  margin-bottom: 14px;
}

.blogs-list {
  margin: 0;
  padding-left: 20px;
}

.blogs-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.blogs-list li:last-child {
  margin-bottom: 0;
}

.blogs-intro {
  margin: 0 0 10px;
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.5;
}

.home-inline-links {
  margin: 12px 0 0;
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.5;
}

.related-posts-pill {
  margin-bottom: 14px;
}

.blog-article {
  margin-top: 4px;
}

.blog-pill {
  margin-bottom: 14px;
}

.blog-body {
  color: var(--text-secondary-dark);
  font-size: 14px;
  line-height: 1.6;
}

.blog-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.blog-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: var(--text-primary);
}

.blog-body h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
  color: var(--text-primary);
}

.blog-body p {
  margin: 0 0 14px;
}

.blog-body a {
  color: var(--action-primary);
  font-weight: 500;
  text-decoration: underline;
}

.blog-body a:hover {
  color: var(--brand-primary-hover);
}

.blog-figure {
  margin: 14px 0 18px;
}

.blog-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: center;
}

.blog-chart {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.blog-stats-list,
.blog-links-list {
  margin: 0 0 14px;
  padding-left: 20px;
}

.blog-stats-list li,
.blog-links-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.blog-footnotes {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.blog-back-link {
  margin-bottom: 8px;
}

.results-table .results-status-cell {
  padding-left: 14px;
  text-align: left;
  vertical-align: top;
}

.results-status-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.results-table .status-chip {
  font-size: 11px;
  line-height: 1.15;
  max-width: 11em;
  min-height: 22px;
  white-space: normal;
  width: max-content;
}

.results-table .status-chip-label {
  display: block;
  text-align: center;
}

.results-datetime {
  color: var(--text-secondary);
  font-size: 11px;
}

.view-details-link-btn {
  background: transparent;
  border: none;
  color: var(--action-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: inherit;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

.view-details-link-btn:hover {
  opacity: 0.8;
}

#suggestion-link-btn,
#cookie-settings-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: inherit;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

#suggestion-link-btn:hover,
#cookie-settings-btn:hover {
  color: var(--action-primary);
  text-decoration: underline;
}

.suggestion-textarea {
  appearance: none;
  background-color: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  min-height: 100px;
  max-height: 200px;
  outline: none;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.suggestion-textarea:focus {
  border-color: var(--action-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.suggestion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.suggestion-submit-btn {
  background-color: var(--action-primary) !important;
  color: var(--color-white) !important;
  border: none !important;
}

.suggestion-submit-btn:hover {
  background-color: var(--brand-primary-hover) !important;
}

.suggestion-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.suggestion-feedback {
  font-size: 13px;
  margin-top: 8px;
  text-align: left;
}

.suggestion-feedback.is-error {
  color: var(--state-error-text);
}

.suggestion-feedback.is-success {
  color: var(--state-success-text);
}

/* Chinese location names are two characters. */
html[lang="zh"] .slots-table--home .slots-col-location {
  width: 18%;
}

@media (min-width: 960px) {
  body.home-page .container {
    max-width: 1080px;
  }

  /* When the results are the taller side, the spare height goes to the last row (1fr), under the
     blogs, so the right column's cards stay one under the other instead of spreading apart. */
  .home-layout {
    align-items: start;
    column-gap: 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
  }

  /* Grid items' margins don't overlap as they do in one column, so only the bottom ones space
     the right column's cards, 14 px apart each. */
  .home-layout > * {
    grid-column: 2;
    margin-top: 0;
  }

  .home-layout > .table-pill {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-top: 0;
  }

  /* The results are the narrower column, so its table fits its columns to what is in them: the
     day, the place and the count each on one line, and "When" takes what is left and wraps. */
  .home-layout .slots-table--home {
    table-layout: auto;
  }

  .home-layout .slots-table--home .slots-col-day,
  .home-layout .slots-table--home .slots-col-location {
    width: auto;
  }

  .home-layout .slots-table--home th:nth-child(-n + 2),
  .home-layout .slots-table--home td:not(:last-child) {
    white-space: nowrap;
  }
}


/* Menkyo Center's landing page: its look is in docs/style.md, "The landing page". */

/* The game's display face, the same six files the game serves (SIL Open Font License,
   static/fonts/barlow-condensed-LICENSE.txt). */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-vietnamese-700-italic.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-ext-700-italic.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-700-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-vietnamese-800-italic.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-ext-800-italic.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-condensed-latin-800-italic.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.landing-page {
  --sim-panel: #12141a;
  --sim-well: #1c2027;
  --sim-edge: rgba(255, 255, 255, 0.18);
  --sim-text: #e9eef4;
  --sim-text-dim: #c3ccd6;
  --sim-text-muted: #96a0ab;
  --sim-hairline: rgba(255, 255, 255, 0.1);
  --sim-near: #ffb020;
  --sim-ink: color-mix(in srgb, var(--sim-frame) 88%, transparent);
  --links-glass: color-mix(in srgb, var(--sim-frame) 70%, transparent);
  --sim-lift: 0 6px 16px rgba(0, 0, 0, 0.6);
  scroll-behavior: smooth;
}

/* Japanese and Chinese have no letters in the display face, and their words are not slanted: they
   keep the page's own face, upright, as in the game. */
:root:lang(ja),
:root:lang(zh) {
  --sim-display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sim-display-style: normal;
}

/* Words marked English on those pages (a brand name, as the links page's "Menkyo Center") keep the
   display face, as in the game. */
:root:lang(ja) [lang='en'],
:root:lang(zh) [lang='en'] {
  --sim-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sim-display-style: italic;
}

body.landing-page .container {
  max-width: 1080px;
}

.landing-tagline {
  color: var(--brand-primary);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  /* More below than above: the button's edge and shadow take some of it. */
  margin: 2px 104px 20px 0;
}

.landing-sim .landing-tagline {
  color: var(--sim-text);
}

.landing-tagline .landing-cta {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  min-width: 0;
}

.landing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.landing-cell {
  min-width: 0;
}

.landing-cell-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 84px;
}

.landing-sim {
  color: var(--sim-text);
}

.landing-hunter.landing-cell-body {
  background: var(--brand-secondary);
  border-radius: 26px;
  padding: 14px;
}

.landing-sim.landing-cell-body {
  background: var(--sim-panel);
  border-radius: 26px;
  padding: 14px;
}

@media (min-width: 860px) {
  .landing-grid {
    column-gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }

  .landing-hunter.landing-cell-card { grid-column: 1; grid-row: 1; }
  .landing-sim.landing-cell-card { grid-column: 2; grid-row: 1; }
  .landing-hunter.landing-cell-body { grid-column: 1; grid-row: 2; }
  .landing-sim.landing-cell-body { grid-column: 2; grid-row: 2; }

  .landing-cell-card {
    display: flex;
    flex-direction: column;
  }

  .landing-cell-card .landing-card {
    flex: 1;
  }

  /* The body is drawn over the card's shadow, with its own shadow below and to the sides only,
     so the card and its body read as one piece. */
  .landing-cell-card .landing-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .landing-hunter.landing-cell-body,
  .landing-sim.landing-cell-body {
    padding-top: 26px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 20px 44px color-mix(in srgb, var(--brand-primary) 24%, transparent), 0 4px 10px color-mix(in srgb, var(--brand-primary) 12%, transparent);
    clip-path: inset(0 -60px -60px -60px);
    position: relative;
    z-index: 1;
  }

  .landing-sim.landing-cell-body {
    box-shadow: 0 20px 44px color-mix(in srgb, var(--brand-primary) 40%, transparent), 0 4px 10px rgba(0, 0, 0, 0.25);
  }

  /* Gaimen Hunter's card has nothing left under its picture but the phone's down arrow. */
  .landing-hunter .landing-card-actions {
    display: none;
  }
}

.landing-card {
  background: var(--color-white);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow: 0 20px 44px color-mix(in srgb, var(--brand-primary) 24%, transparent), 0 4px 10px color-mix(in srgb, var(--brand-primary) 12%, transparent);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

/* The course is bright at the card's top, where it meets the navy header and Gaimen Hunter's navy
   button. The picture is the template's (--sim-aerial, in the card's style attribute, which wins
   over this rule's none), versioned so it caches for good. */
.landing-sim .landing-card {
  --sim-aerial: none;
  background:
    linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--sim-frame) 20%, transparent) 40px, color-mix(in srgb, var(--sim-frame) 96%, transparent) 190px),
    var(--sim-aerial) 50% 0 / 100% auto no-repeat,
    var(--sim-frame);
  /* A clean hairline round the whole card: the picture and its shading stay inside the border, so
     none of the sky shows in it along the rounded corners. */
  background-clip: padding-box;
  border-color: var(--sim-frame);
  box-shadow: 0 20px 44px color-mix(in srgb, var(--brand-primary) 40%, transparent), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.landing-gallery-frame {
  aspect-ratio: 16 / 9;
  background: var(--bg-tab);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

/* Gaimen Hunter's gallery has no thumbnails, and its pictures (a phone on light blue) take most of
   the card: 4:5 on a phone. Cropped at the empty sides, so the phone shows bigger. */
.landing-hunter .landing-gallery-frame {
  aspect-ratio: 4 / 5;
}

/* Side by side, both galleries are the same height, Gaimen Hunter's picture and the simulation's
   picture with its mode cards, so the two product titles under them sit level whatever their
   words. Whichever card is shorter keeps its spare room at its foot. */
@media (min-width: 860px) {
  .landing-gallery {
    display: flex;
    flex-direction: column;
    height: 420px;
  }

  .landing-gallery-frame,
  .landing-hunter .landing-gallery-frame {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
  }
}

.landing-sim .landing-gallery-frame {
  background: var(--sim-frame);
}

.landing-sim .landing-gallery-frame,
.game-promo-picture {
  border-radius: 12px;
}

.landing-gallery-picture {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.landing-gallery-picture[hidden] {
  display: none;
}

/* The drills' picture has the examiner's checklist against its left edge: when the frame is a
   little taller than the picture (side by side, level with Gaimen Hunter's), it loses its right
   side, not that edge. */
.landing-gallery-picture-left {
  object-position: left center;
}

.landing-gallery-label.landing-picture-name {
  bottom: auto;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 1;
}

.landing-gallery-arrow {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  font-size: 22px;
  height: 36px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
}

.landing-gallery-previous { left: 8px; }
.landing-gallery-next { right: 8px; }

.landing-gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.landing-gallery-thumb {
  aspect-ratio: 16 / 9;
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 76px;
  opacity: 0.6;
  overflow: hidden;
  padding: 0;
}

.landing-gallery-thumb[aria-pressed='true'] {
  border-color: var(--action-primary);
  opacity: 1;
}


.landing-gallery-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.landing-sim .landing-gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.landing-mode {
  aspect-ratio: 16 / 10;
  background: var(--sim-frame);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--sim-lift);
  isolation: isolate;
  opacity: 1;
  position: relative;
}

.landing-mode[aria-pressed='true'] {
  box-shadow: 0 0 0 3px var(--sim-good), var(--sim-lift);
}

.landing-mode:focus-visible {
  outline: 2px solid var(--sim-route);
  outline-offset: 4px;
}

.landing-mode .landing-picture-name {
  font-size: 15px;
  padding: 5px 22px 5px 9px;
}

/* On a phone the mode cards are narrow: their names a little smaller, and the Japanese and Chinese
   ones (upright, wider letters) smaller still, so each fits on its tab. */
@media (max-width: 520px) {
  .landing-sim .landing-gallery-thumbs {
    gap: 8px;
  }

  .landing-mode .landing-picture-name {
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 4px 18px 4px 7px;
  }

  .landing-mode .landing-picture-name:lang(ja),
  .landing-mode .landing-picture-name:lang(zh) {
    font-size: 11px;
    letter-spacing: 0;
    max-width: 100%;
    padding: 4px 15px 4px 6px;
  }
}

/* A drill's longer name wraps onto a second line on a phone rather than being cut short. */
.landing-drills li span {
  line-height: 1.1;
  white-space: normal;
}

.landing-gallery:not([data-ready]) .landing-gallery-arrow,
.landing-gallery:not([data-ready]) .landing-gallery-thumbs {
  display: none;
}

.landing-card {
  overflow: hidden;
  position: relative;
}

.landing-corner {
  background: var(--landing-free);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  color: var(--landing-free-text);
  height: 150px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 150px;
  z-index: 2;
}

/* FREE is centered on the same spot in both corners; the simulation's TRY FOR sits above it. */
.landing-corner-label {
  left: 29px;
  position: absolute;
  text-align: center;
  top: 45px;
  transform: rotate(45deg);
  width: 132px;
}

.landing-corner-label b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-corner-label small {
  bottom: 100%;
  display: block;
  font-size: 12px;
  font-weight: 800;
  left: 0;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 3px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

/* Side by side on a narrow screen, the taglines a little smaller, so the simulation's fits on one
   line beside its corner and the two cards' tops stay the same height. */
@media (min-width: 860px) and (max-width: 1023px) {
  .landing-tagline {
    font-size: 22px;
    margin-right: 96px;
  }

  .landing-tagline .landing-cta-sim {
    padding-right: 36px;
  }
}

/* A phone: the corner and the taglines a little smaller, so both taglines fit on one line. */
@media (max-width: 520px) {
  .landing-corner {
    height: 128px;
    width: 128px;
  }

  .landing-corner-label {
    left: 15px;
    top: 35px;
  }

  .landing-corner-label b {
    font-size: 22px;
  }

  .landing-tagline {
    font-size: 22px;
    margin-right: 86px;
  }

  .landing-tagline .landing-cta {
    min-height: 46px;
    padding: 10px 18px;
    white-space: nowrap;
  }

  .landing-tagline .landing-cta-sim {
    padding-right: 40px;
  }
}

.landing-card-title {
  align-items: center;
  color: var(--brand-primary);
  display: flex;
  font-size: 28px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 2px 0 0;
}

.landing-card-title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-shadow: 0 2px 6px color-mix(in srgb, var(--brand-primary) 28%, transparent);
  text-underline-offset: 5px;
}

.landing-sim .landing-card-title a {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.landing-card-title a:hover {
  text-decoration-thickness: 3px;
}

/* On a phone each body follows both cards, so it starts with its product's name and mark again,
   smaller; side by side, its card stands right above it. */
.landing-body-name {
  margin: 2px 4px 0;
}

.landing-body-name a {
  align-items: center;
  color: var(--brand-primary);
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 8px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.landing-sim .landing-body-name a {
  color: var(--sim-text);
}

.landing-body-name img {
  height: 28px;
  width: 33px;
}

@media (min-width: 860px) {
  .landing-body-name {
    display: none;
  }
}

.landing-product-icon {
  flex: none;
  height: 46px;
  width: 55px;
}

.landing-sim .landing-card-title {
  color: var(--sim-text);
}

.landing-card-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

.landing-sim .landing-card-subtitle {
  color: var(--sim-text-dim);
}

.landing-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 4px;
}

.landing-jump {
  display: none;
}

@media (max-width: 859px) {
  .landing-jump {
    align-items: center;
    background: var(--bg-tab);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    height: 34px;
    justify-content: center;
    width: 34px;
  }

  .landing-sim .landing-jump {
    background: var(--sim-well);
    border-color: var(--sim-hairline);
  }
}

.landing-jump svg {
  fill: none;
  height: 18px;
  stroke: var(--brand-primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 18px;
}

.landing-sim .landing-jump svg {
  stroke: var(--sim-good);
}

.landing-cta {
  align-items: center;
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 17px;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  min-width: 240px;
  padding: 14px 28px;
  text-decoration: none;
}

.landing-cta {
  transition: box-shadow 0.12s ease, transform 0.12s ease, background 0.12s ease;
}

.landing-cta:hover {
  transform: translateY(-1px);
}

.landing-cta:active {
  transform: translateY(3px);
}

.landing-cta-hunter {
  background: var(--brand-primary);
  box-shadow: 0 4px 0 var(--brand-primary-edge), 0 10px 20px color-mix(in srgb, var(--brand-primary) 35%, transparent);
  color: var(--color-white);
}

.landing-cta-hunter:hover {
  background: var(--brand-primary-hover);
  box-shadow: 0 5px 0 var(--brand-primary-edge), 0 14px 24px color-mix(in srgb, var(--brand-primary) 40%, transparent);
}

.landing-cta-hunter:active {
  box-shadow: 0 1px 0 var(--brand-primary-edge), 0 3px 8px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

.landing-cta-sim {
  color: var(--sim-good-text);
}

/* The green tab is drawn behind the words, so the focus ring keeps its place round the whole
   button. */
.landing-tagline .landing-cta-sim,
.game-promo .landing-cta-sim {
  border-radius: 12px 0 0 12px;
  font-family: var(--sim-display);
  font-style: var(--sim-display-style);
  font-weight: 800;
  isolation: isolate;
  letter-spacing: 0.04em;
  padding-right: 54px;
  position: relative;
  text-transform: uppercase;
}

.landing-cta-sim::before {
  background: var(--sim-good);
  border-radius: 12px 0 0 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
  content: '';
  inset: 0;
  position: absolute;
  transition: background 0.12s ease;
  z-index: -1;
}

.landing-cta-sim:hover::before,
.game-promo:hover .landing-cta-sim::before {
  background: var(--sim-good-tint);
}

/* A filter, so the edge and shadow follow the leaning shape: a box shadow would be square or
   clipped. */
.landing-tagline .landing-cta-sim,
.game-promo .landing-cta-sim {
  filter: drop-shadow(0 4px 0 var(--sim-good-edge)) drop-shadow(0 10px 14px color-mix(in srgb, var(--sim-frame) 45%, transparent));
  transition: filter 0.12s ease, transform 0.12s ease;
}

.landing-tagline .landing-cta-sim:hover,
.game-promo .landing-cta-sim:hover {
  filter: drop-shadow(0 5px 0 var(--sim-good-edge)) drop-shadow(0 14px 18px color-mix(in srgb, var(--sim-frame) 50%, transparent));
}

.landing-tagline .landing-cta-sim:active,
.game-promo .landing-cta-sim:active {
  filter: drop-shadow(0 1px 0 var(--sim-good-edge)) drop-shadow(0 3px 6px color-mix(in srgb, var(--sim-frame) 40%, transparent));
}

.landing-cta-sim:focus-visible {
  outline: 2px solid var(--sim-route);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .landing-cta,
  .landing-tagline .landing-cta-sim,
  .game-promo .landing-cta-sim {
    transition: none;
  }
}

.landing-card-note {
  color: var(--sim-text-muted);
  font-size: 13px;
}

.landing-sim .content-pill {
  background: color-mix(in srgb, var(--color-white) 5%, transparent);
  border-color: var(--sim-edge);
  border-radius: 12px;
}

.landing-sim .content-pill-reader {
  background: none;
  border-bottom-color: var(--sim-hairline);
  color: var(--sim-text);
  font-family: var(--sim-display);
  font-size: 19px;
  font-style: var(--sim-display-style);
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 14px 16px 10px;
  text-transform: uppercase;
}

h3.content-pill-reader {
  font-size: 14px;
}

.landing-hunter .content-pill-reader {
  background: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  color: var(--color-white);
}

.landing-sim .description-list li {
  color: var(--sim-text-dim);
}

.landing-benefits {
  margin-top: 0;
}

.landing-figure {
  margin: 14px 0 0;
}

.landing-figure img,
.landing-drills img {
  display: block;
  height: auto;
  width: 100%;
}

.landing-figure img {
  border-radius: 12px;
}

.landing-figure figcaption {
  color: var(--sim-text-muted);
  font-size: 13px;
  margin-top: 6px;
}

.landing-drills {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-drills li {
  border-radius: 12px;
  box-shadow: var(--sim-lift);
  overflow: hidden;
  position: relative;
}

.landing-picture-name,
.landing-drills span {
  background: var(--sim-ink);
  bottom: 0;
  box-sizing: border-box;
  clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
  color: var(--sim-text);
  font-family: var(--sim-display);
  font-size: 16px;
  font-style: var(--sim-display-style);
  font-weight: 800;
  left: 0;
  letter-spacing: 0.05em;
  line-height: 1;
  max-width: 97%;
  overflow: hidden;
  padding: 6px 24px 6px 10px;
  position: absolute;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.landing-caution {
  /* The amber over the game's deepest black, as in the game's welcome. */
  background: linear-gradient(color-mix(in srgb, var(--sim-near) 12%, transparent), color-mix(in srgb, var(--sim-near) 12%, transparent)), var(--sim-frame);
  border: 1px solid color-mix(in srgb, var(--sim-near) 35%, transparent);
  border-radius: 12px;
  color: var(--sim-near);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px;
}

.landing-caution strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-steps {
  counter-reset: landing-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-steps li {
  align-items: center;
  color: var(--text-secondary-dark);
  counter-increment: landing-step;
  display: flex;
  font-size: 14px;
  gap: 12px;
}

.landing-steps li::before {
  align-items: center;
  background: var(--brand-secondary);
  border-radius: 50%;
  color: var(--brand-primary);
  content: counter(landing-step);
  display: inline-flex;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  width: 26px;
}

/* ---- The links page (/<locale>/links, the business card's QR code): phone first ---- */

/* Dark until the course's picture arrives, not the site's light gray. */
body.links-page {
  background: var(--sim-frame);
}

body.links-page .container {
  /* One corner for every card; a logo's is what is left of it inside the button's padding, so the
     two curves run side by side. */
  --links-radius: 18px;
  --links-pad: 8px;
  box-sizing: border-box;
  /* At least a screen tall, so the footer sits at its bottom edge, apart from the links (the
     small viewport: with a phone's toolbars showing, the footer is still on the screen). */
  display: flex;
  flex-direction: column;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  /* No header bar to clear: the card's logo starts near the top of the screen. */
  padding-top: 16px;
}

/* The header is the language picker alone, at the page's top right on the cards' glass. It scrolls
   away with the page, and the empty bar around it lets clicks through. */
body.links-page .top-nav-shell {
  backdrop-filter: none;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr);
  pointer-events: none;
  position: absolute;
}

body.links-page .top-nav {
  background: none;
  border-color: transparent;
  justify-content: flex-end;
  padding: 12px 14px;
}

body.links-page .top-nav-actions {
  pointer-events: auto;
}

body.links-page .language-picker-trigger {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: var(--links-glass);
  border-color: var(--sim-edge);
  box-shadow: var(--sim-lift);
  height: 40px;
  width: 40px;
}

/* The cards are dark glass, so the course shows through them, softened. */
.links-profile,
.links-button,
.links-social {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Fixed behind the page, so the course stays put while the links scroll over it. */
.links-backdrop img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: fixed;
  width: 100%;
  z-index: -1;
}

/* A shade along the screen's bottom edge, under the footer's small print. */
.links-backdrop::after {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85));
  bottom: 0;
  content: "";
  height: 240px;
  left: 0;
  position: fixed;
  right: 0;
  z-index: -1;
}

.links-profile {
  background: var(--links-glass);
  border: 1px solid var(--sim-edge);
  border-radius: var(--links-radius);
  box-shadow: var(--sim-lift);
  color: var(--sim-text);
  margin-top: 58px;
  padding: 56px 18px 20px;
  position: relative;
  text-align: center;
}

/* The logo on a white disc, half over the card's top edge: a link to the top page. */
.links-avatar {
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--sim-lift);
  display: block;
  left: 50%;
  padding: 4px;
  position: absolute;
  top: -46px;
  transform: translateX(-50%);
  transition: transform 0.12s ease;
}

.links-avatar img {
  display: block;
}

.links-avatar:focus-visible {
  outline: 3px solid var(--sim-text);
  outline-offset: 2px;
}

.links-avatar:active {
  transform: translateX(-50%) scale(0.96);
}

.links-name {
  font: var(--sim-display-style) 800 36px / 1 var(--sim-display);
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
}

.links-bio {
  color: var(--sim-text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 0;
}

/* Menkyo Center's own site: a thumb-sized row with its logo, its name, and an arrow. */
.links-button {
  align-items: center;
  background: var(--links-glass);
  border: 1px solid var(--sim-edge);
  border-radius: var(--links-radius);
  box-shadow: var(--sim-lift);
  color: var(--sim-text);
  display: flex;
  font-size: 17px;
  font-weight: 700;
  gap: 14px;
  margin-top: 12px;
  padding: var(--links-pad) 14px var(--links-pad) var(--links-pad);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.links-button:hover,
.links-button:focus-visible {
  border-color: var(--sim-text-dim);
}

.links-button:focus-visible {
  outline: 3px solid var(--sim-text);
  outline-offset: 2px;
}

.links-button:active {
  transform: scale(0.98);
}

/* The tiles are squares: the corner is the page's, the same for every service. */
.links-logo {
  border-radius: calc(var(--links-radius) - var(--links-pad));
  display: block;
  flex: none;
  height: 48px;
  width: 48px;
}

/* The accounts: their logos in a row on one glass strip, spread across it. */
.links-social {
  background: var(--links-glass);
  border: 1px solid var(--sim-edge);
  border-radius: var(--links-radius);
  box-shadow: var(--sim-lift);
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 12px 0 0;
  padding: var(--links-pad) 14px;
}

.links-social-link {
  border-radius: calc(var(--links-radius) - var(--links-pad));
  display: block;
  transition: transform 0.12s ease;
}

.links-social .links-logo {
  height: 52px;
  width: 52px;
}

.links-social-link:focus-visible {
  outline: 3px solid var(--sim-text);
  outline-offset: 2px;
}

.links-social-link:active {
  transform: scale(0.94);
}

.links-label {
  flex: 1;
  min-width: 0;
}

.links-arrow {
  color: var(--sim-text-muted);
  fill: none;
  flex: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 20px;
}

/* The footer is small print at the bottom of the screen, not another card: pushed down by the
   column's spare height, never closer to the links than its own top padding. */
body.links-page .site-footer {
  border-top: 0;
  color: var(--sim-text-muted);
  margin-top: auto;
  padding: 48px 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body.links-page .footer-links a,
body.links-page .footer-social-link,
body.links-page #suggestion-link-btn,
body.links-page #cookie-settings-btn {
  color: var(--sim-text-dim);
}

body.links-page .footer-links a:hover,
body.links-page #suggestion-link-btn:hover,
body.links-page #cookie-settings-btn:hover {
  color: var(--sim-text);
}

body.links-page .footer-separator {
  color: var(--sim-hairline);
}
