/* buttons and small labels: text always centred (also when a button stretches to full width) */
.btn, .label, .ip button, .st-toggle, .season-toggle, .notice-close, .menu-toggle {
  justify-content: center; text-align: center; }
.label { display: inline-flex; align-items: center; }

/* Java + Bedrock addresses */
.ips { display: grid; gap: 10px; margin-top: 32px; width: min(100%, 460px); margin-left: auto; margin-right: auto; }
.ips .ip { margin: 0; max-width: none; }
.ips .ip-label { min-width: 78px; justify-content: center; font-weight: 600; letter-spacing: .04em; }
.ips .ip code { flex-wrap: wrap; column-gap: 10px; row-gap: 0; min-width: 0; }
.ip-port { font: 500 .8rem var(--body); color: var(--ink-soft); white-space: nowrap; }
.hero-left .ips { margin-left: 0; }
@media (max-width: 480px) { .ips .ip-label { display: flex; min-width: 0; padding: 12px 8px; font-size: .72rem; } }

/* banners (editable) */

.notice { position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; }
.notice p, .notice-text { margin: 0; }
.notice a { color: inherit; font-weight: 600; }
.notice-info { background: rgba(74, 142, 255, .1); border-bottom-color: rgba(74, 142, 255, .3); color: #9cc2ff; }
.notice-event { background: rgba(124, 92, 252, .12); border-bottom-color: rgba(124, 92, 252, .35); color: #c2b2ff; }
.notice-season { background: color-mix(in srgb, var(--season, var(--blue)) 14%, transparent); border-bottom-color: color-mix(in srgb, var(--season, var(--blue)) 40%, transparent); color: color-mix(in srgb, var(--season, var(--blue)) 70%, #fff); }
.notice-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit;
  font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 2px 8px; opacity: .7; }
.notice-close:hover { opacity: 1; }
.notice.gone { display: none; }

.person-initial { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--panel-hi); border: 2px solid var(--line-hi); font: 700 1.3rem var(--display); color: var(--blue); }
.mode-text p, .partner-text p { margin: 0; }
.mode-text p + p, .partner-text p + p { margin-top: .6em; }
.lead p { margin: 0 0 .6em; }
.faq-a p { margin: 0 0 18px; color: var(--ink); max-width: 44em; }
.season-toggle { margin-left: 12px; background: none; border: 1px solid var(--line-hi); border-radius: 4px; color: var(--ink-soft);
  font: 500 .78rem var(--body); padding: 3px 9px; cursor: pointer; }
.season-toggle:hover { color: var(--ink-bright); border-color: var(--blue); }
.preview-flag { background: rgba(243, 156, 18, .12); color: var(--amber); text-align: center; padding: 6px; font-size: .85rem; }


/* page builder blocks */

.pb { margin-top: 40px; margin-bottom: 40px; }
.pb-hero { margin: 0; }
.hero-left .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); justify-items: start; text-align: left; gap: 48px; }
.hero-left .hero-art { order: 0; width: min(100%, 360px); }
.hero-left .actions, .actions-left { justify-content: flex-start; }
.hero-left .lead { margin-left: 0; }
.h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
.pb-heading { text-align: center; }
.pb-heading.align-left { text-align: left; }
.pb-heading .sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 36em; margin: 0 auto; }
.pb-heading.align-left .sub { margin: 0; }
.pb-heading h1, .pb-heading h2 { margin-bottom: .3em; }
.pb-text .prose { max-width: 760px; margin: 0 auto; }
.prose.align-center { text-align: center; }
.pb-image { margin-left: auto; margin-right: auto; }
.pb-image img, .pb-video video { border-radius: 8px; border: 1px solid var(--line); width: 100%; }
.width-small { max-width: 420px; }
.width-medium { max-width: 760px; }
.width-full { max-width: var(--wrap); }
figcaption { color: var(--ink-soft); font-size: .88rem; text-align: center; margin-top: 8px; }
.pb-gallery { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; }
.pb-gallery figure { margin: 0; }
.pb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line);
  transition: transform .4s ease, border-color .3s; }
