/* GTPS.link public system. Admin, panel and game login retain their own material. */

@font-face {
  font-family: Growtopia;
  src: url('/assets/growtopia-2026/century-gothic-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Fustat;
  src: url('/theme/fustat-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d1b24;
  --panel: #122b36;
  --surface: #193b47;
  --surface-raised: #204653;
  --text: #f0f7f5;
  --muted: #adc4c9;
  --line: #34535e;
  --accent: #a8e477;
  --accent-hover: #c0f19b;
  --accent-ink: #14251a;
  --control: #102630;
  --control-hover: #244955;
  --control-active: #2a5360;
  --focus: #b9ec91;
  --error: #ffb8aa;
  --success: #b9ec91;
  --warning: #f1d394;
  --border-control: 1px solid var(--line);
  --display: Growtopia,'Century Gothic',sans-serif;
  --body: Fustat,'Trebuchet MS',Arial,sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --gut: clamp(20px,4vw,64px);
  --content: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --motion: 180ms;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

*,*::before,*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
}

body,button,input,select,textarea {
  font-family: var(--body);
}

button,input,select,textarea {
  font-size: 1rem;
  line-height: 1.5;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button,a,summary {
  touch-action: manipulation;
}

button,select,summary {
  cursor: pointer;
}

button:disabled,select:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 5px;
}

img,video,canvas,svg {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--control);
}

svg {
  flex-shrink: 0;
}

.icon,.tutorial-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  flex-shrink: 0;
}

button {
  color: inherit;
  border: 0;
  background: transparent;
}

h1,h2,h3,h4,p,dl,dd,figure {
  margin: 0;
}

h1,h2,h3,h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(30px,3.6vw,46px);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(23px,2.2vw,30px);
  letter-spacing: -.035em;
}

h3 {
  font-size: 21px;
  letter-spacing: -.02em;
}

p,li,dd {
  overflow-wrap: anywhere;
}

p {
  max-width: 76ch;
}

strong {
  font-weight: 650;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  font-weight: 600;
}

input,select,textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 48px;
  border: var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--control);
  color: var(--text);
  padding: 12px 14px;
  transition: border-color var(--motion),background-color var(--motion);
}

input::placeholder,textarea::placeholder {
  color: #8eaab3;
  opacity: 1;
}

input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled) {
  border-color: #668791;
}

input:disabled,select:disabled,textarea:disabled {
  opacity: .6;
}

input[readonly],textarea[readonly] {
  color: var(--muted);
}

input[type=checkbox],input[type=radio] {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
}

select {
  appearance: auto;
  padding-right: 44px;
}

select.is-open {
  border-color: var(--focus);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

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

input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline-offset: 2px;
}

[aria-invalid=true] {
  border-color: var(--error);
}

[hidden] {
  display: none!important;
}

.muted,.hint,.tool-limits {
  color: var(--muted);
}

.hint {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
}

.hint:empty {
  display: none;
}

.field-error,.is-error {
  color: var(--error);
}

.visually-hidden,.sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  white-space: nowrap!important;
  border: 0!important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 16px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.button,button[type=submit],.server-choice>button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--motion),color var(--motion),transform var(--motion) var(--ease),border-color var(--motion);
}

.button:hover:not(:disabled),button[type=submit]:hover:not(:disabled),.server-choice>button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.button:active:not(:disabled),button[type=submit]:active:not(:disabled) {
  transform: translateY(1px);
}

.button-secondary,.button--secondary,.button-quiet,.button--quiet {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.button-secondary:hover:not(:disabled),.button--secondary:hover:not(:disabled),.button-quiet:hover:not(:disabled) {
  background: var(--control-hover);
  border-color: #668791;
}

.button--compact {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

button:disabled,.button[aria-disabled=true] {
  opacity: .55;
  transform: none;
}

.site-window {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 2*var(--gut)),var(--content));
  margin: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -1.1px;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-dot {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.main-nav>a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color var(--motion),color var(--motion);
}

.main-nav>a>.icon {
  width: 18px;
  height: 18px;
}

.main-nav>a:not(.discord-link)>.icon {
  display: none;
}

.main-nav>a:hover {
  color: var(--text);
  background: var(--panel);
}

.main-nav>a[aria-current=page] {
  color: var(--accent);
  background: var(--panel);
}

.main-nav>.discord-link {
  margin-left: 12px;
  border: 1px solid var(--line);
  color: var(--text);
}

.discord-link>.icon:last-child {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.nav-toggle {
  min-height: 44px;
  padding: 10px 12px;
}

main {
  width: min(calc(100% - 2*var(--gut)),var(--content));
  margin: 0 auto;
  padding: 48px 0 64px;
  flex: 1;
  min-width: 0;
}

.directory-page main {
  padding-top: 40px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  min-width: 0;
}

.page-heading>div {
  min-width: 0;
}

.page-heading h1 .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-right: 14px;
}

.page-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .015em;
  margin-bottom: 16px;
}

