/* Genesis UI components, from the Genesis design system (components/bundle.css). Fonts load from the page's <link>, not @import. */

/* Genesis UI — component styles. Values come from tokens.css; textures are inline pixel SVGs. */

:root {
  --gx-tex-grass: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="64" height="64" shape-rendering="crispEdges" role="img" aria-label="grass-block"%3E%3Ctitle%3Egrass-block%3C/title%3E%3Crect x="0" y="0" width="1" height="1" fill="%235aa832"/%3E%3Crect x="1" y="0" width="1" height="1" fill="%238ad457"/%3E%3Crect x="2" y="0" width="5" height="1" fill="%235aa832"/%3E%3Crect x="7" y="0" width="1" height="1" fill="%238ad457"/%3E%3Crect x="8" y="0" width="5" height="1" fill="%235aa832"/%3E%3Crect x="13" y="0" width="1" height="1" fill="%238ad457"/%3E%3Crect x="14" y="0" width="2" height="1" fill="%235aa832"/%3E%3Crect x="0" y="1" width="4" height="1" fill="%235aa832"/%3E%3Crect x="4" y="1" width="1" height="1" fill="%233a7420"/%3E%3Crect x="5" y="1" width="5" height="1" fill="%235aa832"/%3E%3Crect x="10" y="1" width="1" height="1" fill="%238ad457"/%3E%3Crect x="11" y="1" width="5" height="1" fill="%235aa832"/%3E%3Crect x="0" y="2" width="2" height="1" fill="%235aa832"/%3E%3Crect x="2" y="2" width="1" height="1" fill="%238ad457"/%3E%3Crect x="3" y="2" width="4" height="1" fill="%235aa832"/%3E%3Crect x="7" y="2" width="1" height="1" fill="%233a7420"/%3E%3Crect x="8" y="2" width="5" height="1" fill="%235aa832"/%3E%3Crect x="13" y="2" width="1" height="1" fill="%233a7420"/%3E%3Crect x="14" y="2" width="1" height="1" fill="%235aa832"/%3E%3Crect x="15" y="2" width="1" height="1" fill="%238ad457"/%3E%3Crect x="0" y="3" width="1" height="1" fill="%233a7420"/%3E%3Crect x="1" y="3" width="4" height="1" fill="%235aa832"/%3E%3Crect x="5" y="3" width="1" height="1" fill="%238ad457"/%3E%3Crect x="6" y="3" width="4" height="1" fill="%235aa832"/%3E%3Crect x="10" y="3" width="1" height="1" fill="%233a7420"/%3E%3Crect x="11" y="3" width="5" height="1" fill="%235aa832"/%3E%3Crect x="0" y="4" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="4" width="1" height="1" fill="%233a7420"/%3E%3Crect x="2" y="4" width="1" height="1" fill="%235aa832"/%3E%3Crect x="3" y="4" width="1" height="1" fill="%233a7420"/%3E%3Crect x="4" y="4" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="5" y="4" width="1" height="1" fill="%235aa832"/%3E%3Crect x="6" y="4" width="1" height="1" fill="%233a7420"/%3E%3Crect x="7" y="4" width="2" height="1" fill="%235aa832"/%3E%3Crect x="9" y="4" width="1" height="1" fill="%233a7420"/%3E%3Crect x="10" y="4" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="11" y="4" width="1" height="1" fill="%235aa832"/%3E%3Crect x="12" y="4" width="1" height="1" fill="%233a7420"/%3E%3Crect x="13" y="4" width="1" height="1" fill="%235aa832"/%3E%3Crect x="14" y="4" width="1" height="1" fill="%233a7420"/%3E%3Crect x="15" y="4" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="5" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="2" y="5" width="1" height="1" fill="%233a7420"/%3E%3Crect x="3" y="5" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="6" y="5" width="1" height="1" fill="%233a7420"/%3E%3Crect x="7" y="5" width="5" height="1" fill="%238a5a38"/%3E%3Crect x="12" y="5" width="1" height="1" fill="%233a7420"/%3E%3Crect x="13" y="5" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="6" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="4" y="6" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="5" y="6" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="8" y="6" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="9" y="6" width="5" height="1" fill="%238a5a38"/%3E%3Crect x="14" y="6" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="15" y="6" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="7" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="7" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="2" y="7" width="9" height="1" fill="%238a5a38"/%3E%3Crect x="11" y="7" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="12" y="7" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="8" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="6" y="8" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="7" y="8" width="7" height="1" fill="%238a5a38"/%3E%3Crect x="14" y="8" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="15" y="8" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="9" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="2" y="9" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="3" y="9" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="9" y="9" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="10" y="9" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="10" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="4" y="10" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="5" y="10" width="7" height="1" fill="%238a5a38"/%3E%3Crect x="12" y="10" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="13" y="10" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="11" width="8" height="1" fill="%238a5a38"/%3E%3Crect x="8" y="11" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="9" y="11" width="7" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="12" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="12" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="2" y="12" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="6" y="12" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="7" y="12" width="5" height="1" fill="%238a5a38"/%3E%3Crect x="12" y="12" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="13" y="12" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="13" width="16" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="14" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="3" y="14" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="4" y="14" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="8" y="14" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="9" y="14" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="13" y="14" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="14" y="14" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="15" width="16" height="1" fill="%238a5a38"/%3E%3C/svg%3E');
  --gx-tex-dirt: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="64" height="64" shape-rendering="crispEdges" role="img" aria-label="dirt"%3E%3Ctitle%3Edirt%3C/title%3E%3Crect x="0" y="0" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="4" y="0" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="5" y="0" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="11" y="0" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="12" y="0" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="1" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="1" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="2" y="1" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="8" y="1" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="9" y="1" width="7" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="2" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="6" y="2" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="7" y="2" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="13" y="2" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="14" y="2" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="3" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="2" y="3" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="3" y="3" width="13" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="4" width="9" height="1" fill="%238a5a38"/%3E%3Crect x="9" y="4" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="10" y="4" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="14" y="4" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="15" y="4" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="5" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="4" y="5" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="5" y="5" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="7" y="5" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="8" y="5" width="8" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="6" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="6" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="2" y="6" width="10" height="1" fill="%238a5a38"/%3E%3Crect x="12" y="6" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="13" y="6" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="7" width="10" height="1" fill="%238a5a38"/%3E%3Crect x="10" y="7" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="11" y="7" width="5" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="8" width="3" height="1" fill="%238a5a38"/%3E%3Crect x="3" y="8" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="4" y="8" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="8" y="8" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="9" y="8" width="7" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="9" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="6" y="9" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="7" y="9" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="13" y="9" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="14" y="9" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="10" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="10" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="2" y="10" width="14" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="11" width="9" height="1" fill="%238a5a38"/%3E%3Crect x="9" y="11" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="10" y="11" width="5" height="1" fill="%238a5a38"/%3E%3Crect x="15" y="11" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="0" y="12" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="2" y="12" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="3" y="12" width="2" height="1" fill="%238a5a38"/%3E%3Crect x="5" y="12" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="6" y="12" width="10" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="13" width="11" height="1" fill="%238a5a38"/%3E%3Crect x="11" y="13" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="12" y="13" width="4" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="14" width="7" height="1" fill="%238a5a38"/%3E%3Crect x="7" y="14" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="8" y="14" width="6" height="1" fill="%238a5a38"/%3E%3Crect x="14" y="14" width="1" height="1" fill="%23a87a52"/%3E%3Crect x="15" y="14" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="0" y="15" width="1" height="1" fill="%238a5a38"/%3E%3Crect x="1" y="15" width="1" height="1" fill="%235c3a22"/%3E%3Crect x="2" y="15" width="14" height="1" fill="%238a5a38"/%3E%3C/svg%3E');
  --gx-tex-stone: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="64" height="64" shape-rendering="crispEdges" role="img" aria-label="stone"%3E%3Ctitle%3Estone%3C/title%3E%3Crect x="0" y="0" width="6" height="1" fill="%238f9098"/%3E%3Crect x="6" y="0" width="1" height="1" fill="%2355565e"/%3E%3Crect x="7" y="0" width="9" height="1" fill="%238f9098"/%3E%3Crect x="0" y="1" width="2" height="1" fill="%238f9098"/%3E%3Crect x="2" y="1" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="3" y="1" width="9" height="1" fill="%238f9098"/%3E%3Crect x="12" y="1" width="1" height="1" fill="%2355565e"/%3E%3Crect x="13" y="1" width="3" height="1" fill="%238f9098"/%3E%3Crect x="0" y="2" width="9" height="1" fill="%238f9098"/%3E%3Crect x="9" y="2" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="10" y="2" width="6" height="1" fill="%238f9098"/%3E%3Crect x="0" y="3" width="1" height="1" fill="%238f9098"/%3E%3Crect x="1" y="3" width="1" height="1" fill="%2355565e"/%3E%3Crect x="2" y="3" width="12" height="1" fill="%238f9098"/%3E%3Crect x="14" y="3" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="15" y="3" width="1" height="1" fill="%238f9098"/%3E%3Crect x="0" y="4" width="5" height="1" fill="%238f9098"/%3E%3Crect x="5" y="4" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="6" y="4" width="3" height="1" fill="%238f9098"/%3E%3Crect x="9" y="4" width="1" height="1" fill="%2355565e"/%3E%3Crect x="10" y="4" width="6" height="1" fill="%238f9098"/%3E%3Crect x="0" y="5" width="16" height="1" fill="%238f9098"/%3E%3Crect x="0" y="6" width="3" height="1" fill="%238f9098"/%3E%3Crect x="3" y="6" width="1" height="1" fill="%2355565e"/%3E%3Crect x="4" y="6" width="7" height="1" fill="%238f9098"/%3E%3Crect x="11" y="6" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="12" y="6" width="4" height="1" fill="%238f9098"/%3E%3Crect x="0" y="7" width="1" height="1" fill="%238f9098"/%3E%3Crect x="1" y="7" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="2" y="7" width="11" height="1" fill="%238f9098"/%3E%3Crect x="13" y="7" width="1" height="1" fill="%2355565e"/%3E%3Crect x="14" y="7" width="2" height="1" fill="%238f9098"/%3E%3Crect x="0" y="8" width="7" height="1" fill="%238f9098"/%3E%3Crect x="7" y="8" width="1" height="1" fill="%2355565e"/%3E%3Crect x="8" y="8" width="8" height="1" fill="%238f9098"/%3E%3Crect x="0" y="9" width="16" height="1" fill="%238f9098"/%3E%3Crect x="0" y="10" width="2" height="1" fill="%238f9098"/%3E%3Crect x="2" y="10" width="1" height="1" fill="%2355565e"/%3E%3Crect x="3" y="10" width="6" height="1" fill="%238f9098"/%3E%3Crect x="9" y="10" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="10" y="10" width="6" height="1" fill="%238f9098"/%3E%3Crect x="0" y="11" width="14" height="1" fill="%238f9098"/%3E%3Crect x="14" y="11" width="1" height="1" fill="%2355565e"/%3E%3Crect x="15" y="11" width="1" height="1" fill="%238f9098"/%3E%3Crect x="0" y="12" width="4" height="1" fill="%238f9098"/%3E%3Crect x="4" y="12" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="5" y="12" width="11" height="1" fill="%238f9098"/%3E%3Crect x="0" y="13" width="1" height="1" fill="%238f9098"/%3E%3Crect x="1" y="13" width="1" height="1" fill="%2355565e"/%3E%3Crect x="2" y="13" width="7" height="1" fill="%238f9098"/%3E%3Crect x="9" y="13" width="1" height="1" fill="%2355565e"/%3E%3Crect x="10" y="13" width="6" height="1" fill="%238f9098"/%3E%3Crect x="0" y="14" width="12" height="1" fill="%238f9098"/%3E%3Crect x="12" y="14" width="1" height="1" fill="%23b8b9c0"/%3E%3Crect x="13" y="14" width="3" height="1" fill="%238f9098"/%3E%3Crect x="0" y="15" width="16" height="1" fill="%238f9098"/%3E%3C/svg%3E');
  --gx-notch-clip-sm: polygon(var(--notch-sm) 0, calc(100% - var(--notch-sm)) 0, calc(100% - var(--notch-sm)) var(--notch-sm), 100% var(--notch-sm), 100% calc(100% - var(--notch-sm)), calc(100% - var(--notch-sm)) calc(100% - var(--notch-sm)), calc(100% - var(--notch-sm)) 100%, var(--notch-sm) 100%, var(--notch-sm) calc(100% - var(--notch-sm)), 0 calc(100% - var(--notch-sm)), 0 var(--notch-sm), var(--notch-sm) var(--notch-sm));
  --gx-notch-clip-lg: polygon(var(--notch-lg) 0, calc(100% - var(--notch-lg)) 0, calc(100% - var(--notch-lg)) var(--notch-sm), calc(100% - var(--notch-sm)) var(--notch-sm), calc(100% - var(--notch-sm)) var(--notch-lg), 100% var(--notch-lg), 100% calc(100% - var(--notch-lg)), calc(100% - var(--notch-sm)) calc(100% - var(--notch-lg)), calc(100% - var(--notch-sm)) calc(100% - var(--notch-sm)), calc(100% - var(--notch-lg)) calc(100% - var(--notch-sm)), calc(100% - var(--notch-lg)) 100%, var(--notch-lg) 100%, var(--notch-lg) calc(100% - var(--notch-sm)), var(--notch-sm) calc(100% - var(--notch-sm)), var(--notch-sm) calc(100% - var(--notch-lg)), 0 calc(100% - var(--notch-lg)), 0 var(--notch-lg), var(--notch-sm) var(--notch-lg), var(--notch-sm) var(--notch-sm), var(--notch-lg) var(--notch-sm));
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
p { text-wrap: pretty; }

.gx-pixel { font-family: var(--font-pixel); font-synthesis: none; }
.gx-icon { display: inline-block; width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.gx-icon--16 { width: 16px; height: 16px; }
.gx-icon--24 { width: 24px; height: 24px; }
.gx-icon--48 { width: 48px; height: 48px; }
.gx-icon--64 { width: 64px; height: 64px; }
.gx-icon--96 { width: 96px; height: 96px; }
.gx-link { color: var(--diamond); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gx-link:hover { color: var(--ink); }
.gx-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Button ---------- */
.gx-btn {
  --gx-fill: var(--stone);
  --gx-fill-hover: var(--stone-light);
  --gx-ink: var(--on-stone);
  --gx-bevel: var(--bevel-raised);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font-family: var(--font-pixel); font-synthesis: none;
  font-size: 22px; line-height: 24px; font-weight: 400; letter-spacing: 0.02em;
  color: var(--gx-ink); background: var(--gx-fill);
  border: var(--texel-sm) solid var(--outline); border-radius: var(--radius-none);
  box-shadow: var(--gx-bevel), var(--shadow-drop);
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform 60ms steps(2), box-shadow 60ms steps(2);
}
.gx-btn:hover { background: var(--gx-fill-hover); }
.gx-btn:active { transform: translate(4px, 4px); box-shadow: var(--bevel-pressed); }
.gx-btn:focus-visible { outline: none; box-shadow: var(--gx-bevel), var(--focus-ring); }
.gx-btn[disabled], .gx-btn[aria-disabled="true"] {
  --gx-fill: var(--stone-shade); --gx-fill-hover: var(--stone-shade); --gx-ink: var(--ink-muted);
  --gx-bevel: inset 0 0 0 0 #00000000;
  cursor: not-allowed; transform: none; box-shadow: none;
}
.gx-btn--gold { --gx-fill: var(--gold); --gx-fill-hover: var(--gold-light); --gx-ink: var(--on-gold); }
.gx-btn--grass { --gx-fill: var(--grass); --gx-fill-hover: var(--grass-light); --gx-ink: var(--on-grass); }
.gx-btn--danger { --gx-fill: var(--redstone); --gx-fill-hover: var(--redstone); --gx-ink: var(--on-redstone); }
.gx-btn--ghost {
  --gx-fill: var(--surface); --gx-fill-hover: var(--surface-raised); --gx-ink: var(--ink);
  --gx-bevel: inset 0 0 0 2px var(--line);
}
.gx-btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: 20px; --gx-bevel: var(--bevel-raised-sm); }
.gx-btn--lg { min-height: 64px; padding: 0 var(--space-8); font-size: 26px; }
.gx-btn .gx-icon { width: 24px; height: 24px; }

/* ---------- Wordmark ---------- */
.gx-wordmark {
  display: inline-block; margin: 0;
  font-family: var(--font-display); font-synthesis: none;
  font-size: 96px; line-height: 88px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: var(--extrude-gold);
  padding-bottom: 12px;
}
.gx-wordmark--sm { font-size: 30px; line-height: 30px; text-shadow: 0 2px 0 var(--gold-shade), 0 4px 0 var(--outline); padding-bottom: 4px; letter-spacing: 0.06em; }
.gx-wordmark--md { font-size: 56px; line-height: 56px; text-shadow: 0 3px 0 var(--gold-shade), 0 6px 0 var(--gold-deep), 0 9px 0 var(--outline); padding-bottom: 9px; }
.gx-wordmark a, a.gx-wordmark, .gx-footer a.gx-wordmark { color: var(--gold); text-decoration: none; }
a.gx-wordmark:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gx-subtitle {
  display: block; font-family: var(--font-pixel); font-synthesis: none;
  font-size: 18px; line-height: 20px; font-weight: 400; letter-spacing: 0.4em;
  color: var(--ink); text-shadow: var(--shadow-text);
}

/* ---------- Badge & role tag ---------- */
.gx-badge {
  display: inline-block; padding: 2px var(--space-2);
  font-family: var(--font-pixel); font-synthesis: none;
  font-size: 16px; line-height: 20px; font-weight: 400; letter-spacing: 0.06em;
  background: var(--gold); color: var(--on-gold);
  clip-path: var(--gx-notch-clip-sm);
}
.gx-badge--grass { background: var(--grass); color: var(--on-grass); }
.gx-badge--stone { background: var(--stone); color: var(--on-stone); }
.gx-badge--danger { background: var(--redstone); color: var(--on-redstone); }

.gx-tag {
  --gx-tag: var(--chat-gray);
  display: inline-block; padding: 2px var(--space-2);
  font-family: var(--font-pixel); font-synthesis: none;
  font-size: 18px; line-height: 20px; font-weight: 400; letter-spacing: 0.06em;
  background: var(--nameplate); color: var(--gx-tag);
  box-shadow: inset 0 0 0 var(--texel-sm) var(--outline);
  clip-path: var(--gx-notch-clip-sm);
  white-space: nowrap;
}
.gx-tag--leader { --gx-tag: var(--chat-gold); }
.gx-tag--official { --gx-tag: var(--chat-aqua); }
.gx-tag--citizen { --gx-tag: var(--chat-green); }
.gx-tag--staff { --gx-tag: var(--chat-red); }
.gx-tag--ai { --gx-tag: var(--chat-purple); }
.gx-tag--guest { --gx-tag: var(--chat-gray); }
.gx-tag--bare { background: none; box-shadow: none; padding: 0; clip-path: none; }

/* ---------- Status (online counter) ---------- */
.gx-status {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-pixel); font-synthesis: none;
  font-size: 20px; line-height: 24px; font-weight: 400; color: var(--ink);
}
.gx-status b { color: var(--online); font-weight: 400; }
.gx-status__dot {
  width: 12px; height: 12px; background: var(--online);
  box-shadow: 0 0 0 2px var(--outline);
  animation: gx-blink 1.6s steps(1) infinite;
}
.gx-status--offline b, .gx-status--offline { color: var(--redstone); }
.gx-status--offline .gx-status__dot { background: var(--redstone); animation: none; }
@keyframes gx-blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.35; } }

