

:root {
  --paper:  #f3f1e7;
  --ink:    #26302f;
  --muted:  #6f7a78;
  --line:   #d9d6c6;
  --water:  #2e7f99;
  --pick:   #d98b2b;
  --good:   #2f7d4f;
  --warn:   #a8502c;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.screen { display: none; }
.screen.on { display: block; }

.pad { padding: 18px 16px 40px; max-width: 760px; margin: 0 auto; }
.center { text-align: center; }
.tall { padding-top: 16vh; }

h1 { font-size: 32px; margin: 18px 0 6px; }
h2 { font-size: 23px; margin: 10px 0 8px; }
.lead { font-size: 19px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }


.rule {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 16px auto;
  max-width: 440px;
  background: #fffdf6;
}


.shout {
  background: #e8f3f6;
  border-left: 5px solid var(--water);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin: 18px auto;
  max-width: 520px;
  font-weight: 600;
}


button { font: inherit; cursor: pointer; border-radius: 12px; border: 2px solid var(--ink); }
button.big {
  display: block; width: 100%; max-width: 420px;
  margin: 12px auto 8px;
  min-height: 56px; padding: 12px 18px;
  background: var(--ink); color: var(--paper);
  font-weight: 600;
}
button.big:disabled { background: #c8ccc8; border-color: #c8ccc8; color: #7d8480; cursor: default; }
button.plain {
  display: inline-block; margin: 6px 4px;
  min-height: 46px; padding: 8px 16px;
  background: transparent; color: var(--ink); border-color: var(--line);
}


.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #fffdf6;
  border-bottom: 1px solid var(--line);
}



.pond {
  display: block; width: 100%; max-width: 520px;
  margin: 6px auto 10px;
  border-radius: 18px;
  border: 2px solid var(--line);
}

.who { text-align: center; font-size: 19px; font-weight: 600; margin: 6px 0 2px; }



.dial {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 460px; margin: 10px auto 6px;
}
.pip {
  min-width: 52px; min-height: 52px;
  padding: 6px 10px;
  font-size: 20px; font-weight: 700;
  background: #fffdf6; border-color: var(--line); color: var(--ink);
}
.pip.on { background: var(--pick); border-color: var(--ink); color: #fff; }


.howmany { display: flex; justify-content: center; gap: 10px; margin: 12px 0 14px; }
.count {
  min-width: 62px; min-height: 58px;
  font-size: 22px; font-weight: 700;
  background: #fffdf6; border-color: var(--line); color: var(--ink);
}
.count.on { background: var(--water); border-color: var(--ink); color: #fff; }

.namerow { margin: 8px auto; max-width: 420px; }
.namerow input {
  width: 100%; font: inherit;
  padding: 12px 14px; min-height: 52px;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fffdf6; color: var(--ink);
}


.catches { max-width: 420px; margin: 12px auto; }
.catch {
  display: flex; justify-content: space-between; align-items: center;
  border: 2px solid var(--line); border-radius: 12px;
  background: #fffdf6;
  padding: 10px 14px; margin: 7px 0;
  font-size: 18px;
}
.catch b { font-size: 22px; }
.catch.top { border-color: var(--good); box-shadow: 0 0 0 3px #d8ecdf inset; }
.cname { font-weight: 600; }

.verdict { min-height: 26px; font-weight: 600; text-align: center; }
.verdict.bad { color: var(--warn); }


.couldhave {
  background: #fdeee6;
  border-left: 5px solid var(--warn);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px; margin: 14px auto; max-width: 480px;
  text-align: left; font-weight: 600;
}
.couldhave:empty { display: none; }

.how { text-align: left; max-width: 520px; margin: 0 auto 10px; }
.how li { margin-bottom: 8px; }

@media (min-width: 620px) {
  .pip { min-width: 58px; }
}
