[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --bg: #e68019;
  --ink: #ffffff;
  --accent: #e3e3b0;
  --chevron: var(--accent);
  --rule: #e3e3b0;
  --mail-surface: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --accent: #918fff;
  --chevron: #918fff;
  --rule: #5a5a5f;
  --mail-surface: #292a2d;
}

:root[data-theme="white"] {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --accent: #e68019;
  --chevron: var(--accent);
  --rule: #e68019;
  --mail-surface: #f2f2f2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #000000;
    --ink: #ffffff;
    --accent: #918fff;
    --chevron: #918fff;
    --rule: #5a5a5f;
    --mail-surface: #292a2d;
  }
}

body {
  --page-top: calc(clamp(16px, 3vh, 100px) + env(safe-area-inset-top, 0px));
  --page-left: clamp(10px, 3vw, 24px);
  --rail-width: 504px;
  --corner-mark: 18px;
  --corner-gap: 22px;
  --plate-h: 440px;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding-top: calc(var(--page-top) + 72px);
  padding-left: var(--page-left);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.header-line {
  position: fixed;
  top: var(--page-top);
  left: var(--page-left);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
}

.header-line .name.name {
  position: static;
  top: auto;
  left: auto;
  padding-left: 0;
}

.theme-btn {
  position: relative;
  top: 2px;
  flex: 0 0 auto;
  z-index: 11;
  width: 14px;
  text-decoration: none;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  box-shadow: inset 0 0 0 var(--ring) var(--ink);
  --ring: 1.75px;
  font: inherit;
  line-height: 0;
  cursor: pointer;
  transition: opacity 140ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

:root[data-theme="dark"] .theme-btn,
:root[data-theme="white"] .theme-btn {
  background: var(--bg);
  box-shadow: inset 0 0 0 var(--ring) var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-btn {
    background: var(--bg);
    box-shadow: inset 0 0 0 var(--ring) var(--ink);
  }
}

.theme-instant *,
.theme-instant *::before,
.theme-instant *::after {
  transition: none !important;
}

.theme-btn:hover {
  opacity: 0.62;
}

.theme-btn::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}



:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.name-heading {
  margin: 0;
  font: inherit;
}





@media (min-width: 901px) {
  
  }
.site-menu {
  position: fixed;
  top: calc(var(--page-top) + 9px);
  right: var(--page-left);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: opacity 140ms ease;
}

.site-menu.is-faded,
.site-menu.is-faded * {
  pointer-events: none;
}

.site-menu-btn {
  display: block;
  padding: 6px;
  margin: -6px;
  border: 0;
  background: none;
  color: var(--ink);
  line-height: 0;
  cursor: pointer;
}

.site-menu-icon {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 140ms ease;
}

.site-menu-btn:hover .site-menu-icon {
  opacity: 0.6;
}

.site-menu[data-open="true"] .site-menu-icon {
  transform: rotate(45deg);
}

.site-menu[data-open="true"]::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -10px;
  width: calc(100% + 20px);
  height: 20px;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 17px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 15px 19px 17px;
  max-width: calc(100vw - 2 * var(--page-left));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: 100% 0;
  transition: opacity 200ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 280ms;
}

.site-menu[data-open="true"] .site-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.site-menu-panel a {
  display: block;
  padding: 3px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 240ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-menu[data-open="true"] .site-menu-panel a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 26ms);
}

.site-menu-panel a[target="_blank"]::after,
.site-menu-panel a.show-external-icon::after {
  content: "\2197\FE0E";
  font-variant-emoji: text;
  margin-left: 0.22em;
  display: inline-block;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: text-top;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-icon,
  .site-menu-panel,
  .site-menu-panel a {
    transition-duration: 1ms;
    transition-delay: 0s;
  }
}

.name {
  position: fixed;
  color: var(--ink) !important;
  top: var(--page-top);
  left: var(--page-left);
  text-decoration: none;
  margin: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  z-index: 10;
  transition: opacity 140ms ease;
}

.about-link {
  position: fixed;
  top: calc(var(--page-top) + 33px);
  left: var(--page-left);
  color: inherit;
  text-decoration: none;
  margin-top: 0;
  margin-left: 0;
  margin-bottom: 5px;
  font-size: 22px;
  font-weight: 300;
  z-index: 10;
  transition: opacity 140ms ease;
}

.about-link[aria-current="page"]:not(.about-toggle)::before {
  content: "> ";
}

.about-link.is-active {
  color: var(--ink);
  margin-bottom: 20px;
}

@media (min-width: 901px) {
  .about-link {
    display: inline-block;
    padding-bottom: 13px;
  }

  .cv-page .about-link:first-of-type {
    padding-bottom: 5px;
  }
}

.back-link {
  position: fixed;
  top: calc(var(--page-top) + 33px);
  left: var(--page-left);
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 300;
  z-index: 10;
  transition: opacity 140ms ease;
}

.back-link::before {
  content: "\2190\00a0";
}

.back-link:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2.25px;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .back-link {
    position: static;
    display: block;
    margin: 0 0 8px 0;
    line-height: 1.15;
  }
}

html:not(.has-back) .back-link[data-back] {
  display: none;
}

.page-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-right: 0;
  color: var(--ink);
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.page-toggle::before {
  content: "\25B8\00a0";
  font-size: 0.82em;
}

.page-toggle[aria-expanded="true"]::before {
  content: "\25BE\00a0";
}

.page-toggle[aria-expanded="true"]::after {
  content: "...";
}

.page-body.is-collapsed,
#page-body.is-collapsed {
  display: none !important;
}

.page-feedback {
  display: none;
}

body.is-folded {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  body.is-folded .back-link,
  body.is-folded .page-toggle {
    position: absolute;
  }
}

.is-folded .page-feedback {
  display: block;
  flex: none;
  width: min(560px, 100%);
  max-width: none;
  margin: auto;
  padding: 32px 0 0;
}

@media (min-width: 901px) {
  body.cv-page.is-folded {
    padding: calc(var(--page-top) + 66px) 36px 0 var(--page-left);
  }

  html.has-back body.cv-page.is-folded {
    padding-top: calc(var(--page-top) + 99px);
  }

  .materials-page .site-foot {
    padding-left: var(--page-left);
  }

  .materials-page.is-folded .site-foot {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  body.cv-page.is-folded {
    padding: 16px;
  }

  body.materials-page.is-folded .name,
  body.materials-page.is-folded .about-link,
  body.materials-page.is-folded .back-link,
  body.materials-page.is-folded .header-line {
    padding-left: 0;
  }

  .materials-page:not(.is-folded) .site-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 901px) {
  html.has-back .page-toggle {
    top: calc(var(--page-top) + 66px);
  }

  html.has-back .cv-page {
    padding-top: calc(var(--page-top) + 139px);
  }

  html.has-back .index-page {
    padding-top: calc(var(--page-top) + 99px);
  }

  html.has-back .index-page.art-page {
    padding-top: calc(var(--page-top) + 66px);
  }

  html.has-back .index-page .about-toggle {
    top: calc(var(--page-top) + 66px);
  }

  .index-page .back-link {
    position: absolute;
  }
}


.cv-page h2 {
  font-weight: 300 !important;
}

.cv-page main p {
  margin-left: 1.25em;
}

.cv-page main p.cv-sub {
  margin-left: clamp(1.8em, 4vw, 2.5em);
}

.cv-page main p.cv-contact {
  margin: 0 0 26px 0;
  font-size: 20px;
  font-weight: 300;
}

.cv-contact a {
  color: inherit;
  text-decoration: none;
}

.cv-contact a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

body.misc-page {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.misc-links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
}

.misc-links li + li {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .misc-links {
    margin-top: 28px;
  }
}

.misc-links a {
  color: inherit;
  text-decoration: none;
}

.misc-links a:hover,
.misc-links a:focus-visible {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cv-page main > section:first-child > h2:first-child {
  margin-top: 0;
}

.cv-meta {
  font-size: 0.78em;
}

.privacy-page main {
  max-width: 68ch;
}

.privacy-page main p {
  margin-left: 0;
  margin-bottom: 0.85em;
  font-weight: 300;
  line-height: 1.5;
}

.privacy-page main p.privacy-lede {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.privacy-page main p.privacy-meta {
  font-size: 14px;
  opacity: 0.65;
  margin-bottom: 26px;
}

.privacy-page main a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-page main b {
  font-weight: 600;
}

.privacy-page main a:hover {
  text-decoration-thickness: 2px;
}

.game-legal {
  margin: 10px 0 0 0;
  font-size: 13px;
  font-weight: 300;
  opacity: 0.55;
}

.game-legal a {
  color: inherit;
  text-decoration: none;
}

.game-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv-page {
  padding-bottom: 25px;
}

@media (min-width: 901px) {
  .cv-page {
    padding-top: calc(var(--page-top) + 106px);
  }

  .game-page {
    padding-right: var(--page-left);
  }

  .game-page.is-playing {
    padding-top: calc(var(--page-top) + 84px);
  }
}

.cv-page .name {
  color: var(--ink) !important;
}

.cv-publication-link,
.cv-publication-link:visited {
  color: inherit;
  text-decoration: none;
}

.cv-publication-link:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.75px;
  text-underline-offset: 3px;
}

.cv-publication-link:active {
  color: var(--ink);
}

.name:hover,
.about-link:hover,
.site-menu-panel a:hover,
.index-instagram-link:hover,
.me-contact-links a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2.25px;
  text-underline-offset: 3px;
}

.me-contact-links a:hover {
  text-decoration-thickness: 2.8px;
  text-underline-offset: 4.5px;
}

a[href*="fuzhounese.org"]:active,
a[href="/flashcard/"]:active,
a[href="/projects/"]:active,
a[href*="ucgeo.org"]:active,
a[href*="llso.uchicago.edu"]:active,
a[href*="cegu.uchicago.edu/expositions"]:active,
a[href*="substack.com"]:active,
a[href*="fauxnixai"]:active,
a[href*="thedragonflyagency.com"]:active,
a[href*="therockagency.com"]:active,
a[href*="instagram.com"]:active,
a[href*="linkedin.com"]:active,
a[href="mailto:noahlee519@gmail.com"]:active,
a[href="/cv/"]:active {
  color: var(--ink);
}

.profile-photo-frame {
  display: block;
  width: clamp(90px, 28vw, 320px);
  max-width: 90vw;
  aspect-ratio: 950 / 1656;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
}

.art-main {
  padding-top: clamp(42px, 7vh, 70px);
  padding-right: clamp(14px, 3vw, 36px);
  padding-bottom: 40px;
}

.index-page {
  padding-top: calc(var(--page-top) + 66px);
}

.index-page.art-page {
  padding-top: calc(var(--page-top) + 33px);
}

@media (min-width: 901px) {
  .index-page .art-toggle {
    margin-bottom: 30px;
  }

  .index-page .about-panel {
    margin-top: 38px;
  }
}

@media (max-width: 900px) {
  body.index-page .art-main {
    padding-top: 0;
  }

  .index-page .about-panel {
    margin-top: 20px;
  }

  .index-page .art-toggle {
    margin-bottom: 28px;
  }
}

.index-page .art-main {
  padding-top: 0;
}

.index-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}

