@charset "UTF-8";
:root {
  --canvas: #f7f7f2;
  --paper: #fffefa;
  --green: #174733;
  --ink: #232e27;
  --muted: #626c62;
  --line: #dedfd4;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --num: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  background: var(--canvas);
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:not(:disabled),
a {
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #c77a37;
  outline-offset: 3px;
}
button:not(:disabled):hover,
a:hover {
  color: var(--green);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.35;
}
.ico {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.sr {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.navwrap,
main {
  width: calc(100% - 80px);
  max-width: 1280px;
  margin: auto;
}
.navwrap {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4.2vw, 72px);
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--green);
  font:
    700 32px/1 Georgia,
    serif;
  letter-spacing: -1.8px;
}
.brand img {
  width: 40px;
  height: 40px;
}
nav {
  align-self: stretch;
  display: flex;
  gap: clamp(15px, 2.2vw, 38px);
  align-items: stretch;
}
nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 550;
  color: #687065;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  white-space: nowrap;
}
nav .active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}
.rulebtn,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--green);
  border: 1px solid #d4d8cb;
  border-radius: 6px;
  padding: 9px 15px;
  line-height: 1.5;
  font-size: 0.91rem;
  font-weight: 600;
  white-space: nowrap;
}
.rulebtn {
  margin-left: auto;
  padding: 8px 13px;
  font-size: 0.86rem;
}
.btn:not(:disabled):hover,
.rulebtn:hover {
  background: #edf1e7;
  border-color: #8ca391;
}
main {
  padding-top: 27px;
  min-height: 70vh;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #103e30 url("/art/hero.webp") center 35% / cover no-repeat;
  border-radius: 10px;
  min-height: 232px;
  display: flex;
  align-items: center;
  color: #fff9e4;
}
.herocopy {
  padding: 23px 0 24px clamp(26px, 3.4vw, 58px);
}
.hero-brand {
  font:
    italic 18px/1.3 Georgia,
    serif;
  color: #e9dec5;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}
.hero h1 {
  font-size: clamp(2.3rem, 3.5vw, 3.4rem);
  letter-spacing: 3px;
  font-weight: 750;
  line-height: 1.3;
}
.hero p {
  font-size: 0.94rem;
  color: #f2efdf;
  letter-spacing: 0.12em;
  margin: 4px 0 21px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ivory {
  background: #f6f0db;
  color: #1c4735;
  border-color: #f6f0db;
}
.btn.ivory:hover {
  background: #fffdf3;
}
.ghost {
  color: #fffbe9;
  background: #103b2ec9;
  border-color: #a2b3a0;
}
.btn.ghost:hover {
  color: white;
  background: #1b503e;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:not(:disabled):hover {
  color: white;
  background: #236043;
}
.counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 19px 0 23px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px clamp(13px, 1.8vw, 30px);
}
.counter:hover,
.playercard:hover,
.awardcard:hover {
  border-color: #91a592;
  background: #fcfcf5;
}
.countericon {
  height: 47px;
  width: 47px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eee2;
  color: #466745;
}
.tone1 .countericon {
  background: #e6eee8;
  color: #45715c;
}
.tone2 .countericon {
  background: #f3ebd6;
  color: #9a783e;
}
.tone3 .countericon {
  background: #f2e6df;
  color: #a65c47;
}
.counterlabel {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
}
.count {
  display: flex;
  align-items: baseline;
  line-height: 1.15;
  gap: 7px;
  margin-top: 3px;
}
.count b {
  font: 600 2.25rem/1.03 var(--num);
  letter-spacing: -1px;
  font-variant-numeric: lining-nums tabular-nums;
  color: #263a2c;
}
.count small,
.rankperson small,
.when small,
.format small,
.awardcard small {
  color: var(--muted);
  font-size: 0.8rem;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr);
  gap: 19px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.sectionhead {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
}
h2 {
  font-size: 1.33rem;
  letter-spacing: 0.035em;
  font-weight: 720;
}
.sectionhead h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sectionhead h2 .ico {
  color: var(--green);
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #43654e;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 0;
}
.textlink:hover,
.panelbottom a:hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.histrow {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1.55fr 1fr;
  align-items: center;
  width: 100%;
  gap: 9px;
  padding: 10px 22px;
  text-align: left;
  border-top: 1px solid #e8e8df;
  min-height: 54px;
}
.histrow:not(.tablehead):hover,
.rankrow:hover {
  background: #f4f6ed;
}
.histrow > *:last-child {
  text-align: right;
}
.tablehead,
.rankcap {
  font-size: 0.8rem;
  font-weight: 550;
  color: #687263;
  background: #f2f3eb;
  min-height: 32px;
  padding-block: 6px;
  border-top: 1px solid var(--line);
}
.when {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--num);
}
.when b,
.winner b,
.rankperson b {
  font-weight: 600;
}
.when small {
  font-family: var(--sans);
  font-size: 0.75rem;
}
.winner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.winner b,
.rankperson b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.92rem;
}
.format {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.tag {
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
  font-size: 0.76rem;
  padding: 2px 7px;
  line-height: 1.5;
  font-weight: 600;
}
.tag.green {
  background: #e8efe4;
  color: #476848;
}
.tag.gold {
  background: #f4ead4;
  color: #86662c;
}
.score,
.metric {
  font: 600 1.14rem var(--num);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  font: 650 0.88rem var(--serif);
}
.a0 {
  background: #e2e9d9;
  color: #4f6740;
}
.a1 {
  background: #e1ebe1;
  color: #41654b;
}
.a2 {
  background: #eee2da;
  color: #8a5643;
}
.a3 {
  background: #e1e9ee;
  color: #486578;
}
.a4 {
  background: #e9e3ed;
  color: #735e7d;
}
.a5 {
  background: #f1e9cc;
  color: #846b39;
}
.seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid #dbdfd3;
  border-radius: 6px;
  background: #eff1e9;
  gap: 2px;
  max-width: 100%;
}
.seg button {
  font-size: 0.85rem;
  padding: 4px 11px;
  line-height: 1.4;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.seg .selected {
  background: var(--paper);
  color: var(--green);
  font-weight: 650;
  box-shadow: 0 1px 4px #192a141a;
}
.rankcap {
  display: flex;
  justify-content: space-between;
  padding-inline: 22px;
}
.rankrow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 22px;
  min-height: 55px;
  border-top: 1px solid #e8e8df;
}
.ranknum {
  color: #82887b;
  font: italic 600 1.1rem var(--num);
  min-width: 23px;
}
.r1 {
  color: #997329;
}
.r2 {
  color: #637671;
}
.r3 {
  color: #a76f4d;
}
.rankrow .avatar {
  width: 32px;
  height: 32px;
}
.rankperson {
  display: grid;
  min-width: 0;
}
.rankperson small {
  font-size: 0.75rem;
}
.metric {
  margin-left: auto;
  color: var(--green);
}
.panelbottom {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 8px 15px;
}
.hallpreview {
  margin: 24px 0 0;
}
.hallpreview > .sectionhead {
  padding: 0 2px 12px;
  min-height: 42px;
}
.awardgrid,
.playergrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.samplegallery {
  margin-top: 32px;
}
.samplegallery > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  color: var(--green);
  list-style: none;
  cursor: pointer;
}
.samplegallery > summary::-webkit-details-marker { display: none; }
.samplegallery > summary h2 { display: flex; align-items: center; gap: 10px; }
.samplegallery[open] > summary > .ico { transform: rotate(180deg); }
.samplegallery[open] > .awardgrid { margin-top: 14px; }
.awardcard,
.certificate {
  --award-ink: #294638;
}
.awardcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  border: 1px solid #d6d7c8;
  border-radius: 8px;
}
.awardart {
  background: var(--award-ink) var(--award-art) center / cover no-repeat;
  color: #fff8dd;
}
.awardart {
  width: 100%;
  min-height: 118px;
  aspect-ratio: 3.05;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 7px;
  padding: 16px 18px;
}
.awardtier {
  font: 600 0.8rem var(--sans);
  letter-spacing: 0.08em;
  color: #f7e9bb;
}
.awardart strong {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12em 0.65em;
  font: 700 clamp(1.12rem, 1.7vw, 1.5rem) / 1.4 var(--serif);
  max-width: 75%;
  text-shadow: 0 1px 4px #182019;
}
.awardart strong span {
  display: inline-block;
  white-space: nowrap;
}
.awardby {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
}
.awardby b {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  font-weight: 600;
}
.awardby time {
  white-space: nowrap;
  color: var(--muted);
  font: 0.85rem var(--num);
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: #71806f;
  font-size: 0.8rem;
}
footer > span:first-child {
  font:
    600 0.95rem Georgia,
    serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pagehead,
.profilehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 7px 0 25px;
}
.pagehead h1,
.profilehead h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--green);
  letter-spacing: 1px;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}
