/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */
@layer properties;
:root,
:host {
  --font-sans:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  --spacing: 0.25rem;
  --text-xs: 0.75rem;
  --text-xs--line-height: calc(1 / 0.75);
  --text-sm: 0.875rem;
  --text-sm--line-height: calc(1.25 / 0.875);
  --text-lg: 1.125rem;
  --text-lg--line-height: calc(1.75 / 1.125);
  --text-2xl: 1.5rem;
  --text-2xl--line-height: calc(2 / 1.5);
  --text-3xl: 1.875rem;
  --text-3xl--line-height: calc(2.25 / 1.875);
  --text-4xl: 2.25rem;
  --text-4xl--line-height: calc(2.5 / 2.25);
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --tracking-tight: -0.025em;
  --leading-relaxed: 1.625;
  --default-font-family: var(--font-sans);
  --default-mono-font-family: var(--font-mono);
}
*,
::after,
::before,
::backdrop,
::file-selector-button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(
    --default-font-family,
    ui-sans-serif,
    system-ui,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji"
  );
  font-feature-settings: var(--default-font-feature-settings, normal);
  font-variation-settings: var(--default-font-variation-settings, normal);
  -webkit-tap-highlight-color: transparent;
}
hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  -webkit-text-decoration: inherit;
  text-decoration: inherit;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
samp,
pre {
  font-family: var(
    --default-mono-font-family,
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace
  );
  font-feature-settings: var(--default-mono-font-feature-settings, normal);
  font-variation-settings: var(--default-mono-font-variation-settings, normal);
  font-size: 1em;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}
