*, *::before, *::after { box-sizing: border-box; }

/* Small local fallback for structural utilities used by the original static markup. */
[hidden] { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden:not(.sm\:inline):not(.md\:inline) { display: none !important; }
@media (max-width: 639px) { .hidden.sm\:inline { display: none !important; } }
@media (max-width: 767px) { .hidden.md\:inline { display: none !important; } }
@media (min-width: 640px) { .sm\:inline, .hidden.sm\:inline { display: inline; } .sm\:hidden { display: none; } }
@media (min-width: 768px) { .md\:inline, .hidden.md\:inline { display: inline; } }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.rounded-full { border-radius: 999px; }
.underline { text-decoration: underline; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: .625rem; }
.shadow-xs, .shadow-sm { box-shadow: var(--shadow-card); }
.shadow-lg, .shadow-xl, .shadow-2xl { box-shadow: var(--shadow-raised); }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

button {
  border: 1px solid rgba(117, 84, 60, .2);
  border-radius: 12px;
  padding: .45rem .75rem;
  color: var(--cocoa-700);
  background: linear-gradient(180deg, #fffefa, #f4ebdc);
  font-weight: 600;
  transition: transform var(--motion-base), box-shadow var(--motion-base), background var(--motion-base);
}
button:hover:not(:disabled) { box-shadow: 0 5px 14px rgba(72,49,34,.12); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.text-white, .text-white { color: #fffaf2 !important; }
button[class*="bg-gradient-to-r"] { background: linear-gradient(125deg, #a9734f, #795139); }

html { min-height: 100%; background: var(--cream-100); }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 14% 8%, rgba(255, 224, 198, .55), transparent 34rem),
    radial-gradient(ellipse at 86% 14%, rgba(255, 214, 226, .45), transparent 30rem),
    radial-gradient(ellipse at 82% 78%, rgba(196, 224, 200, .42), transparent 34rem),
    radial-gradient(ellipse at 18% 82%, rgba(247, 226, 178, .38), transparent 32rem),
    linear-gradient(158deg, #fdf6ea 0%, #fffbf3 48%, #f6ebdc 100%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  opacity: .52;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23b58c68' fill-opacity='.06'%3E%3Cellipse cx='32' cy='40' rx='6.5' ry='5'/%3E%3Ccircle cx='24' cy='31' r='2.6'/%3E%3Ccircle cx='30' cy='28' r='2.6'/%3E%3Ccircle cx='36' cy='28' r='2.6'/%3E%3Ccircle cx='41' cy='32' r='2.6'/%3E%3C/g%3E%3Cg fill='%23e5989b' fill-opacity='.09'%3E%3Cpath d='M90 80l2.2 5.2 5.2 2.2-5.2 2.2-2.2 5.2-2.2-5.2-5.2-2.2 5.2-2.2z'/%3E%3Ccircle cx='88' cy='26' r='2'/%3E%3Ccircle cx='22' cy='94' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(185, 139, 69, .62);
  outline-offset: 3px;
}
input, select { color: var(--ink); }
::selection { color: var(--cocoa-900); background: #f3c9a8; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(237, 224, 202, .65); border-radius: 99px; }
::-webkit-scrollbar-thumb { background: #c3a689; border-radius: 99px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

:is(#view-setup, #view-lobby, #club-panel, #result-modal, #my-player-badge, #my-action-buttons) :is(.leading-tight, .leading-snug) {
  line-height: 1.4 !important;
}
