*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.game-shell {
  --page: #21180f;
  --surface: #34271c;
  --surface-raised: #443426;
  --surface-inset: #291e15;
  --border: #795d3e;
  --text: #fff2df;
  --muted: #d2bea1;
  --accent: #ffd17a;
  --accent-ink: #302009;
  --selection: #ffcf67;
  --selected-bg: #594326;
  --selection-glow: #ffcf6726;
  --hover: #51402e;
  --danger: #ffb5a6;
  --role-werewolf: #ffaaa5;
  --role-doctor: #79e3c2;
  --role-seer: #d4b2ff;
  --role-villager: #ffe08a;
  --glow: #b27b252b;
  display: flex;
  height: 100vh;
  width: 100%;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  background-color: var(--page);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  height: 100dvh;
  padding: clamp(0.75rem, 1.5vw, 1.5rem);
  background-image: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 65%);
  color-scheme: dark;
}

.game-shell[data-theme="night"] {
  --page: #14111f;
  --surface: #282137;
  --surface-raised: #372e49;
  --surface-inset: #1c1729;
  --border: #6b5d83;
  --text: #f3effa;
  --muted: #c6bbd9;
  --accent: #e3def1;
  --accent-ink: #261f37;
  --selection: #c9b6ff;
  --selected-bg: #493b66;
  --selection-glow: #c9b6ff2b;
  --hover: #443956;
  --danger: #ffc0c6;
  --role-werewolf: #ffb3b3;
  --role-doctor: #8aebce;
  --role-seer: #d9bdff;
  --role-villager: #ffe69e;
  --glow: #bba8ff24;
}

.game-shell button {
  cursor: pointer;
}

.game-shell button:disabled {
  cursor: default;
}

.game-shell :where(button, input, [tabindex]):focus-visible {
  outline-style: solid;
  outline-width: 3px;
  outline-offset: 3px;
  outline-color: var(--selection);
}

.game-header,
    .game-board {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 104rem;
}

.game-header,
    .game-panel {
  border-radius: 1.125rem;
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--surface);
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.game-header {
  display: grid;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 2fr) minmax(0, 1fr);
}

.game-brand {
  display: flex;
  min-width: 0px;
  align-items: center;
  gap: 0.75rem;
}

.phase-icon {
  display: grid;
  height: 2.875rem;
  width: 2.875rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--surface-raised);
  font-size: 1.625rem;
  color: var(--accent);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.phase-status {
  min-width: 0px;
  text-align: center;
}