.index-page .art-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.index-page .index-instagram-link {
  margin-top: 0;
}

.index-page .art-main > br {
  display: none;
}

.index-page .art-gallery {
  margin-bottom: 48px;
}

.art-gallery.is-collapsed ~ .index-instagram-link,
.art-gallery.is-collapsed ~ .site-nav {
  display: none;
}

.index-page .art-main {
  padding-bottom: 0;
}

.index-page .site-nav {
  padding-bottom: 0;
}

.site-foot {
  margin-top: auto;
  padding-top: 56px;
  padding-bottom: var(--page-top);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  opacity: 0.55;
}

.misc-page:not(.is-folded) .site-foot {
  display: none;
}

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

.site-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .site-foot {
    padding-bottom: 0;
    text-align: center;
  }
}

.index-page .site-nav a:not(:hover):not(:focus-visible)::before,
.index-page .site-nav a:not(:hover):not(:focus-visible)::after {
  display: none;
}

.index-instagram-link {
  display: block;
  margin-top: 28px;
  color: inherit;
  text-decoration: none;
  font-size: 22px;
  font-weight: 300;
}

.index-instagram-link:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 18px;
  padding-bottom: 48px;
  font-size: 22px;
  font-weight: 300;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.site-nav a::before,
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 0 solid var(--chevron);
  opacity: 0;
  pointer-events: none;
}

.site-nav a::before {
  bottom: calc(100% + 4px);
  border-width: 0 2px 2px 0;
  transform: translateX(-50%) rotate(45deg);
}

.site-nav a::after {
  top: calc(100% + 7px);
  border-width: 2px 0 0 2px;
  transform: translateX(-50%) rotate(45deg);
}

.site-nav a:hover::before,
.site-nav a:hover::after,
.site-nav a:focus-visible::before,
.site-nav a:focus-visible::after {
  opacity: 1;
}

.site-nav a:focus-visible {
  outline: none;
}

.about-panel {
  display: none;
  margin: 0 0 60px;
}

.about-panel-inner {
  max-width: 980px;
}

.index-page .about-panel > br {
  display: none;
}

.profile-photo-frame.portrait-frame {
  aspect-ratio: auto;
}

@media not all and (hover: hover) and (pointer: fine) {
  .portrait-frame .tiles[data-grid="4x6"] {
    aspect-ratio: 16 / 24 !important;
  }
}

.portrait-frame .tiles {
  display: block;
  max-width: 100%;
  touch-action: pan-y;
  cursor: crosshair;
}

.portrait-frame .tiles-hint {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 300;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .portrait-frame .tiles {
    margin: 0 auto;
  }

  .portrait-frame .tiles-hint {
    text-align: center;
  }
}

.trail {
  --trail-a: #ffffff;
  --trail-b: #2a44d6;
  position: fixed;
  inset: 0;
  z-index: 45;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

:root[data-theme="dark"] .trail {
  --trail-a: #e68019;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .trail {
    --trail-a: #e68019;
  }
}

.feedback {
  max-width: 560px;
  margin: 0 0 24px;
}

.about-panel.is-open + .feedback {
  display: none;
}

.about-panel:not(.is-open) + .feedback,
.art-gallery.is-collapsed ~ .feedback {
  align-self: center;
  width: min(560px, 100%);
  max-width: none;
  margin: auto 0;
  padding-top: 32px;
}

.feedback-label {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 300;
}

.feedback textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  resize: vertical;
}

.feedback textarea::placeholder {
  color: inherit;
  opacity: 0.55;
}

.feedback textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.feedback-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.feedback-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}

.feedback-send {
  appearance: none;
  padding: 6px 0 7px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  transition: transform 140ms ease;
}

.feedback-send:active {
  transform: scale(0.97);
}

.feedback-send:disabled {
  opacity: 0.5;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .feedback-send:not(:disabled):hover {
    text-decoration: underline;
    text-decoration-color: var(--ink);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }
}

.feedback-send:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.feedback-status {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
}

.feedback-status.is-bad {
  font-weight: 400;
}

.art-gallery:not(.is-collapsed) ~ .feedback {
  display: none;
}

.about-panel .art-gallery {
  scroll-margin-top: 100px;
}

.about-panel .index-instagram-link {
  text-align: left;
}

@media (min-width: 901px) {
  .about-panel .art-gallery {
    margin-top: 110px;
  }
}

.about-panel.is-open {
  display: block;
}

@media (min-width: 901px) {
  .about-panel {
    padding-top: 14px;
  }
}

@media (max-width: 900px) {
  .about-panel {
    padding-top: 2px;
  }

  .about-panel .art-gallery {
    margin-top: 50px;
    padding-top: 48px;
    border-top: 1px solid var(--rule);
  }
}

.about-panel-inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 54px);
}

.about-panel .profile-photo-frame {
  flex: 0 0 auto;
  width: clamp(90px, 20vw, 220px);
}

.about-panel .profile-photo-frame.portrait-frame {
  width: min(clamp(270px, 32.4vw, 468px), 44.9vh, 414px);
}

.about-panel-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 54px;
  min-width: 0;
}

.about-panel-bio {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  max-width: 60ch;
}

.about-panel-bio a {
  color: inherit;
  text-decoration: none;
}

.about-panel-bio a:hover,
.about-panel-bio a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.about-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 22px;
  font-weight: 300;
}

.about-panel-links a {
  color: inherit;
  text-decoration: none;
}

.about-panel-links a {
  position: relative;
}

.about-panel-links a::before,
.about-panel-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 0 solid var(--chevron);
  opacity: 0;
  pointer-events: none;
}

.about-panel-links a::before {
  bottom: calc(100% + 4px);
  border-width: 0 2px 2px 0;
  transform: translateX(-50%) rotate(45deg);
}

.about-panel-links a::after {
  top: calc(100% + 7px);
  border-width: 2px 0 0 2px;
  transform: translateX(-50%) rotate(45deg);
}

.about-panel-links a:hover::before,
.about-panel-links a:hover::after,
.about-panel-links a:focus-visible::before,
.about-panel-links a:focus-visible::after {
  opacity: 1;
}

.about-panel-links a:focus-visible,
.contact-menu-btn:focus-visible {
  outline: none;
}

@media (hover: none) {
  .about-panel-links a::before,
  .about-panel-links a::after {
    display: none;
  }
  .about-panel-links a:active {
    color: var(--accent);
  }
}