.search,
.select {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.search {
  background: var(--paper);
  border: 1px solid #cdd4c7;
  border-radius: 6px;
  gap: 8px;
  color: var(--muted);
  padding: 0 12px;
}
input,
select {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #cbd1c4;
  background: var(--paper);
  border-radius: 5px;
  padding: 8px 10px;
}
.search input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  padding: 8px 0;
}
.search:focus-within {
  outline: 2px solid #74957b;
  outline-offset: 1px;
}
.search input:focus-visible {
  outline: 0;
}
select {
  appearance: none;
  padding-right: 28px;
  background: var(--paper)
    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='m1 1 5 5 5-5' fill='none' stroke='%23456550' stroke-width='1.5'/%3E%3C/svg%3E")
    right 10px center/11px auto no-repeat;
}
.select .ico {
  display: none;
}
.empty,
.loading {
  text-align: center;
  padding: 32px 18px;
  color: var(--muted);
}
.empty > div {
  margin-top: 12px;
}
.playercard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 21px;
  min-width: 0;
}
.playercard > div {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: anywhere;
}
.playercard > span {
  display: block;
  margin: 13px 0 4px;
  color: var(--green);
}
.playercard p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.profilepage {
  max-width: 1000px;
  margin: 0 auto;
}
.profiletools,
.profileoverview {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.13fr);
  gap: clamp(18px, 3vw, 45px);
}
.profiletools {
  align-items: center;
  margin: 0 0 15px;
}
.profiletools .toolbar {
  margin: 0;
}
.profileoverview {
  row-gap: 12px;
  align-items: stretch;
  padding: 20px clamp(14px, 2.2vw, 30px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.profilehead {
  grid-column: 1 / -1;
  justify-content: start;
  margin: 0;
  min-width: 0;
}
.profilehead h1 {
  overflow-wrap: anywhere;
}
.profilehead .avatar {
  height: 65px;
  width: 65px;
  font-size: 1.65rem;
}
.profilehead p {
  color: var(--green);
}
.profilemetrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  gap: 12px clamp(15px, 2.4vw, 35px);
  margin: 0;
}
.profilemetrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.profilemetrics small {
  font-size: 1rem;
  color: var(--muted);
  display: block;
}
.profilemetrics b {
  font: 600 1.25rem var(--num);
}
.profilecharts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.radar,
.plot {
  display: block;
  width: 100%;
  height: auto;
}
.radar {
  max-height: 270px;
}
.plot {
  max-height: 170px;
}
.radar polygon,
.radar line,
.plot line {
  stroke: #d6ddcf;
  fill: none;
  stroke-width: 1;
}
.radar .radarval {
  fill: #50866254;
  stroke: var(--green);
  stroke-width: 2;
}
.radar text,
.plot text {
  font: 13px var(--sans);
  fill: #475442;
}
.plot polyline {
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
}
.plot circle {
  fill: var(--green);
}
.caption,
.hint {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}
.caption {
  padding: 12px 20px 20px;
  text-align: center;
}
.tablewrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
td,
th {
  text-align: left;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
}
th {
  background: #f1f3ea;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
}
td {
  overflow-wrap: anywhere;
}
td a {
  color: var(--green);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border-top: 1px solid var(--line);
}
.pagination button {
  color: var(--green);
}
dialog {
  color: var(--ink);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(550px, calc(100% - 32px));
  max-height: 90dvh;
  background: var(--paper);
  box-shadow: 0 16px 70px #17251a33;
}
dialog::backdrop {
  background: #15241bc0;
}
.dialoghead {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.dialoghead h2 {
  font-size: 1.45rem;
}
.xbtn {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  color: var(--muted);
  border-radius: 50%;
}
.xbtn:hover {
  background: #eaece2;
}
.dialogbody {
  padding: 20px 22px;
}
.dialogactions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.dialogbody h3 {
  font-size: 1.08rem;
}
.formerror {
  color: #a33426;
  font-size: 0.9rem;
  margin-top: 8px;
}
.formerror:empty {
  display: none;
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  margin: 0 0 14px;
}
.field input,
.field select {
  font-weight: 400;
}
.rules p {
  font-size: 0.94rem;
  color: #495446;
  margin: 8px 0 18px;
}
.formula {
  background: #eef2e8;
  color: var(--green);
  padding: 12px 15px;
  border-left: 3px solid #829e78;
  border-radius: 2px;
}
.levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin: 0 0 21px;
}
.levels > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  font-size: 0.89rem;
}
.steplabel {
  color: var(--green);
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.formline,
.pickerhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}
.fieldtitle {
  margin: 18px 0 8px;
}
.seats {
  display: flex;
  gap: 7px;
}
.seats button {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  background: #f1f3ec;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 3px;
  color: var(--muted);
}
.seats b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.seats .current {
  border: 1px solid var(--green);
  background: #e6eee1;
  color: var(--green);
}
.dialogbody > .search {
  width: 100%;
}
.candidates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow: auto;
  padding: 8px 2px;
}
.candidates button {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  border-radius: 5px;
  border: 1px solid var(--line);
  padding: 6px;
  font-size: 0.92rem;
  min-width: 0;
}
.candidates button > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.candidates small {
  margin-left: auto;
  white-space: nowrap;
}
.candidates button:hover {
  background: #eef2e7;
}
.nobody {
  color: var(--muted);
  padding: 8px;
}
.scorerows {
  margin: 12px 0;
}
.scorerow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.wind {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 32px;
  background: #e8eee2;
  color: var(--green);
  border-radius: 4px;
  font: 700 1.05rem var(--serif);
}
.scorerow label {
  overflow-wrap: anywhere;
}
.scoreinput,
output {
  margin-left: auto;
  flex: none;
}
.scoreinput {
  display: flex;
  align-items: center;
  width: 120px;
  border: 1px solid #cbd1c4;
  border-radius: 5px;
  background: #fff;
}
.score-dialog :focus-visible {
  outline-color: var(--green);
}
.scoreinput:focus-within {
  border-color: var(--green);
}
.scoreinput input:focus-visible {
  outline: none;
}
.scoreinput input {
  width: 100%;
  border: 0;
  text-align: right;
  padding-right: 0;
  background: transparent;
}
.scoreinput > span {
  padding-right: 10px;
  color: var(--muted);
}
output {
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 600;
}
.handentry {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  margin: 10px 0;
}
.handheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.handheading label {
  font-size: 0.9rem;
}
.handheading select {
  max-width: 190px;
}
.yakupicker {
  min-width: 0;
  border: 0;
  margin: 12px 0 0;
  padding: 0;
}
.yakupicker legend {
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}
.yakuchoices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.yakuchoice {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.86rem;
  line-height: 1.35;
}
.yakuchoice input {
  margin: 0;
  accent-color: var(--green);
}
.yakuchoice:has(:checked) {
  background: #e6efe0;
  border-color: #819c7a;
  color: var(--green);
}
.yakuchoice:has(:disabled) {
  opacity: 0.44;
  cursor: default;
}
.yakupicker output {
  display: block;
  margin-top: 8px;
}
.detailmeta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.9rem;
}
.dialogbody .awardgrid {
  grid-template-columns: 1fr;
}
.pt {
  color: var(--green);
  font-weight: 600;
}
.certdialog {
  border: 0;
  border-radius: 0;
  width: min(700px, calc(100% - 20px));
}
.certificate {
  background: #f7f3e6;
  color: #293e2e;
  border: 1px solid #d2c7a8;
  padding: 9px;
  text-align: center;
}
.certborder {
  border: 3px double #b1a681;
  padding: 5px;
}
.certart {
  display: block;
  width: 100%;
  height: auto;
}
.certbanner {
  position: relative;
}
.certbanner h3 {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  margin: 0;
  color: #fff5da;
  font: 700 clamp(1.35rem, 4vw, 2.45rem) / 1.3 var(--serif);
  letter-spacing: 0.09em;
  text-shadow: 0 1px 4px #142219;
}
.certbody {
  --award-title-size: clamp(1.25rem, 3.2vw, 1.75rem);
  padding: clamp(14px, 2.6vw, 22px) clamp(8px, 4%, 28px) 8px;
}
.certbody p {
  color: #5e6656;
  margin: 0;
}
.certbody > p:first-child {
  font: 0.94rem var(--serif);
  letter-spacing: 0.12em;
}
.certbody strong {
  display: block;
  color: #233d30;
  font: 700 clamp(1.7rem, 4vw, 2.35rem) / 1.5 var(--serif);
  overflow-wrap: anywhere;
  margin: 3px 0 16px;
}
.certbody .certcitation {
  font: 1rem/1.95 var(--serif);
  text-wrap: balance;
}
.certcitation em {
  font-style: normal;
  font-weight: 700;
  font-size: var(--award-title-size);
  line-height: 1.5;
  color: #324734;
  white-space: nowrap;
  margin-inline: 0.15em;
}
.certbody h4 {
  font: 700 var(--award-title-size) / 1.5 var(--serif);
  color: #895236;
  margin: 9px 0 0;
  letter-spacing: 0.08em;
}
.certfoot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #d4cbb3;
  margin: 12px 12px 0;
  padding: 9px 0 5px;
  font-size: 0.77rem;
  color: #616f59;
  text-align: left;
}
.certfoot b {
  font:
    italic 700 1.15rem Georgia,
    serif;
  color: var(--award-ink);
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: #183b2d;
  padding: 8px 16px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}
