@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root {
    font-family: 'Manrope', sans-serif;
    color: #f7f7f2;
    background: #0b0b0d;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 6% 18%, rgb(184 255 90 / 16%), transparent 26rem),
        radial-gradient(circle at 94% 8%, rgb(155 123 255 / 18%), transparent 30rem),
        linear-gradient(135deg, #101014 0%, #0b0b0d 48%, #15121d 100%);
}

a {
    color: inherit;
}

.site-shell {
    max-width: 1600px;
    margin-inline: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 82% 10%, rgb(126 87 255 / 20%), transparent 28rem),
        #0b0b0d;
}

.site-header,
.site-content,
.site-footer {
    width: min(1120px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #26262b;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 12px rgb(184 255 90 / 20%));
}

.logo span,
.eyebrow,
.card-number {
    color: #9b7bff;
}

.site-nav {
    display: flex;
    gap: 32px;
}

.site-nav a {
    padding: 32px 0 29px;
    color: #9a9aa4;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    border-bottom-color: #9b7bff;
}

.site-content {
    flex: 1;
}

.hero {
    max-width: 800px;
    padding: 120px 0 100px;
}

.eyebrow {
    margin: 0 0 20px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 8vw, 6.75rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hero-copy,
.page-heading > p:last-child {
    max-width: 620px;
    color: #a9a9b2;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-copy {
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;
    padding: 15px 22px;
    color: #0b0b0d;
    background: #b8ff5a;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.button:hover {
    background: #cbff87;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 96px;
}

.card,
.about-panel,
.command-builder {
    border: 1px solid #28282e;
    background: rgb(22 22 26 / 75%);
}

.card {
    min-height: 230px;
    padding: 30px;
}

.card-number {
    display: block;
    margin-bottom: 48px;
    font-size: 0.72rem;
    font-weight: 800;
}

.card h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card p {
    margin-bottom: 0;
    color: #8f8f98;
    font-size: 0.9rem;
    line-height: 1.65;
}

.page-heading {
    padding: 100px 0 64px;
}

.page-heading h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
}

.command-heading {
    max-width: 760px;
}

.command-builder {
    margin-bottom: 96px;
    padding: 36px;
}

.building-builder {
    margin-bottom: 96px;
}

.building-collection {
    margin-bottom: 32px;
    padding: 22px 18px;
    border: 1px solid #28282e;
    border-radius: 8px;
    background: rgb(22 22 26 / 78%);
}

.building-collection .builder-intro {
    flex-wrap: wrap;
}

.building-collection-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
}

.building-collection .field {
    min-width: 0;
}

.builder-intro,
.command-output-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.builder-intro {
    margin-bottom: 22px;
}

.builder-intro h2,
.builder-section-heading h2,
.command-output-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: -0.035em;
}

.builder-intro p,
.command-output-heading p {
    margin: 7px 0 0;
    color: #8f8f98;
    font-size: 0.88rem;
    line-height: 1.6;
}

.builder-step,
.preview-label {
    color: #9b7bff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.builder-status {
    padding: 8px 11px;
    color: #b8ff5a;
    background: rgb(184 255 90 / 9%);
    border: 1px solid rgb(184 255 90 / 22%);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.preset-card {
    min-width: 0;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    color: #f7f7f2;
    background: rgb(22 22 26 / 75%);
    border: 1px solid #28282e;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.preset-card:hover {
    border-color: #55555f;
    transform: translateY(-2px);
}

.preset-card.active {
    background: linear-gradient(145deg, rgb(155 123 255 / 16%), rgb(22 22 26 / 90%));
    border-color: #9b7bff;
    box-shadow: inset 0 0 0 1px rgb(155 123 255 / 18%);
}

.preset-card:focus-visible {
    outline: 3px solid rgb(184 255 90 / 35%);
    outline-offset: 2px;
}

.preset-icon {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #b8ff5a;
    background: #0b0b0d;
    border-radius: 6px;
    font-size: 1.15rem;
}

.preset-card > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preset-card strong {
    font-size: 0.92rem;
}

.preset-card small,
.preset-size {
    color: #85858e;
    font-size: 0.72rem;
}

.preset-size {
    margin-top: auto;
    color: #b8ff5a;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.builder-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    border: 1px solid #28282e;
    border-radius: 8px;
    background: rgb(22 22 26 / 78%);
    overflow: hidden;
}

.builder-settings,
.building-preview {
    padding: 32px;
}

.builder-settings {
    border-right: 1px solid #28282e;
}

.builder-section-heading {
    margin-bottom: 25px;
}

.dimension-grid,
.material-grid {
    display: grid;
    gap: 14px;
}

.dimension-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 25px;
}

