/* Wspólne drobiazgi nowych narzędzi (MOTD, status, Nether, /give, fajerwerki, mały tekst) */
.top-gap-sm { margin-top: 10px; }
.hint-c { margin-top: 10px; text-align: center; font-size: 0.78rem; color: var(--faint); }
.mini-sw { padding: 0; font-size: 0.82rem; gap: 8px; }
.row2 { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.row2 .field { min-width: 0; }
.icon-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
textarea.field { display: block; width: 100%; box-sizing: border-box; min-height: 70px; resize: vertical; }

/* lista serwerów z gry */
.server-list { display: grid; place-items: center; padding: 22px 12px; border-radius: 16px; overflow-x: auto; background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), repeating-linear-gradient(45deg, #2a2a2a 0 8px, #262626 8px 16px); }
.server-list canvas { display: block; image-rendering: pixelated; }
#icon64 { width: 48px; height: 48px; border-radius: 8px; image-rendering: pixelated; background: rgba(255, 255, 255, 0.06); }

/* przyciski kodów kolorów */
.codes { display: flex; flex-wrap: wrap; gap: 5px; }
.codes button { min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 10px; cursor: pointer; font-family: "RedPixel", monospace; font-size: 0.95rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); color: #fff; }
.codes button.col { color: transparent; }
.codes button:hover { filter: brightness(1.2); }
.grad-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grad-row input[type="color"] { width: 40px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }

/* status serwera / tabelki */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.info-grid div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); min-width: 0; }
.info-grid small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.info-grid b { display: block; margin-top: 4px; font-size: 1rem; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #3ccf6a; box-shadow: 0 0 10px #3ccf6a; }
.dot.off { background: #ff375f; box-shadow: 0 0 10px #ff375f; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; background: rgba(255, 255, 255, 0.06); color: var(--muted-strong); }
.search-row { display: flex; gap: 8px; }
.search-row .field { flex: 1; min-width: 0; }

/* Nether */
.xyz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xyz label { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; font-weight: 600; color: var(--faint); }
.big-out { font-family: "RedPixel", monospace; font-size: 1.6rem; letter-spacing: 0.02em; }
.dim-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 1.05rem; }
.dim-title .tb-ic { width: 32px; height: 32px; background-size: 256px auto; background-position: calc(var(--ix, 0) * -2px) calc(var(--iy, 0) * -2px); }

/* /give: lista enchantów */
.ench-list { display: flex; flex-direction: column; gap: 6px; }
.ench { display: grid; grid-template-columns: 1fr 70px 34px; gap: 6px; }
.ench .rm { border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted-strong); cursor: pointer; font-size: 1.1rem; }
.tooltip-box { display: grid; place-items: center; min-height: 140px; padding: 20px; border-radius: 16px; overflow: auto; background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), repeating-linear-gradient(45deg, #3a5a2a 0 8px, #36552a 8px 16px); }
.tooltip-box canvas { image-rendering: pixelated; display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.xyz.two-xz { grid-template-columns: 1fr 1fr; }
.tips { margin: 0; padding-left: 18px; color: var(--muted-strong); font-size: 0.92rem; display: flex; flex-direction: column; gap: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
  .search-row { flex-wrap: wrap; }
  .search-row .seg { width: auto !important; flex: 1; }
  .two { grid-template-columns: 1fr; }
}
.big-in { font-size: 1.1rem; }
.styles-list { display: flex; flex-direction: column; gap: 10px; }
.style-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; }
.sr-txt { flex: 1; min-width: 0; }
.sr-txt small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sr-txt span { display: block; margin-top: 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.fw-sky { display: block; width: 100%; height: auto; aspect-ratio: 640 / 300; border-radius: 16px; background: #06060f; image-rendering: pixelated; }
.shapes { flex-wrap: wrap; border-radius: 18px; }
.dyes { display: flex; flex-wrap: wrap; gap: 6px; }
.dye { width: 32px; height: 32px; border: 0; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform 0.15s ease; }
.dye:hover { transform: scale(1.08); }
.dye.on { box-shadow: 0 0 0 2px #0b0a0d, 0 0 0 4px #ff375f; }
.dye-pick { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.dye-pick::-webkit-color-swatch { border: 0; border-radius: 10px; opacity: 0; }
.hide-sm { }
@media (max-width: 820px) { .hide-sm { display: none; } }

/* fajerwerki v3 */
.fw-sky { aspect-ratio: 1100 / 420; image-rendering: pixelated; }
.fw-bar { flex-wrap: wrap; gap: 6px; }
.fw-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); }
.fw-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fw-shapes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: var(--muted-strong); font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.fw-shapes button canvas { width: 36px; height: 36px; }
.fw-shapes button.on { color: #fff; background: rgba(255, 55, 95, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, 0.7); }
.fw-tip { min-height: 96px; padding: 14px; }
.fw-cmd-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fw-cmd-head .seg { flex: 1; min-width: 240px; }
.fw-summon { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.fw-summon .switch { padding: 0; gap: 10px; }
.fw-inline { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted-strong); }
.fw-inline .field { width: 72px; }
.fw-out { min-height: 64px; word-break: break-all; }
.fw-cmd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.fw-cmd-foot .hint { margin: 0; }
@media (max-width: 560px) { .fw-shapes { grid-template-columns: repeat(3, 1fr); } }
.sm-out { min-height: 64px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 1.5rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }

/* MOTD v3 */
.md-lines { display: flex; flex-direction: column; gap: 8px; }
.md-ln { display: flex; align-items: center; gap: 10px; }
.md-ln span { width: 22px; flex: none; text-align: center; font-weight: 700; color: var(--faint); }
.md-ln .field { flex: 1; min-width: 0; }
.md-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.md-inl { margin: 0 4px 0 0; }
.md-more summary { cursor: pointer; font-weight: 600; color: var(--muted-strong); list-style: none; }
.md-more summary::before { content: "+ "; color: #ff375f; }
.md-more[open] summary::before { content: "- "; }
.md-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; }
@media (max-width: 640px) { .md-more-grid { grid-template-columns: 1fr; } }

/* /give: lista przedmiotów wypełnia kartę do dołu */
.gv-left { display: flex; flex-direction: column; }
.gv-left #icons { flex: 1 1 0; min-height: 210px; max-height: none; align-content: start; }
/* przycisk Skróć (włączony) */
#short.on { color: #fff; background: rgba(255, 55, 95, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 55, 95, 0.75); }
.fw-btns { display: flex; gap: 8px; flex: none; }