.eyebrow .icon {
  width: 16px;
  height: 16px;
}

.intro {
  margin-bottom: 32px;
  display: grid;
  gap: 16px;
}

.intro .eyebrow {
  margin: 0;
}

.intro>p:not(.eyebrow) {
  color: var(--muted);
}

.intro>h1 {
  margin-bottom: 4px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .icon {
  width: 16px;
  height: 16px;
}

/* Art-led gaming hero; real directory remains close to the first screen. */

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  min-width: 0;
}

.hero-copy {
  padding: 32px 0;
}

.hero-copy h1 {
  font-size: clamp(38px,4.8vw,66px);
  letter-spacing: -.055em;
  max-width: 12ch;
  line-height: 1.06;
  margin: 0 0 24px;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  max-width: 43ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-art {
  position: relative;
  min-width: 0;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: var(--panel);
  aspect-ratio: 1.2;
  overflow: hidden;
}

.hero-art>.world-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #ffffff20;
  border-radius: inherit;
  pointer-events: none;
}

.hero-character {
  position: absolute;
  bottom: 8%;
  right: 2%;
  width: 49%;
  height: auto;
  filter: drop-shadow(0 8px 0 #16495b30);
}

.hero-top-hat {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 24%;
  height: auto;
}

.hero-art__badge {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
}

.hero-art__badge .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

[data-enter] {
  animation: hero-enter 600ms var(--ease) both;
}

@keyframes hero-enter {
  from {
    opacity: .35;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.directory-heading {
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.directory-heading h1 {
  font-size: clamp(26px,2.7vw,36px);
}

.directory-heading p {
  font-size: 16px;
  margin-top: 8px;
  color: var(--muted);
}

.directory-counts {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.directory-counts>span {
  display: grid;
  grid-template-columns: 20px auto;
  gap: 0 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.directory-counts .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  grid-row: 1/3;
}

.directory-counts strong {
  font-family: var(--display);
  color: var(--text);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.search-wrap {
  position: relative;
  max-width: 100%;
  margin-bottom: 24px;
}

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

#server-search {
  padding-left: 48px;
  padding-right: 56px;
  background: var(--panel);
  min-height: 52px;
}

.search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.search-clear:hover {
  background: var(--control-hover);
  color: var(--text);
}

.search-clear:focus-visible {
  outline-offset: -4px;
}

.table-wrap,.server-table {
  width: 100%;
  min-width: 0;
}

.server-table {
  display: block;
  border-collapse: separate;
  border-spacing: 0;
}

.server-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

#server-rows {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.server-table tr[data-server-name] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color var(--motion),transform var(--motion) var(--ease);
}

.server-table tr[data-server-name]:hover {
  border-color: #668791;
  transform: translateY(-2px);
}

.server-table tbody th {
  position: relative;
  grid-column: 1/-1;
  padding: 24px 24px 20px;
  text-align: left;
  min-width: 0;
}

.server-table tbody th::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/growtopia-2026/world-jungle.webp') center 52%/cover;
  opacity: .14;
  pointer-events: none;
}

.server-table tbody tr:nth-child(2n) th::before {
  background-image: url('/assets/growtopia-2026/world-hills.webp');
}

.server-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.25;
  position: relative;
  overflow-wrap: anywhere;
}

.server-label {
  min-width: 0;
}

.server-region {
  display: block;
  position: relative;
  margin: 8px 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.is-unavailable {
  background: var(--warning);
}

.server-table td {
  padding: 20px 24px;
  min-width: 0;
}

.server-table td.numeric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.server-table td.numeric::before {
  content: attr(data-label);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.metric-value {
  display: block;
}

.unit {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.server-table td.server-action {
  grid-column: 1/-1;
  padding-top: 0;
}

.button-guide {
  width: 100%;
  justify-content: space-between;
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.button-guide .icon {
  width: 18px;
  height: 18px;
}

.button-guide:hover {
  color: var(--accent-ink);
}

.directory-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  color: var(--warning);
  font-size: 14px;
}

.directory-status:empty {
  display: none;
}

.directory-status a {
  text-decoration: underline;
}

.directory-loading,.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 24px;
  background: var(--panel);
  border-radius: var(--radius);
  color: var(--muted);
}

.directory-loading>.icon,.empty-state>.icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.directory-loading h2,.empty-state h2 {
  color: var(--text);
  font-size: 23px;
}

.directory-loading .button,.empty-state .button {
  margin-top: 8px;
}

.home-paths {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.home-paths>a {
  display: grid;
  grid-template-columns: 24px 1fr 18px;
  align-items: start;
  gap: 14px;
  min-height: 100px;
  padding: 12px 0;
  border-radius: var(--radius-sm);
}

.home-paths>a>.icon:first-child {
  color: var(--accent);
}

.home-paths>a>.icon:last-child {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  transition: transform var(--motion);
}

.home-paths>a:hover>.icon:last-child {
  transform: translateX(4px);
}

.home-paths strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.home-paths p {
  color: var(--muted);
  font-size: 14px;
}

.home-paths>a:hover strong {
  color: var(--accent);
}

/* Guides: identical device and server contracts, clear step hierarchy. */

.server-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
}

.server-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.server-chip .icon {
  width: 18px;
  height: 18px;
}

.device-tabs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.device-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  transition: background-color var(--motion),color var(--motion);
}

.device-tab:hover {
  background: var(--control-hover);
  color: var(--text);
}

.device-tab[aria-selected=true] {
  background: var(--accent);
  color: var(--accent-ink);
}

.guide-panel {
  max-width: 900px;
  margin: 0 auto 32px;
}

.guide-panel>h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.guide-intro {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
  max-width: 70ch;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius);
  min-width: 0;
}

.step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--accent);
  font-family: var(--display);
  font-size: 15px;
}