#notice.show {
  opacity: 1;
}
@media (min-width: 1550px) {
  .hero {
    min-height: 255px;
  }
}
@media (max-width: 1000px) {
  .navwrap,
  main {
    width: calc(100% - 40px);
  }
  .navwrap {
    gap: 25px;
  }
  nav {
    gap: 17px;
  }
  nav .ico {
    display: none;
  }
  .counter {
    padding: 15px;
    gap: 11px;
  }
  .sectionhead,
  .histrow,
  .rankrow,
  .rankcap {
    padding-inline: 15px;
  }
  .when {
    display: grid;
    gap: 0;
  }
  .dashboard {
    grid-template-columns: 1.45fr 1fr;
    gap: 14px;
  }
  .histrow {
    grid-template-columns: 0.8fr 1.05fr 1.2fr 1fr;
  }
}
@media (max-width: 760px) {
  .navwrap,
  main {
    width: calc(100% - 28px);
  }
  .navwrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    min-height: 0;
  }
  .brand {
    font-size: 28px;
    padding: 9px 0;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .rulebtn {
    grid-row: 1;
    grid-column: 2;
    font-size: 0.83rem;
    padding: 6px 10px;
  }
  nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    gap: 0;
  }
  nav a {
    min-height: 43px;
    font-size: 0.86rem;
    padding: 3px 2px 0;
  }
  main {
    padding-top: 14px;
  }
  .hero {
    min-height: 210px;
    background-position: 59% 36%;
  }
  .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #103d31ed 0%, #103d3194 38%, transparent 72%);
  }
  .herocopy {
    padding: 18px 20px;
  }
  .hero-brand {
    font-size: 17px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 0.86rem;
    margin-bottom: 17px;
  }
  .counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 12px 0 16px;
  }
  .counter {
    padding: 13px 16px;
  }
  .countericon {
    width: 37px;
    height: 37px;
  }
  .countericon .ico {
    width: 20px;
    height: 20px;
  }
  .count b {
    font-size: 1.85rem;
  }
  .counterlabel {
    font-size: 0.83rem;
  }
  .dashboard,
  .profilecharts {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .histrow {
    grid-template-columns: 0.8fr 1fr 1.3fr 1fr;
    gap: 7px;
  }
  .sectionhead {
    min-height: 55px;
  }
  .awardgrid,
  .playergrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .hallpreview {
    margin-top: 16px;
  }
  .profiletools {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .profiletools .toolbar {
    justify-content: flex-end;
  }
  .profileoverview {
    grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .profilemetrics {
    gap: 8px 16px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .profilehead h1 {
    overflow-wrap: anywhere;
  }
  .pagehead {
    margin: 5px 0 18px;
  }
}
@media (max-width: 620px) {
  .profileoverview {
    grid-template-columns: 1fr;
  }
  .radarpanel .radar {
    max-height: 245px;
  }
  .profiletools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .yakuchoices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 470px) {
  .histrow {
    grid-template-columns: 0.75fr 0.78fr 1.29fr 0.9fr;
    gap: 5px;
    padding: 9px 12px;
  }
  .histrow.tablehead {
    padding-block: 6px;
  }
  .format {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }
  .format small {
    font-size: 0.75rem;
  }
  .winner {
    gap: 6px;
  }
  .avatar {
    height: 26px;
    width: 26px;
    font-size: 0.8rem;
  }
  .winner b {
    font-size: 0.86rem;
  }
  .score {
    font-size: 1.04rem;
  }
  .awardgrid {
    grid-template-columns: 1fr;
  }

  .pagehead .btn {
    font-size: 0.83rem;
    padding: 7px 10px;
  }
  .dialoghead,
  .dialogbody {
    padding: 14px;
  }
  .dialogbody td,
  .dialogbody th,
  td,
  th {
    padding: 9px 6px;
  }
  .tag {
    padding: 2px 5px;
  }
  .playercard {
    padding: 14px;
  }
  .pagehead h1 {
    font-size: 1.85rem;
  }
  .levels {
    gap: 0 9px;
  }
}
@media (max-width: 345px) {
  nav a {
    font-size: 0.77rem;
  }
  .counter {
    padding: 10px;
    gap: 7px;
  }
  .countericon {
    width: 31px;
    height: 31px;
  }
  .winner .avatar {
    display: none;
  }
  .histrow {
    gap: 3px;
  }
  .seats {
    gap: 3px;
  }
  .certfoot {
    flex-wrap: wrap;
  }
}
.scoreinput .sign {
  align-self: stretch;
  min-width: 30px;
  border-right: 1px solid var(--line);
  color: var(--green);
  background: #f0f3ea;
  border-radius: 4px 0 0 4px;
}
.scoreinput {
  width: 140px;
}