.field-help {
    margin: 8px 0 0;
    color: #6f6f78;
    font-size: 0.72rem;
}

.builder-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.builder-options legend {
    width: 100%;
    margin-bottom: 10px;
    color: #8f8f98;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #101014;
    border: 1px solid #303036;
    border-radius: 6px;
    cursor: pointer;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-control {
    width: 34px;
    height: 20px;
    flex: 0 0 auto;
    position: relative;
    background: #3a3a42;
    border-radius: 999px;
    transition: background 160ms ease;
}

.toggle-control::after {
    content: '';
    width: 14px;
    height: 14px;
    position: absolute;
    top: 3px;
    left: 3px;
    background: #a7a7af;
    border-radius: 50%;
    transition: transform 160ms ease, background 160ms ease;
}

.toggle-option input:checked + .toggle-control {
    background: #9b7bff;
}

.toggle-option input:checked + .toggle-control::after {
    background: #ffffff;
    transform: translateX(14px);
}

.toggle-option input:focus-visible + .toggle-control {
    outline: 3px solid rgb(184 255 90 / 35%);
    outline-offset: 2px;
}

.toggle-option > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toggle-option strong {
    font-size: 0.78rem;
}

.toggle-option small {
    color: #777780;
    font-size: 0.67rem;
    line-height: 1.35;
}

.floor-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    background: #101014;
    border: 1px solid #303036;
    border-radius: 6px;
}

.floor-option > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.floor-option strong {
    font-size: 0.78rem;
}

.floor-option small {
    color: #777780;
    font-size: 0.67rem;
    line-height: 1.35;
}

.floor-controls {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 30px 52px 30px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #3b3b43;
    border-radius: 4px;
}

.floor-controls button {
    height: 30px;
    padding: 0;
    color: #f7f7f2;
    background: #202026;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 800;
}

.floor-controls button:hover:not(:disabled),
.floor-controls button:focus-visible {
    color: #0b0b0d;
    background: #b8ff5a;
    outline: none;
}

.floor-controls button:disabled {
    color: #55555e;
    cursor: not-allowed;
}