.step-body {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.75;
}

.step-body>.button {
  margin-top: 16px;
}

.step-body strong {
  color: var(--text);
}

.step-group {
  margin-bottom: 32px;
  min-width: 0;
}

.step-group>h3 {
  margin: 24px 0 16px;
  font-size: 21px;
}

.step-group+.step-group {
  margin-top: 32px;
}

.tutorial-options {
  display: grid;
  gap: 8px;
}

.notice,.notice-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 16px 0;
}

.notice:empty {
  display: none;
}

.notice-warning {
  border-left: 3px solid var(--warning);
  color: var(--warning);
}

.notice>.icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.notice.is-error {
  color: var(--error);
  border-color: var(--error);
}

.notice a,.hint a {
  color: var(--text);
  text-decoration: underline;
}

.copy-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.copy-field>label {
  font-weight: 600;
  font-size: 14px;
}

.codebox {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.copy-field textarea,.copy-field input {
  flex: 1;
  font-family: ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size: 14px;
  line-height: 1.7;
  min-height: 48px;
  color: var(--text);
  overflow-wrap: normal;
}

.copy-button {
  flex-shrink: 0;
  align-self: flex-start;
  min-height: 48px;
}

.tutorial-video {
  margin-top: 24px;
}

.tutorial-video>summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--accent);
  font-weight: 600;
}

.tutorial-video video {
  margin-top: 16px;
  max-height: 460px;
}

/* Tools: one upload and result recipe; codecs stay on the device. */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.tool-card {
  display: grid;
  grid-template-columns: 52px 1fr 22px;
  gap: 24px;
  align-items: center;
  min-width: 0;
  min-height: 164px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--motion) var(--ease),border-color var(--motion),background-color var(--motion);
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #668791;
  background: #173541;
}

.tool-card>.tool-card-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--accent);
  background: var(--surface);
}

.tool-card h2 {
  font-size: 23px;
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--muted);
  font-size: 16px;
}

.tool-card>.icon:last-child {
  color: var(--muted);
  transition: transform var(--motion);
}

.tool-card:hover>.icon:last-child {
  transform: translateX(4px);
  color: var(--accent);
}

.tools-intro {
  max-width: 70ch;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.tools-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-top: 24px;
  font-size: 14px;
}

.tools-note .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tool-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--panel);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}

.tool-nav a[aria-current=page] {
  background: var(--surface-raised);
  color: var(--accent);
}

.tool-nav a:hover {
  color: var(--text);
  background: var(--control-hover);
}

.tool-nav .icon {
  width: 18px;
  height: 18px;
}

.tool-layout {
  max-width: 900px;
  margin: 0 auto;
}

.tool-form {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.field,.field-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label,.field>span {
  font-weight: 600;
}

.select-wrap {
  position: relative;
}

.select-wrap>.icon {
  display: none;
}

.tool-form>.field {
  max-width: 520px;
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 224px;
  padding: 32px 24px;
  background: var(--panel);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--motion),border-color var(--motion);
}

.upload-zone:hover,.upload-zone.is-dragover {
  background: var(--surface);
  border-color: var(--accent);
}

.upload-zone:has(:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.upload-zone>.upload-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 8px;
}

#tool-file-label {
  font-weight: 600;
  font-size: 20px;
}

.upload-name {
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  border: 0;
}

.tool-limits {
  margin: 0;
  font-size: 14px;
}

.tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-local {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-left: auto;
}

.tool-local>.icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