/* ---------- Server address (IP copy box) ---------- */
.gx-ip {
  display: inline-flex; align-items: stretch;
  background: var(--surface);
  border: var(--texel) solid var(--outline);
  box-shadow: var(--shadow-drop-lg);
}
.gx-ip__body { display: flex; flex-direction: column; justify-content: center; padding: var(--space-2) var(--space-6); gap: 2px; box-shadow: inset 4px 4px 0 0 #00000059; }
.gx-ip__label { font-family: var(--font-pixel); font-synthesis: none; font-size: 16px; line-height: 20px; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-muted); }
.gx-ip__addr { font-family: var(--font-pixel); font-synthesis: none; font-size: 36px; line-height: 40px; font-weight: 400; color: var(--ink); letter-spacing: 0.02em; }
.gx-ip__copy.gx-btn { min-height: 0; border-width: 0 0 0 var(--texel); box-shadow: var(--bevel-raised); padding: 0 var(--space-6); }
.gx-ip__copy.gx-btn:active { transform: none; box-shadow: var(--bevel-pressed); }
.gx-ip__copy.gx-btn:focus-visible { box-shadow: var(--bevel-raised), inset 0 0 0 6px var(--outline), inset 0 0 0 10px var(--focus); }
.gx-ip[data-copied] .gx-ip__copy.gx-btn { --gx-fill: var(--grass); --gx-fill-hover: var(--grass); --gx-ink: var(--on-grass); }
.gx-ip__meta { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-3); justify-content: center; }