.floor-controls input {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 3px;
    color: #b8ff5a;
    background: #101014;
    border: 0;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.floor-controls input:focus-visible {
    outline: 2px solid #b8ff5a;
    outline-offset: -2px;
}

.building-preview {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #111116;
}

.preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.preview-heading > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.preview-heading strong {
    font-size: 0.95rem;
}

.preview-controls {
    display: flex;
    padding: 3px;
    background: #0b0b0d;
    border: 1px solid #303036;
    border-radius: 6px;
}

.preview-controls button {
    width: 32px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #d8d8dd;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}

.preview-controls button:hover,
.preview-controls button:focus-visible {
    color: #0b0b0d;
    background: #b8ff5a;
    outline: none;
}

.block-scene {
    min-height: 330px;
    position: relative;
    display: grid;
    place-items: center;
    margin: 18px -20px 0;
    overflow: hidden;
    perspective: 900px;
    background: linear-gradient(#171722 0 68%, #101014 68%);
    border-block: 1px solid #28282e;
}

.scene-sky {
    width: 260px;
    height: 190px;
    position: absolute;
    top: 4px;
    left: 50%;
    background: radial-gradient(circle, rgb(155 123 255 / 20%), transparent 68%);
    transform: translateX(-50%);
}

.scene-ground {
    width: 420px;
    height: 260px;
    position: absolute;
    top: 220px;
    background-color: #17171c;
    background-image: linear-gradient(rgb(184 255 90 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(184 255 90 / 8%) 1px, transparent 1px);
    background-size: 24px 24px;
    transform: rotateX(72deg);
    transform-origin: top;
}

.scene-ground::after {
    content: '';
    width: 230px;
    height: 105px;
    position: absolute;
    top: 18px;
    left: 50%;
    background: radial-gradient(ellipse, rgb(0 0 0 / 58%), transparent 68%);
    transform: translateX(-50%);
}

.block-structure {
    width: var(--building-width);
    height: var(--building-height);
    position: relative;
    z-index: 1;
    margin-top: -5px;
    transform: rotateX(-14deg) rotateY(var(--building-rotation));
    transform-style: preserve-3d;
    transition: width 220ms ease, height 220ms ease, transform 300ms ease;
}

.structure-face {
    position: absolute;
    backface-visibility: visible;
    border: 1px solid rgb(255 255 255 / 16%);
    box-shadow: inset 0 0 28px rgb(0 0 0 / 12%);
}

.structure-front,
.structure-back {
    width: 100%;
    height: 100%;
}

.structure-front {
    transform: translateZ(calc(var(--building-depth) / 2));
}

.structure-back {
    transform: rotateY(180deg) translateZ(calc(var(--building-depth) / 2));
}

.structure-left,
.structure-right {
    width: var(--building-depth);
    height: 100%;
    left: 50%;
    margin-left: calc(var(--building-depth) / -2);
}

.structure-left {
    filter: brightness(0.72);
    transform: rotateY(-90deg) translateZ(calc(var(--building-width) / 2));
}

.structure-right {
    filter: brightness(0.82);
    transform: rotateY(90deg) translateZ(calc(var(--building-width) / 2));
}

.structure-roof,
.structure-floor {
    width: 100%;
    height: var(--building-depth);
    top: 50%;
    margin-top: calc(var(--building-depth) / -2);
}

.structure-roof {
    filter: brightness(1.12);
    transform: rotateX(90deg) translateZ(calc(var(--building-height) / 2));
}

.structure-floor {
    filter: brightness(0.65);
    transform: rotateX(-90deg) translateZ(calc(var(--building-height) / 2));
}

.material-oak {
    background-color: #9b6a3a;
    background-image: repeating-linear-gradient(0deg, transparent 0 20px, rgb(40 20 8 / 25%) 20px 22px), repeating-linear-gradient(90deg, transparent 0 38px, rgb(255 225 170 / 10%) 38px 40px);
}

.material-spruce {
    background-color: #5f4025;
    background-image: repeating-linear-gradient(0deg, transparent 0 20px, rgb(20 10 4 / 30%) 20px 22px), repeating-linear-gradient(90deg, transparent 0 38px, rgb(220 180 120 / 9%) 38px 40px);
}

.material-bricks {
    background-color: #934d3f;
    background-image: linear-gradient(90deg, rgb(45 26 24 / 30%) 2px, transparent 2px), linear-gradient(rgb(45 26 24 / 36%) 2px, transparent 2px);
    background-size: 36px 20px;
}

.material-stone-bricks {
    background-color: #707078;
    background-image: linear-gradient(90deg, rgb(25 25 30 / 30%) 2px, transparent 2px), linear-gradient(rgb(25 25 30 / 34%) 2px, transparent 2px);
    background-size: 38px 22px;
}

.material-quartz {
    background-color: #d8d3c8;
    background-image: linear-gradient(90deg, rgb(100 95 90 / 18%) 2px, transparent 2px), linear-gradient(rgb(100 95 90 / 18%) 2px, transparent 2px);
    background-size: 42px 24px;
}

.material-andesite {
    background: repeating-linear-gradient(135deg, #77777d 0 12px, #85858b 12px 24px);
}

.material-smooth-stone {
    background: #929298 linear-gradient(rgb(255 255 255 / 8%), rgb(0 0 0 / 8%));
}

.material-deepslate {
    background-color: #34343d;
    background-image: linear-gradient(90deg, rgb(8 8 12 / 38%) 2px, transparent 2px), linear-gradient(rgb(8 8 12 / 42%) 2px, transparent 2px);
    background-size: 28px 18px;
}

.structure-door,
.structure-window {
    position: absolute;
    border: 3px solid #27272d;
}

.structure-door {
    width: clamp(26px, 20%, 42px);
    height: 48%;
    bottom: -1px;
    left: 50%;
    background: repeating-linear-gradient(90deg, #3f2918 0 10px, #53361f 10px 12px);
    transform: translateX(-50%);
}

.structure-door i {
    width: 5px;
    height: 5px;
    position: absolute;
    top: 48%;
    right: 5px;
    background: #d9b34a;
    border-radius: 50%;
}

.structure-window {
    width: 21%;
    height: 23%;
    top: 28%;
    background: linear-gradient(135deg, #61bed7 0 45%, #d5f7ff 47% 54%, #4d9fb8 56%);
    box-shadow: inset 0 0 0 2px rgb(220 250 255 / 20%);
}

.window-left {
    left: 10%;
}

.window-right {
    right: 10%;
}

.side-window {
    left: 50%;
    transform: translateX(-50%);
}

.dimension-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    color: #b8ff5a;
    background: rgb(11 11 13 / 84%);
    border: 1px solid rgb(184 255 90 / 22%);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
}

.dimension-width {
    right: 18px;
    bottom: 14px;
}

.dimension-height {
    top: 14px;
    left: 18px;
}

.preview-legend {
    display: grid;
    gap: 8px;
    padding: 16px 0;
}

.preview-legend span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8f8f98;
    font-size: 0.7rem;
}

.preview-legend i {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 3px;
}

.preview-summary {
    margin: auto 0 0;
    border-top: 1px solid #303036;
}

.preview-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #28282e;
    font-size: 0.76rem;
}

.preview-summary dt {
    color: #777780;
}

.preview-summary dd {
    margin: 0;
    color: #d8d8dd;
    text-align: right;
}

.command-output {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid #28282e;
    border-radius: 8px;
    background: rgb(22 22 26 / 78%);
}

.command-output-heading {
    margin-bottom: 24px;
}

.command-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: command;
    border: 1px solid #303036;
    border-radius: 6px;
    overflow: hidden;
}

.command-list li {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    background: #0b0b0d;
    border-bottom: 1px solid #242429;
}

.command-list li:last-child {
    border-bottom: 0;
}

.command-list li > span {
    align-self: stretch;
    display: grid;
    place-items: center;
    color: #6e6e77;
    background: #111115;
    border-right: 1px solid #242429;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
}

.command-list-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.command-copy-button {
    margin: 12px 16px 0;
    padding: 7px 11px;
    color: #d8d8dd;
    background: #242429;
    border: 1px solid #38383f;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
}

.command-copy-button:hover {
    color: #0b0b0d;
    background: #b8ff5a;
    border-color: #b8ff5a;
}

.command-list code {
    align-self: stretch;
    display: block;
    min-width: 0;
    padding: 14px 16px;
    overflow-x: auto;
    color: #b8ff5a;
    font-size: 0.78rem;
    white-space: nowrap;
}

.command-tip {
    margin: 14px 0 0;
    color: #777780;
    font-size: 0.72rem;
    line-height: 1.5;
}

.command-tip strong {
    color: #9b7bff;
}

.quick-commands {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid #28282e;
    border-radius: 8px;
    background: rgb(22 22 26 / 78%);
}

.effect-builder {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    margin-bottom: 96px;
    overflow: hidden;
    background: rgb(22 22 26 / 78%);
    border: 1px solid #28282e;
    border-radius: 8px;
}

.effect-settings,
.effect-preview {
    min-width: 0;
    padding: 32px;
}

.effect-settings {
    border-right: 1px solid #28282e;
}

.effect-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.effect-options {
    grid-template-columns: minmax(0, 1fr);
}

.effect-options .toggle-option {
    max-width: 360px;
}

.effect-preview {
    display: flex;
    flex-direction: column;
    background: #111116;
}

.effect-preview-heading {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.effect-preview-heading strong {
    font-size: 1.15rem;
}

.effect-stage {
    min-height: 260px;
    position: relative;
    display: grid;
    place-items: center;
    margin: 24px -32px;
    overflow: hidden;
    background: radial-gradient(circle, color-mix(in srgb, var(--effect-color) 22%, transparent), transparent 58%), #0b0b0d;
    border-block: 1px solid #28282e;
}

.effect-stage::after {
    content: '';
    width: 150px;
    height: 24px;
    position: absolute;
    bottom: 34px;
    background: radial-gradient(ellipse, rgb(0 0 0 / 70%), transparent 70%);
}

.effect-icon {
    width: 112px;
    height: 112px;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #0b0b0d;
    background: var(--effect-color);
    border: 8px solid rgb(255 255 255 / 18%);
    border-radius: 24px;
    box-shadow: 0 0 50px color-mix(in srgb, var(--effect-color) 42%, transparent);
    font-size: 3.3rem;
    font-weight: 800;
    transform: rotate(-5deg);
}

.effect-particle {
    width: 10px;
    height: 10px;
    position: absolute;
    background: var(--effect-color);
    box-shadow: 0 0 12px var(--effect-color);
    animation: effect-float 2.8s ease-in-out infinite;
}

.particle-one { top: 22%; left: 24%; }
.particle-two { top: 34%; right: 22%; animation-delay: -0.8s; }
.particle-three { bottom: 22%; left: 31%; animation-delay: -1.5s; }
.particle-four { right: 30%; bottom: 18%; animation-delay: -2.1s; }

@keyframes effect-float {
    0%, 100% { transform: translateY(7px) rotate(0); opacity: 0.35; }
    50% { transform: translateY(-13px) rotate(45deg); opacity: 1; }
}

.effect-summary {
    margin: 0;
}

.effect-summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #28282e;
    font-size: 0.76rem;
}

.effect-summary dt {
    color: #777780;
}

.effect-summary dd {
    margin: 0;
    color: #d8d8dd;
    text-align: right;
}

.effect-result {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
    padding: 28px 32px;
    border-top: 1px solid #28282e;
}

.effect-result > span {
    grid-column: 1 / -1;
    color: #8f8f98;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.effect-result code {
    min-width: 0;
    padding: 16px;
    overflow-x: auto;
    color: #b8ff5a;
    background: #0b0b0d;
    border-radius: 4px;
    white-space: nowrap;
}

.effect-result p {
    grid-column: 1 / -1;
    margin: 0;
    color: #777780;
    font-size: 0.72rem;
    line-height: 1.5;
}

.effect-result p strong {
    color: #9b7bff;
}

.quick-commands-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.quick-commands-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: -0.035em;
}

.quick-commands-heading p {
    margin: 7px 0 0;
    color: #8f8f98;
    font-size: 0.88rem;
}

.quick-command-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.quick-coordinates {
    grid-column: 1 / -1;
}

.quick-command-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #303036;
}

.quick-command-result > span {
    grid-column: 1 / -1;
    color: #8f8f98;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-command-result code {
    min-width: 0;
    padding: 16px;
    overflow-x: auto;
    color: #b8ff5a;
    background: #0b0b0d;
    border-radius: 4px;
    white-space: nowrap;
}

.game-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 96px;
}