.tool-fields,.field-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.result-panel,.tool-result {
  display: grid;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tool-result output {
  font-family: ui-monospace,monospace;
  font-size: 26px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.tool-result canvas,.tool-result img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  background: repeating-conic-gradient(#30505b 0% 25%,#24414b 0% 50%) 0 0/16px 16px;
  border-radius: var(--radius-sm);
}

.tool-result a.button {
  justify-self: start;
}

.tool-result pre,pre {
  max-width: 100%;
  overflow: auto;
  padding: 20px;
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tool-facts {
  display: grid;
  grid-template-columns: minmax(80px,1fr) minmax(0,3fr);
  gap: 8px 16px;
}

.tool-facts dt {
  color: var(--muted);
}

.tool-facts dd {
  font-family: ui-monospace,monospace;
  font-size: 14px;
  min-width: 0;
}

/* Custom popup preserves native select semantics and form values. */

/* BEGIN SHOP SELECT PRESENTATION */

.custom-select__menu {
  position: fixed;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #668791;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px #0006;
  overflow: auto;
  overscroll-behavior: contain;
}

.custom-select__list {
  min-width: 0;
}

.custom-select__option {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-select__option:hover,.custom-select__option.is-active {
  background: var(--control-hover);
}

.custom-select__option[aria-selected=true] {
  color: var(--accent);
  background: var(--control-active);
  font-weight: 600;
}

.custom-select__option:disabled {
  opacity: .5;
}

.custom-select__search {
  flex-shrink: 0;
  min-height: 44px;
  margin-bottom: 6px;
  font-size: 16px;
}

.custom-select__group {
  padding: 10px 12px 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.custom-select__empty {
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* END SHOP SELECT PRESENTATION */

/* Commerce presentation; prices, terms, provider availability and writers are unchanged. */

/* BEGIN SHOP PAYMENT PRESENTATION */

.server-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}

.server-choice label {
  font-weight: 600;
}

.server-choice select {
  width: auto;
  min-width: 180px;
}

.shop-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 4px 0;
}

.shop-payments>li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
}

.shop-payments .icon {
  color: var(--accent);
}

.shop-payments small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.shop-payments .is-unavailable {
  color: var(--muted);
}

.shop-packs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pack-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--motion),border-color var(--motion);
}

.pack-card:hover {
  transform: translateY(-2px);
  border-color: #668791;
}

.pack-card article {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  padding: 24px;
}

.pack-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pack-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pack-card__icon img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  object-fit: contain;
}

.pack-card__type {
  font-size: 14px;
  color: var(--muted);
}

.pack-card__type strong {
  color: var(--accent);
  font-weight: 650;
}

.pack-card h2 {
  font-size: 21px;
  line-height: 1.4;
}

.pack-card__price {
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: -.04em;
}

.pack-card__currency {
  font-size: 24px;
  color: var(--muted);
  margin-right: 4px;
}

.pack-card__choose {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
}

.checkout-form,.account-form {
  display: grid;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-form>label,.account-form>label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  min-width: 0;
}

.checkout-form>button[type=submit],.account-form>button[type=submit] {
  justify-self: start;
}

.checkout-form .hint {
  font-weight: 400;
}

.payment-options legend {
  margin-bottom: 12px;
}

.payment-options__grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.payment-option {
  display: block;
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.payment-option>input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.payment-option__body {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px;
  border: var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--control);
  transition: background-color var(--motion),border-color var(--motion);
}

.payment-option__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.payment-option__icon .icon {
  width: 26px;
  height: 26px;
}

.payment-option__text {
  min-width: 0;
}

.payment-option__name {
  display: block;
  font-weight: 600;
}

.payment-option__text small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.payment-option__selection {
  width: 18px;
  height: 18px;
  border: 1px solid #668791;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.payment-option:has(>input:not(:disabled)):hover .payment-option__body {
  background: var(--control-hover);
}

.payment-option>input:checked+.payment-option__body {
  border-color: var(--accent);
  background: var(--control-active);
}

.payment-option>input:checked+.payment-option__body .payment-option__selection {
  border: 5px solid var(--accent);
}