.contact-menu {
  position: relative;
}

.contact-menu-btn {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.contact-menu-btn::before,
.contact-menu-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 0 solid var(--chevron);
  opacity: 0;
  pointer-events: none;
}

.contact-menu-btn::before {
  bottom: calc(100% + 4px);
  border-width: 0 2px 2px 0;
  transform: translateX(-50%) rotate(45deg);
}

.contact-menu-btn::after {
  top: calc(100% + 7px);
  border-width: 2px 0 0 2px;
  transform: translateX(-50%) rotate(45deg);
}

.contact-menu-btn:hover::before,
.contact-menu-btn:hover::after,
.contact-menu-btn:focus-visible::before,
.contact-menu-btn:focus-visible::after {
  opacity: 1;
}

.contact-menu[data-open="true"]::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  width: calc(100% + 20px);
  height: 17px;
}

.contact-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px 14px;
  background: var(--bg);
  visibility: hidden;
  white-space: nowrap;
}

.contact-menu[data-open="true"] .contact-menu-panel {
  visibility: visible;
}

.contact-menu-panel a {
  display: block;
  padding: 3px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
  white-space: nowrap;
  position: relative;
}

.contact-menu-panel a::before,
.contact-menu-panel a::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 0 solid var(--chevron);
  opacity: 0;
  pointer-events: none;
}

.contact-menu-panel a::before {
  left: auto;
  bottom: auto;
  right: calc(100% + 9px);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(-45deg);
}

.contact-menu-panel a::after {
  right: auto;
  bottom: auto;
  left: calc(100% + 9px);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(135deg);
}

.contact-menu-panel a:hover::before,
.contact-menu-panel a:hover::after,
.contact-menu-panel a:focus-visible::before,
.contact-menu-panel a:focus-visible::after {
  opacity: 1;
}

@media (hover: none) {
  .contact-menu-btn::before,
  .contact-menu-btn::after {
    display: none;
  }
  .contact-menu-btn:active {
    color: var(--accent);
  }
  .contact-menu-panel a::before,
  .contact-menu-panel a::after {
    display: none;
  }
  .contact-menu-panel a:active {
    color: var(--accent);
  }
}

.about-panel-web {
  font-size: 1.14em;
  line-height: 1;
  transition: transform 140ms ease;
}

.about-panel-web:hover,
.about-panel-web:focus-visible {
  transform: translateY(-2px);
}


.about-toggle::before {
  content: "\25B8\00a0";
  font-size: 0.82em;
}

.about-toggle[aria-expanded="true"]::before {
  content: "\25BE\00a0";
  font-size: 0.82em;
}

.about-toggle[aria-expanded="true"]::after {
  content: "...";
}

.art-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-right: 0;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
}

.art-toggle::before {
  content: "\25B8\00a0";
  font-size: 0.82em;
}

.art-toggle[aria-expanded="true"]::before {
  content: "\25BE\00a0";
}

.art-toggle[aria-expanded="true"]::after {
  content: "...";
}

.art-toggle {
  position: static;
  align-self: flex-start;
}

@media (min-width: 901px) {
  .index-page .about-toggle {
    position: absolute;
  }
}

.art-gallery.is-collapsed {
  display: none;
}

@media (min-width: 901px) {
  .art-main:has(.art-gallery.is-collapsed) .art-toggle {
    margin-bottom: -8px;
  }
}

@media (max-width: 900px) {
  .art-main:has(.art-gallery.is-collapsed) .art-toggle {
    margin-bottom: 8px;
  }
}

.art-index {
  display: none;
}

@media (min-width: 901px) {
  .index-page .art-main {
    position: relative;
  }

  .index-page .art-gallery {
    max-width: min(1180px, calc(100% - 236px));
  }

  .art-index {
    display: block;
    position: fixed;
    top: calc(var(--page-top) + 104px);
    right: var(--page-left);
    width: 200px;
    max-height: calc(100vh - var(--page-top) - 128px);
    overflow-y: auto;
    scrollbar-width: none;
  }

  html.has-back .art-index {
    top: calc(var(--page-top) + 137px);
    max-height: calc(100vh - var(--page-top) - 161px);
  }

  .art-index ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
  }

  .art-index li + li {
    margin-top: 7px;
  }

  .art-index a {
    color: var(--ink);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.3;
    text-decoration: none;
    opacity: 0.72;
    transition: opacity 120ms ease;
  }

  .art-index a:hover,
  .art-index a:focus-visible,
  .art-index a[aria-current="true"] {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
  }
}


.art-gallery {
  margin: 0;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: clamp(58px, 6vw, 116px);
}

.art-card {
  margin: 0;
  scroll-margin-top: 28px;
}

.art-plates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-plate {
  margin: 0;
  min-width: 0;
}

.art-image {
  display: block;
  width: 100%;
  height: auto;
}

.art-zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

.art-zoom .art-image {
  outline: 1.5px solid transparent;
  transition: outline-color 120ms ease;
}

.art-zoom:hover .art-image,
.art-zoom:focus-visible .art-image {
  outline-color: var(--accent);
}

.lightbox {
  --lb-pad: clamp(16px, 4vw, 56px);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--lb-pad);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(8, 7, 6, 0.94);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-frame {
  display: block;
  margin: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  overflow: hidden;
  cursor: zoom-in;
}

.lightbox-frame.is-magnified {
  cursor: zoom-out;
}

.lightbox picture {
  display: block;
  max-width: 100%;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2 * var(--lb-pad));
  max-height: calc(100vh - 2 * var(--lb-pad));
  max-height: calc(100dvh - 2 * var(--lb-pad));
  transform-origin: 50% 50%;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox img {
    transition: none;
  }
}

@media (max-width: 900px) {
  .lightbox {
    --lb-pad: 10px;
  }

  .lightbox img {
    min-width: calc(100vw - 2 * var(--lb-pad));
    max-height: none;
  }
}

.lightbox-close {
  position: fixed;
  z-index: 1;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 26px);
  padding: 6px 8px;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 140ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  opacity: 1;
}

.lightbox-frame:focus-visible,
.lightbox-close:focus-visible {
  outline-color: #ffffff;
}

body.is-zoomed {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: none;
  }
}

.art-lead {
  max-width: var(--lead-w, calc(var(--ar, 1) * 760px));
}

.art-plates > .art-lead + .art-row {
  max-width: var(--lead-w, none);
}

.art-carousel {
  position: relative;
}

.art-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.art-trigger.is-prev {
  cursor: w-resize;
}

.art-trigger.is-next {
  cursor: e-resize;
}

.art-trigger .art-image {
  outline: 1.5px solid transparent;
  transition: outline-color 120ms ease;
}