.pb-gallery figure:hover img { transform: scale(1.02); border-color: var(--line-hi); }
.pb-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; max-width: 960px; }
.pb-split.side-left > img { order: -1; }
.pb-split > img { border-radius: 8px; border: 1px solid var(--line); }
.pb-cards { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); max-width: 1040px; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--violet); color: var(--ink); }
.card-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; grid-row: span 3; }
.fact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }
.fact { min-width: 150px; padding: 18px 22px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.fact dd { margin: 0; font: 700 1.8rem var(--display); color: var(--ink-bright); }
.fact dt { color: var(--ink-soft); font-size: .88rem; }
.pb-buttons .actions { margin: 0; }
.pb-spacer.size-small { height: 16px; } .pb-spacer.size-medium { height: 48px; } .pb-spacer.size-large { height: 96px; }
.pb-spacer { margin: 0; }
.graphic { display: flex; justify-content: center; margin: 0 auto; color: var(--blue); }
.graphic-small { width: 140px; } .graphic-medium { width: 260px; } .graphic-large { width: 420px; }
.graphic svg, .graphic img { width: 100%; height: auto; }
.graphic-divider { width: 100%; max-width: 560px; }
.star-line { display: flex; align-items: center; gap: 14px; width: 100%; color: var(--violet); }
.star-line span { flex: 1; height: 1px; background: var(--line-hi); }
.star-line-planet { width: 34px; height: 14px; flex: none; }
.graphic-cube img { animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 20px 60px rgba(124, 92, 252, .28)); }
.orbit-a { transform-origin: 120px 120px; animation: spin 18s linear infinite; }
.orbit-b { transform-origin: 120px 120px; animation: spin 9s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.twinkle { animation: twinkle 3s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes twinkle { 50% { opacity: .35; } }


/* status page */

.status-head { display: inline-flex; align-items: center; gap: 14px; }
.status-checked { color: var(--ink-soft); }
.status-page { max-width: 900px; }
.status-loading { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #4c5b72; }
.dot.lg { width: 16px; height: 16px; }
.dot.ok { background: #3fd68b; color: #3fd68b; }
.dot.warn { background: #f3b23a; color: #f3b23a; }
.dot.bad { background: #ff5d6c; color: #ff5d6c; }
.dot.maint { background: #7c9bff; color: #7c9bff; }
.status-sub { font-size: 1.15rem; margin: 40px 0 14px; }
.status-sub.first { margin-top: 8px; }
.st-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 14px; }
.st-card > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-card h2 { font-size: 1.1rem; margin: 0; }
.st-word { color: var(--ink); font-weight: 600; font-size: .92rem; }
.st-total { margin-left: auto; color: var(--ink-soft); font-size: .9rem; }
.st-total b { color: var(--ink-bright); }
.st-toggle { background: none; border: 1px solid var(--line-hi); border-radius: 4px; color: var(--ink); padding: 4px 10px; font: 500 .82rem var(--body); cursor: pointer; }
.st-toggle:hover { border-color: var(--blue); color: var(--ink-bright); }
.st-range { color: var(--ink-soft); font-size: .78rem; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .08em; }
.days { display: flex; gap: 3px; height: 34px; align-items: stretch; }
.days.hours { height: 26px; }
.day { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 2px; overflow: hidden; background: var(--line); cursor: default; transform-origin: bottom; }
.day i { display: block; }
.day i.on { background: #3fd68b; }
.day i.deg { background: #f3b23a; }
.day i.off { background: #ff5d6c; }
.day i.mnt { background: #7c9bff; }
.day.empty { opacity: .5; }
.day:hover, .day:focus-visible { filter: brightness(1.25); }
.st-axis { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: .75rem; margin-top: 4px; }
.st-details[hidden] { display: none; }
.st-key { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: .82rem; margin-top: 12px; }
.st-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.st-key i.on { background: #3fd68b; }
.st-key i.off { background: #ff5d6c; }
.st-key i.mnt { background: #7c9bff; }
.st-key i.deg { background: #f3b23a; }
.subrows { display: grid; gap: 6px; margin-top: 8px; }
.subrow { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--night); font-size: .92rem; }
.subrow-state { display: inline-flex; align-items: center; gap: 7px; }
.subrow .muted { color: var(--ink-soft); font-size: .85rem; min-width: 7em; text-align: right; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stat-card .stat { font: 700 1.9rem var(--display); color: var(--ink-bright); margin: 2px 0; }
.stat-card .small { color: var(--ink-soft); font-size: .85rem; }
.upstreams { padding: 4px 20px; }
.upstream { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; }
.upstream + .upstream { border-top: 1px solid var(--line); }
.upstream .small { color: var(--ink-soft); font-size: .85rem; }
.upstream-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.upstream a { color: var(--ink-soft); display: inline-flex; padding: 6px; border-radius: 4px; }
.upstream a:hover { color: var(--ink-bright); background: var(--panel-hi); }
.st-notice { border: 1px solid var(--line); border-left: 3px solid #ff5d6c; border-radius: 6px; padding: 14px 18px; margin-bottom: 12px; background: var(--panel); }
.st-notice.maintenance { border-left-color: #7c9bff; }
.st-notice.info { border-left-color: var(--blue); }
.st-notice h3 { margin: 0 0 4px; font-size: 1.02rem; }
.st-notice .when { color: var(--ink-soft); font-size: .82rem; margin-bottom: 6px; }
.st-notice p { margin: 0 0 .5em; }
.st-muted { color: var(--ink-soft); font-size: .88rem; }
.st-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--panel-hi); border: 1px solid var(--line-hi); color: var(--ink-bright);
  padding: 6px 10px; border-radius: 5px; font-size: .82rem; max-width: 260px; transform: translate(-50%, calc(-100% - 8px)); }
.st-tip[hidden] { display: none; }

@media (max-width: 900px) {
  .pb-split { grid-template-columns: 1fr; gap: 24px; }
  .pb-split.side-left > img { order: 0; }
  .hero-left .wrap { grid-template-columns: 1fr; }
  .pb-cards, .pb-gallery { --cols: 2; }
}
@media (max-width: 560px) {
  .pb-cards, .pb-gallery { grid-template-columns: 1fr; }
  .subrow { grid-template-columns: 1fr auto; }
  .subrow .muted { grid-column: 1 / -1; text-align: left; }
  .days { gap: 2px; }
}