:-moz-focusring {
  outline: auto;
}
progress {
  vertical-align: baseline;
}
summary {
  display: list-item;
}
ol,
ul,
menu {
  list-style: none;
}
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}
img,
video {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
optgroup,
textarea,
::file-selector-button {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}
:where(select:is([multiple], [size])) optgroup {
  font-weight: bolder;
}
:where(select:is([multiple], [size])) optgroup option {
  padding-inline-start: 20px;
}
::file-selector-button {
  margin-inline-end: 4px;
}
::placeholder {
  opacity: 1;
}
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
  ::placeholder {
    color: currentcolor;
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }
}
textarea {
  resize: vertical;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-date-and-time-value {
  min-height: 1lh;
  text-align: inherit;
}
::-webkit-datetime-edit {
  display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-block: 0;
}
:-moz-ui-invalid {
  box-shadow: none;
}
button,
input:where([type="button"], [type="reset"], [type="submit"]),
::file-selector-button {
  appearance: button;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
[hidden]:where(:not([hidden="until-found"])) {
  display: none !important;
}
.m-0 {
  margin: calc(var(--spacing) * 0);
}
.mx-1 {
  margin-inline: calc(var(--spacing) * 1);
}
.my-4 {
  margin-block: calc(var(--spacing) * 4);
}
.mt-0 {
  margin-top: calc(var(--spacing) * 0);
}
.mt-1 {
  margin-top: calc(var(--spacing) * 1);
}
.mt-2 {
  margin-top: calc(var(--spacing) * 2);
}
.mt-3 {
  margin-top: calc(var(--spacing) * 3);
}
.mt-4 {
  margin-top: calc(var(--spacing) * 4);
}
.mt-5 {
  margin-top: calc(var(--spacing) * 5);
}
.mt-7 {
  margin-top: calc(var(--spacing) * 7);
}
.mb-0 {
  margin-bottom: calc(var(--spacing) * 0);
}
.mb-2 {
  margin-bottom: calc(var(--spacing) * 2);
}
.mb-3 {
  margin-bottom: calc(var(--spacing) * 3);
}
.mb-5 {
  margin-bottom: calc(var(--spacing) * 5);
}
.flex {
  display: flex;
}
.h-5 {
  height: calc(var(--spacing) * 5);
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.cursor-pointer {
  cursor: pointer;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: calc(var(--spacing) * 1);
}
.gap-2 {
  gap: calc(var(--spacing) * 2);
}
.gap-3 {
  gap: calc(var(--spacing) * 3);
}
.gap-4 {
  gap: calc(var(--spacing) * 4);
}
.p-4 {
  padding: calc(var(--spacing) * 4);
}
.px-3 {
  padding-inline: calc(var(--spacing) * 3);
}
.px-4 {
  padding-inline: calc(var(--spacing) * 4);
}
.py-3 {
  padding-block: calc(var(--spacing) * 3);
}
.pt-4 {
  padding-top: calc(var(--spacing) * 4);
}
.pt-6 {
  padding-top: calc(var(--spacing) * 6);
}
.pb-10 {
  padding-bottom: calc(var(--spacing) * 10);
}
.pl-2 {
  padding-left: calc(var(--spacing) * 2);
}
.pl-5 {
  padding-left: calc(var(--spacing) * 5);
}
.text-2xl {
  font-size: var(--text-2xl);
  line-height: var(--tw-leading, var(--text-2xl--line-height));
}
.text-4xl {
  font-size: var(--text-4xl);
  line-height: var(--tw-leading, var(--text-4xl--line-height));
}
.text-lg {
  font-size: var(--text-lg);
  line-height: var(--tw-leading, var(--text-lg--line-height));
}
.text-sm {
  font-size: var(--text-sm);
  line-height: var(--tw-leading, var(--text-sm--line-height));
}
.text-xs {
  font-size: var(--text-xs);
  line-height: var(--tw-leading, var(--text-xs--line-height));
}
.leading-relaxed {
  --tw-leading: var(--leading-relaxed);
  line-height: var(--leading-relaxed);
}
.font-bold {
  --tw-font-weight: var(--font-weight-bold);
  font-weight: var(--font-weight-bold);
}
.font-semibold {
  --tw-font-weight: var(--font-weight-semibold);
  font-weight: var(--font-weight-semibold);
}
.tracking-tight {
  --tw-tracking: var(--tracking-tight);
  letter-spacing: var(--tracking-tight);
}
.underline {
  text-decoration-line: underline;
}
.sm\:mb-6 {
  @media (width >= 40rem) {
    margin-bottom: calc(var(--spacing) * 6);
  }
}
.sm\:p-5 {
  @media (width >= 40rem) {
    padding: calc(var(--spacing) * 5);
  }
}
.sm\:px-6 {
  @media (width >= 40rem) {
    padding-inline: calc(var(--spacing) * 6);
  }
}
.sm\:pt-8 {
  @media (width >= 40rem) {
    padding-top: calc(var(--spacing) * 8);
  }
}
.sm\:text-3xl {
  @media (width >= 40rem) {
    font-size: var(--text-3xl);
    line-height: var(--tw-leading, var(--text-3xl--line-height));
  }
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or
    ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *,
    ::before,
    ::after,
    ::backdrop {
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
    }
  }
}

:root {
  color-scheme: light;
  --ink: #202521;
  --line: #e4e7e3;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fafaf9;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible,
[data-stone-id]:focus-visible {
  outline: 3px solid #badcf3;
  outline-offset: 3px;
}
.shell {
  max-width: 1250px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 750;
  color: #89908b;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(27, 41, 35, 0.025);
}
.saved-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}
.saved-accordion > summary::-webkit-details-marker {
  display: none;
}
.saved-accordion > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #767e79;
  border-bottom: 2px solid #767e79;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  margin: -4px 3px 0 0;
  flex: none;
}
.saved-accordion[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}
.saved-accordion > summary:focus-visible {
  outline: 2px solid #245b83;
  outline-offset: 5px;
  border-radius: 4px;
}
.section-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: #767e79;
  font-weight: 750;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #dce1db;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  color: #343c37;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.btn:hover:not(:disabled) {
  background: #f6f7f4;
  border-color: #c6ccc6;
}
.btn-dark {
  background: #245b83;
  color: #fff;
  border-color: #245b83;
}
.btn-dark:hover:not(:disabled) {
  background: #1a4567;
  border-color: #1a4567;
}
::selection {
  background: #d7ebfa;
  color: #183750;
}
::-moz-selection {
  background: #d7ebfa;
  color: #183750;
}
.btn-minimal {
  background: transparent;
  border-color: transparent;
  color: #69716d;
}
.btn-minimal:hover:not(:disabled) {
  background: #f2f4f1;
}
.btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  flex: none;
}
.tool-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 9px;
}
.field {
  border: 1px solid #dfe3de;
  background: #fff;
  border-radius: 9px;
  min-height: 42px;
  font-size: 13px;
  width: 100%;
  padding: 9px 12px;
  color: var(--ink);
}
.field::placeholder {
  color: #a4aba5;
}
.collision-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid #e1e6e9;
  background: #f5f7f8;
  border-radius: 11px;
}
.collision-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.collision-options label span {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 3px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #69737b;
  font-size: 12px;
  font-weight: 650;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.collision-options label input:checked + span {
  background: white;
  border-color: #bfddf0;
  color: #245b83;
  box-shadow: 0 1px 5px #b8d7ed40;
}
.collision-options label input:focus-visible + span {
  outline: 3px solid #badcf3;
  outline-offset: 2px;
}
#collisionDescription {
  min-height: 32px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (min-width: 990px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 322px;
    gap: 24px;
  }
}
.board-card {
  overflow: hidden;
}
.board-scenario-name {
  display: inline-block;
  max-width: min(55vw, 330px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.board-stage {
  background: #f1f3f1;
  padding: 14px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.board-stage svg {
  display: block;
  width: min(100%, 540px);
  height: auto;
  max-height: none;
  min-height: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 5px 20px #52645b18;
  border-radius: 5px;
  background: #fefefe;
}
@media (max-width: 640px) {
  .board-stage {
    padding: 8px;
    min-height: 0;
  }
  .board-stage svg {
    max-height: none;
    width: 100%;
  }
  .board-toolbar {
    padding: 7px 8px;
  }
  .btn {
    font-size: 12px;
  }
}
.board-stage:fullscreen {
  background: #f1f3f1;
  padding: 12px;
}
.board-stage:fullscreen svg {
  width: auto;
  max-height: 95dvh;
  max-width: 100%;
}
.stone {
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.stone:focus:not(:focus-visible) {
  outline: none;
}
.stone.dragging {
  cursor: grabbing;
}
.stone.out-of-play {
  cursor: grab;
}
.stone [data-hit] {
  fill: transparent;
  pointer-events: all;
}
.stone .stone-ring {
  opacity: 0;
  pointer-events: none;
}
.stone.selected .stone-ring,
.stone:focus-visible .stone-ring {
  opacity: 1;
}
.stone:hover .stone-ring {
  opacity: 0.5;
}
.board-svg text {
  pointer-events: none;
}
.reserve-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.4px;
}
.team-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid #e1e5e0;
  border-radius: 10px;
  text-align: left;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.team-btn:hover {
  background: #f9faf8;
}
.team-btn[aria-pressed="true"] {
  border-color: #b8d7ed;
  box-shadow: 0 0 0 2px #b8d7ed44;
  background: #eff7ff;
}
.hammer-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.hammer-team-choice {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #747c77;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.hammer-team-choice:hover {
  background: #eff7ff;
}
.hammer-team-choice[aria-pressed="true"] {
  background: #eff7ff;
  border-color: #b8d7ed;
  color: #245b83;
}
.hammer-team-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hammer-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
  color: #a6b1ba;
  opacity: 0.46;
}
.hammer-team-choice[aria-pressed="true"] .hammer-icon {
  color: #245b83;
  opacity: 1;
}
.team-token {
  width: 28px;
  height: 28px;
  border: 4px solid #e7e8e5;
  border-radius: 50%;
  box-shadow:
    0 1px 4px #0002,
    inset 0 1px 2px #0002;
  flex-shrink: 0;
}
.field-label {
  font-size: 12px;
  font-weight: 650;
  color: #737b75;
  display: block;
  margin-bottom: 8px;
}
.divider {
  border-top: 1px solid var(--line);
}
.toggle {
  position: relative;
  width: 38px;
  height: 23px;
  background: #d9ded8;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.15s;
}
.toggle:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
  transition: transform 0.15s;
}
input:checked + .toggle {
  background: #245b83;
}
input:checked + .toggle:after {
  transform: translateX(15px);
}
.sr-only-custom {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid #e9ece8;
  border-radius: 8px;
  padding: 6px 7px;
}
.save-row .load-name {
  font-weight: 650;
  font-size: 12px;
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
  text-align: left;
  color: #323c35;
  padding: 5px;
}
.save-row .load-name:hover {
  text-decoration: underline;
}
.save-row .delete-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9a615f;
  font-size: 17px;
  padding: 4px 9px;
}
.save-row .delete-btn:hover {
  background: #fff1f1;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
#ferbeyLayer text {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 0.25px;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
  background: #26342d;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 9px 30px #0002;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  max-width: calc(100vw - 30px);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#helpOpen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#helpOpen .help-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  line-height: 1;
}
#helpOpen .help-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  overflow: visible;
  flex: none;
}
#helpDialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(500px, calc(100vw - 28px));
  max-width: min(500px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #dce6ef;
  border-radius: 15px;
  box-shadow: 0 35px 110px #14326135;
  color: #263849;
  padding: 24px;
}
#helpDialog:not([open]) {
  display: none;
}
#helpDialog::backdrop {
  background: rgba(20, 50, 97, 0.54);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 640px) {
  #helpDialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