.art-trigger:hover .art-image,
.art-trigger:focus-visible .art-image {
  outline-color: var(--accent);
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.art-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.art-row .art-plate {
  flex: var(--ar, 1) 1 calc(var(--ar, 1) * 300px);
  max-width: calc(var(--ar, 1) * var(--plate-h));
}

.art-plate figcaption {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0.6;
}

.art-split {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.art-split-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.art-card-split .art-lead {
  max-width: calc(var(--ar, 1) * 545px);
}

.art-split-main .art-row .art-plate {
  max-width: none;
}

.art-split-main .art-note {
  margin: 6px 0 8px 0;
}

@media (min-width: 901px) and (max-width: 1239px) {
  .art-split-main {
    gap: 6px;
  }

  .art-split-main .art-note {
    margin: 2px 0 4px 0;
  }
}

.art-aside {
  flex: 0 0 60%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-aside .art-plate {
  margin: 0;
  max-width: none;
}

@media (min-width: 1240px) {
  .art-aside {
    align-self: stretch;
    justify-content: space-between;
  }
}

.art-aside .art-zoom,
.art-aside picture {
  display: block;
}

.art-aside .art-image {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .art-split {
    display: block;
  }

  .art-aside {
    margin-top: 10px;
  }
}

.art-plates > .art-note {
  max-width: 72ch;
  margin: 10px 0 12px 0;
}

.art-label {
  margin-bottom: 14px;
}

.art-title {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
}

.art-date {
  margin-left: 14px;
  opacity: 0.6;
}

.art-caption {
  margin: 5px 0 0 0;
  max-width: 58ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
  text-wrap: pretty;
  color: var(--ink);
}

.art-caption em {
  font-style: normal;
}

.art-credit em {
  font-style: italic;
}

.art-credit {
  margin: 7px 0 0 0;
  text-wrap: pretty;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.6;
}

.art-pub {
  opacity: 0.6;
}

.art-note {
  margin: 22px 0 26px 0;
  text-wrap: pretty;
  max-width: 58ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.art-caption a,
.art-note a {
  color: var(--accent);
  text-decoration: none;
}

.art-caption a:hover,
.art-caption a:focus-visible,
.art-note a:hover,
.art-note a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.to-top-btn {
  position: fixed;
  top: calc(var(--page-top) + 9px);
  right: var(--page-left);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  cursor: n-resize;
  z-index: 20;
}

.to-top-btn img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 220ms ease;
}

:root[data-theme="dark"] .to-top-btn img {
  content: url("/favicon-night.png");
}

:root[data-theme="white"] .to-top-btn img {
  content: url("/favicon-white.png");
}

.to-top-btn:hover img {
  transform: rotate(45deg);
}

.to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bio-text {
  display: none;
  margin-top: 20px;
  margin-bottom: 0;
  margin-right: 0;
  font-size: 20px;
  font-weight: 300;
}

.bio-materials-link,
.bio-materials-link:visited {
  color: inherit;
  text-decoration: none;
}

.bio-materials-link::after {
  content: "\2197\FE0E";
  font-variant-emoji: text;
  margin-left: 0.22em;
  display: inline-block;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: text-top;
  text-decoration: none;
}

.bio-materials-link:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.8px;
  text-underline-offset: 3px;
}

.bio-text.is-visible {
  display: block;
  margin-bottom: 16px;
}

@media (min-width: 901px) {
  .bio-text {
    margin-right: clamp(28px, 6vw, 96px);
  }

  .bio-text.is-visible {
    margin-bottom: 16px;
  }

  .about-page.bio-open {
    padding-bottom: 25px;
  }
}

.about-page {
  padding-top: calc(var(--page-top) + 106px);
  min-height: auto;
}

.me-contact-links {
  position: absolute;
  top: calc(var(--page-top) + 107px);
  right: var(--page-left);
  width: var(--rail-width);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 22px;
  font-weight: 300;
}

.me-contact-links a {
  color: inherit;
  text-decoration: none;
  font-size: 35px;
  font-weight: 300;
}

#bio-toggle.is-active {
  color: var(--ink);
}

.me-contact-links a[aria-label="Bio"] ~ a {
  margin-top: 15px;
}

.me-contact-divider {
  width: 100px;
  border-top: 2px solid currentColor;
  opacity: 0.9;
  margin-bottom: 4px;
  margin-top: -1px;
  margin-left: 2px;
}

@media (max-width: 900px) {
  body {
    padding: 16px;
    min-height: auto;
  }

  .index-page {
    padding-top: 16px;
  }

  .index-page.art-page {
    padding-top: 16px;
  }

  .name,
  .about-link {
    position: static;
    display: block;
    top: auto;
    left: auto;
    margin: 0 0 8px 0;
    line-height: 1.15;
    padding-bottom: 0;
    z-index: auto;
  }

  
  
  .about-page {
    padding-top: 16px;
  }

  .about-page .about-link.is-active {
    margin-bottom: 8px;
  }

  .me-contact-links {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    margin-top: 18px;
    margin-bottom: 8px;
    align-items: center;
    gap: 10px;
  }

  .me-contact-links a {
    font-size: 28px;
    text-align: center;
  }

  .profile-photo-frame {
    width: min(100%, 270px);
    max-width: 100%;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-photo {
    width: 100%;
    height: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .bio-text {
    font-size: 18px;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 92%;
  }

  .about-panel-inner {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .about-panel .profile-photo-frame {
    width: min(100%, 270px);
    margin-left: auto;
    margin-right: auto;
  }

  .about-panel .profile-photo-frame.portrait-frame {
    width: 90%;
  }

  .about-panel-bio {
    font-size: 18px;
    text-align: center;
  }

  .about-panel-links {
    justify-content: center;
    font-size: 20px;
  }

  .site-nav {
    justify-content: center;
    font-size: 20px;
  }

  .art-main {
    padding-right: 0;
  }

  .index-page .art-main {
    padding-top: 20px;
  }

  .index-instagram-link {
    font-size: 16px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .header-line {
    position: static;
    margin-bottom: 0;
  }

  .theme-btn {
    position: absolute;
    top: 21px;
    right: 16px;
    width: 18px;
    height: 18px;
    --ring: 2.25px;
  }

  .site-menu {
    position: absolute;
    top: 21px;
    right: 16px;
  }

  .site-menu-icon {
    width: var(--corner-mark);
    height: var(--corner-mark);
  }


  body:has(.site-menu) .theme-btn {
    right: calc(16px + var(--corner-mark) + var(--corner-gap));
  }

  .site-menu .theme-btn {
    position: relative;
    top: 0;
    right: auto;
  }

  .site-menu-panel {
    max-width: calc(100vw - 32px);
  }

  .site-menu-panel a {
    font-size: 18px;
  }

  .art-title {
    font-size: 16px;
  }

  .art-caption {
    font-size: 15px;
  }

  .art-note,
  .art-split-main .art-note,
  .art-plates > .art-note {
    margin: 10px 0 12px 0;
  }

  .art-row .art-plate {
    flex-basis: calc(var(--ar, 1) * 110px);
  }

  .art-gallery {
    gap: 48px;
  }
}

@media (max-width: 610px) {
  .name {
    line-height: 1.05;
    font-size: 22.4px;
  }

  .about-link {
    top: calc(var(--page-top) + 77px);
    font-size: 22px;
  }

  .back-link {
    font-size: 22px;
  }


  .about-page {
    padding-top: 16px;
  }

  .me-contact-links a {
    font-size: 24px;
  }
}

@media (max-width: 460px) {
  .about-link {
    top: calc(var(--page-top) + 91px);
  }

  .name,
  .about-link,
  .back-link {
    font-size: 21px;
  }

  .name {
    font-size: 21.4px;
  }

  .me-contact-links a {
    font-size: 20px;
  }

  .bio-text {
    font-size: 16px;
    text-align: justify;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


.materials-page {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 40px;
  overflow-x: hidden;
}

.materials-page .name,
.materials-page .about-link,
.materials-page .back-link,
.materials-page .header-line {
  left: var(--page-left);
}

.marquee-list {
  margin-top: 0;
  border-top: 2px solid var(--ink);
}

.marquee-row {
  display: block;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 2px solid var(--ink);
  color: inherit;
  text-decoration: none;
  padding: 18px 0;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.marquee-row.is-dragging {
  cursor: pointer;
}

.marquee-row.is-inverse {
  background: var(--ink);
  color: var(--bg);
}

.marquee-row:hover,
.marquee-row:focus-visible {
  background: var(--accent);
  color: var(--bg);
  border-bottom-color: var(--bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-seq {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: clamp(38px, 7vw, 92px);
}

.marquee-run {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex: 0 0 auto;
}

.marquee-mark {
  position: relative;
  flex: 0 0 auto;
  width: 0.52em;
  height: 0.52em;
  box-sizing: border-box;
  border: 0.036em solid currentColor;
  margin: 0 0.7em;
}

.marquee-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}

.marquee-word {
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.marquee-img {
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
  height: clamp(52px, 9vw, 116px);
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.marquee-arrow {
  display: block;
  flex: 0 0 auto;
  width: clamp(52px, 9vw, 116px);
  height: clamp(52px, 9vw, 116px);
  margin-left: 0.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 11;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.marquee-plus {
  display: block;
  flex: 0 0 auto;
  width: clamp(52px, 9vw, 116px);
  height: clamp(52px, 9vw, 116px);
  margin-left: 0.3em;
}

.marquee-plus rect {
  fill: #111;
}

.marquee-plus path {
  fill: none;
  stroke: #fff;
  stroke-width: 14;
  stroke-linecap: square;
}

.marquee-run > picture {
  display: block;
  flex: 0 0 auto;
}

.marquee-run > picture:not(:first-child) {
  margin-left: 0.3em;
}

.marquee-run > picture:not(:last-child) {
  margin-right: 0.3em;
}



.marquee-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.marquee-fallback {
  list-style: none;
  margin: 26px 0 0;
  padding: 0 var(--page-left);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 22px;
  font-weight: 300;
}

.marquee-fallback a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 900px) {
  .materials-page {
    padding-left: 0;
    padding-right: 0;
  }

  .materials-page .name,
  .materials-page .about-link,
  .materials-page .back-link,
  .materials-page .header-line {
    padding-left: 16px;
  }

  .marquee-list {
    margin-top: 0;
  }

  .marquee-row {
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
}



.game-page {
  --board: 100%;
  --col: var(--board);
}

.game {
  box-sizing: border-box;
  width: var(--col);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-right: 0;
}

.game-page main p {
  margin-left: 0;
}

.game-logo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  line-height: 0;
}

.game-logo-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.game-logo-btn .game-logo {
  transition: opacity 140ms ease;
}

.game-logo-btn:hover .game-logo,
.game-logo-btn:focus-visible .game-logo {
  opacity: 0.86;
}

.game-logo-btn:active .game-logo {
  opacity: 0.72;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.is-refreshing {
  animation: page-in 320ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  body.is-refreshing {
    animation: none;
  }
}

@media (max-width: 900px) {
  .game-page .game {
    padding-top: 12px;
  }
}

.game-logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 clamp(18px, 2.4vw, 34px) 0;
}

.game-heading {
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.05;
  margin: 0 0 18px 0;
}

.game-account {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  margin: 0 0 30px 0;
}

.game-btn.game-signin {
  font-size: clamp(17px, 1.9vw, 25px);
  padding: 12px 32px;
}

.game-signin-slot {
  display: inline-flex;
  align-items: flex-end;
}

.game-google-btn {
  display: inline-block;
  min-height: 44px;
}

.game-btn.game-daily-btn,
.game-btn.game-signin,
.game-btn.game-start {
  min-width: clamp(232px, 24vw, 336px);
}

.game-copy-link {
  align-self: center;
  padding: 0 0 1px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.2;
  cursor: pointer;
  opacity: 0.8;
}

.game-copy-link:hover,
.game-copy-link:focus-visible {
  opacity: 1;
}

#setup-share-note {
  margin: 14px 0 0 0;
}

.game-account-note {
  font-weight: 300;
}

.game-daily-note {
  align-self: center;
}

.game-daily-state {
  opacity: 0.75;
}

.game-who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300;
}

.game-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.game-quiet,
.game-signout {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  padding: 0 0 1px 0;
  color: inherit;
  font: inherit;
  font-size: 0.85em;
  opacity: 0.75;
  cursor: pointer;
}

.game-quiet:hover,
.game-quiet:focus-visible,
.game-signout:hover,
.game-signout:focus-visible {
  opacity: 1;
  color: var(--accent);
}

.game-rename-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.game-name-input {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 300;
  padding: 7px 12px;
  min-width: 0;
  width: min(320px, 60vw);
}

.game-btn.game-name-save {
  font-size: clamp(15px, 1.5vw, 19px);
  padding: 8px 20px;
}

.game-name-note {
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 300;
  opacity: 0.75;
}

.game-leaders {
  margin: 0 0 34px 0;
}

.game-leaders-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}

.game-leaders-title {
  margin: 0;
  font: inherit;
}

.game-fold {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.game-fold::before {
  content: "\25be\00a0";
  font-size: 0.7em;
}

.game-leaders.is-folded .game-fold::before,
.game-fold.is-folded::before {
  content: "\25b8\00a0";
}

.game-page .game-custom,
.game-page .game-fold {
  color: var(--accent);
}

.game-fold:hover,
.game-fold:focus-visible {
  color: var(--ink);
  outline: none;
}

.game-leaders.is-folded .game-tabs {
  display: none;
}

@keyframes game-board-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.game-leaders-list.is-fresh {
  animation: game-board-in 260ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .game-leaders-list.is-fresh {
    animation: none;
  }
}

.game-tabs {
  display: flex;
  gap: 6px;
}

.game-tab {
  background: none;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 2px 10px;
  color: inherit;
  font: inherit;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 140ms ease, border-color 140ms ease;
}

.game-tab:hover,
.game-tab:focus-visible {
  opacity: 1;
}

.game-tab.is-on {
  border-color: var(--ink);
  opacity: 1;
}

.game-leaders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.game-leader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 40%, transparent);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 300;
}

.game-leader.is-you {
  color: var(--accent);
  font-weight: 400;
}

.game-leader-place {
  flex: 0 0 auto;
  min-width: 1.6em;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.game-leader-avatar {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.game-leader-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.game-leader-score {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.game-leader-days {
  margin-left: 0.5em;
  font-size: 0.72em;
  opacity: 0.7;
}

.game-leaders-note {
  margin: 10px 0 0 0;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 300;
  opacity: 0.75;
}

.game-lede {
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 23px);
  font-weight: 300;
  line-height: 1.42;
  margin: 0 0 38px 0;
}

.game-empty {
  font-weight: 300;
  margin-top: 22px;
}

.game-empty code {
  font-family: inherit;
  border-bottom: 1px solid currentColor;
}

body.game-page {
  background: var(--bg);
  color: var(--ink);
}

.game-page .name,
.game-page .back-link {
  color: var(--ink) !important;
}

.game-page :focus-visible {
  outline-color: var(--ink);
}

.game-daily {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  margin: 0 0 30px 0;
}

.game-custom {
  margin: 0 0 22px 0;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: clamp(17px, 1.9vw, 26px);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.game-page .game-custom,
.game-page .game-fold {
  font-weight: 500 !important;
}

.game-btn.game-daily-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-size: clamp(17px, 1.9vw, 25px);
  padding: 12px 32px;
}

.game-btn.game-daily-btn:hover,
.game-btn.game-daily-btn:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.game-daily-note {
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 300;
  opacity: 0.75;
}

.game-share-note {
  max-width: 60ch;
  margin: 16px 0 0 0;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.35;
  white-space: pre-wrap;
  opacity: 0.85;
}

.game-setup {
  margin: 0 0 8px 0;
}

.game-set {
  margin: 0 0 26px 0;
  padding: 0;
  border: 0;
}

.game-set-label {
  padding: 0;
  margin: 0;
  float: left;
  width: 100%;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1;
  padding-top: 9px;
}

.game-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 2.4vw, 34px);
  clear: both;
  padding-top: 22px;
}

.game-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(17px, 2vw, 29px);
  font-weight: 300;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.game-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.game-check-mark {
  position: relative;
  flex: 0 0 auto;
  width: 0.72em;
  height: 0.72em;
  box-sizing: border-box;
  border: 0.055em solid currentColor;
  transition: background-color 140ms ease;
}

.game-check input:checked ~ .game-check-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}

#setup-levels .game-check-mark::after,
#setup-continents .game-check-mark::after,
#setup-hints ~ .game-check-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  width: 0.3em;
  height: 0.15em;
  border-left: 0.09em solid var(--bg);
  border-bottom: 0.09em solid var(--bg);
  transform: translate(-50%, -50%) rotate(-45deg);
  opacity: 0;
  transition: opacity 140ms ease;
}

#setup-levels .game-check input:checked ~ .game-check-mark::after,
#setup-continents .game-check input:checked ~ .game-check-mark::after,
#setup-hints:checked ~ .game-check-mark::after {
  opacity: 1;
}

.game-check:has(.game-hint-text) {
  width: 100%;
  white-space: normal;
}

.game-hint-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  white-space: normal;
  opacity: 0.8;
}

.game-check input:focus-visible ~ .game-check-mark {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.game-check:hover .game-check-mark {
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}

.game-check-count {
  font-size: 0.62em;
  opacity: 0.6;
}

.game-check.is-empty {
  opacity: 0.4;
}

.game-special-open {
  display: inline-flex;
  align-items: baseline;
  align-self: center;
  gap: 0.4em;
  padding: 0 0 1px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: clamp(17px, 2vw, 29px);
  font-weight: 300;
  line-height: 1.2;
  cursor: pointer;
  opacity: 0.75;
}

.game-special-open::after {
  content: "\2026";
  opacity: 0.7;
}

.game-special-open[aria-expanded="true"]::after {
  content: "\00d7";
}

.game-special-open:hover,
.game-special-open:focus-visible,
.game-special-open.is-on {
  opacity: 1;
}

.game-special-count {
  font-size: 0.62em;
  opacity: 0.6;
}

.game-special-count:empty {
  display: none;
}

.game-special {
  margin-top: 14px;
  padding: 14px 0 4px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.game-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(16px, 2.4vw, 34px);
}

.game-special-done {
  margin-top: 14px;
}

.game-slider {
  padding-top: 34px;
  max-width: 560px;
}

.game-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  background: none;
  cursor: pointer;
}

.game-range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--ink);
}

.game-range::-moz-range-track {
  height: 2px;
  background: var(--ink);
}

.game-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: -9px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--ink);
  cursor: pointer;
}