.game-mode-card {
    padding: 30px;
    border: 1px solid #28282e;
    background: rgb(22 22 26 / 75%);
}

.game-mode-card h2 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.game-mode-card p {
    min-height: 48px;
    color: #8f8f98;
    font-size: 0.9rem;
    line-height: 1.65;
}

.game-mode-card code {
    display: block;
    padding: 16px;
    overflow-x: auto;
    color: #b8ff5a;
    background: #0b0b0d;
    border-radius: 4px;
    white-space: nowrap;
}

.command-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.command-search {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
}

.command-search > label {
    color: #8f8f98;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.command-search-results {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    max-height: 360px;
    overflow-y: auto;
    background: #101014;
    border: 1px solid #43434c;
    border-radius: 4px;
    box-shadow: 0 18px 40px rgb(0 0 0 / 45%);
}

.item-quick-picks {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 3px;
}

.item-quick-picks > span {
    flex: 0 0 auto;
    padding-top: 9px;
    color: #777780;
    font-size: 0.72rem;
}

.item-quick-picks > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-quick-pick {
    min-height: 34px;
    padding: 6px 11px;
    color: #c9c9cf;
    background: #17171b;
    border: 1px solid #34343b;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
}

.item-quick-pick:hover,
.item-quick-pick:focus-visible {
    color: #f7f7f2;
    border-color: #9b7bff;
    outline: none;
}

