@charset "UTF-8";
:root {
  font-family: "Malgun Gothic", system-ui, sans-serif;
  color: #e9efe5;
  background: #a6c9c6;
  font-synthesis: none;
  --ink: #172b2a;
  --panel: #183331ed;
  --line: #55706a;
  --accent: #edbc60;
  --muted: #b6c9bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  touch-action: none;
  min-height: 44px;
  border: 1px solid #81988b;
  background: #2b4842;
  color: #eef4e8;
  padding: 10px 16px;
  border-radius: 3px;
  font-weight: 700;
  box-shadow: 0 3px 0 #102c27;
}
button:hover {
  filter: brightness(1.12);
}
button:active {
  box-shadow: 0 1px 0 #102c27;
  filter: brightness(0.94);
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ffe1a2;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
#mast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right)) 10px
    max(20px, env(safe-area-inset-left));
  pointer-events: none;
  background: linear-gradient(#15302ba8, transparent);
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  font-size: 42px;
  color: #f4cb7f;
  text-shadow: 2px 3px #163e34;
}
.brand h1 {
  font-size: 23px;
  letter-spacing: -1px;
  margin: 0;
  text-shadow: 0 2px #244b40;
}
#profile-level {
  font-size: 11px;
  letter-spacing: 2px;
  color: #f3d39b;
}
.utilities {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.utilities button {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 10px;
}
.utilities span {
  font-size: 11px;
  color: #eef2db;
}
.panel {
  background: var(--panel);
  border: 1px solid #8ba18a;
  border-top: 3px solid #c3d0a4;
  box-shadow: 0 12px 35px #102d3044;
  padding: 20px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.garage {
  position: fixed;
  inset: 98px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.garage > .panel {
  pointer-events: auto;
  overflow: auto;
  max-height: 100%;
  scrollbar-width: thin;
}
.roster {
  width: 250px;
  align-self: flex-start;
}
.fitting {
  width: 320px;
  align-self: flex-end;
}
h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
h2 span,
h3 span {
  float: right;
  color: var(--accent);
  font-size: 13px;
}
h3 {
  font-size: 14px;
  margin: 20px 0 10px;
}
.dino-list {
  display: grid;
  gap: 7px;
}
.dino-card {
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border-color: #4a6d61;
  background: #24443c;
  box-shadow: none;
  padding: 10px 12px;
  min-height: 57px;
}
.dino-card.selected {
  background: #c4d4a5;
  color: #193d30;
  border-color: #e4e7bf;
  box-shadow: inset 4px 0 #edbc60;
}
.dino-card strong {
  font-size: 13px;
}
.dino-card small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 4px;
}
.dino-card .lock {
  font-size: 10px;
  white-space: nowrap;
  align-self: center;
  color: #e6bd76;
}
.dino-card.selected .lock {
  color: #77501a;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
}
.traits {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.stats {
  display: flex;
  gap: 8px;
}
.stat {
  flex: 1;
  border-left: 2px solid #638575;
  padding-left: 10px;
  font-size: 10px;
  color: var(--muted);
}
.stat strong {
  display: block;
  color: #f3efd6;
  font-size: 19px;
  margin-top: 4px;
}
.skill-info {
  margin-top: 14px;
  color: #cadac6;
  font-size: 11px;
  line-height: 1.7;
}
.slot {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 6px;
  align-items: center;
  margin: 10px 0;
}
.slot label {
  font-size: 12px;
  font-weight: bold;
}
.slot select {
  background: #122d28;
  color: #f3eed8;
  padding: 10px 5px;
  border: 1px solid #547765;
  border-radius: 2px;
  width: 100%;
  min-height: 44px;
}
.slot small {
  grid-column: 2;
  font-size: 10px;
  color: var(--muted);
}
.changes {
  font-size: 11px;
  min-height: 20px;
  margin-bottom: 10px;
  color: #edcb83;
}
.wide {
  width: 100%;
}
.primary {
  background: #edbc60;
  color: #263c30;
  border-color: #ffe1a0;
  box-shadow: 0 3px 0 #9c7439;
}
.secondary {
  background: #31564a;
}
.launch {
  display: grid;
  gap: 10px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #536e5c;
}
.launch button {
  width: 100%;
}
#join-form label {
  font-size: 10px;
  color: var(--muted);
}
.join-row {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}
.join-row input {
  min-width: 0;
  width: 100%;
  background: #142d27;
  border: 1px solid #608270;
  color: #f6e6bb;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px;
}
.join-row button {
  width: auto;
  white-space: nowrap;
}
.lobby,
.result {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, calc(100% - 28px));
  z-index: 4;
  max-height: 80dvh;
  overflow: auto;
}
.room-code {
  font: 700 30px monospace;
  letter-spacing: 8px;
  color: #f1cd89;
  margin-bottom: 20px;
}
.room-player {
  padding: 12px 0;
  border-top: 1px solid #526c60;
  font-size: 13px;
  line-height: 1.7;
}
.room-player small {
  color: #c0cfba;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.lobby .row {
  margin-top: 20px;
}
.lobby button {
  flex: 1;
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.status {
  position: absolute;
  top: 98px;
  left: max(20px, env(safe-area-inset-left));
  width: min(290px, 55vw);
  padding: 12px;
  background: #17372bcc;
  border-left: 3px solid #c6dca3;
  border-radius: 2px;
}
.status strong {
  font-size: 16px;
}
.status span {
  font-size: 11px;
  color: #cfdfc2;
}
progress {
  width: 100%;
  height: 10px;
  display: block;
  border: 0;
  border-radius: 0;
  background: #355445;
  accent-color: #9ed17c;
  margin-top: 7px;
}
progress::-webkit-progress-bar {
  background: #355445;
}
progress::-webkit-progress-value {
  background: #a0d580;
}
.fuel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.fuel progress {
  accent-color: #7ddbe3;
  height: 5px;
  margin: 0;
}
.fuel progress::-webkit-progress-value {
  background: #7ddbe3;
}
#weapon-status {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 8px;
  color: #e0e5cb;
}
#battle-clock {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  background: #17372bcc;
  padding: 9px 18px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
#targets {
  position: absolute;
  top: 100px;
  right: 20px;
  width: 180px;
  font-size: 11px;
  color: #ffeed2;
}
.target {
  padding: 8px;
  background: #452e29bc;
  margin-bottom: 5px;
}
#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #fff9dc;
  text-shadow: 0 1px 3px #163e34;
}
#summon {
  position: absolute;
  left: 50%;
  top: 37%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  letter-spacing: 5px;
  color: #f9ffe3;
}
#actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 max(25px, env(safe-area-inset-right)) 0
    max(25px, env(safe-area-inset-left));
  pointer-events: none;
}
#stick {
  width: 120px;
  height: 120px;
  border: 2px solid #e2ebcf88;
  border-radius: 50%;
  background: #1d45334a;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: none;
  position: relative;
}
#stick-thumb {
  width: 50px;
  height: 50px;
  background: #d0deba99;
  border: 1px solid #e9f1d4;
  border-radius: 50%;
  pointer-events: none;
}
#stick small {
  position: absolute;
  bottom: 8px;
  font-size: 10px;
  pointer-events: none;
}
.action-buttons {
  display: flex;
  align-items: end;
  gap: 12px;
  pointer-events: auto;
}
.action-buttons button {
  width: 72px;
  height: 72px;
  background: #183c35d9;
  border: 2px solid #b1c6a1;
  box-shadow: 0 5px #132e29;
  border-radius: 8px;
  padding: 5px;
  font-size: 14px;
  user-select: none;
}
.action-buttons kbd {
  display: block;
  font: 9px system-ui;
  color: #b8c9b0;
  margin-top: 5px;
}
.action-buttons .attack {
  width: 88px;
  height: 88px;
  background: #dfad53;
  color: #243e31;
  border-color: #ffe1a2;
}
#hud .exit {
  position: absolute;
  bottom: 170px;
  right: 25px;
  pointer-events: auto;
  background: #1a3730c9;
  font-size: 11px;
  min-height: 36px;
}
#notice {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #18372ff0;
  color: #ffdc9b;
  padding: 9px 16px;
  max-width: 90vw;
  font-size: 12px;
  pointer-events: none;
  display: none;
}
.result h2 {
  font-size: 30px;
  color: #f1ce8b;
}
.result p {
  font-size: 13px;
  color: #dae4c9;
  line-height: 1.8;
}
.result .primary {
  margin-top: 20px;
}
.fatal {
  position: fixed;
  inset: 30%;
  z-index: 20;
}
.playing #mast .brand h1 {
  font-size: 17px;
}
.playing #mast .brand-mark {
  font-size: 30px;
}
.playing #mast {
  padding-top: 12px;
}
.playing .utilities span {
  display: none;
}
@media (pointer: fine) {
  #stick {
    opacity: 0.25;
  }
  .action-buttons {
    opacity: 0.8;
  }
}
@media (max-width: 850px) {
  .garage {
    inset: 90px 14px 14px;
    gap: 12px;
  }
  .roster {
    width: 200px;
    padding: 12px;
  }
  .fitting {
    width: 270px;
    padding: 14px;
  }
  .brand h1 {
    font-size: 19px;
  }
  .utilities span {
    display: none;
  }
  #targets {
    top: 175px;
    width: 140px;
  }
  #battle-clock {
    left: auto;
    right: 20px;
    transform: none;
  }
  .dino-card {
    padding: 8px;
    min-height: 50px;
  }
  .dino-card strong {
    font-size: 11px;
  }
}
@media (max-width: 560px) {
  #mast {
    padding: 12px;
    gap: 8px;
  }
  .brand {
    gap: 5px;
  }
  .brand-mark {
    font-size: 30px;
  }
  .brand h1 {
    font-size: 17px;
  }
  .utilities {
    gap: 5px;
  }
  .utilities button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .garage {
    inset: 75px 10px 10px;
    display: block;
    overflow: auto;
    pointer-events: auto;
  }
  .garage > .panel {
    max-height: none;
    overflow: visible;
  }
  .roster {
    width: 100%;
    background: #183331cf;
    padding: 10px;
  }
  .roster h2 {
    font-size: 14px;
    margin: 0 0 9px;
  }
  .dino-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .dino-card {
    min-height: 54px;
    padding: 6px;
    display: block;
  }
  .dino-card strong {
    font-size: 10px;
  }
  .dino-card small {
    font-size: 8px;
  }
  .dino-card .lock {
    font-size: 8px;
  }
  .fitting {
    width: 100%;
    margin-top: 240px;
    padding: 15px;
    background: #183331f2;
  }
  .fitting h2 {
    font-size: 23px;
  }
  .stats {
    max-width: 330px;
  }
  .launch {
    grid-template-columns: 1fr 1fr;
  }
  #join-form {
    grid-column: 1/-1;
  }
  .status {
    top: 65px;
    left: 10px;
    width: 46vw;
    padding: 8px;
  }
  .status strong {
    font-size: 12px;
  }
  #battle-clock {
    top: 65px;
    right: 10px;
    font-size: 14px;
    padding: 7px 12px;
  }
  #targets {
    top: 112px;
    right: 10px;
    width: 120px;
    font-size: 9px;
  }
  #actions {
    padding: 0 12px;
    bottom: max(22px, env(safe-area-inset-bottom));
  }
  #stick {
    width: 96px;
    height: 96px;
  }
  .action-buttons {
    gap: 7px;
  }
  .action-buttons button {
    width: 57px;
    height: 57px;
    font-size: 12px;
  }
  .action-buttons .attack {
    width: 67px;
    height: 67px;
  }
  .action-buttons kbd {
    display: none;
  }
  #hud .exit {
    right: 12px;
    bottom: 138px;
  }
  .fuel span {
    font-size: 9px;
  }
  #weapon-status {
    font-size: 9px;
  }
  .playing #mast .brand h1 {
    font-size: 14px;
  }
  .playing #mast .brand-mark {
    display: none;
  }
  #profile-level {
    font-size: 9px;
  }
  .lobby,
  .result {
    top: 52%;
  }
}
@media (max-height: 600px) and (min-width: 561px) {
  #mast {
    padding-top: 8px;
  }
  .garage {
    inset: 65px 12px 10px;
  }
  .roster {
    width: 190px;
  }
  .dino-list {
    gap: 4px;
  }
  .dino-card {
    min-height: 43px;
    padding: 6px;
  }
  .fitting {
    align-self: stretch;
  }
  #hud .status,
  #battle-clock,
  #targets {
    top: 65px;
  }
  .status {
    width: 210px;
  }
  .action-buttons button {
    width: 56px;
    height: 56px;
  }
  .action-buttons .attack {
    width: 66px;
    height: 66px;
  }
  #stick {
    width: 90px;
    height: 90px;
  }
  #hud .exit {
    bottom: 115px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.fuel > span {
  white-space: nowrap;
  flex: 0 0 auto;
}