.game-range::-moz-range-thumb {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--ink);
  cursor: pointer;
}

.game-range:focus-visible {
  outline: none;
}

.game-range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.game-ticks {
  position: relative;
  height: 30px;
  margin-top: 4px;
}

.game-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 300;
  white-space: nowrap;
}

.game-tick:last-child {
  margin-left: 10px;
  transform: translateX(-100%);
  text-align: right;
}

.game-tick:last-child::before {
  margin-right: 0;
  margin-left: auto;
}

.game-tick::before {
  content: "";
  display: block;
  width: 2px;
  height: 7px;
  margin: -16px auto 9px auto;
  background: currentColor;
}

.game-tick.is-on {
  color: var(--accent);
}

.game-tick.is-off {
  opacity: 0.32;
}

.game-pool {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  opacity: 0.8;
  margin: 0 0 20px 0;
}

.game-pool.is-warning {
  color: var(--accent);
  opacity: 1;
}

.game-start-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.4vw, 18px);
}

.game-btn.game-start {
  font-size: clamp(17px, 1.9vw, 25px);
  padding: 12px 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-start[disabled] {
  opacity: 0.4;
  cursor: default;
}

.game-start[disabled]:hover {
  background: none;
  border-color: var(--ink);
  color: inherit;
}

@media (max-width: 700px) {
  .game-checks {
    gap: 8px 18px;
  }

  .game-check {
    font-size: 17px;
  }

  .game-slider {
    padding-top: 30px;
  }

  .game-tick {
    font-size: 13px;
  }
}

.game-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
}