/* ---------- Navbar ---------- */
.gx-nav {
  display: flex; align-items: center; gap: var(--space-8);
  min-height: 72px; padding: 0 var(--space-8);
  background: var(--surface);
  border-bottom: var(--texel) solid var(--outline);
  box-shadow: inset 0 -4px 0 0 var(--surface-raised);
}
.gx-nav__links { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; flex: 1; }
.gx-nav__link {
  display: block; padding: var(--space-2) var(--space-3);
  font-family: var(--font-pixel); font-synthesis: none; font-size: 22px; line-height: 24px; font-weight: 400;
  color: var(--ink); text-decoration: none;
  box-shadow: inset 0 -4px 0 0 #00000000;
}
.gx-nav__link:hover { color: var(--gold); }
.gx-nav__link[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -4px 0 0 var(--gold); }
.gx-nav__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gx-nav__end { display: flex; align-items: center; gap: var(--space-6); }

/* ---------- Language toggle ---------- */
.gx-lang { display: inline-flex; align-items: center; gap: var(--space-2); }
.gx-lang__group { display: inline-flex; background: var(--ground); border: var(--texel-sm) solid var(--outline); }
.gx-lang__opt {
  min-height: 36px; padding: 0 var(--space-3); margin: 0; border: 0; border-radius: var(--radius-none);
  font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px; font-weight: 400;
  background: var(--ground); color: var(--ink-muted); cursor: pointer;
}
.gx-lang__opt[lang="ko"] { font-size: 17px; }
.gx-lang__opt + .gx-lang__opt { box-shadow: inset 2px 0 0 0 var(--outline); }
.gx-lang__opt:hover { color: var(--ink); background: var(--surface-raised); }
.gx-lang__opt[aria-pressed="true"] { background: var(--stone); color: var(--on-stone); box-shadow: var(--bevel-raised-sm); cursor: default; }
.gx-lang__opt:focus-visible { outline: none; position: relative; z-index: 1; box-shadow: var(--focus-ring); }