.payment-option>input:focus-visible+.payment-option__body {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.payment-option:has(>input:disabled) {
  cursor: not-allowed;
}

.payment-option>input:disabled+.payment-option__body {
  opacity: .55;
}

.checkout-entry,.checkout-status,.checkout-ledger,.checkout-entry__form,.checkout-entry__receipt,.checkout-state,.checkout-summary,.checkout-safe-next-step,.mini-form {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.checkout-entry__heading,.checkout-summary__product,.checkout-payment-action,.checkout-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.checkout-entry__heading {
  justify-content: space-between;
}

.checkout-entry__layout {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: 32px;
  align-items: start;
}

.checkout-entry__receipt,.checkout-summary {
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius);
}

.checkout-status dl,.checkout-entry__receipt dl {
  display: grid;
  gap: 16px;
}

.checkout-status dl>div,.checkout-entry__receipt dl>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-status dt,.checkout-entry__receipt dt {
  color: var(--muted);
}

.checkout-status dd,.checkout-entry__receipt dd,.checkout-status code,.checkout-status p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-status img,.checkout-entry img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.checkout-disclosures {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.checkout-disclosures>summary {
  min-height: 44px;
  color: var(--muted);
}

.checkout-state__message,.checkout-state__description {
  color: var(--muted);
}

.checkout-safe-next-step a {
  text-decoration: underline;
}

.checkout-entry__form button,.checkout-navigation a {
  min-height: 44px;
}

.mini-form .field-stack {
  margin-bottom: 12px;
}

.checkout-badge,.checkout-state__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent);
  width: fit-content;
}

form.checkout-form>label:has(input[name="email"]),#shop-checkout-entry-form .field-stack:has(input[name="email"]) {
  display: none;
}

/* END SHOP PAYMENT PRESENTATION */

.request-category-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 12px;
}

.request-category-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.request-category-choice>input {
  position: absolute;
  opacity: 0;
}

.request-category-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--motion),border-color var(--motion);
}

.request-category-content svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--muted);
}

.request-category-choice:hover .request-category-content {
  background: var(--control-hover);
}

.request-category-choice>input:checked+.request-category-content {
  border-color: var(--accent);
  background: var(--control-active);
  color: var(--accent);
}

.request-category-choice>input:checked+.request-category-content svg {
  color: var(--accent);
}

.request-category-choice>input:focus-visible+.request-category-content {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.item-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  max-height: 336px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line) var(--control);
}

.item-results:empty {
  display: none;
}

.item-results button {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  text-align: left;
  padding: 12px;
  background: var(--control);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.item-results button:hover,.item-results button[aria-pressed=true] {
  background: var(--control-active);
  border-color: var(--accent);
}

.item-results img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}

#selected-item {
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--control);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}

#item-results-notice {
  margin: 0;
}

#request-notice {
  max-width: 780px;
  margin: 20px auto 0;
}

.request-status {
  max-width: 780px;
  margin: 32px auto 0;
}

.request-status ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.request-status li {
  padding: 16px;
  background: var(--panel);
  border-radius: var(--radius-sm);
}

/* Account and legal surfaces share the system without changing their access policy or copy. */

.account-content {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.account-wide {
  max-width: 1000px;
}

.account-content form {
  display: grid;
  gap: 20px;
}

.account-content>form {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.account-content .field {
  display: grid;
  gap: 8px;
}

.account-content a {
  text-decoration: underline;
}

.account-content .button {
  text-decoration: none;
}

.account-content .page-heading {
  margin: 0;
  flex-wrap: wrap;
}

.account-content dl {
  display: grid;
  gap: 8px;
}

.account-content dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-content article,.account-servers>li {
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
}

.account-content h2 {
  font-size: 23px;
}

.account-content .muted {
  font-size: 14px;
  line-height: 1.75;
}

.account-content #account-servers {
  display: grid;
  gap: 16px;
}

#account-captcha {
  max-width: 100%;
  overflow-x: auto;
}

#account-notice {
  max-width: 1000px;
  margin: 20px auto 0;
}

#panel-credentials {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius);
}

#panel-username,#panel-password {
  font-family: ui-monospace,monospace;
}