.phase-heading {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.phase-clock {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
  font-size: clamp(2.5rem,4vw,3.5rem);
  font-weight: 800;
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.phase-clock:not([role="timer"]) {
  font-size: clamp(1.35rem,2.4vw,2rem);
  line-height: 1.25;
}

.phase-clock[data-urgent="true"] {
  color: var(--danger);
}

.phase-hint {
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
  text-wrap: pretty;
  font-size: 13px;
  color: var(--muted);
}

.phase-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.phase-meta span:first-child {
  font-weight: 700;
  color: var(--text);
}

.game-board {
  display: grid;
  min-height: 0px;
  flex: 1 1 0%;
  align-items: stretch;
  gap: 1rem;
  grid-template-columns: minmax(19rem, 1fr) minmax(20rem, 1.15fr) minmax(21rem, 1.05fr);
}

.game-panel,
    .chat-slot {
  min-height: 0px;
  min-width: 0px;
}

.players-panel,
    .actions-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.panel-heading {
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  color: var(--muted);
}

.panel-description {
  text-wrap: pretty;
  font-size: 13px;
  line-height: 1.625;
  color: var(--muted);
}

.player-row,
    .target-option {
  display: flex;
  min-height: 4.25rem;
  width: 100%;
  min-width: 0px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border-width: 2px;
  border-color: transparent;
  background-color: var(--surface-raised);
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-align: left;
  transition-property: border-color,background-color,box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.player-row:not(:disabled):hover,
    .target-option:not(:disabled):hover {
  border-color: var(--border);
  background-color: var(--hover);
}

.player-row[data-selected="true"],
    .target-option[data-selected="true"],
    .player-row[data-selected="true"]:hover,
    .target-option[data-selected="true"]:hover {
  border-color: var(--selection);
  background-color: var(--selected-bg);
  box-shadow: 0 0 0 1px var(--selection), 0 0 20px var(--selection-glow);
}

.player-row[data-alive="false"]:not([data-selected="true"]) {
  opacity: 0.6;
}

.player-identity {
  min-width: 0px;
  flex: 1 1 0%;
  overflow-wrap: anywhere;
}

.player-name {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
}

.player-row[data-alive="false"] .player-name {
  text-decoration-line: line-through;
}

.player-meta {
  margin-top: 0.125rem;
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted);
}

.you-badge {
  margin-left: 0.375rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.selection-badge {
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 0.5rem;
  background-color: var(--selection);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.375;
  color: var(--accent-ink);
}

.lobby-controls {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

.primary-button,
    .secondary-button,
    .copy-button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: transparent;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-weight: 750;
  transition-property: background-color,opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.primary-button {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.primary-button:not(:disabled):hover {
  --tw-brightness: brightness(1.1);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.secondary-button,
    .copy-button {
  border-color: var(--border);
  background-color: var(--surface-raised);
}

.secondary-button:not(:disabled):hover,
    .copy-button:not(:disabled):hover {
  background-color: var(--hover);
}

.game-shell .primary-button:disabled,
    .game-shell .secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.invite-panel {
  margin-top: 0.5rem;
  border-top-width: 1px;
  border-color: var(--border);
  padding-top: 1rem;
}

.copy-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
  row-gap: 0.375rem;
}

.copy-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 650;
}

.copy-value {
  min-width: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
}

.copy-button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 13px;
}

.actions-panel {
  gap: 1.5rem;
}

.panel-section {
  display: flex;
  min-width: 0px;
  flex-direction: column;
  gap: 0.75rem;
}

.info-card {
  border-radius: 0.875rem;
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--surface-raised);
  padding: 1.125rem;
  overflow-wrap: anywhere;
}

.role-card {
  border-top-width: 3px;
  border-top-color: var(--accent);
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 750;
  color: var(--text);
}

.role-card[data-role="werewolf"] {
  --role-color: var(--role-werewolf);
}

.role-card[data-role="doctor"] {
  --role-color: var(--role-doctor);
}

.role-card[data-role="seer"] {
  --role-color: var(--role-seer);
}

.role-card[data-role="villager"] {
  --role-color: var(--role-villager);
}

.role-card[data-role] {
  border-top-color: var(--role-color);
}

.role-card[data-role] .card-title {
  color: var(--role-color);
}

.card-copy,
    .empty-copy {
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.625;
  color: var(--muted);
}

.card-copy + .card-copy {
  margin-top: 0.75rem;
}

.privacy-badge {
  margin-bottom: 0.75rem;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--accent);
}

.target-list {
  margin-top: 0.875rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.target-option {
  min-height: 3.25rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--surface-inset);
  padding: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}

.target-option .selection-badge {
  white-space: normal;
  font-size: 10px;
}

.target-option:disabled:not([data-selected="true"]) {
  opacity: 0.65;
}

.feedback {
  margin-top: 0.875rem;
  border-radius: 0.375rem;
  border-left-width: 3px;
  border-color: var(--border);
  background-color: var(--surface-inset);
  padding: 0.75rem;
  font-size: 13px;
  line-height: 1.625;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.feedback-success {
  border-color: var(--selection);
  color: var(--text);
}

.feedback-error {
  border-color: var(--danger);
  color: var(--danger);
}

.discovery-list {
  display: flex;
  list-style-type: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0px;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.discovery-list li {
  border-bottom-width: 1px;
  border-color: var(--border);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.discovery-list li:last-child {
  border-width: 0px;
  padding-bottom: 0px;
}

.chat-slot {
  display: flex;
}

.chat-panel {
  display: flex;
  flex: 1 1 0%;
  flex-direction: column;
  overflow: hidden;
}

.chat-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
  border-bottom-width: 1px;
  border-color: var(--border);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
}

.chat-tab {
  min-height: 3rem;
  border-width: 0px;
  border-bottom-width: 3px;
  border-color: transparent;
  background-color: transparent;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--muted);
}

.chat-tab[data-active="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-tab:disabled:not([data-active="true"]) {
  opacity: 0.55;
}

.chat-transcript {
  display: flex;
  min-height: 0px;
  flex: 1 1 0%;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-message {
  min-width: 0px;
  max-width: 88%;
  align-self: flex-start;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.chat-message[data-own="true"] {
  align-self: flex-end;
}

.chat-author {
  margin-bottom: 0.25rem;
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted);
}

.chat-message[data-own="true"] .chat-author {
  text-align: right;
}

.chat-bubble {
  white-space: pre-wrap;
  border-radius: 0.875rem;
  border-bottom-left-radius: 0.25rem;
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--surface-raised);
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.chat-message[data-own="true"] .chat-bubble {
  border-bottom-left-radius: 0.875rem;
  border-bottom-right-radius: 0.25rem;
  border-color: transparent;
  background-color: var(--accent);
  color: var(--accent-ink);
}

.empty-state {
  display: flex;
  min-height: 12rem;
  flex: 1 1 0%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  text-wrap: pretty;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.empty-state p {
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.625;
}

.chat-sleeping {
  margin: 1.25rem;
  border-radius: 0.875rem;
  border-width: 1px;
  border-style: dashed;
  border-color: var(--border);
}

.chat-composer {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 0.625rem;
  border-top-width: 1px;
  border-color: var(--border);
  padding: 1rem;
}

.chat-input {
  min-height: 2.875rem;
  width: 100%;
  min-width: 0px;
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--surface-inset);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  color: var(--text);
}

.chat-input::-moz-placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.chat-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

.chat-input:disabled {
  opacity: 0.65;
}

.chat-panel > .feedback {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 1rem;
  margin-top: 0px;
}

@media (max-width: 1120px) {
  .game-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    min-height: 100dvh;
  }

  .game-board {
    flex: none;
    grid-template-columns: minmax(16rem,0.9fr) minmax(0,1.3fr);
  }

  .players-panel {
    max-height: 36rem;
  }

  .chat-slot {
    max-height: 42rem;
    min-height: 36rem;
  }

  .actions-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-start;
    overflow: visible;
  }

  .brand-name {
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  .game-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .game-brand {
    gap: 0.5rem;
  }

  .phase-icon {
    height: 2.375rem;
    width: 2.375rem;
    font-size: 1.375rem;
  }

  .phase-status {
    grid-column: 1 / -1;
    grid-row-start: 2;
    border-top-width: 1px;
    border-color: var(--border);
    padding-top: 0.875rem;
  }

  .phase-meta {
    grid-column-start: 2;
    grid-row-start: 1;
    font-size: 0.75rem;
    line-height: 1rem;
  }

  .phase-clock {
    font-size: 2.75rem;
  }

  .game-board {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .players-panel {
    max-height: 28rem;
  }

  .chat-slot {
    max-height: 36rem;
    min-height: 30rem;
  }

  .actions-panel {
    grid-column: auto;
    display: flex;
  }

  .player-row {
    min-height: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-shell *,
        .game-shell *::before,
        .game-shell *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.bottom-4 {
  bottom: 1rem;
}

.left-4 {
  left: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-9 {
  margin-bottom: 2.25rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.min-h-\[220px\] {
  min-height: 220px;
}

.min-h-screen {
  min-height: 100vh;
}

.w-\[min\(920px\2c 92vw\)\] {
  width: min(920px,92vw);
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.max-w-\[30ch\] {
  max-width: 30ch;
}

.max-w-\[46ch\] {
  max-width: 46ch;
}

.flex-1 {
  flex: 1 1 0%;
}

.cursor-pointer {
  cursor: pointer;
}

.resize {
  resize: both;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-5 {
  gap: 1.25rem;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded-\[14px\] {
  border-radius: 14px;
}

.rounded-\[20px\] {
  border-radius: 20px;
}

.border-0 {
  border-width: 0px;
}

.border-2 {
  border-width: 2px;
}

.border-\[\#c2410c\]\/30 {
  border-color: rgb(194 65 12 / 0.3);
}

.bg-\[\#c2410c\] {
  --tw-bg-opacity: 1;
  background-color: rgb(194 65 12 / var(--tw-bg-opacity, 1));
}

.bg-\[\#e8d09a\] {
  --tw-bg-opacity: 1;
  background-color: rgb(232 208 154 / var(--tw-bg-opacity, 1));
}

.bg-\[\#f3e2b8\] {
  --tw-bg-opacity: 1;
  background-color: rgb(243 226 184 / var(--tw-bg-opacity, 1));
}

.bg-\[\#fff7ea\] {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 234 / var(--tw-bg-opacity, 1));
}

.bg-neutral-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(38 38 38 / var(--tw-bg-opacity, 1));
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-\[22px\] {
  padding-left: 22px;
  padding-right: 22px;
}

.py-\[11px\] {
  padding-top: 11px;
  padding-bottom: 11px;
}

.text-left {
  text-align: left;
}

.font-sans {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-\[16px\] {
  font-size: 16px;
}

.text-\[18px\] {
  font-size: 18px;
}

.text-\[34px\] {
  font-size: 34px;
}

.text-\[clamp\(40px\2c 6vw\2c 72px\)\] {
  font-size: clamp(40px,6vw,72px);
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.leading-none {
  line-height: 1;
}

.tracking-\[-0\.03em\] {
  letter-spacing: -0.03em;
}

.text-\[\#3a2a14\] {
  --tw-text-opacity: 1;
  color: rgb(58 42 20 / var(--tw-text-opacity, 1));
}

.text-\[\#6f5a35\] {
  --tw-text-opacity: 1;
  color: rgb(111 90 53 / var(--tw-text-opacity, 1));
}

.text-\[\#d9534f\] {
  --tw-text-opacity: 1;
  color: rgb(217 83 79 / var(--tw-text-opacity, 1));
}

.text-\[\#f5eadb\] {
  --tw-text-opacity: 1;
  color: rgb(245 234 219 / var(--tw-text-opacity, 1));
}

.text-\[\#fff7ea\] {
  --tw-text-opacity: 1;
  color: rgb(255 247 234 / var(--tw-text-opacity, 1));
}

.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}

.placeholder-\[\#6f5a35\]::-moz-placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(111 90 53 / var(--tw-placeholder-opacity, 1));
}

.placeholder-\[\#6f5a35\]::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(111 90 53 / var(--tw-placeholder-opacity, 1));
}

.opacity-\[\.85\] {
  opacity: .85;
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-150 {
  transition-duration: 150ms;
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hover\:-translate-y-1:hover {
  --tw-translate-y: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .max-\[760px\]\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