/* ---------- Hero ---------- */
.gx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sky); color: var(--ink);
  padding: var(--space-24) var(--space-8) 208px;
  text-align: center;
}
.gx-hero::before { /* stars: single texels on a 4px grid */
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 4px; z-index: -1;
  box-shadow:
    64px 48px var(--ink), 212px 120px var(--ink), 340px 36px var(--ink), 520px 92px var(--ink),
    700px 28px var(--ink), 880px 140px var(--ink), 1040px 56px var(--ink), 1180px 112px var(--ink),
    128px 228px var(--ink), 436px 196px var(--ink), 968px 244px var(--ink), 1236px 260px var(--ink),
    1100px 312px var(--ink), 84px 360px var(--ink), 1300px 40px var(--ink), 600px 300px var(--ink);
  opacity: 0.8;
}
.gx-hero__moon { position: absolute; right: 12%; top: 64px; width: 48px; height: 48px; background: var(--ink); box-shadow: inset -12px -12px 0 0 var(--ink-muted); z-index: -1; }
.gx-hero__ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 128px; z-index: -1;
  background: var(--gx-tex-grass) repeat-x 0 0 / 64px 64px, var(--gx-tex-dirt) repeat 0 64px / 64px 64px, var(--dirt);
  image-rendering: pixelated;
  border-top: var(--texel) solid var(--outline);
}
.gx-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); max-width: 880px; margin: 0 auto; }
.gx-hero__lead { margin: 0; max-width: 44ch; text-wrap: balance; font-size: 20px; line-height: 32px; color: var(--ink); text-shadow: var(--shadow-text); }
.gx-hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }

