html { min-width: 0; }
body { min-width: 0; }
img, video { block-size: auto; max-inline-size: 100%; }
button, input, textarea { min-inline-size: 0; }
a, button, input, textarea { overflow-wrap: anywhere; }

.site-header, .admin-head { gap: .9rem 1.25rem; min-width: 0; }
.site-header { align-items: center; flex-wrap: wrap; height: auto; min-height: 78px; }
.site-header nav, .admin-head nav, footer nav { flex-wrap: wrap; min-width: 0; }
.site-header nav { display: flex; }
.site-header nav { gap: .75rem 1.1rem; }
.language-switch, .menu-cta, .site-header nav a, .admin-head nav a, .admin-head button { min-height: 44px; display: inline-flex; align-items: center; }
.language-switch { border: 1px solid var(--line); padding: .55rem .8rem; font-size: .78rem; font-weight: 700; }
.hero, .game-hero { isolation: isolate; overflow: clip; position: relative; }
.hero-art { block-size: 100%; inline-size: 100%; inset: 0; object-fit: cover; position: absolute; z-index: 0; }
.hero-copy, .hero > div, .game-hero > div { position: relative; z-index: 1; }
.hero, .game-hero { min-height: clamp(31rem, 78vh, 48rem); padding-inline: clamp(1.25rem, 8vw, 8rem); }
.hero h1, .game-hero h1, .page h1, .article h1 { font-size: clamp(2.65rem, 9vw, 8.5rem); overflow-wrap: anywhere; }
.featured, .content-section, .statement { padding-inline: clamp(1.25rem, 8vw, 8rem); }
.featured-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.featured-grid > *, .game-grid > *, .post-grid > *, .team-grid > *, .gallery > * { min-width: 0; }
.featured-grid img, .game-card img, .post-card img, .gallery img, .article-cover { height: auto; max-width: 100%; object-fit: cover; }
.featured-showcase { margin: 0; }
.featured-showcase img { aspect-ratio: 16 / 9; background: #111; display: block; object-fit: cover; width: 100%; }
.featured-showcase figcaption { color: var(--ash); font-size: .8rem; line-height: 1.5; padding-top: .65rem; }
.game-grid, .post-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); padding-inline: clamp(1.25rem, 8vw, 8rem); }
.page, .article { inline-size: min(100%, 1200px); padding-inline: clamp(1.25rem, 8vw, 8rem); }
.article { max-width: 850px; }
.article :is(h1, h2, h3, p, li, a, pre, code) { overflow-wrap: anywhere; }
.article pre { max-inline-size: 100%; overflow-x: auto; }
.team-section { max-inline-size: 100%; }
.team-card { max-inline-size: 100%; }
.team-card > div, .game-card > div, .post-card { min-width: 0; }
.button { justify-content: center; min-height: 48px; max-inline-size: 100%; text-align: center; white-space: normal; }
.text-link { display: inline-block; min-height: 44px; padding-block: .55rem; }