.account-servers {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.legal-document {
  max-width: 780px;
  margin: auto;
  font-size: 17px;
  line-height: 1.85;
}

.legal-document .page-heading {
  margin-bottom: 16px;
}

.legal-document h1 {
  font-size: clamp(30px,3vw,42px);
}

.legal-document h2 {
  font-size: 24px;
  margin: 40px 0 16px;
  line-height: 1.4;
}

.legal-document p {
  margin-bottom: 16px;
}

.legal-document ul,.legal-document ol {
  padding-left: 24px;
  margin: 16px 0 24px;
}

.legal-document li+li {
  margin-top: 10px;
}

.legal-document a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-document .legal-date,.legal-document time {
  color: var(--muted);
  font-size: 14px;
}

.not-found {
  padding: 64px 24px;
}

/* The common toolkit and footer expose every existing service. */

.tool-bar {
  width: min(calc(100% - 2*var(--gut)),var(--content));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.tool-bar__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-right: auto;
}

.tool-bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.tool-bar a:hover {
  color: var(--accent);
}

.tool-bar .icon {
  width: 18px;
  height: 18px;
}

.site-footer {
  width: min(calc(100% - 2*var(--gut)),var(--content));
  margin: 0 auto;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand>.brand {
  font-size: 25px;
}

.footer-brand>.brand img {
  width: 36px;
  height: 36px;
}

.footer-brand>p {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
}

.game-logo {
  width: 112px;
  height: auto;
  opacity: .85;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer-links h3 {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-links>a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links>a:hover,.footer-meta a:hover {
  color: var(--accent);
}

.footer-links .icon {
  width: 14px;
  height: 14px;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-meta>nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.footer-meta>nav>a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-meta .art-credit {
  width: 100%;
  font-size: 13px;
}

.tooltip {
  position: fixed;
  z-index: 160;
  max-width: min(280px,calc(100vw - 16px));
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  max-width: calc(100% - 32px);
  text-align: center;
}

.is-spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media(min-width:1600px) {
  :root {
    --content: 1320px;
  }
  .hero-copy h1 {
    font-size: 72px;
  }
  .hero-art {
    aspect-ratio: 1.35;
  }
}

@media(max-width:1360px) {
  .header-inner {
    gap: 20px;
  }
  .main-nav>a {
    padding: 10px;
    font-size: 14px;
  }
  .main-nav>.discord-link {
    margin-left: 4px;
  }
  .home-hero {
    gap: 32px;
  }
}

@media(max-width:1120px) {
  .brand {
    font-size: 24px;
  }
  .main-nav>a {
    padding: 10px 8px;
    font-size: 13px;
  }
  .main-nav .discord-link>.icon:last-child {
    display: none;
  }
  .home-hero {
    gap: 24px;
  }
  .hero-copy h1 {
    font-size: 52px;
  }
  .hero-copy>p:not(.eyebrow) {
    font-size: 17px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    padding: 12px 16px;
  }
  .hero-art {
    aspect-ratio: 1;
  }
  .server-table tbody th {
    padding: 20px;
  }
  .server-table td {
    padding: 18px 20px;
  }
  .server-name {
    font-size: 23px;
  }
}

@media(max-width:960px) {
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 0;
  }
  .nav-toggle {
    margin-left: auto;
  }
  .nav-toggle:not([hidden]) {
    display: inline-flex;
  }
  .main-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 4px;
  }
  .main-nav>a {
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 12px;
    justify-content: flex-start;
  }
  .main-nav>a:not(.discord-link)>.icon {
    display: inline-block;
  }
  .main-nav>.discord-link {
    margin-left: 0;
  }
  .nav-enhanced .main-nav:not(.is-open) {
    display: none;
  }
  .nav-enhanced .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .home-hero {
    gap: 24px;
  }
  .hero-copy h1 {
    font-size: 44px;
  }
  .hero-copy {
    padding: 8px 0;
  }
  .hero-actions .button {
    font-size: 14px;
    padding: 12px;
  }
  .hero-art {
    aspect-ratio: .85;
  }
  #server-rows {
    gap: 16px;
  }
  .server-table tbody th {
    padding: 20px 16px;
  }
  .server-table td {
    padding: 16px;
  }
  .server-name {
    font-size: 21px;
  }
  .server-table td.numeric {
    font-size: 22px;
  }
  .home-paths {
    gap: 20px;
  }
  .home-paths>a {
    grid-template-columns: 22px 1fr;
    gap: 10px;
  }
  .home-paths>a>.icon:last-child {
    display: none;
  }
  .home-paths strong {
    font-size: 16px;
  }
  .tool-card {
    padding: 24px;
    gap: 16px;
    grid-template-columns: 44px 1fr 18px;
  }
  .tool-card>.tool-card-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  .shop-packs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .checkout-entry__layout {
    gap: 24px;
    grid-template-columns: minmax(0,3fr) minmax(0,2fr);
  }
}

@media(max-width:760px) {
  :root {
    --gut: 24px;
  }
  .directory-page main {
    padding-top: 24px;
  }
  main {
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .home-hero {
    grid-template-columns: minmax(0,1fr);
    gap: 28px;
    margin-bottom: 40px;
  }
  .hero-copy h1 {
    font-size: clamp(38px,7.5vw,56px);
    max-width: 15ch;
    margin-bottom: 16px;
  }
  .hero-copy {
    padding: 8px 0 0;
  }
  .hero-copy>p:not(.eyebrow) {
    font-size: 17px;
    max-width: 54ch;
  }
  .hero-actions {
    margin-top: 24px;
  }
  .hero-actions .button {
    font-size: 16px;
    padding: 12px 18px;
  }
  .hero-art {
    aspect-ratio: 2;
    height: auto;
    max-height: 280px;
  }
  .hero-character {
    width: 35%;
    right: 5%;
    bottom: 1%;
  }
  .hero-top-hat {
    width: 17%;
    left: 17%;
    bottom: 4%;
  }
  .hero-art>.world-art {
    object-position: center 52%;
  }
  .hero-art__badge {
    top: 12px;
    left: 12px;
    font-size: 13px;
    padding: 6px 10px;
  }
  .directory-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  .directory-heading p {
    font-size: 15px;
  }
  .directory-counts {
    gap: 24px;
  }
  .directory-counts strong {
    font-size: 23px;
  }
  #server-rows {
    grid-template-columns: minmax(0,1fr);
  }
  .server-table tbody th {
    padding: 24px 24px 20px;
  }
  .server-table td {
    padding: 20px 24px;
  }
  .server-name {
    font-size: 26px;
  }
  .server-table td.numeric {
    font-size: 24px;
  }
  .server-table td.server-action {
    padding-bottom: 24px;
  }
  .home-paths {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
  }
  .home-paths>a {
    grid-template-columns: 24px 1fr 18px;
    min-height: 88px;
    gap: 16px;
  }
  .home-paths>a>.icon:last-child {
    display: block;
  }
  .home-paths strong {
    font-size: 18px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
  }
  .page-heading p {
    font-size: 16px;
  }
  .page-heading h1 .icon {
    width: 26px;
    height: 26px;
    margin-right: 10px;
  }
  .device-tabs {
    padding: 6px;
    gap: 4px;
    margin-bottom: 24px;
  }
  .device-tab {
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    min-height: 80px;
    padding: 10px 4px;
  }
  .device-tab .icon {
    width: 22px;
    height: 22px;
  }
  .guide-panel>h2 {
    font-size: 24px;
  }
  .guide-intro {
    font-size: 16px;
  }
  .step {
    padding: 20px;
    gap: 14px;
  }
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .step-body {
    font-size: 16px;
  }
  .step-body>.button {
    font-size: 15px;
  }
  .copy-field>.codebox {
    flex-wrap: wrap;
  }
  .copy-field textarea,.copy-field input {
    flex-basis: 100%;
  }
  .copy-button {
    margin-left: auto;
  }
  .tool-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }
  .tool-card {
    min-height: 140px;
  }
  .tool-card h2 {
    font-size: 22px;
  }
  .tool-nav {
    gap: 8px;
    margin-bottom: 24px;
  }
  .tool-nav a {
    flex: 1 1 40%;
    font-size: 14px;
    justify-content: center;
  }
  .tool-layout {
    width: 100%;
  }
  .tool-fields,.field-row {
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
  }
  .tool-local {
    margin-left: 0;
    width: 100%;
    padding-top: 4px;
  }
  .tool-actions>.button {
    flex: 1;
    min-width: 100px;
    font-size: 15px;
    padding: 12px;
  }
  .upload-zone {
    min-height: 200px;
    padding: 24px 20px;
  }
  #tool-file-label {
    font-size: 18px;
  }
  .tool-result {
    padding: 20px;
  }
  .tool-result output {
    font-size: 23px;
  }
  .tool-facts {
    grid-template-columns: minmax(0,1fr);
  }
  .tool-facts dd {
    margin-bottom: 8px;
  }
  .checkout-entry__layout {
    grid-template-columns: minmax(0,1fr);
  }
  .checkout-form,.account-form {
    padding: 24px;
    gap: 20px;
  }
  .checkout-form>button[type=submit],.account-form>button[type=submit] {
    width: 100%;
    justify-self: stretch;
  }
  .request-category-grid {
    gap: 10px;
  }
  .request-category-content {
    font-size: 14px;
    padding: 12px;
    gap: 8px;
    min-height: 72px;
  }
  .request-category-content svg {
    width: 20px;
    height: 20px;
  }
  .payment-options__grid {
    grid-template-columns: minmax(0,1fr);
  }
  .payment-option__body {
    min-height: 76px;
  }
  .tool-bar {
    gap: 8px 24px;
    padding: 20px 0;
    justify-content: flex-start;
  }
  .tool-bar__label {
    width: 100%;
    font-size: 13px;
  }
  .tool-bar a {
    flex: 1 1 35%;
    min-height: 44px;
  }
  .footer-top {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 32px 24px;
    padding-bottom: 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-brand>p {
    margin-top: 12px;
  }
  .footer-meta {
    align-items: flex-start;
    gap: 12px;
  }
  .footer-meta>nav {
    margin: 0;
    width: 100%;
  }
  .site-footer {
    padding-top: 32px;
  }
  .legal-document {
    font-size: 16px;
    line-height: 1.8;
  }
  .legal-document h2 {
    font-size: 22px;
    margin-top: 32px;
  }
  .account-content>form {
    padding: 24px;
  }
  .account-content article {
    padding: 20px;
  }
}

@media(max-width:480px) {
  :root {
    --gut: 20px;
  }
  .hero-art {
    aspect-ratio: 1.7;
  }
  .hero-character {
    width: 43%;
    right: 2%;
  }
  .hero-top-hat {
    width: 21%;
    left: 13%;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .home-hero {
    gap: 24px;
  }
  .hero-copy h1 {
    font-size: 39px;
  }
  .hero-copy>p:not(.eyebrow) {
    font-size: 16px;
  }
  .shop-packs {
    grid-template-columns: minmax(0,1fr);
  }
  .pack-card article {
    padding: 24px;
  }
  .shop-packs h2 {
    font-size: 22px;
  }
  .request-category-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .request-category-content {
    min-height: 56px;
    padding: 12px 16px;
  }
  .checkout-form,.account-form {
    padding: 20px;
  }
  .server-choice {
    gap: 12px;
    align-items: stretch;
  }
  .server-choice>label {
    width: 100%;
  }
  .server-choice>select {
    flex: 1;
    min-width: 0;
  }
  .server-choice>button {
    padding: 12px 16px;
  }
  .device-tab {
    font-size: 13px;
    min-height: 76px;
  }
  .device-tab .icon {
    width: 20px;
    height: 20px;
  }
  .tool-card {
    grid-template-columns: 40px 1fr 18px;
    padding: 20px;
    gap: 12px;
  }
  .tool-card>.tool-card-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  .tool-card p {
    font-size: 14px;
  }
  .tool-card h2 {
    font-size: 20px;
  }
  .page-heading .button {
    min-height: 44px;
    font-size: 14px;
  }
  .step {
    padding: 16px;
    gap: 12px;
  }
  .step-number {
    width: 26px;
    height: 26px;
  }
  .step-body .button {
    padding: 12px;
    gap: 8px;
  }
  .server-chip {
    font-size: 14px;
  }
  .account-content>form {
    padding: 20px;
  }
  .notice {
    padding: 16px;
    font-size: 14px;
  }
}

@media(max-width:400px) {
  :root {
    --gut: 16px;
  }
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy .eyebrow {
    font-size: 13px;
  }
  .server-table tbody th {
    padding: 20px;
  }
  .server-table td {
    padding: 18px 20px;
  }
  .server-table td.server-action {
    padding-bottom: 20px;
  }
  .device-tabs {
    gap: 2px;
    padding: 4px;
  }
  .tool-nav a {
    font-size: 13px;
    padding: 10px 12px;
  }
  .checkout-form,.account-form {
    padding: 16px;
  }
  .tool-card {
    grid-template-columns: 36px 1fr 16px;
    padding: 20px 16px;
    gap: 12px;
  }
  .tool-card>.tool-card-icon {
    width: 36px;
    height: 36px;
  }
  .payment-option__body {
    padding: 14px;
  }
  .account-content>form {
    padding: 16px;
  }
  .nav-enhanced .main-nav.is-open {
    grid-template-columns: minmax(0,1fr);
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
    animation: none!important;
    transition: none!important;
  }
  [data-enter] {
    opacity: 1;
    transform: none;
  }
}

@media(forced-colors:active) {
  .button,.device-tab[aria-selected=true],.request-category-content,.payment-option__body {
    border: 1px solid ButtonText;
  }
  .status-dot {
    forced-color-adjust: none;
  }
  .payment-option>input:checked+.payment-option__body,.request-category-choice>input:checked+.request-category-content {
    outline: 2px solid Highlight;
  }
}

.ios-screenshots {
  margin-block: 1.25rem;
}

.ios-screenshots summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  padding-block: .6rem;
}

.ios-screenshots ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: 1rem;
  margin-block: .75rem 0;
  padding-inline-start: 1.5rem;
}

.ios-screenshot {
  min-width: 0;
  max-width: 230px;
}

.ios-screenshot-frame {
  display: block;
  position: relative;
  margin-top: .4rem;
}

.ios-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ios-screenshot-dot {
  position: absolute;
  inset: var(--dot-y) auto auto var(--dot-x);
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-radius: 50%;
  background: #db1022;
  box-shadow: 0 0 0 1px #931420;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ios-screenshot:nth-child(1) { --dot-x: 49%; --dot-y: 20%; }
.ios-screenshot:nth-child(2) { --dot-x: 91%; --dot-y: 23%; }
.ios-screenshot:nth-child(3) { --dot-x: 15%; --dot-y: 27%; }
.ios-screenshot:nth-child(4) { --dot-x: 80%; --dot-y: 55%; }
.ios-screenshot:nth-child(5) { --dot-x: 91%; --dot-y: 84%; }
.ios-screenshot:nth-child(6) { --dot-x: 9%; --dot-y: 84%; }