/* ---------- Section heading ---------- */
.gx-hero + .gx-section--lift { padding-top: 0; }
.gx-section--lift .gx-section__inner { position: relative; z-index: 1; margin-top: -72px; }
.gx-section { padding: var(--space-24) var(--space-8); }
.gx-section--surface { background: var(--surface); border-top: var(--texel) solid var(--outline); border-bottom: var(--texel) solid var(--outline); }
.gx-section__inner { max-width: 1152px; margin: 0 auto; }
.gx-kicker { display: block; font-family: var(--font-pixel); font-synthesis: none; font-size: 18px; line-height: 20px; font-weight: 400; letter-spacing: 0.3em; color: var(--gold); }
.gx-heading { margin: var(--space-2) 0 var(--space-3); font-family: var(--font-pixel); font-synthesis: none; font-size: 48px; line-height: 56px; font-weight: 400; color: var(--ink); text-shadow: 4px 4px 0 var(--outline); text-wrap: balance; }
.gx-intro { margin: 0 0 var(--space-8); max-width: 56ch; text-wrap: balance; font-size: 20px; line-height: 32px; color: var(--ink-muted); }

/* ---------- Stat bar ---------- */
.gx-stats {
  display: grid; grid-template-columns: repeat(var(--gx-cols, 4), 1fr);
  background: var(--surface); border: var(--texel) solid var(--outline);
  box-shadow: var(--shadow-drop);
}
.gx-stat { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-6); }
.gx-stat + .gx-stat { box-shadow: inset 4px 0 0 0 var(--outline); }
.gx-stat__num { display: block; font-family: var(--font-pixel); font-synthesis: none; font-size: 52px; line-height: 48px; font-weight: 400; color: var(--gold); font-variant-numeric: tabular-nums; }
.gx-stat__label { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* ---------- Hotbar (tabs) ---------- */
.gx-hotbar-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.gx-hotbar__name { font-family: var(--font-pixel); font-synthesis: none; font-size: 22px; line-height: 24px; font-weight: 400; color: var(--ink); text-shadow: var(--shadow-text); min-height: 24px; }
.gx-hotbar { display: inline-flex; padding: var(--space-1); gap: 0; background: var(--stone-shade); border: var(--texel) solid var(--outline); }
.gx-hotbar__slot {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; padding: 0; margin: 0;
  background: var(--ground); border: 0; cursor: pointer;
  box-shadow: inset 0 0 0 4px var(--stone-shade), inset 0 0 0 6px var(--outline);
}
.gx-hotbar__slot:hover { background: var(--surface-raised); }
.gx-hotbar__slot[aria-selected="true"] { z-index: 1; background: var(--surface-raised); box-shadow: inset 0 0 0 4px var(--ink), 0 0 0 4px var(--outline); }
.gx-hotbar__slot:focus-visible { outline: none; z-index: 2; box-shadow: inset 0 0 0 4px var(--ink), var(--focus-ring); }
.gx-hotbar__slot .gx-icon { width: 40px; height: 40px; }
.gx-hotbar__key { position: absolute; right: 7px; bottom: 5px; font-family: var(--font-pixel); font-size: 16px; line-height: 14px; color: var(--ink-muted); }

/* ---------- Feature card ---------- */
.gx-card {
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border: var(--texel) solid var(--outline);
  box-shadow: var(--shadow-drop);
  text-decoration: none;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}
a.gx-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-drop-lg); }
a.gx-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gx-card__art {
  position: relative; display: grid; place-items: center; height: 152px;
  background: var(--gx-tex-stone) repeat 0 0 / 64px 64px, var(--stone);
  image-rendering: pixelated;
  border-bottom: var(--texel) solid var(--outline);
}
.gx-card__art::after { content: ""; position: absolute; inset: 0; background: #0000008c; }
.gx-card__art > * { position: relative; z-index: 1; }
.gx-card__art--grass { background: var(--gx-tex-grass) repeat-x 0 0 / 64px 64px, var(--gx-tex-dirt) repeat 0 64px / 64px 64px, var(--dirt); }
.gx-card__art--dirt { background: var(--gx-tex-dirt) repeat 0 0 / 64px 64px, var(--dirt); }
.gx-card__art--sky { background: var(--sky); }
.gx-card__art--sky::after { background: none; }
.gx-card__art .gx-icon { width: 96px; height: 96px; filter: drop-shadow(4px 4px 0 var(--outline)); }
.gx-card__badge { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2; }
.gx-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); flex: 1; }
.gx-card__title { margin: 0; font-family: var(--font-pixel); font-synthesis: none; font-size: 30px; line-height: 36px; font-weight: 400; color: var(--ink); }
.gx-card__text { margin: 0; color: var(--ink-muted); flex: 1; }
.gx-card__more { font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px; font-weight: 400; color: var(--diamond); margin-top: var(--space-2); }
a.gx-card:hover .gx-card__more { color: var(--ink); }

