/* Moe's — futsal Plzeň od 2006. Vzhled podle klubového loga:
   bílé pozadí, světle fialový kruh, žluté písmo, modrá košile, tmavá zástěra. */
:root {
  --paper: #ffffff;
  --lilac: #f3f4fd;
  --shirt: #b8c4f4;
  --apron: #23274e;
  --hair: #6c71a5;
  --yellow: #fed612;
  --yellow-deep: #e8b800;
  --duff: #d9262c;
  --teal: #29b4d4;
  --muted: #5d6188;
  --rule: #dfe2f5;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.5rem;
  --step-4: 3.6rem;

  --line: 2.5px solid var(--apron);
  --pop: 5px 5px 0 var(--apron);
  --radius: 18px;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--apron);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow-deep); }
a:hover { text-decoration-color: var(--apron); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-head { background: var(--paper); border-bottom: var(--line); position: relative; z-index: 2; }
.site-head .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.6rem; }
.brand {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; white-space: nowrap;
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 1.9rem; line-height: 1;
}
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand small { font-family: var(--body); font-weight: 700; font-size: .85rem; color: var(--muted); }
.site-nav { display: flex; gap: .3rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; padding: .3rem; }
.site-nav a {
  text-decoration: none; font-weight: 800; font-size: .98rem; padding: .35rem .8rem; white-space: nowrap;
  border: 2.5px solid transparent; border-radius: 999px;
}
.site-nav a:hover { border-color: var(--rule); }
.site-nav a[aria-current="page"] { background: var(--yellow); border-color: var(--apron); }