.item-quick-pick.active {
    color: #0b0b0d;
    background: #b8ff5a;
    border-color: #b8ff5a;
    font-weight: 800;
}


.enchantment-picker {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid #393940;
    border-radius: 12px;
}

.enchantment-picker legend {
    padding: 0 6px;
    font-weight: 700;
}

.enchantment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.enchantment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
}

.enchantment-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    background: #17171b;
    border: 1px solid #393940;
    border-radius: 10px;
}

.enchantment-card.selected {
    border-color: #b8ff5a;
}

.enchantment-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.enchantment-choice input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #b8ff5a;
}

.enchantment-card .field-help {
    margin: 0;
    color: #b6b6c0;
}

.enchantment-conflict {
    margin: 0;
    color: #ffc77a;
    font-size: 0.8rem;
}

.selected-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    margin: 3px 0 0;
    padding: 12px 14px;
    background: #17171b;
    border-left: 3px solid #b8ff5a;
}

.selected-item span {
    grid-column: 1 / -1;
    color: #777780;
    font-size: 0.72rem;
}

.selected-item strong {
    color: #f7f7f2;
    font-size: 0.88rem;
}

.selected-item code {
    overflow: hidden;
    color: #8f8f98;
    font-size: 0.75rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 14px;
    color: #f7f7f2;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #28282e;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.command-search-result:last-child {
    border-bottom: 0;
}