/* ---------- GUI panel (inventory window) ---------- */
.gx-gui {
  display: inline-flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-6);
  background: var(--gui); color: var(--gui-ink);
  box-shadow: inset 0 0 0 var(--texel) var(--outline), inset 8px 8px 0 0 var(--gui-light), inset -8px -8px 0 0 var(--gui-shade);
  clip-path: var(--gx-notch-clip-lg);
}
.gx-gui__title { margin: 0; font-family: var(--font-pixel); font-synthesis: none; font-size: 30px; line-height: 36px; font-weight: 400; color: var(--gui-ink); }
.gx-gui__text { margin: 0; color: var(--gui-ink); font-size: 16px; line-height: 26px; }
.gx-gui__row { display: flex; gap: 0; flex-wrap: wrap; }
.gx-slot {
  position: relative; display: grid; place-items: center;
  width: 56px; height: 56px;
  background: var(--gui-slot);
  box-shadow: var(--bevel-sunken);
}
.gx-slot .gx-icon { width: 40px; height: 40px; }
.gx-slot__count { position: absolute; right: 6px; bottom: 4px; font-family: var(--font-pixel); font-size: 20px; line-height: 16px; font-weight: 400; color: var(--on-stone); }
.gx-gui__price { font-family: var(--font-pixel); font-synthesis: none; font-size: 30px; line-height: 36px; font-weight: 400; color: var(--gui-ink); }

