/* Public home page */
.wrap { max-width: 1180px; margin: 0 auto; padding: 64px 24px 40px; }

/* ---------- top tiles ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 20px; margin: 0 -20px; align-items: center; justify-content: center; animation: fadeUp .5s cubic-bezier(.22, 1, .36, 1) both; }
.tile-col { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }

.tile { position: relative; height: 300px; display: flex; flex-direction: column; cursor: pointer; border: 0; text-align: left; transition: transform .15s ease, filter .15s ease; }
.tile:hover, .logo-tile:hover { transform: translateY(-3px); }
.tile:focus-visible, .ip-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* hover label like the inspiration site */
.tip {
  position: absolute; top: -46px; right: 6%; padding: 6px 16px; border-radius: 8px; background: #fff; color: #424549;
  font: 700 12px/2 var(--ui); text-transform: uppercase; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s ease;
}
.tip::after { content: ""; position: absolute; top: 100%; right: 14px; border: 6px solid transparent; border-top-color: #fff; }
.tile:hover .tip, .ip-pill:hover .tip { opacity: 1; transform: translateY(0); }

.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 230px; height: 230px; background: linear-gradient(160deg, #2a1010, #1e1e1e 60%); transition: transform .15s ease;
}
.logo-tile img { width: 118px; height: 118px; image-rendering: pixelated; filter: drop-shadow(0 10px 18px rgba(229, 50, 45, .35)); }
.wordmark { font-size: 30px; font-weight: 700; color: #fff; line-height: 1; }
.wordmark span { color: var(--accent-2); }

.ip-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 230px; padding: 12px 12px 12px 16px; border-radius: 32px; border-bottom-width: 6px; cursor: pointer; color: #fff;
}
.ip-pill code.mc { color: #fff; font-size: 19px; font-weight: 700; }
.ip-pill .copy-icon { color: var(--muted); transform: scaleX(-1); transition: color .2s; }
.ip-pill:hover .copy-icon { color: var(--accent-2); }
.ip-pill.copied code, .ip-pill.copied .copy-icon { color: var(--ok); }
.ip-count { min-width: 38px; padding: 6px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-2); font-size: 14px; text-align: center; }

/* status tile */
.status-tile { width: 250px; padding: 26px 24px 0; overflow: hidden; }
.tile-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.status-big { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 28px; font-weight: 700; }
.status-players { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.status-players b { font-size: 52px; line-height: 1; }
.status-meta { margin-top: 6px; font-size: 13px; min-height: 20px; }
.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; }
.spark .area { fill: rgba(229, 50, 45, .18); }
.spark .line { fill: none; stroke: var(--accent-2); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* discord tile */
.discord-tile { width: 190px; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.discord-logo { width: 62px; color: #5865f2; margin-bottom: 6px; }
.discord-count { font-size: 30px; font-weight: 700; }
.discord-sub { display: inline-flex; align-items: center; gap: 8px; color: #ddd; font-size: 14px; }
.discord-sub .dot { width: 8px; height: 8px; }

/* picture tiles (ranks / how to join) */
.art-tile { width: 210px; overflow: hidden; padding: 0; justify-content: flex-end; }
.art-tile h2 { position: relative; z-index: 2; margin: 0; padding: 20px 22px; font-size: 24px; white-space: nowrap; color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .7); }
.art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 60%); }
.ranks-art { background: radial-gradient(120% 90% at 50% 20%, #2b3a46, #17181b 70%); }
.ranks-art .art { gap: 4px; padding-bottom: 60px; }
.ranks-art .art img { width: 34px; height: 34px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); transition: transform .25s ease; }
.ranks-art .art img:nth-child(odd) { transform: translateY(-10px); }
.ranks-art:hover .art img { transform: translateY(-16px) rotate(-6deg); }
.join-art { background: radial-gradient(110% 90% at 50% 15%, #3b5a2a, #16190f 72%); }
.join-art .art img { width: 120px; height: 120px; margin-bottom: 56px; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55)); transition: transform .3s ease; }
.join-art:hover .art img { transform: translateY(-8px) rotate(4deg); }

/* ---------- sections ---------- */
.block { margin-top: 72px; animation: fadeUp .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .1s; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; border-top: 1px solid var(--line-2); padding-top: 26px; }
.block-head h2 { margin: 0; font-size: 20px; font-weight: 400; }
.block-head p { margin: 0; font-size: 14px; }
code.mc { color: var(--accent-2); }

/* online heads */
.heads { display: flex; flex-wrap: wrap; gap: 12px; }
.head-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; }
.head-chip img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; background: #2a2a2e; color: transparent; }
.head-chip b { font-weight: 600; }
.rank-tag { font-family: var(--mc); font-size: 11px; padding: 2px 7px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.empty { padding: 26px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); text-align: center; width: 100%; }

/* rank cards */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.rank-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); transition: border-color .2s, transform .2s; position: relative; overflow: hidden; }
.rank-card:hover { border-color: color-mix(in srgb, var(--rc) 60%, transparent); transform: translateY(-2px); }
.rank-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--rc); opacity: .9; }
.rank-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rank-top img { width: 36px; height: 36px; image-rendering: pixelated; }
.rank-name { margin: 0; font: 400 24px/1.2 var(--mc); color: var(--rc); }
.perks { list-style: none; margin: 0; padding: 0; }
.perks li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: #bdbdc6; font-size: 14px; }
.perks li:last-child { border-bottom: 0; }
.perks strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-price { margin-top: auto; padding-top: 18px; }
.rank-price div { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; border: 1px solid #3a2a2a; background: #241c1c; color: var(--accent-2); font-family: var(--mc); }
.rank-price img { width: 18px; height: 18px; image-rendering: pixelated; }
.rank-price .free { border-color: var(--line); background: #1f1f22; color: var(--muted); }

/* status panel */
.status-panel { padding: 26px; border-radius: 20px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #161618; border: 1px solid var(--line-2); }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.stat b { font-size: 20px; font-weight: 400; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: 180px; display: block; }
.chart .bar { fill: var(--accent); }
.chart .bar.zero { fill: #3a3a3f; }
.chart .gap { fill: rgba(248, 113, 113, .22); }
.chart .grid { stroke: #2a2a2e; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; }
.chart-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: #fff; color: #222; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }

/* footer */
.foot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 50px 20px 40px; color: #7a7a7a; }
.foot-name { font-size: 24px; color: #fff; }
.foot small { font-size: 11px; }
.foot-links { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; }
.foot-links a { color: #7a7a7a; transition: color .2s; }
.foot-links a:hover { color: #fff; }

/* modal */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 520px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.modal-inner { padding: 26px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-head h3 { margin: 0; font-weight: 400; font-size: 20px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; color: #d3d3d3; }
.steps li::marker { color: var(--accent-2); font-family: var(--mc); }
.ip-inline { font-size: 17px; margin: 0 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 12px 18px; border-radius: 12px; background: #fff; color: #111; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .wrap { padding-top: 36px; }
  .tiles { margin: 0; }
  .tile { height: 220px; }
  .status-tile { height: 260px; }
  .tile, .art-tile, .status-tile, .discord-tile { width: 100%; max-width: 360px; }
  .tile-col { width: 100%; max-width: 360px; }
  .logo-tile, .ip-pill { width: 100%; }
  .tip { display: none; }
}
