@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #f7f3e7;
  background: #0c2330;
  font-synthesis: none;
  --gold: #e6bf76;
  --ink: #0b2531;
  --muted: #a5b7bc;
  --line: #ffffff25;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  font-size: 16px;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
  color: inherit;
}
button {
  border: 1px solid var(--line);
  background: #13313dc9;
  border-radius: 8px;
  padding: 12px 17px;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button:hover {
  background: #214653;
  border-color: #dbbc7880;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #ffe2a3;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
}
select {
  background: #13313d;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 0;
}
option {
  background: #102d38;
  color: white;
}
button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #18323b;
  font-weight: 800;
  letter-spacing: 0.06em;
}
button.primary:hover {
  background: #f4d69b;
}
input[type="range"] {
  accent-color: var(--gold);
  cursor: pointer;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--gold);
  width: 20px;
  height: 20px;
}
[hidden] {
  display: none !important;
}
#world {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
#shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #071d2bea 0%,
      #071d2bcc 30%,
      #071d2b35 64%,
      #071d2b00 80%
    ),
    linear-gradient(
      0deg,
      #071d2b88,
      transparent 35%,
      transparent 80%,
      #071d2b88
    );
}
#topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 36px;
  z-index: 5;
  border-bottom: 1px solid #ffffff18;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fbf8ed;
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.brand b {
  color: var(--gold);
  font-size: 12px;
  border: 1px solid #d9bd7466;
  padding: 3px 5px;
  margin-left: 4px;
  border-radius: 3px;
}
.brand-mark {
  font-size: 33px;
  color: var(--gold);
  line-height: 1;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-actions button,
.top-actions select {
  height: 39px;
  min-width: 40px;
  padding: 7px 10px;
  font-size: 14px;
  background: #102e3b99;
  border-color: #ffffff2b;
}
#menu {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-44%);
  width: 440px;
  max-height: calc(100% - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bba770 transparent;
  padding: 12px 8px 10px 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.21em;
  color: var(--gold);
  line-height: 1.5;
}
#menu h1 {
  font-size: 65px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 20px 0 15px;
  font-weight: 800;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
#menu h1 span {
  max-width: 330px;
}
#menu h1 em {
  font-size: 34px;
  color: var(--gold);
  font-style: normal;
  letter-spacing: -0.03em;
  padding-bottom: 4px;
}
.intro {
  color: #c7d1d0;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 360px;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  min-height: 66px;
  background: #1334428c;
  border: 1px solid #c7dde329;
}
.mode-icon {
  width: 25px;
  font-size: 24px;
  color: #b2c6c8;
  text-align: center;
  flex-shrink: 0;
}
.mode b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.mode small {
  display: block;
  font-size: 11px;
  color: #98b2ba;
  margin-top: 4px;
  line-height: 1.4;
}
.mode.selected {
  border-color: var(--gold);
  background: linear-gradient(105deg, #bca06130, #bca0610c);
}
.mode.selected .mode-icon {
  color: var(--gold);
}
.menu-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.menu-options label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #a8bec3;
}
.menu-options select {
  width: 100%;
  font-size: 13px;
  background: #102b369c;
}
.start {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px !important;
  font-size: 14px;
  min-height: 54px;
  border-radius: 5px !important;
}
.start span:last-child {
  font-size: 24px;
  line-height: 1;
}
.menu-links {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  gap: 5px;
}
.menu-links button {
  font-size: 12px;
  background: none;
  border: none;
  padding: 10px 4px;
  color: #ced8d9;
}
.menu-links button:hover {
  color: var(--gold);
}
footer {
  font-size: 11px;
  color: #869ea8;
  margin-top: 15px;
  letter-spacing: 0.03em;
}
#arena-caption {
  position: absolute;
  bottom: 55px;
  right: 5%;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  text-shadow: 0 2px 8px #0009;
}
#arena-caption > span {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
#arena-caption h2 {
  margin: 9px 0 5px;
  font-size: 24px;
  font-weight: 700;
}
#arena-caption p {
  font-size: 13px;
  color: #f0eadb;
  margin: 0;
}
#loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: radial-gradient(ellipse at center, #174d59, #081d2c 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#loading .ornament {
  color: var(--gold);
  font-size: 50px;
  letter-spacing: 15px;
  animation: breathe 2s ease-in-out infinite;
}
#loading h1 {
  font-size: 32px;
}
#loading p {
  max-width: 500px;
  text-align: center;
  line-height: 1.7;
  color: #c4d3d7;
  padding: 0 20px;
}
progress {
  width: 240px;
  accent-color: var(--gold);
  height: 6px;
}
#hud {
  position: absolute;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 14px;
  pointer-events: none;
}
.scorecard {
  width: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  background: #0b2534db;
  backdrop-filter: blur(8px);
  border: 1px solid #a9c1c233;
  border-radius: 8px;
  padding: 12px 16px;
  align-items: center;
}
.scorecard > span {
  font-size: 12px;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.scorecard strong {
  font-size: 32px;
  grid-row: span 2;
  line-height: 1.2;
}
.scorecard small {
  font-size: 11px;
  color: #a8bfc5;
}
.scorecard.active {
  border-color: var(--gold);
  box-shadow: 0 0 18px #ddb66618;
}
.scorecard.active > strong {
  color: var(--gold);
}
.match {
  width: 155px;
  text-align: center;
  background: #0b2534b8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5px;
}
.match > span {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #d6e2e1;
}
.match strong {
  font-size: 27px;
  letter-spacing: 0.05em;
}
.match small {
  font-size: 11px;
  color: #bbcfd0;
}
.playing #shade {
  background: linear-gradient(
    0deg,
    #071d2b99,
    transparent 28%,
    transparent 70%,
    #071d2b77
  );
}
.playing #topbar {
  padding: 17px 26px;
}
.playing #controls {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: calc(100% - 32px);
  background: #0b2534e8;
  backdrop-filter: blur(14px);
  border: 1px solid #d3ceac45;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 12px 45px #0004;
}
.aim-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  color: #f1d699;
}
.aim-title #angle {
  color: #a8c0c8;
  font-variant-numeric: tabular-nums;
}
.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.control-row > button {
  height: 44px;
  padding: 7px 14px;
}
.control-row #shoot {
  min-width: 100px;
}
.meter-block {
  flex: 1;
  position: relative;
}
.meter-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: #b9cdd0;
  margin-bottom: 9px;
}
.meter-heading b {
  color: var(--gold);
  font-size: 12px;
}
.meter-block input {
  position: absolute;
  bottom: -8px;
  left: -3px;
  width: calc(100% + 6px);
  opacity: 0.01;
  height: 30px;
  z-index: 2;
}
.power-track {
  height: 5px;
  border-radius: 5px;
  background: #53666a;
  overflow: hidden;
}
.power-track i {
  height: 100%;
  width: 65%;
  display: block;
  background: linear-gradient(90deg, #8dbaaa, #f1c175);
  border-radius: 5px;
}
.secondary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ffffff14;
  margin-top: 12px;
  padding-top: 9px;
  font-size: 11px;
  color: #a6bec6;
}
.secondary-controls label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.secondary-controls input {
  width: 65px;
  height: 14px;
}
.secondary-controls output {
  font-size: 10px;
  min-width: 20px;
}
#hint {
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
  max-width: 260px;
}
#playtools {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#playtools button {
  font-size: 12px;
  background: #0c2b3ad9;
  padding: 10px 13px;
  border-radius: 6px;
}
#toast {
  position: absolute;
  left: 50%;
  top: 205px;
  transform: translate(-50%, -12px);
  pointer-events: none;
  max-width: calc(100% - 30px);
  width: max-content;
  background: #102f3aeb;
  border: 1px solid #e3bc7766;
  border-radius: 8px;
  color: #f2d695;
  padding: 13px 22px;
  text-align: center;
  box-shadow: 0 8px 30px #0002;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  font-size: 14px;
  z-index: 6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  background: linear-gradient(130deg, #173d48, #0a2534);
  color: #f5f1e8;
  border: 1px solid #b7b28955;
  border-radius: 15px;
  padding: 35px;
  width: 550px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 25px 100px #0008;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #06141ca8;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 28px;
  margin: 14px 30px 20px 0;
  line-height: 1.25;
}
dialog p {
  font-size: 15px;
  line-height: 1.8;
  color: #c5d6d8;
}
dialog .close {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 24px;
  line-height: 24px;
  padding: 4px 9px;
  background: transparent;
  border: none;
}
dialog button {
  margin: 8px 8px 0 0;
  font-size: 14px;
}
.muted {
  color: #94afb8 !important;
  font-size: 13px !important;
}
.rule-numbers {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.rule-numbers > span {
  flex: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-direction: column;
  color: var(--muted);
  font-size: 12px;
}
.rule-numbers b {
  font-size: 31px;
  color: var(--gold);
}
.tutorial-step {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tutorial-step b {
  font-size: 15px;
  color: var(--gold);
}
.tutorial-step p {
  font-size: 14px;
  margin: 7px 0 0;
  line-height: 1.7;
}
.setting-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0;
  font-size: 14px;
}
.setting-row > span {
  flex: 1;
}
.setting-row input[type="range"] {
  width: 140px;
}
.setting-row output {
  width: 40px;
  font-size: 12px;
  color: var(--gold);
}
.result-score {
  font-size: 60px;
  color: var(--gold);
  text-align: center;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 15px 0;
}
.result-score span {
  font-size: 35px;
  color: #77979f;
  margin: 0 25px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 22px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.stats-grid small {
  font-size: 11px;
  color: #a4bcc2;
}
.stats-grid b {
  font-size: 22px;
}
.achievement {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  opacity: 0.55;
}
.achievement.unlocked {
  opacity: 1;
}
.achievement > span {
  font-size: 27px;
  color: var(--gold);
}
.achievement > div {
  flex: 1;
}
.achievement b {
  font-size: 14px;
}
.achievement small {
  display: block;
  font-size: 11px;
  color: #9eb7bf;
  margin-top: 4px;
}
#debug {
  position: absolute;
  left: 15px;
  top: 200px;
  white-space: pre;
  background: #071c29cc;
  color: #9ef2c5;
  font: 12px/1.7 monospace;
  padding: 12px;
  pointer-events: none;
}
.photo-mode #topbar,
.photo-mode #hud,
.photo-mode #controls,
.photo-mode #playtools,
.photo-mode #toast,
.photo-mode #debug,
.photo-mode #shade {
  display: none !important;
}
#photoHint {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 0 1px 5px #000;
  font-size: 14px;
  pointer-events: none;
}
@keyframes breathe {
  50% {
    transform: rotate(8deg) scale(1.08);
    opacity: 0.5;
  }
}
@media (min-height: 880px) and (min-width: 900px) {
  #menu {
    width: 480px;
  }
  #menu h1 {
    font-size: 76px;
  }
  .mode {
    min-height: 77px;
  }
  .mode b {
    font-size: 16px;
  }
  .mode small {
    font-size: 12px;
  }
  .intro {
    font-size: 16px;
  }
  footer {
    margin-top: 25px;
  }
}
@media (max-width: 850px) {
  #menu {
    left: 5%;
    width: 410px;
  }
  #arena-caption {
    right: 4%;
    bottom: 30px;
    max-width: 200px;
  }
  #arena-caption h2 {
    font-size: 20px;
  }
  #arena-caption p {
    font-size: 12px;
  }
  #topbar {
    padding: 18px 20px;
  }
  #playtools {
    right: 12px;
  }
  #playtools button {
    font-size: 10px;
    padding: 9px;
  }
  .playing #controls {
    bottom: 15px;
  }
  #hud {
    gap: 7px;
    top: 82px;
  }
  .scorecard {
    width: 130px;
    padding: 10px;
  }
  .match {
    width: 125px;
  }
}
@media (max-width: 600px) {
  #topbar,
  .playing #topbar {
    padding: 12px 15px;
  }
  .brand {
    font-size: 12px;
    gap: 5px;
  }
  .brand-mark {
    font-size: 25px;
  }
  .brand b {
    font-size: 10px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions button,
  .top-actions select {
    font-size: 11px;
    height: 32px;
    min-width: 30px;
    padding: 5px 7px;
  }
  #menu {
    left: 6%;
    width: 88%;
    top: 83px;
    transform: none;
    max-height: calc(100dvh - 95px);
    padding-top: 10px;
  }
  #menu h1 {
    font-size: 50px;
    margin-top: 13px;
    max-width: 360px;
  }
  #menu h1 em {
    font-size: 27px;
  }
  .intro {
    font-size: 13px;
    margin-bottom: 17px;
    max-width: 280px;
  }
  .eyebrow {
    font-size: 10px;
  }
  #shade {
    background:
      linear-gradient(90deg, #081f2def, #081f2d9c),
      linear-gradient(0deg, #081f2de6, transparent);
  }
  .mode {
    padding: 11px 9px;
    gap: 7px;
    min-height: 62px;
  }
  .mode b {
    font-size: 13px;
  }
  .mode small {
    font-size: 10px;
  }
  .mode-icon {
    font-size: 21px;
    width: 23px;
  }
  .menu-options {
    margin: 14px 0;
  }
  .menu-options label {
    font-size: 11px;
  }
  .menu-options select {
    font-size: 12px;
    padding: 9px 6px;
  }
  .menu-links button {
    font-size: 11px;
  }
  .start {
    padding: 13px 18px !important;
    font-size: 13px;
  }
  footer {
    font-size: 10px;
    margin-top: 10px;
  }
  #arena-caption {
    display: none;
  }
  #hud {
    top: 65px;
    width: calc(100% - 20px);
    gap: 5px;
    justify-content: center;
  }
  .scorecard {
    width: 31%;
    padding: 8px;
    gap: 3px 5px;
    border-radius: 6px;
  }
  .scorecard > span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .scorecard strong {
    font-size: 24px;
  }
  .scorecard small {
    font-size: 9px;
  }
  .match {
    width: 32%;
    padding: 4px;
  }
  .match strong {
    font-size: 21px;
  }
  .match > span {
    font-size: 8px;
  }
  .match small {
    font-size: 9px;
  }
  #toast {
    top: 145px;
    font-size: 12px;
    padding: 10px 14px;
  }
  #playtools {
    top: auto;
    bottom: 170px;
    right: 12px;
    left: 12px;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
  }
  #playtools button {
    font-size: 10px;
    padding: 8px;
  }
  .playing #controls {
    bottom: 12px;
    padding: 11px 12px;
    max-width: calc(100% - 20px);
  }
  .control-row {
    gap: 8px;
  }
  .control-row > button {
    padding: 5px 10px;
    height: 40px;
  }
  .control-row #shoot {
    min-width: 78px;
    font-size: 12px;
  }
  .secondary-controls {
    gap: 10px;
  }
  #hint {
    font-size: 9px;
    max-width: 190px;
  }
  .aim-title {
    font-size: 12px;
  }
  .meter-heading {
    font-size: 9px;
  }
  .meter-heading b {
    font-size: 11px;
  }
  dialog {
    padding: 25px 22px;
  }
  dialog h2 {
    font-size: 23px;
  }
  dialog p {
    font-size: 14px;
  }
  .setting-row {
    gap: 10px;
  }
  .setting-row input[type="range"] {
    width: 100px;
  }
  .stats-grid b {
    font-size: 19px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  #topbar,
  .playing #topbar {
    padding: 9px 18px;
  }
  .brand {
    font-size: 12px;
  }
  .top-actions button,
  .top-actions select {
    height: 31px;
    font-size: 11px;
  }
  #menu {
    top: 63px;
    transform: none;
    max-height: calc(100% - 65px);
    width: 405px;
    left: 5%;
  }
  #menu h1 {
    font-size: 38px;
    margin: 8px 0;
  }
  #menu h1 em {
    font-size: 23px;
  }
  .intro {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .mode {
    min-height: 49px;
    padding: 8px;
  }
  .mode small {
    font-size: 9px;
  }
  .mode b {
    font-size: 12px;
  }
  .mode-icon {
    font-size: 20px;
  }
  .menu-options {
    margin: 10px 0;
  }
  .menu-options label {
    font-size: 10px;
    gap: 4px;
  }
  .menu-options select {
    font-size: 11px;
    padding: 6px;
  }
  .start {
    min-height: 40px;
    padding: 9px 16px !important;
    font-size: 12px;
  }
  .menu-links {
    margin-top: 4px;
  }
  .menu-links button {
    font-size: 10px;
  }
  footer {
    font-size: 9px;
    margin-top: 4px;
  }
  #hud {
    top: 54px;
    gap: 7px;
  }
  .scorecard {
    padding: 6px 11px;
    width: 135px;
  }
  .scorecard strong {
    font-size: 24px;
  }
  .scorecard span {
    font-size: 10px;
  }
  .scorecard small {
    font-size: 9px;
  }
  .match {
    width: 130px;
  }
  .match strong {
    font-size: 20px;
  }
  .match > span,
  .match small {
    font-size: 9px;
  }
  .playing #controls {
    bottom: 10px;
    width: 470px;
    padding: 8px 12px;
  }
  .aim-title {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .control-row > button {
    height: 34px;
  }
  .secondary-controls {
    margin-top: 8px;
    padding-top: 6px;
  }
  #toast {
    top: 118px;
    font-size: 12px;
    padding: 8px 14px;
  }
  #playtools {
    right: 12px;
    top: 52%;
    bottom: auto;
    left: auto;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 5px;
  }
  #playtools button {
    font-size: 10px;
    padding: 7px;
  }
  #arena-caption {
    bottom: 23px;
  }
  dialog {
    max-height: calc(100dvh - 20px);
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
#target {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -100%);
  color: #ffe3a0;
  text-shadow: 0 2px 4px #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.photo-mode #target {
  display: none !important;
}
.mode small {
  font-size: 12px;
}
.menu-options label {
  font-size: 14px;
}
.menu-links button {
  font-size: 14px;
}
footer {
  font-size: 12px;
}
.mode b {
  font-size: 16px;
}
#playtools button {
  font-size: 14px;
}
.scorecard > span {
  font-size: 14px;
}
.scorecard small,
.match small {
  font-size: 12px;
}
.meter-heading,
#hint {
  font-size: 12px;
}
.secondary-controls {
  font-size: 12px;
}
.top-actions button,
.top-actions select {
  font-size: 14px;
}
@media (max-width: 600px), (max-height: 560px) {
  .mode b {
    font-size: 14px;
  }
  .mode small {
    font-size: 11px;
  }
  .menu-options label,
  .menu-links button {
    font-size: 12px;
  }
  #playtools button {
    font-size: 11px;
  }
  .scorecard > span {
    font-size: 11px;
  }
  .scorecard small,
  .match small {
    font-size: 10px;
  }
  .meter-heading {
    font-size: 10px;
  }
  #hint {
    font-size: 10px;
  }
  footer {
    font-size: 11px;
  }
}
/* Model study and last stable landing. */
.model-link {
  width: 100%;
  margin-top: 5px;
  color: var(--gold);
  border-color: #bda16a55;
  background: #12313a99;
  font-size: 14px;
  padding: 10px;
}
.landing-card {
  position: absolute;
  left: 22px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 220px;
  min-height: 108px;
  padding: 5px 12px 5px 0;
  text-align: left;
  background: #0b2534ed;
  border: 1px solid #d8ba7755;
  backdrop-filter: blur(10px);
  border-radius: 12px;
}
.landing-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.landing-card span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.landing-card small {
  font-size: 12px;
  color: #b2c6cc;
}
.landing-card strong {
  font-size: 21px;
  color: #f2d394;
}
.landing-card em {
  font-size: 11px;
  color: #93b4bf;
  font-style: normal;
}
.photo-mode .landing-card {
  display: none !important;
}
.model-stage {
  height: 300px;
  border: 1px solid #789ba33b;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse, #204a55, #102b38);
}
.model-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.model-stage canvas:active {
  cursor: grabbing;
}
.model-stage img {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  margin: auto;
}
.model-help {
  font-size: 13px !important;
  margin: 10px 0 !important;
  color: #b5cad0 !important;
}
.pose-buttons,
.material-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pose-buttons button,
.material-buttons button {
  font-size: 14px;
  padding: 8px 12px;
  margin: 0;
}
.pose-buttons button[aria-pressed="true"],
.material-buttons button[aria-pressed="true"] {
  color: #f1d699;
  border-color: #d8b871;
  background: #a5813033;
}
.material-buttons button[data-style="gold"] {
  border-bottom: 3px solid #dbad55;
}
.material-buttons button[data-style="turquoise"] {
  border-bottom: 3px solid #32b2bb;
}
.material-buttons button[data-style="ivory"] {
  border-bottom: 3px solid #eee0c6;
}
.model-download {
  display: inline-block;
  color: #f0d08b;
  font-size: 14px;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .landing-card {
    left: 12px;
    bottom: 210px;
    width: 174px;
    min-height: 76px;
  }
  .landing-card img {
    width: 76px;
    height: 76px;
  }
  .landing-card strong {
    font-size: 18px;
  }
  .landing-card small {
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .landing-card {
    bottom: 218px;
    width: 150px;
  }
  .landing-card img {
    width: 60px;
    height: 66px;
  }
  .landing-card strong {
    font-size: 16px;
  }
  .landing-card small {
    font-size: 10px;
  }
  .model-stage {
    height: 260px;
  }
  .pose-buttons button,
  .material-buttons button {
    font-size: 12px;
    padding: 7px 9px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .landing-card {
    left: 12px;
    bottom: 12px;
    width: 155px;
    min-height: 75px;
  }
  .landing-card img {
    width: 67px;
    height: 70px;
  }
  .landing-card strong {
    font-size: 16px;
  }
  .model-stage {
    height: 225px;
  }
}
.village-links{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.65rem}.village-links button{border-color:#b99759;background:#143944;font-size:.95rem;min-height:46px}.yurt-stage{height:min(52vh,430px)}.music-upload{display:flex;flex-direction:column;gap:.8rem;padding:1rem;border:1px dashed #b99759;border-radius:12px;font-size:1rem}.music-upload input{max-width:100%;font-size:1rem}.song-list{display:grid;gap:.55rem;margin-top:1rem}.song-row{display:flex;gap:.4rem}.song-row>button:first-child{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}.song-row button[aria-pressed=true]{background:#b99759;color:#102b38;border-color:#efd392}.song-row>button{font-size:.9rem;min-height:44px}#music-status{font-size:.9rem;color:#d6c49f}@media(max-width:430px){.village-links{grid-template-columns:1fr}.yurt-stage{height:40vh}}
.support-copy{font-size:1rem;line-height:1.65}.support-copy li{margin:.6rem 0}.support-banks{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.2rem}.support-bank{padding:1rem;border:1px solid #b99759;border-radius:14px;background:#143440}.support-bank h3{margin:0 0 .75rem;color:#efd392}.support-bank input{width:100%;box-sizing:border-box;font-size:1rem;padding:.65rem .3rem;user-select:text}.support-bank button{width:100%;margin-top:.65rem;min-height:44px}#support-status{min-height:1.5em}@media(max-width:540px){.support-banks{grid-template-columns:1fr}}

#credits { display:block; white-space:normal; overflow-wrap:anywhere; font-size:13px; line-height:1.65; font-weight:600; color:#c5d2d5; letter-spacing:0; margin-top:1.25rem; padding-top:1rem; border-top:1px solid #44606a; }