/* ---------- Item tooltip ---------- */
.gx-tooltip {
  display: inline-flex; flex-direction: column; gap: 2px;
  min-width: 220px; max-width: 320px;
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--tooltip); color: var(--ink);
  box-shadow: inset 0 0 0 4px var(--tooltip), inset 0 0 0 6px var(--tooltip-edge);
  clip-path: var(--gx-notch-clip-sm);
}
.gx-tooltip__title { font-family: var(--font-pixel); font-synthesis: none; font-size: 22px; line-height: 28px; font-weight: 400; color: var(--gold); margin-bottom: var(--space-1); }
.gx-tooltip__lore { font-size: 14px; line-height: 22px; color: var(--tooltip-muted); }
.gx-tooltip__stat { font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px; font-weight: 400; color: var(--chat-green); }
.gx-tooltip__stat--warn { color: var(--redstone); }

/* ---------- Chat feed ---------- */
.gx-chat {
  margin: 0; padding: var(--space-3) 0; list-style: none;
  background: var(--nameplate);
  border: var(--texel) solid var(--outline);
}
.gx-chat__line { display: flex; gap: var(--space-2); align-items: baseline; padding: var(--space-1) var(--space-4); font-size: 15px; line-height: 24px; color: var(--ink); }
.gx-chat__line + .gx-chat__line { border-top: 2px solid var(--surface); }
.gx-chat__time { flex: none; font-family: var(--font-mono); font-size: 13px; color: var(--chat-gray); font-variant-numeric: tabular-nums; }
.gx-chat__name { font-weight: 700; }
.gx-chat__name--leader { color: var(--chat-gold); }
.gx-chat__name--official { color: var(--chat-aqua); }
.gx-chat__name--citizen { color: var(--chat-green); }
.gx-chat__name--ai { color: var(--chat-purple); }
.gx-chat__name--staff { color: var(--chat-red); }