.command-search-result:hover,
.command-search-result:focus-visible {
    background: #202026;
    outline: none;
}

.command-search-result > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.command-search-result strong {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-search-result code,
.command-search-result small {
    color: #8f8f98;
    font-size: 0.75rem;
}

.command-search-result small {
    flex: 0 0 auto;
}

.command-search-empty {
    margin: 0;
    padding: 16px 14px;
    color: #8f8f98;
    font-size: 0.85rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field > span,
.command-result > span {
    color: #8f8f98;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    color: #f7f7f2;
    background: #101014;
    border: 1px solid #34343b;
    border-radius: 4px;
    font: inherit;
}

.field select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23b8ff5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.field input:focus,
.field select:focus {
    border-color: #9b7bff;
    outline: 2px solid rgb(155 123 255 / 18%);
}

.coordinate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.command-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px solid #303036;
}

.command-result code {
    display: block;
    padding: 18px;
    overflow-x: auto;
    color: #b8ff5a;
    background: #0b0b0d;
    border-radius: 4px;
    font-size: 1rem;
    white-space: nowrap;
}

.copy-button {
    align-self: flex-start;
    padding: 13px 18px;
    color: #0b0b0d;
    background: #b8ff5a;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
}

.copy-button:hover {
    background: #cbff87;
}

.about-heading {
    max-width: 900px;
}

.about-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 96px;
    padding: 48px;
}

