/* Our Minecraft Worlds: a sea map of islands, one per server.
   Sea blues for the page, each world's own colours on its island and its page. */
:root {
  --deep: #0f3a50;
  --sea: #17506b;
  --shallow: #2b7a99;
  --foam: #e3f3f7;
  --sand: #f0dfa8;
  --sun: #ffcf3d;
  --ink: #0d2633;
  --display: "Bungee", "Arial Black", "Impact", sans-serif;
  --body: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--deep); overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; color: var(--foam); font-family: var(--body); font-size: 17px; line-height: 1.5;
  background: radial-gradient(120% 80% at 50% 0%, var(--sea) 0%, var(--deep) 75%) fixed;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 5; }
.skip:focus { left: 12px; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; }

/* ---- home -------------------------------------------------------------------------------------------- */
.masthead { max-width: 640px; }
.masthead h1 {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: 0.95;
  font-size: clamp(38px, 7.5vw, 78px); color: var(--sand);
  text-shadow: 0 4px 0 var(--ink), 0 9px 0 rgba(0, 0, 0, 0.25);
}
.masthead p { margin: 14px 0 0; font-size: 19px; font-weight: 700; color: var(--foam); max-width: 34em; }

.map { margin: 18px -20px 8px; }
.sea { display: block; width: 100%; height: auto; overflow: visible; }
.wave { fill: none; stroke: rgba(227, 243, 247, 0.22); stroke-width: 2.5; stroke-linecap: round; }
.route { fill: none; stroke: var(--sand); stroke-width: 3; stroke-dasharray: 2 11; stroke-linecap: round; opacity: 0.7; }
.island { cursor: pointer; }
.island .shallow { fill: var(--shallow); opacity: 0.55; }
.island .sand { fill: var(--sand); }
.island .label {
  font-family: var(--display); font-size: 21px; fill: #fff;
  paint-order: stroke; stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round;
}
.island > g { transition: transform 0.18s ease-out; transform-box: fill-box; }
.island:hover .land, .island:focus .land { filter: brightness(1.12); }
.island:hover .label { fill: var(--sun); }
/* the one moment of motion: islands surface one after another when the page opens */
.map.rise .island { animation: surface 0.6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: var(--d); }
@keyframes surface { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.list-head { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--sand); margin: 26px 0 12px; }
.worlds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px 16px; }
.row {
  display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 10px 14px 10px 10px;
  border-radius: 16px; background: rgba(227, 243, 247, 0.07); border: 2px solid transparent;
}
.row:hover { background: rgba(227, 243, 247, 0.13); border-color: var(--land); }
.swatch { width: 64px; height: 64px; flex: none; }
.row-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.row-name { font-family: var(--display); font-size: 19px; color: #fff; line-height: 1.1; }
.row-tag { font-size: 14.5px; color: rgba(227, 243, 247, 0.82); }
.has-guide {
  margin-left: auto; flex: none; font-weight: 900; font-size: 13px; color: var(--ink); background: var(--sun);
  padding: 3px 10px; border-radius: 99px;
}
.foot { margin-top: 34px; padding-top: 18px; border-top: 2px dashed rgba(240, 223, 168, 0.35); color: rgba(227, 243, 247, 0.8); font-weight: 700; }

/* ---- one world --------------------------------------------------------------------------------------- */
.back { display: inline-block; font-weight: 800; text-decoration: none; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(227, 243, 247, 0.1); }
.back::before { content: "\2190\00a0"; }
.back:hover { background: rgba(227, 243, 247, 0.2); }
.banner {
  margin: 16px 0 26px; padding: 26px; border-radius: 28px; display: flex; gap: 24px; align-items: center;
  background: var(--land); color: #fff; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.banner-island { width: 170px; height: 170px; flex: none; }
.banner > div { min-width: 0; }
.banner h1 {
  font-family: var(--display); font-weight: 400; margin: 0; font-size: clamp(30px, 7.5vw, 60px); line-height: 1; overflow-wrap: anywhere;
  color: #fff; paint-order: stroke; -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--ink);
}
.banner h1:focus { outline: none; }
.tagline { margin: 10px 0 0; font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.about { margin: 10px 0 0; font-weight: 700; max-width: 36em; color: #fff; }

.join, .guides-wrap { margin-bottom: 28px; }
.join h2, .guides-wrap h2 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--sand); margin: 0 0 12px; }
.steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; max-width: 46em; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.steps li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--land); color: #fff; font-family: var(--display); font-size: 15px; border: 2px solid var(--ink); margin-top: -2px;
}
.address {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 12px; border-radius: 18px;
  background: var(--foam); color: var(--ink); max-width: 760px;
}
.field { display: flex; flex-direction: column; padding: 4px 12px; border-radius: 12px; background: #fff; flex: 1 1 280px; }
.field.port { flex: 0 0 auto; }
.field-name { font-size: 13px; font-weight: 800; color: #4b6673; }
.field-value { font-size: 20px; font-weight: 900; word-break: break-all; user-select: all; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  font: 900 16px/1 var(--body); padding: 12px 18px; border-radius: 14px; border: 3px solid var(--ink);
  background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.quiet { background: #fff; }
.copy { flex: 0 0 auto; min-width: 150px; }

.guides { display: grid; gap: 22px; }
.guide { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.sheet {
  display: block; width: 230px; flex: none; background: #fff; padding: 6px; border-radius: 6px;
  box-shadow: 0 0 0 3px var(--ink), 8px 10px 0 rgba(0, 0, 0, 0.3); transform: rotate(-2.5deg); transition: transform 0.2s;
}
.sheet:hover { transform: rotate(0deg) scale(1.03); }
.sheet img { display: block; width: 100%; height: auto; }
.guide-text { flex: 1 1 260px; min-width: 0; }
.guide-text h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 5vw, 24px); margin: 0 0 6px; color: #fff; line-height: 1.1; }
.guide-text p { margin: 0 0 12px; font-weight: 700; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.none { font-weight: 700; background: rgba(227, 243, 247, 0.08); border: 2px dashed rgba(240, 223, 168, 0.4); border-radius: 16px; padding: 16px 18px; max-width: 40em; }

/* ---- ask to join ------------------------------------------------------------------------------------ */
.masthead .cta { margin-top: 18px; }
.steps a, .foot a { color: var(--sun); font-weight: 900; }
.join-head { margin: 16px 0 22px; max-width: 40em; }
.join-head h1 { font-family: var(--display); font-weight: 400; margin: 0 0 10px; font-size: clamp(34px, 7vw, 58px); line-height: 1; color: var(--sand); text-shadow: 0 4px 0 var(--ink); }
.join-head h1:focus { outline: none; }
.join-head p { margin: 0; font-weight: 700; }
.ask { max-width: 620px; display: grid; gap: 16px; }
.q { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.q > span, .q legend { font-weight: 900; font-size: 17px; color: #fff; padding: 0; margin-bottom: 6px; }
.q .opt { font-style: normal; font-weight: 700; color: rgba(227, 243, 247, 0.7); }
.q small { color: rgba(227, 243, 247, 0.75); font-weight: 700; }
.ask input:not([type=checkbox]), .ask textarea {
  font: 700 17px/1.4 var(--body); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px;
  padding: 10px 12px; width: 100%;
}
.ask textarea { resize: vertical; }
.q.bad input, .q.bad textarea, .q.bad .picks { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.45); border-radius: 12px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: rgba(227, 243, 247, 0.1);
  border: 2px solid transparent; font-weight: 800; cursor: pointer; }
.pick:has(input:checked) { background: var(--land); color: #fff; border-color: var(--ink); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.pick input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { margin: 4px 0 0; }
.btn:disabled { opacity: 0.6; cursor: default; }
.result { margin: 0; font-weight: 900; font-size: 18px; min-height: 1.5em; }
.result.good { color: #8ff0a4; }
.result.oops { color: #ffb3b3; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 20px 16px 44px; }
  .map { margin: 10px -16px 4px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .banner-island { width: 120px; height: 120px; }
  .sheet { width: 180px; }
  .worlds { grid-template-columns: 1fr; }
  .island .label { font-size: 30px; }
  .masthead p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