/* Hero — logo v kruhu, jako na dresu */
.hero { background: var(--paper); position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center;
  padding-block: 3.5rem 4rem;
}
.hero-mark { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.hero-mark img { width: clamp(8rem, 19vw, 15rem); height: auto; border-radius: 50%; flex: none; }
.hero h1 {
  font-size: clamp(3.6rem, 7.4vw, 7rem); margin: 0; line-height: .86; letter-spacing: -.01em;
}
.hero h1 .since { display: block; font-family: var(--body); font-weight: 800; font-size: var(--step-1); letter-spacing: 0; margin-top: .7rem; color: var(--muted); }
.hero .lede { font-size: var(--step-1); margin: 1.6rem 0 0; max-width: 34ch; }

.board {
  background: var(--apron); color: #fff; border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.6rem; box-shadow: 7px 7px 0 var(--yellow);
}
.board h2 { font-family: var(--body); font-weight: 800; font-size: var(--step-0); color: var(--shirt); margin-bottom: .8rem; }
.board .teams { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: var(--step-3); line-height: 1.02; }
.board .teams .vs { display: block; font-family: var(--body); font-size: var(--step-0); font-weight: 700; color: var(--shirt); margin: .25rem 0; }
.board .when { display: flex; gap: 1.2rem; margin-top: 1.1rem; align-items: center; flex-wrap: wrap; }
.board .time { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: var(--step-4); color: var(--yellow); line-height: .9; }
.board .meta { color: #d9ddf7; font-size: var(--step--1); line-height: 1.45; }
.board .also { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed #ffffff40; font-size: var(--step--1); color: #d9ddf7; }

/* Page head — lilac disc */
.page-head { background: var(--lilac); border-bottom: var(--line); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -6rem; top: 50%; width: 26rem; height: 26rem; transform: translateY(-50%);
  border-radius: 50%; background: var(--paper); border: var(--line);
}
.page-head .wrap { padding-block: 3rem 2.6rem; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.page-head h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin: 0 0 .5rem; }
.page-head p { font-size: var(--step-1); margin: 0; max-width: 44ch; }
.page-head .seal { width: 9.5rem; height: auto; border-radius: 50%; flex: none; margin-right: 2rem; }
.page-head.sand { background: #f6e7bf; }

/* Sections */
section.block { padding-block: 3.5rem; }
section.block + section.block { padding-top: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 3rem; }
.more {
  display: inline-block; margin-top: 1rem; font-weight: 800; text-decoration: none;
  border: var(--line); border-radius: 999px; padding: .45rem 1rem; background: var(--paper); box-shadow: 3px 3px 0 var(--apron);
}
.more:hover { background: var(--yellow); }
.more:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--apron); }

/* Results */
.results { list-style: none; margin: 0; padding: 0; }
.results li {
  display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .7rem 0; border-bottom: 2px dotted var(--rule);
}
.results .date { font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.results .fixture { font-weight: 600; }
.results .fixture .comp { display: block; font-weight: 600; font-size: var(--step--1); color: var(--muted); }
.score {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 900; font-size: 1.45rem; line-height: 1;
  min-width: 4.6rem; text-align: center; padding: .4rem .5rem; border: var(--line); border-radius: 12px;
}
.score.w { background: var(--yellow); }
.score.d { background: var(--lilac); }
.score.l { background: var(--apron); color: #fff; }
.score.tbd { border-style: dashed; color: var(--muted); font-size: 1.1rem; }
.moes { font-weight: 900; }

/* Tables */
.tablewrap { overflow-x: auto; border: var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
caption { text-align: left; font-size: var(--step--1); color: var(--muted); padding: .8rem 1rem .2rem; font-weight: 600; }
th, td { padding: .6rem .7rem; text-align: right; border-bottom: 1px solid var(--rule); }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
thead th { font-weight: 800; color: var(--muted); border-bottom: var(--line); }
tbody tr.us { background: var(--yellow); font-weight: 900; }
tbody tr.zone-up td:first-child { box-shadow: inset 5px 0 0 var(--teal); }
tbody tr.zone-down td:first-child { box-shadow: inset 5px 0 0 var(--duff); }
td.pts { font-weight: 900; }

/* Scorer bars */
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: .45rem 0; font-weight: 600; }
.bars .bar { grid-column: 1 / -1; height: 12px; background: var(--lilac); border: 2px solid var(--apron); border-radius: 999px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--shirt); }
.bars li:first-child .bar i { background: var(--yellow); }
.bars .n { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 900; font-size: 1.35rem; line-height: 1; }

/* Photo */
.photo { border: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--pop); background: var(--lilac); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .7rem; font-weight: 600; }

.team-band { background: var(--lilac); border-block: var(--line); padding-block: 3.5rem; }
.team-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: center; }

/* Feature bands */
.bands { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--line); }
.band { padding: 3rem clamp(1.25rem, 4vw, 3.5rem); text-decoration: none; display: block; }
.band h2 { font-size: var(--step-4); }
.band p { max-width: 40ch; }
.band.history { background: var(--apron); color: #fff; }
.band.history h2 { color: var(--yellow); }
.band.beach { background: #f6e7bf; border-left: var(--line); }
.band .go { font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Roster */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.roster li { padding: .9rem 1rem; border: var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .9rem; align-items: center; background: var(--paper); }
.roster .initials {
  width: 3.2rem; height: 3.2rem; display: grid; place-items: center; background: var(--shirt); color: var(--apron);
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 900; font-size: 1.2rem; border-radius: 50%; border: 2px solid var(--apron);
}
.roster .name { font-weight: 800; display: block; }
.roster .line { font-size: var(--step--1); color: var(--muted); }
.retired { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; background: var(--apron); color: #fff; padding: 2rem clamp(1.25rem, 4vw, 3rem); border-radius: var(--radius); }
.retired .num {
  font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 8rem; line-height: 1;
  width: 11rem; height: 11rem; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--apron);
}
.retired h2 { color: var(--yellow); }
.retired p { color: #dfe2f7; }

/* Timeline — skutečná chronologie */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; border-top: 2px dotted var(--rule); }
.timeline .yr { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; font-weight: 900; font-size: 3rem; line-height: .9; color: var(--hair); }
.timeline h3 { font-size: var(--step-2); margin-bottom: .3rem; }
.timeline p { margin: 0; }

.quote { background: var(--lilac); border: var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 2rem 0; max-width: 62ch; font-size: var(--step-1); font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 500; }
.quote p { margin: 0; }
.quote footer { font-family: var(--body); font-size: var(--step--1); color: var(--muted); margin-top: .6rem; font-weight: 700; }

/* Seasons */
.seasons td.goals { width: 34%; }
.gbar { display: flex; align-items: center; gap: .6rem; justify-content: flex-end; font-weight: 800; }
.gbar i { display: block; height: 10px; background: var(--shirt); border-radius: 999px; border: 1.5px solid var(--apron); }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: .05rem .5rem; border-radius: 999px; margin-left: .4rem; vertical-align: 1px; border: 1.5px solid var(--apron); }
.tag.up { background: var(--teal); }
.tag.down { background: var(--duff); color: #fff; }
.tag.top { background: var(--yellow); }

.controls { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.controls button {
  font: inherit; font-weight: 800; font-size: var(--step--1); padding: .45rem 1rem; cursor: pointer; min-height: 44px;
  border: var(--line); border-radius: 999px; background: var(--paper); color: var(--apron);
}
.controls button[aria-pressed="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--apron); }
.rank { color: var(--muted); width: 2.8rem; }

/* Beach */
.beach-list { list-style: none; margin: 0; padding: 0; }
.beach-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1rem 1.5rem; padding: 1rem 0; border-bottom: 2px dotted var(--rule); align-items: baseline; }
.beach-list .d { color: var(--muted); font-size: var(--step--1); font-weight: 700; }
.beach-list .ev { font-weight: 800; }
.beach-list .ev small { display: block; font-weight: 600; color: var(--muted); font-size: var(--step--1); }
.beach-list .pl { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 900; font-size: 1.25rem; text-align: right; white-space: nowrap; }
.beach-list li.medal .pl { background: var(--yellow); padding: .1rem .6rem; border: 2px solid var(--apron); border-radius: 999px; }

/* Gallery */
.gallery { columns: 3 18rem; column-gap: 1.25rem; }
.gallery figure { break-inside: avoid; margin-bottom: 1.6rem; }
.gallery .photo { box-shadow: 4px 4px 0 var(--apron); }

/* Footer */
.site-foot { background: var(--apron); color: #d9ddf7; padding-block: 2.5rem; font-size: var(--step--1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: center; }
.site-foot strong { color: var(--yellow); }
.site-foot a { text-decoration-color: var(--yellow); }

.note { font-size: var(--step--1); color: var(--muted); }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 2.2rem 3rem; }
  .team-band .wrap { grid-template-columns: 1fr; }
  .bands { grid-template-columns: 1fr; }
  .band.beach { border-left: 0; border-top: var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: .4rem; }
  .retired { grid-template-columns: 1fr; }
  .retired .num { width: 8rem; height: 8rem; font-size: 5.5rem; }
  .beach-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .beach-list .d { grid-column: 1 / -1; }
  .site-head .wrap { flex-wrap: wrap; gap: .4rem 1rem; padding-block: .6rem; }
  .site-nav { margin-left: -.3rem; width: calc(100% + .6rem); }
  .page-head::after { width: 16rem; height: 16rem; right: -7rem; }
  .page-head .seal { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: spin-in .9s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes spin-in { from { transform: rotate(-200deg) scale(.6); opacity: 0; } }
}