.game-progress {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-progress-where:not(:empty) {
  margin-right: clamp(26px, 3.4vw, 56px);
}

.game-meta-right {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 22px);
  min-width: 0;
}

.game-score,
.game-quit {
  white-space: nowrap;
}

.game-zoom-hint,
.game-meta-break {
  display: none;
}

.game-score-mark {
  display: none;
}

.game-quit {
  padding: 3px 13px;
  font-weight: 500;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: inherit;
  font: inherit;
  line-height: 1.15;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.game-quit:hover,
.game-quit:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  outline: none;
}

.game-frame {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34vh;
  margin: 16px 0 18px 0;
}


.game-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

@media (hover: none) {
  .game-stage {
    overflow: hidden;
  }

  .game-image {
    cursor: default;
    transition: transform 240ms ease;
  }

  .game-stage.is-zoomed .game-image {
    cursor: default;
  }
}

@media (hover: none) and (prefers-reduced-motion: reduce) {
  .game-image {
    transition: none;
  }
}

.game-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 52vh;
  border: 2px solid var(--ink);
  cursor: zoom-in;
}

.game-stage.is-zoomed .game-image {
  cursor: zoom-out;
}

.game-flash {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  background: transparent;
}

.game-flash.is-right {
  animation: game-flash-right 900ms ease-out 1;
}

.game-flash.is-wrong {
  animation: game-flash-wrong 900ms ease-out 1;
}

@keyframes game-flash-right {
  0% { opacity: 0; background: rgba(46, 176, 90, 0.62); }
  18% { opacity: 1; background: rgba(46, 176, 90, 0.62); }
  100% { opacity: 0; background: rgba(46, 176, 90, 0.62); }
}

@keyframes game-flash-wrong {
  0% { opacity: 0; background: rgba(206, 44, 44, 0.62); }
  18% { opacity: 1; background: rgba(206, 44, 44, 0.62); }
  100% { opacity: 0; background: rgba(206, 44, 44, 0.62); }
}

@media (prefers-reduced-motion: reduce) {
  .game-flash.is-right,
  .game-flash.is-wrong {
    animation-duration: 1ms;
  }
}

.game-loupe {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--ink);
  background-repeat: no-repeat;
  background-color: var(--bg);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.game-loading {
  margin: 0;
  font-weight: 300;
  opacity: 0.8;
}

.game-page {
  --field-h: calc(24px + 1.15 * clamp(22px, 2.4vw, 38px));
}

.game-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 0 10px 0;
}

.game-combo {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.game-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  padding: 10px 14px;
}

.game-form .game-btn {
  min-width: clamp(104px, 11vw, 176px);
  flex: 0 0 auto;
  margin-left: -2px;
  padding: 10px clamp(20px, 2.4vw, 40px);
  font-size: clamp(17px, 1.8vw, 26px);
}

.game-input::placeholder {
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}

.game-input:focus {
  outline: none;
}

.game-form .game-btn:hover,
.game-form .game-btn:focus-visible {
  position: relative;
  z-index: 1;
}

.game-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(15px, 1.5vw, 23px);
  font-weight: 300;
  padding: 11px 26px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.game-btn:hover,
.game-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  outline: none;
}

.game-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: -2px 0 0 0;
  padding: 0;
  list-style: none;
  max-height: min(44vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border: 2px solid var(--ink);
  text-align: left;
}

.game-suggest.is-above {
  top: auto;
  bottom: 100%;
  margin: 0 0 -2px 0;
}

.game-suggest li {
  padding: 9px 14px;
  font-size: clamp(17px, 1.7vw, 26px);
  font-weight: 300;
  line-height: 1.25;
  cursor: pointer;
}

.game-suggest li + li {
  border-top: 2px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.game-suggest li:hover,
.game-suggest li.is-active {
  background: var(--accent);
  color: var(--bg);
}

.game-suggest-where,
.game-ask {
  margin: -14px 0 6px 0;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 300;
  color: var(--accent);
}

.game-verdict {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  margin: 0 0 4px 0;
}

.game-reveal.is-right .game-verdict {
  color: var(--accent);
}

.game-answer {
  font-size: clamp(21px, 2.5vw, 38px);
  font-weight: 300;
  margin: 0 0 22px 0;
}

.game-answer-country {
  font-size: 0.5em;
  opacity: 0.8;
}

.game-btn-next {
  margin-bottom: 4px;
  min-width: clamp(104px, 11vw, 176px);
  min-height: var(--field-h);
  padding: 10px clamp(20px, 2.4vw, 40px);
  font-size: clamp(17px, 1.8vw, 26px);
}

.game-recap {
  list-style: none;
  max-width: 760px;
  margin: 26px 0 30px 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.game-recap-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 40%, transparent);
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 300;
}

.game-recap-mark {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: 0.62em;
  height: 0.62em;
  box-sizing: border-box;
  border: 0.045em solid currentColor;
}

.game-recap-item.is-right .game-recap-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}

.game-recap-item.is-part .game-recap-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(currentColor var(--fill, 50%), transparent 0);
}

.game-earned {
  margin: 0.2em 0 0;
  font-size: 0.85em;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.game-recap-guess {
  margin-left: auto;
  padding-left: 12px;
  font-size: 0.8em;
  opacity: 0.7;
  text-align: right;
}

.game-again {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.game-result .game-account {
  margin-top: 30px;
}

.game-result .game-leaders {
  margin-top: clamp(30px, 3.4vw, 52px);
}

.game-credit {
  max-width: 60ch;
  margin: 46px 0 0 0;
  font-size: 13px;
  font-weight: 300;
  opacity: 0.7;
}

@media (min-width: 701px) {
  .game-page {
    --board: max(360px, min(1204px, 100%, calc((100vh - var(--page-top) - 300px) * 1.26)));
  }

  .is-playing .game-logo {
    margin-bottom: clamp(10px, 1vw, 14px);
  }

  .game-image {
    width: var(--board);
    max-height: none;
  }

  .game-meta {
    width: var(--board);
    max-width: 100%;
  }

  .game-form {
    width: var(--board);
    max-width: 100%;
  }

  .game-input {
    max-width: none;
  }

  .game-reveal {
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 2vw, 32px);
    width: var(--board);
    max-width: 100%;
  }

  .game-verdict {
    flex: 0 0 auto;
    font-size: clamp(33px, 2.55vw, 48px);
    margin: 0;
  }

  .game-answer {
    flex: 0 1 auto;
    margin: 0 auto 0 0;
    font-size: clamp(25px, 2.03vw, 37px);
  }

  .game-btn-next {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .game-meta {
    flex-wrap: wrap;
  }

  .game-progress {
    display: contents;
  }

  .game-progress-where {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    letter-spacing: 0.02em;
    opacity: 0.85;
  }

  .game-progress-where:empty {
    display: none;
  }

  .game-meta-break {
    display: block;
    flex: 0 0 100%;
    height: 0;
    margin: 0;
  }

  .game-progress-where {
    order: 1;
  }

  .game-zoom-hint {
    order: 2;
  }

  .game-meta-break {
    order: 3;
  }

  .game-progress-count {
    order: 4;
  }

  .game-meta-right {
    order: 5;
  }

  @media (hover: none) {
    .game-zoom-hint {
      display: block;
      flex: 0 0 auto;
      margin-left: auto;
      padding-left: 12px;
      font-size: 12px;
      letter-spacing: 0.02em;
      white-space: nowrap;
      opacity: 0.7;
    }
  }

  .game-progress-count {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .game-meta {
    font-size: 13px;
    gap: 10px;
  }

  .game-quit {
    padding: 2px 7px;
  }

  .game-progress {
    flex: 0 1 auto;
  }

  .game-meta-right {
    flex: 0 0 auto;
  }

  .game-image {
    max-height: none;
  }

  .game-page {
    --field-h: calc(24px + 1.15 * 24px);
  }

  .game-input {
    font-size: 24px;
  }

  .game-suggest li {
    font-size: 17px;
    padding: 10px 12px;
  }

  .game-recap-guess {
    display: none;
  }

  .game-reveal {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
  }

  .game-reveal:has(.game-earned:not([hidden])) {
    flex-wrap: wrap;
  }

  .game-earned {
    order: 1;
    flex: 1 1 auto;
    margin: 0;
  }

  .game-btn-next {
    order: 2;
  }

  .game-verdict {
    flex: 0 0 auto;
    margin: 0;
    font-size: 24px;
  }

  .game-answer {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 auto 0 0;
    font-size: 17px;
  }

  .game-btn-next {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
  }
}

@media (max-width: 700px) and (max-height: 620px) {
  .game-image {
    max-height: 54vh;
  }
}

@media (max-width: 420px) {
  .game-meta {
    gap: 8px;
  }

  .game-meta-right {
    gap: 11px;
  }

  .game-quit {
    padding: 2px 6px;
  }
}

@media (max-width: 365px) {
  .game-meta {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .game-score-word {
    display: none;
  }

  .game-score-mark {
    display: inline;
  }
}

.game-cosmetic {
  margin: 30px 0 0 0;
  border-top: 2px solid var(--ink);
}

.game-cosmetic-toggle {
  padding: 9px 0 0 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  cursor: pointer;
}

.game-cosmetic-toggle::before {
  content: "\25b8\00a0";
  font-size: 0.82em;
}

.game-cosmetic-toggle[aria-expanded="true"]::before {
  content: "\25be\00a0";
}

.game-cosmetic-toggle:hover,
.game-cosmetic-toggle:focus-visible {
  opacity: 1;
  color: var(--accent);
  outline: none;
}

.game-colors {
  margin-top: 22px;
  max-width: 460px;
}

.game-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 300;
}

.game-color-row label {
  cursor: pointer;
}

.game-color-row input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  width: 54px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: none;
  cursor: pointer;
}

.game-color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.game-color-row input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 0;
}

.game-color-row input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 0;
}