.contact-form, .editor, .upload { inline-size: min(100%, 760px); }
.contact-form label, .editor label, .upload label { min-width: 0; }
textarea { max-inline-size: 100%; resize: vertical; }
.admin-head { align-items: center; flex-wrap: wrap; }
.admin-head nav { gap: .35rem .85rem; }
.admin-main { inline-size: min(100%, 1100px); overflow: visible; padding-inline: clamp(1rem, 4vw, 4rem); }
.admin-title { gap: 1rem; }
.admin-title > * { min-width: 0; }
.admin-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.media-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.media-list article, .media-list p { overflow-wrap: anywhere; }
.media-type { color: var(--ember); font: 500 .7rem monospace; text-transform: uppercase; }
.team-editor, .settings-team { min-inline-size: 0; }
.team-editor { border: 1px solid var(--line); display: grid; gap: 1rem; margin: 1rem 0; padding: 1rem; }
.team-editor legend { padding-inline: .4rem; }
.discord-cta { background: #191b1a; border-block: 1px solid var(--line); padding: 5rem clamp(1.25rem, 8vw, 8rem); }
.discord-cta > p:not(.eyebrow) { color: var(--ash); line-height: 1.6; max-inline-size: 38rem; }
.discord-cta .disabled { background: #4a403a; color: var(--paper); cursor: not-allowed; opacity: .78; }
.discord-status { color: var(--ember) !important; font: 500 .72rem monospace; letter-spacing: .1em; text-transform: uppercase; }
.construction { min-block-size: 62vh; }
.requested-path { color: var(--ash); margin-top: 2rem; overflow-wrap: anywhere; }
.requested-path code { font: inherit; }
.check { align-items: center; display: flex !important; gap: .65rem; }
.check input { inline-size: 1rem; }
.drop-zone, .media-picker { border: 1px dashed var(--line); display: grid; gap: .8rem; margin: 0; min-inline-size: 0; padding: 1rem; }
.drop-zone { cursor: pointer; }
.drop-zone.is-dragging, .media-picker.is-dragging { border-color: var(--ember); background: rgba(237, 96, 64, .08); }
.drop-zone:focus-visible, .media-picker-option:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.drop-zone legend, .media-picker legend { color: var(--ash); font-size: .85rem; font-weight: 700; padding-inline: .3rem; }
.drop-zone p { margin: 0; }
.drop-zone dl { display: grid; gap: .25rem .75rem; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.drop-zone dt { color: var(--ash); }
.drop-zone dd { margin: 0; overflow-wrap: anywhere; }
.drop-zone img { max-block-size: 18rem; max-inline-size: 100%; object-fit: contain; }
.media-picker-selection { color: var(--ash); margin: 0; }
.media-picker-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); }
.media-picker-option { background: #1d201e; border: 1px solid var(--line); color: var(--paper); cursor: grab; display: grid; font: inherit; gap: .45rem; padding: .45rem; text-align: left; }
.media-picker-option[aria-pressed="true"] { border-color: var(--ember); box-shadow: inset 0 0 0 1px var(--ember); }
.media-picker-option img { aspect-ratio: 1.25; object-fit: cover; width: 100%; }
.media-picker-option span { font-size: .72rem; overflow-wrap: anywhere; }
.settings-discord { border: 1px solid var(--line); display: grid; gap: 1rem; margin-block: 1rem; padding: 1rem; }
table { table-layout: fixed; }
td, th { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .site-header { padding: .9rem clamp(1rem, 4vw, 4vw); position: relative; }
  .site-header nav { order: 4; inline-size: 100%; }
  .language-switch { margin-inline-start: auto; }
  .hero, .game-hero { min-height: clamp(29rem, 72vh, 40rem); padding-block: 8.5rem 4rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 2rem; }
  .featured-grid img { order: -1; }
  .team-card { grid-template-columns: minmax(10rem, .55fr) minmax(0, 1fr); }
  footer { grid-template-columns: 1fr; padding-inline: clamp(1.25rem, 8vw, 8rem); }
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; }
  .site-header .brand { margin-inline-end: auto; }
  .site-header nav { display: flex; font-size: .75rem; gap: .35rem .8rem; }
  .site-header nav a { min-height: 40px; }
  .language-switch, .menu-cta { min-height: 42px; padding: .5rem .65rem; }
  .hero, .game-hero { align-items: end; min-height: 32rem; padding: 7rem 1.25rem 3rem; }
  .hero h1, .game-hero h1, .page h1, .article h1 { font-size: clamp(2.45rem, 14vw, 4.5rem); line-height: .94; }
  .featured, .content-section, .statement { padding-block: 4rem; }
  .section-label { align-items: flex-start; flex-wrap: wrap; gap: .65rem; }
  .section-label a { margin-left: 0; }
  .page, .article { padding-block: 5.5rem 3.5rem; }
  .page > .lede { margin-bottom: 2.5rem; }
  .article .intro { font-size: 1.2rem; }
  .team-section { margin-block: 3rem 1rem; padding: 1.5rem; }
  .team-card, .team-card.no-portrait { grid-template-columns: 1fr; }
  .team-card > div { padding: 1.5rem; }
  .team-card h3 { font-size: clamp(2rem, 12vw, 3rem); }
  .button { inline-size: 100%; }
  .admin-head { padding: 1rem; }
  .admin-head .brand { margin-right: auto; }
  .admin-head nav { inline-size: 100%; }
  .admin-head nav a, .admin-head button { min-height: 42px; }
  .admin-main { padding-block: 2rem; }
  .admin-main h1 { font-size: clamp(2.15rem, 12vw, 3rem); }
  .admin-title { align-items: stretch; flex-direction: column; }
  .admin-title .button { inline-size: auto; }
  table { font-size: .75rem; }
  td, th { padding: .55rem .35rem; vertical-align: top; }
  .media-list { grid-template-columns: 1fr; }
  .media-picker-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { margin: 2rem 1rem; padding: 1.5rem; }
}
