:root {
  --ink: #382a34;
  --muted: #795a68;
  --sea: #3f704a;
  --line: #f0ccd9;
  --paper: #fc91ba;
  --navy: #29242b;
  --coral: #fb7d8a;
  --rose: #a52f5a;
  --cream: #fff9f3;
  --gold: #e5c57f;
  --green: #7aab69;
  --green-light: #d1ec9b;
  --green-ink: #293b2b;
}
.portrait-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 58px 58px 24px 24px;
  background: transparent;
  line-height: 0;
}
.portrait-toggle:hover:not(:disabled) {
  background: transparent;
}
.portrait-toggle:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 7px;
}

:root[data-theme='towa'] {
  --ink: #302638;
  --muted: #715b7f;
  --line: #dfc9ed;
  --paper: #cda0ec;
  --navy: #28212f;
  --coral: #b975dc;
  --rose: #78439b;
  --cream: #fcf8ff;
}
[data-theme='towa'] header {
  box-shadow: 0 7px 0 #9254b6;
}
[data-theme='towa'] .portrait-frame {
  background: #fff;
  box-shadow: 0 0 0 5px #4b355a;
}
[data-theme='towa'] .portrait-frame img {
  object-fit: contain;
}
[data-theme='towa'] .monogram {
  background-image: url('banana.svg');
}
[data-theme='towa'] .eyebrow,
[data-theme='towa'] h1 {
  color: #e8baff;
}
[data-theme='towa'] .head p,
[data-theme='towa'] .snapshot {
  color: #e5d2ed;
}
[data-theme='towa'] .filters,
[data-theme='towa'] .note {
  background: #f5eaff;
}
[data-theme='towa'] .filters,
[data-theme='towa'] .table-wrap {
  border-color: #8950a8;
  box-shadow: 0 5px 0 #a46dc0;
}
[data-theme='towa'] label,
[data-theme='towa'] .setup strong,
[data-theme='towa'] .result-head p,
[data-theme='towa'] .pager p,
[data-theme='towa'] .pool-note,
[data-theme='towa'] details,
[data-theme='towa'] summary,
[data-theme='towa'] footer {
  color: #523264;
}
[data-theme='towa'] input,
[data-theme='towa'] select,
[data-theme='towa'] button:not(.portrait-toggle):not(#fish-next) {
  border-color: #b29ac6;
}
[data-theme='towa'] input::placeholder {
  color: #82708f;
}
[data-theme='towa'] button:not(.portrait-toggle):not(#fish-next) {
  color: #653d80;
}
[data-theme='towa'] button:not(.portrait-toggle):not(#fish-next):hover:not(:disabled) {
  background: #ead5fc;
  border-color: #8950a8;
}
[data-theme='towa'] tbody tr:nth-child(even) {
  background: #f5edfc;
}
[data-theme='towa'] tbody tr:hover {
  background: #e9d7f6;
}
[data-theme='towa'] details {
  border-color: #a46dc0;
}
[data-theme='towa'] ::selection {
  background: #dcbaf0;
  color: #35283f;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(#fff5f066 2px, transparent 2px);
  background-size: 28px 28px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 7px 0 #c74671;
}
.head,
main {
  max-width: 1240px;
}
.head {
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 24px;
}
.heading-copy {
  flex: 1;
  min-width: 0;
}
.miko-portrait {
  width: 116px;
  flex-shrink: 0;
  text-align: center;
}
.portrait-frame {
  height: 122px;
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 58px 58px 24px 24px;
  background: var(--paper);
  box-shadow: 0 0 0 5px #4c3546;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#miko-still {
  display: block;
  width: 76px;
  height: 100%;
  margin: auto;
  font-size: 0;
  background: url('sakura.svg') center / contain no-repeat;
}
#miko-motion {
  margin-top: 8px;
  padding: 2px 0;
  min-height: 24px;
  font-size: 11px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #eadac0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portrait-frame [hidden] {
  display: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffb4b8;
  letter-spacing: 0.12em;
  font-size: 12px;
}
.monogram {
  display: inline-block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  font-size: 0;
  background: url('sakura.svg') center / contain no-repeat;
}
h1 {
  margin-top: 12px;
  color: #ffa8bb;
  font-weight: 800;
  font-size: clamp(29px, 3.5vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.coral-dot {
  color: var(--coral);
}
.head p {
  color: #e7d1d0;
  margin-top: 8px;
}
.snapshot {
  border-left: 1px solid #746167;
  padding-left: 30px;
  color: #ead5d1;
  line-height: 1.85;
}
.snapshot strong {
  color: var(--cream);
  font-size: 16px;
}
.local-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-ink);
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 1px 10px;
  margin-bottom: 7px;
}
main {
  padding-top: 32px;
  padding-bottom: 32px;
}
.filters {
  grid-template-columns: 1.2fr 1fr 1.65fr 0.8fr;
  gap: 16px;
  padding: 22px;
  background: #fff1f5;
  border: 2px solid #a94168;
  border-radius: 18px;
  box-shadow: 0 5px 0 #cc6587;
  margin-bottom: 28px;
}
label {
  color: #744450;
  font-size: 14px;
}
input,
select {
  height: 48px;
  background: var(--cream);
  border-color: #c99da6;
  border-radius: 10px;
  color: var(--ink);
}
input::placeholder {
  color: #89737a;
}
.filters {
  --dropdown-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23715b68' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filters input,
.filters select,
.fish-choices {
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
}
.filters select {
  appearance: none;
  padding-right: 40px;
  background-image: var(--dropdown-arrow);
  background-position: right 14px center;
  background-repeat: no-repeat;
}
.fish-picker {
  position: relative;
  margin-top: 7px;
}
.fish-picker input {
  margin-top: 0;
  padding-right: 66px;
}
.fish-picker input::-webkit-search-cancel-button {
  display: none;
}
.filters .fish-picker-clear {
  position: absolute;
  top: 50%;
  right: 33px;
  width: 24px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}
.filters .fish-picker-clear::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 3 6 6m0-6-6 6' fill='none' stroke='%23715b68' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.filters .fish-picker-clear:hover {
  background: var(--line);
}
.filters .fish-picker-clear:active {
  transform: translateY(-50%);
}
.filters .fish-picker-toggle,
.filters .fish-picker-toggle:hover:not(:disabled) {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 26px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: var(--dropdown-arrow) center / 12px 8px no-repeat;
  transform: translateY(-50%);
}
.fish-choices {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 288px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--rose);
  border-radius: 10px;
  box-shadow: 0 8px 20px #29242b26;
}
.fish-choice {
  padding: 9px 10px;
  line-height: 1.4;
  border-radius: 6px;
  cursor: pointer;
}
.fish-choice:hover,
.fish-choice[aria-selected='true'] {
  background: var(--line);
}
input:hover,
select:hover {
  border-color: var(--rose);
}
input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}
h2 {
  font-size: 21px;
  font-weight: 750;
}
.result-head {
  padding: 0 3px;
  margin-bottom: 18px;
}
.result-head p {
  max-width: 660px;
  color: #66354d;
}
button {
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid #bf8c98;
  color: #80394c;
  min-height: 42px;
  padding: 9px 16px;
}
button:hover:not(:disabled) {
  background: #ffd9d8;
  border-color: #a24b61;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
}
#fish-next {
  background: var(--green);
  color: var(--green-ink);
  border-color: #5d8b51;
}
#fish-next:hover:not(:disabled) {
  background: var(--green-light);
}
.table-wrap {
  border: 2px solid #a94168;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 5px 0 #cc6587;
}
th {
  background: var(--navy);
  color: #f5dbaa;
  border-bottom: 2px solid var(--gold);
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
th:nth-child(1) {
  width: 28%;
}
th:nth-child(2) {
  width: 25%;
}
th:nth-child(3) {
  width: 47%;
}
td {
  padding-top: 16px;
  padding-bottom: 16px;
}
tbody tr:nth-child(even) {
  background: #fff0f4;
}
tbody tr:hover {
  background: #ffe1ed;
}
.fish-name {
  font-weight: 700;
}
.rate {
  color: var(--sea);
  font-size: 24px;
  font-weight: 800;
}
.bar {
  background: #e7eedb;
  height: 5px;
  margin-top: 6px;
}
.bar span {
  background: var(--green);
}
.pool-note {
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.setup strong {
  color: #5f424e;
}
.setup span {
  line-height: 1.65;
}
.pager {
  padding: 0 3px;
  margin-top: 22px;
}
.pager p {
  color: #66354d;
}
.note {
  background: #fff1f5;
  padding: 13px 17px;
  border-left: 3px solid var(--rose);
  border-radius: 0 8px 8px 0;
}
details {
  margin-top: 20px;
  border-color: #bd5e80;
  color: #553344;
}
summary {
  color: #502d41;
}
footer {
  color: #5a3148;
}
.notes-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: 14px;
}
.filter-status {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
}
footer span {
  display: inline-block;
  width: 20px;
  height: 20px;
  font-size: 0;
  background: url('sakura.svg') center / contain no-repeat;
  vertical-align: middle;
  margin-right: 5px;
}
::selection {
  background: #fac0c6;
  color: #42383d;
}
@media (max-width: 900px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .snapshot {
    padding-left: 16px;
    font-size: 12px;
  }
  .snapshot strong {
    font-size: 14px;
  }
  .head {
    gap: 18px;
  }
}
@media (max-width: 760px) {
  .head,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .head {
    padding-top: 22px;
    padding-bottom: 22px;
    gap: 16px;
  }
  .miko-portrait {
    width: 84px;
  }
  .portrait-frame {
    height: 92px;
    border-width: 2px;
  }
  #miko-still {
    width: 60px;
  }
  #miko-motion {
    font-size: 10px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.055em;
    gap: 6px;
  }
  .monogram {
    width: 22px;
    height: 22px;
  }
  h1 {
    font-size: clamp(26px, 6vw, 36px);
  }
  .head p {
    font-size: 14px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    padding: 17px;
    gap: 13px;
  }
  .filters label:nth-child(3) {
    grid-column: 1/-1;
    grid-row: 3;
  }
  .time-label {
    grid-column: auto;
  }
  .result-head {
    gap: 10px;
  }
  .result-head p {
    font-size: 13px;
  }
  h2 {
    font-size: 19px;
  }
  #reset {
    max-width: 100px;
    flex-shrink: 0;
    line-height: 1.3;
  }
  tbody tr {
    padding: 18px;
    gap: 7px 14px;
  }
  td {
    padding: 0;
  }
  .fish-name {
    font-size: 19px;
  }
  .rate {
    font-size: 28px;
  }
  .setup strong,
  .setup span {
    display: block;
    margin: 0;
  }
  .setup strong {
    margin-top: 5px;
  }
  .pager {
    gap: 10px;
  }
}