/* ---------- XP progress ---------- */
.gx-xp { display: flex; flex-direction: column; gap: var(--space-2); }
.gx-xp__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.gx-xp__label { font-family: var(--font-pixel); font-synthesis: none; font-size: 22px; line-height: 24px; font-weight: 400; color: var(--ink); }
.gx-xp__value { font-family: var(--font-pixel); font-synthesis: none; font-size: 22px; line-height: 24px; font-weight: 400; color: var(--chat-green); text-shadow: var(--shadow-text); font-variant-numeric: tabular-nums; }
.gx-xp__bar {
  position: relative; height: 20px;
  background: var(--ground);
  border: var(--texel-sm) solid var(--outline);
}
.gx-xp__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--gx-xp, 0%);
  background: var(--grass);
  box-shadow: inset 0 4px 0 0 var(--grass-light), inset 0 -4px 0 0 var(--grass-shade);
}
.gx-xp__bar::after { /* segment ticks every 10% */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, #00000000 0, #00000000 calc(10% - 2px), #00000099 calc(10% - 2px), #00000099 10%);
}
.gx-xp--gold .gx-xp__fill { background: var(--gold); box-shadow: inset 0 4px 0 0 var(--gold-light), inset 0 -4px 0 0 var(--gold-shade); }
.gx-xp--gold .gx-xp__value { color: var(--gold); }
.gx-xp__note { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 0; }

/* ---------- News card ---------- */
.gx-news {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface); color: var(--ink);
  border: var(--texel) solid var(--outline); box-shadow: var(--shadow-drop);
  text-decoration: none;
}
a.gx-news:hover { background: var(--surface-raised); }
a.gx-news:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gx-news__meta { display: flex; gap: var(--space-3); align-items: center; }
.gx-news__date { font-family: var(--font-mono); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.gx-news__title { margin: 0; font-family: var(--font-pixel); font-synthesis: none; font-size: 26px; line-height: 32px; font-weight: 400; color: var(--ink); }
.gx-news__text { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.gx-news__more { font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px; font-weight: 400; color: var(--diamond); }

/* ---------- Footer ---------- */
.gx-footer { position: relative; background: var(--ground); color: var(--ink-muted); padding: 176px var(--space-8) var(--space-12); }
.gx-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 128px;
  background: var(--gx-tex-grass) repeat-x 0 0 / 64px 64px, var(--gx-tex-dirt) repeat 0 64px / 64px 64px, var(--dirt);
  image-rendering: pixelated;
  border-top: var(--texel) solid var(--outline); border-bottom: var(--texel) solid var(--outline);
}
.gx-footer__inner { max-width: 1152px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
.gx-footer__title { margin: 0 0 var(--space-3); font-family: var(--font-pixel); font-synthesis: none; font-size: 20px; line-height: 24px; font-weight: 400; letter-spacing: 0.08em; color: var(--ink); }
.gx-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.gx-footer a:not(.gx-wordmark) { color: var(--ink-muted); text-decoration: none; }
.gx-footer a:not(.gx-wordmark):hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.gx-footer a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.gx-footer__legal { max-width: 1152px; margin: var(--space-12) auto 0; padding-top: var(--space-6); border-top: 2px solid var(--line); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 0.02em; }

.gx-footer__legal span { display: block; }
.gx-footer__legal span:empty { display: none; }

/* ---------- Layout helpers ---------- */
.gx-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(var(--gx-cols, 3), minmax(0, 1fr)); }
.gx-stack { display: flex; flex-direction: column; gap: var(--space-4); }

@media (max-width: 720px) {
  .gx-grid, .gx-stats { grid-template-columns: 1fr; }
  .gx-stat + .gx-stat { box-shadow: inset 0 4px 0 0 var(--outline); }
  .gx-nav { flex-wrap: wrap; padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .gx-nav__links { order: 3; flex-basis: 100%; overflow-x: auto; }
  .gx-hero { padding: var(--space-16) var(--space-4) 144px; }
  .gx-wordmark { font-size: 56px; line-height: 56px; }
  .gx-heading { font-size: 32px; line-height: 40px; }
  .gx-ip { flex-direction: column; }
  .gx-ip__copy.gx-btn { border-width: var(--texel) 0 0 0; min-height: 48px; }
  .gx-footer__inner { grid-template-columns: 1fr; }
  .gx-section { padding: var(--space-16) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  .gx-btn, .gx-card { transition: none; }
  .gx-status__dot { animation: none; }
  a.gx-card:hover { transform: none; }
}