.about-statement {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.about-stat {
    display: flex;
    flex-direction: column;
    color: #8f8f98;
    font-size: 0.82rem;
}

.about-stat strong {
    color: #b8ff5a;
    font-size: 2.4rem;
}

.site-footer {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #696971;
    border-top: 1px solid #26262b;
    font-size: 0.8rem;
}

@media (max-width: 760px) {
    .site-header,
    .site-content,
    .site-footer {
        width: min(100% - 32px, 1120px);
    }

    .site-nav {
        gap: 18px;
    }

    .hero {
        padding: 80px 0 64px;
    }

    h1 {
        font-size: clamp(2.75rem, 12vw, 4.75rem);
    }

    .feature-grid,
    .game-mode-grid,
    .about-panel {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .card-number {
        margin-bottom: 30px;
    }

    .feature-grid {
        padding-bottom: 64px;
    }

    .page-heading {
        padding: 76px 0 48px;
    }

    .page-heading h1 {
        font-size: clamp(2.75rem, 11vw, 4.5rem);
    }

    .about-panel {
        gap: 28px;
        margin-bottom: 64px;
        padding: 30px;
    }

    .command-builder {
        margin-bottom: 64px;
        padding: 24px;
    }

    .building-builder {
        margin-bottom: 64px;
    }

    .preset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .builder-workspace {
        grid-template-columns: 1fr;
    }

    .effect-builder {
        grid-template-columns: 1fr;
    }

    .effect-settings {
        border-right: 0;
        border-bottom: 1px solid #28282e;
    }

    .builder-settings {
        border-right: 0;
        border-bottom: 1px solid #28282e;
    }
}

@media (max-width: 600px) {
    .site-header {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 24px;
    }

    .site-nav {
        width: 100%;
        gap: 24px;
        flex-wrap: wrap;
    }

    .site-nav a {
        padding: 20px 0 16px;
    }

    .command-form {
        grid-template-columns: 1fr;
    }

    .dimension-grid,
    .material-grid,
    .builder-options {
        grid-template-columns: 1fr;
    }

    .command-output-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .command-output-heading .copy-button {
        align-self: stretch;
    }

    .quick-command-form {
        grid-template-columns: 1fr;
    }

    .item-quick-picks {
        flex-direction: column;
        gap: 8px;
    }

    .item-quick-picks > span {
        padding-top: 0;
    }

    .selected-item {
        grid-template-columns: 1fr;
    }

    .selected-item code {
        text-align: left;
    }

    .quick-command-result {
        grid-template-columns: 1fr;
    }

    .quick-command-result .copy-button {
        width: 100%;
    }

    .effect-form,
    .effect-result {
        grid-template-columns: 1fr;
    }

    .effect-result .copy-button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .hero {
        padding: 64px 0 56px;
    }

    h1,
    .page-heading h1 {
        font-size: clamp(2.35rem, 12vw, 3.25rem);
        letter-spacing: -0.05em;
    }

    .hero-copy,
    .page-heading > p:last-child {
        font-size: 1rem;
        line-height: 1.65;
    }

    .page-heading {
        padding: 56px 0 36px;
    }

    .card,
    .about-panel {
        padding: 24px;
    }

    .command-builder {
        margin-bottom: 56px;
        padding: 18px;
    }

    .preset-grid {
        grid-template-columns: 1fr;
    }

    .preset-card {
        min-height: 0;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .preset-size {
        margin-top: 0;
    }

    .builder-settings,
    .building-preview,
    .command-output,
    .quick-commands,
    .effect-settings,
    .effect-preview,
    .effect-result {
        padding: 22px 18px;
    }

    .effect-stage {
        margin-right: -18px;
        margin-left: -18px;
    }

    .builder-intro {
        align-items: flex-start;
    }

    .builder-status {
        margin-top: 2px;
    }

    .coordinate-grid {
        grid-template-columns: 1fr;
    }

    .command-search-result {
        gap: 10px;
    }

    .copy-button {
        width: 100%;
    }

    .site-footer {
        min-height: 80px;
    }
}

.datapack-panel {
    margin-top: 24px;
    overflow: hidden;
    background: rgb(22 22 26 / 78%);
    border: 1px solid #28282e;
    border-radius: 8px;
}

.datapack-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgb(155 123 255 / 12%), transparent 58%);
    border-bottom: 1px solid #28282e;
}

.datapack-download h2 {
    margin: 7px 0 0;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: -0.035em;
}

.datapack-download p {
    max-width: 680px;
    margin: 9px 0 14px;
    color: #8f8f98;
    font-size: 0.88rem;
    line-height: 1.6;
}

.datapack-version {
    display: inline-flex;
    padding: 7px 10px;
    color: #b8ff5a;
    background: rgb(184 255 90 / 8%);
    border: 1px solid rgb(184 255 90 / 20%);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.download-button {
    flex: 0 0 auto;
}

.datapack-help {
    padding: 32px;
}

.datapack-help h3 {
    margin: 0 0 22px;
    font-size: 1.05rem;
}

.datapack-help ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.datapack-help li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.datapack-help li > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #0b0b0d;
    background: #b8ff5a;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
}

.datapack-help li p {
    margin: 4px 0 0;
    color: #c9c9cf;
    font-size: 0.86rem;
    line-height: 1.65;
}

.datapack-help code {
    padding: 2px 6px;
    color: #b8ff5a;
    background: #0b0b0d;
    border-radius: 3px;
    font-size: 0.8rem;
}

.instruction-command {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 1px 2px;
    padding: 0;
    color: #b8ff5a;
    background: #0b0b0d;
    border: 1px solid rgb(184 255 90 / 30%);
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
}

.datapack-help .instruction-command code {
    padding-right: 0;
}

.instruction-command span {
    padding: 2px 6px 2px 0;
    color: #a9a9b2;
    font-size: 0.68rem;
    font-weight: 700;
}

.instruction-command:hover,
.instruction-command:focus-visible {
    border-color: #b8ff5a;
}

.datapack-warning,
.datapack-troubleshooting {
    margin: 22px 0 0;
    padding: 14px 16px;
    color: #bdbdc5;
    background: #111116;
    border-left: 3px solid #9b7bff;
    font-size: 0.78rem;
    line-height: 1.6;
}

.datapack-troubleshooting {
    margin-top: 10px;
    border-left-color: #b8ff5a;
}

.datapack-warning strong,
.datapack-troubleshooting strong {
    color: #f7f7f2;
}

@media (max-width: 600px) {
    .datapack-download {
        align-items: stretch;
        flex-direction: column;
    }

    .datapack-download .copy-button {
        align-self: stretch;
    }
}

@media (max-width: 460px) {
    .datapack-download,
    .datapack-help {
        padding: 22px 18px;
    }
}

.mechanism-builder .field {
    max-width: 440px;
}

.mechanism-size {
    color: #b8ff5a;
    margin-block: 24px;
}

.mechanism-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.mechanism-details h3,
.mechanism-install h3 {
    margin-top: 0;
}

.mechanism-details li,
.mechanism-install li {
    margin-bottom: 12px;
    color: #b9b9c3;
    line-height: 1.65;
}

.mechanism-install {
    padding: 24px;
    overflow-wrap: anywhere;
}

.mechanism-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block: 20px;
}

.mechanism-commands .instruction-command {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.mechanism-builder [role="status"] {
    padding-inline: 24px;
    color: #b8ff5a;
}

@media (min-width: 601px) and (max-width: 1000px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 18px;
    }
}