.game-presets {
  margin-top: 22px;
}

.game-presets-title {
  margin: 0 0 12px 0;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.game-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-preset {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 8px 16px;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.game-preset:hover,
.game-preset:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.game-preset.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.game-preset-chip {
  flex: 0 0 auto;
  width: 1.5em;
  height: 0.75em;
  box-sizing: border-box;
  border: 1px solid currentColor;
  background: linear-gradient(
    to right,
    var(--chip-bg) 0 50%,
    var(--chip-ink) 50% 75%,
    var(--chip-accent) 75% 100%
  );
}

.game-cosmetic-reset {
  margin-top: 22px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.game-cosmetic-reset:hover,
.game-cosmetic-reset:focus-visible {
  opacity: 1;
}

.game-color-warning {
  max-width: 52ch;
  margin: 16px 0 0 0;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--accent);
}

@media print {
  @page {
    margin: 15mm 16mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    min-height: 0;
    font-size: 10.25pt;
    line-height: 1.28;
  }

  .to-top-btn,
  .trail,
  .back-link,
  .about-link,
  .site-menu,
  .about-panel,
  .marquee-list,
  .marquee-fallback,
  .index-instagram-link,
  .gallery-hint {
    display: none !important;
  }

  .cv-page .name,
  .index-page .name,
  .name,
  .name-heading {
    position: static !important;
    display: block;
    color: #000000 !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 0 1.5mm 0;
    font-size: 16pt;
    font-weight: 700;
    letter-spacing: -0.015em;
  }

  .cv-page,
  .cv-page main {
    padding: 0 !important;
  }

  .cv-contact {
    margin: 0 0 4.5mm 0 !important;
    font-size: 10pt;
  }

  .cv-page h2 {
    font-weight: 700 !important;
    font-size: 11.5pt;
    margin: 3.6mm 0 1.3mm;
    padding-bottom: 0.7mm;
    border-bottom: 0.5pt solid #000000;
    break-after: avoid;
    page-break-after: avoid;
  }

  .cv-page main section:first-child > h2:first-child {
    margin-top: 0;
  }

  .cv-page main p {
    margin: 0 0 0.9mm 0;
    break-inside: avoid;
    page-break-inside: avoid;
    orphans: 2;
    widows: 2;
  }

  .cv-meta {
    font-size: 8.5pt;
    color: #3a3a3a;
  }

  .cv-publication-link,
  .cv-publication-link:visited,
  a {
    color: #000000 !important;
    text-decoration: underline;
    text-decoration-thickness: 0.4pt;
    text-underline-offset: 2pt;
  }

  .art-image,
  .profile-photo {
    outline: none !important;
  }

  .art-caption,
  .art-title {
    color: #000000 !important;
    opacity: 1 !important;
  }
}

@media print {
  .game {
    display: none !important;
  }
}

.blog-page {
  padding-right: var(--page-left);
  padding-bottom: 60px;
}

.mail {
  max-width: 1120px;
  margin: 0 auto;
}

.mail-lede {
  max-width: 62ch;
  margin: 0 0 26px 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.45;
}

.blog-page main p.mail-lede,
.blog-page .mail-window p {
  margin-left: 0;
}

.mail-window {
  --mail-ink: #1f1f1f;
  --mail-soft: #444746;
  --mail-faint: #5e5e5e;
  --mail-line: #e0e3e7;
  --mail-hairline: #eceff1;
  --mail-backdrop: #f6f8fc;
  --mail-field: #e9eef6;
  --mail-hover: rgba(68, 71, 70, 0.08);
  --mail-select: #d3e3fd;
  --mail-select-ink: #001d35;
  --mail-read-row: #f2f6fc;
  --mail-open-row: #c2dbff;
  --mail-accent: #0b57d0;
  --mail-compose: #c2e7ff;
  --mail-star: #f4b400;
  --mail-star-off: #c4c7c5;
  --mail-letter-ink: #222222;
  --mail-quote-ink: #500050;
  --mail-quote-line: #cccccc;

  height: clamp(660px, calc(100vh - 120px), 1360px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--mail-backdrop);
  color: var(--mail-ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.mail-window :focus-visible {
  outline: 2px solid var(--mail-accent);
  outline-offset: 2px;
}

.mail-window svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="dark"] .mail-window {
  --mail-ink: #e8eaed;
  --mail-soft: #9aa0a6;
  --mail-faint: #9aa0a6;
  --mail-line: #3c4043;
  --mail-hairline: #2a2b2e;
  --mail-backdrop: #202124;
  --mail-field: #2f3033;
  --mail-hover: rgba(232, 234, 237, 0.08);
  --mail-select: #004a77;
  --mail-select-ink: #c2e7ff;
  --mail-read-row: #1b1b1c;
  --mail-open-row: #004a77;
  --mail-accent: #8ab4f8;
  --mail-compose: #004a77;
  --mail-star: #f4b400;
  --mail-star-off: #5f6368;
  --mail-letter-ink: #ffffff;
  --mail-quote-ink: #9aa0a6;
  --mail-quote-line: #3c4043;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .mail-row.is-open,
:root[data-theme="dark"] .mail-row.is-open.is-unread {
  color: var(--mail-select-ink);
}

.mail-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding: 0 16px 0 8px;
}

.mail-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--mail-soft);
  cursor: default;
}

.mail-menu svg {
  width: 24px;
  height: 24px;
}

.mail-search {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  margin-left: 8px;
}

.mail-search-field {
  position: relative;
  width: 100%;
  max-width: 720px;
}

.mail-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--mail-soft);
  pointer-events: none;
}

.mail-search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 52px;
  border: 0;
  border-radius: 24px;
  background: var(--mail-field);
  color: var(--mail-ink);
  font: inherit;
  font-size: 16px;
  outline-offset: 2px;
}

.mail-search-input::placeholder {
  color: var(--mail-soft);
  opacity: 1;
}

.mail-search-input:focus {
  background: var(--mail-surface);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.14);
}

.mail-account {
  margin-left: auto;
  flex: 0 0 auto;
}

.mail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8e918f;
  overflow: hidden;
}

.mail-avatar svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
  stroke: none;
}

.mail-avatar-me {
  width: 32px;
  height: 32px;
}

.mail-avatar-noah {
  background: #7b8cde;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mail-avatar-quora {
  background: #e05a6b;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 400;
}

.mail-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.mail-rail {
  flex: 0 0 var(--mail-rail-w, 240px);
  padding: 0 0 16px 8px;
  overflow-y: auto;
  min-width: 0;
}

.mail-divider {
  flex: 0 0 12px;
  position: relative;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.mail-divider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: transparent;
  transition: background-color 120ms ease, width 120ms ease, margin-left 120ms ease;
}

.mail-divider:hover::after,
.mail-divider:focus-visible::after,
.mail-divider.is-dragging::after {
  width: 3px;
  margin-left: -1.5px;
  background: var(--mail-accent);
}

.mail-divider:focus-visible {
  outline: none;
}

#mail-divider-list {
  flex-basis: 9px;
  margin: 0 -4px;
  z-index: 2;
}

#mail-divider-list::after {
  background: var(--mail-line);
}

body.is-resizing-mail {
  cursor: col-resize;
  user-select: none;
}

.mail-compose {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  margin: 0 0 16px 0;
  padding: 0 24px 0 16px;
  border-radius: 16px;
  background: var(--mail-compose);
  color: var(--mail-select-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  transition: box-shadow 120ms ease;
}

.mail-compose:hover {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.mail-compose svg {
  width: 24px;
  height: 24px;
}

.mail-folders {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mail-folder {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 32px;
  padding: 0 16px 0 20px;
  border: 0;
  border-radius: 0 16px 16px 0;
  background: transparent;
  color: var(--mail-ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.mail-folder:hover {
  background: var(--mail-hover);
}

.mail-folder.is-on {
  background: var(--mail-select);
  color: var(--mail-select-ink);
  font-weight: 700;
}

.mail-folder-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mail-folder-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-folder-badge {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mail-rail-title {
  margin: 20px 0 4px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mail-soft);
}

.mail-labeldot {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.mail-panes {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  margin: 0 16px 16px 0;
  border-radius: 16px;
  background: var(--mail-surface);
  overflow: hidden;
}

.mail-listpane {
  flex: 0 0 var(--mail-list-w, clamp(300px, 40%, 440px));
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.mail-listhead {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--mail-line);
  color: var(--mail-soft);
  font-size: 12px;
}

.mail-count {
  font-variant-numeric: tabular-nums;
}

.mail-list {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  min-height: 0;
}

.mail-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: var(--mail-read-row);
  border-bottom: 1px solid var(--mail-hairline);
}

.mail-row:hover {
  z-index: 1;
  box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0,
    0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.mail-row.is-unread {
  background: var(--mail-surface);
}

.mail-row.is-open,
.mail-row.is-open.is-unread {
  background: var(--mail-open-row);
}

.mail-row-tools {
  position: absolute;
  top: 6px;
  right: 8px;
  display: none;
}

.mail-row:hover .mail-row-tools,
.mail-row:focus-within .mail-row-tools {
  display: flex;
}

.mail-row:has(.mail-row-tools):hover .mail-when,
.mail-row:has(.mail-row-tools):focus-within .mail-when {
  visibility: hidden;
}

.mail-star {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 2px 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--mail-star-off);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mail-star:hover {
  background: var(--mail-hover);
  color: var(--mail-faint);
}

.mail-star[aria-pressed="true"] {
  color: var(--mail-star);
}

.mail-rowlink {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  min-width: 0;
  padding: 10px 16px 10px 4px;
  color: inherit;
  text-decoration: none;
}

.mail-from {
  grid-column: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 14px;
}

.mail-middle {
  grid-column: 1 / -1;
  min-width: 0;
  font-size: 13px;
}

.mail-subject {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--mail-ink);
}

.mail-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--mail-faint);
}

.mail-when {
  grid-column: 2;
  grid-row: 1;
  color: var(--mail-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mail-row.is-unread .mail-from,
.mail-row.is-unread .mail-subject {
  font-weight: 700;
  color: var(--mail-ink);
}

.mail-row.is-unread .mail-when {
  font-weight: 700;
  color: var(--mail-ink);
}

.mail-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  grid-column: 2;
}

.mail-chip {
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 14%, transparent);
}

.mail-empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--mail-soft);
}

.mail-read {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  padding: 20px 24px 40px 28px;
  background: var(--mail-surface);
}

.mail-read-blank {
  padding-top: 72px;
  color: var(--mail-soft);
  text-align: center;
}

.mail-read-blank p {
  margin: 0 0 8px 0;
}

.mail-keys {
  font-size: 12px;
}

.mail-keys kbd {
  display: inline-block;
  min-width: 1.1em;
  padding: 1px 6px;
  border: 1px solid var(--mail-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--mail-backdrop);
  font: inherit;
  font-size: 12px;
  text-align: center;
}

.mail-back {
  display: none;
}

.mail-letter-subject {
  margin: 0 0 14px 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  color: var(--mail-ink);
}

.blog-page .mail-letter-subject {
  font-weight: 400 !important;
}

.mail-letter-chips {
  margin: -6px 0 14px 0;
}

.mail-spam-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fef7e0;
  color: #3c4043;
  font-size: 13px;
  line-height: 20px;
}

.mail-spam-banner svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #b06000;
}

.mail-spam-banner b {
  font-weight: 700;
}

.mail-letter-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 8px;
}

.mail-letter-who {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 2px;
}

.mail-letter-from {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}

.mail-letter-address,
.mail-letter-to {
  color: var(--mail-faint);
  font-weight: 400;
  font-size: 12px;
}

.mail-letter-to {
  line-height: 16px;
}

.mail-letter-to::after {
  content: " \25BE";
  font-size: 10px;
}

.mail-letter-when {
  flex: 0 0 auto;
  order: 2;
  padding-top: 2px;
  color: var(--mail-faint);
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.mail-letter-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  order: 3;
  margin: -6px -8px 0 0;
}

.mail-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--mail-soft);
  cursor: pointer;
}

.mail-tool:hover {
  background: var(--mail-hover);
}

.mail-tool svg {
  width: 20px;
  height: 20px;
}

.mail-tool[aria-pressed="true"] {
  color: var(--mail-star);
}

.mail-tool[aria-pressed="true"] svg {
  fill: var(--mail-star);
}

.mail-letter-body {
  max-width: 720px;
  padding: 16px 0 0 52px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mail-letter-ink);
  overflow-wrap: anywhere;
}

.blog-page .mail-letter-body p,
.blog-page .mail-letter-body li {
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 1em;
  font-size: inherit;
  font-weight: 400;
}

.mail-letter-body img {
  max-width: 100%;
  height: auto;
  margin-top: 4px;
  vertical-align: bottom;
}

.mail-letter-body a {
  color: var(--mail-accent);
}

.mail-letter-body blockquote {
  margin: 1em 0 1em 0.8ex;
  padding-left: 1ex;
  border-left: 1px solid var(--mail-quote-line);
  color: var(--mail-quote-ink);
}

.mail-letter-body pre {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--mail-backdrop);
  overflow-x: auto;
  font-size: 13px;
}

.mail-letter-body table {
  max-width: 100%;
  border-collapse: collapse;
}

.mail-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0 52px;
}

.mail-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 24px 0 16px;
  border: 1px solid #747775;
  border-radius: 18px;
  color: var(--mail-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.mail-action:hover {
  background: rgba(11, 87, 208, 0.08);
}

.mail-action svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .mail-rail,
  #mail-divider-rail {
    display: none;
  }

  .mail-panes {
    margin-left: 16px;
  }

  .mail-window {
    height: min(80vh, 760px);
  }

  .mail-listpane {
    flex-basis: var(--mail-list-w, clamp(260px, 42%, 400px));
  }
}

@media (max-width: 720px) {
  .mail-window {
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 10px;
  }

  .mail-bar {
    height: 56px;
    padding: 0 12px 0 4px;
  }

  .mail-search-input {
    height: 44px;
  }

  .mail-panes {
    display: block;
    margin: 0 8px 8px 8px;
    border-radius: 12px;
  }

  #mail-divider-list {
    display: none;
  }

  .mail-list {
    overflow: visible;
  }

  .mail-read {
    display: none;
    padding: 16px 16px 32px;
  }

  .mail-panes.is-reading .mail-listpane {
    display: none;
  }

  .mail-panes.is-reading .mail-read {
    display: block;
  }

  .mail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px -8px;
    padding: 6px 12px 6px 8px;
    border: 0;
    border-radius: 18px;
    background: none;
    color: var(--mail-accent);
    font: inherit;
    cursor: pointer;
  }

  .mail-back:hover {
    background: rgba(11, 87, 208, 0.08);
  }

  .mail-subject,
  .mail-snippet {
    -webkit-line-clamp: none;
    display: block;
  }

  .mail-letter-head {
    flex-wrap: wrap;
  }

  .mail-letter-when {
    flex-basis: 100%;
    order: 4;
    padding: 0 0 0 52px;
    line-height: 16px;
  }

  .mail-letter-tools {
    margin-left: auto;
  }

  .mail-letter-body,
  .mail-letter-actions {
    padding-left: 0;
    margin-left: 0;
  }
}

@media print {
  .mail-window {
    height: auto;
    background: var(--mail-surface);
    box-shadow: none;
  }

  .mail-bar,
  .mail-rail,
  .mail-divider,
  .mail-listpane,
  .mail-back,
  .mail-letter-actions {
    display: none !important;
  }

  .mail-panes {
    margin: 0;
  }
}
