:root {
  --brand-red: #d40000;
  --brand-red-dark: #8b0000;
  --brand-white: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    padding: 60px 12px 100px 12px; /* top/bottom padding account for fixed header/footer */
    box-sizing: border-box;
}



/*
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
  margin: 0;
  padding: 0;
  transition: background-color 0.5s;
}
*/

body.dark-mode {
  background-color: black;
  color: white;
}

.initial-spinner {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 77, 77, 0.15), rgba(0, 0, 0, 0.85));
  color: #ffffff;
  z-index: 3000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.initial-spinner__ring {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff4d4d;
  border-radius: 50%;
  animation: initialSpinnerSpin 0.9s linear infinite;
}

.initial-spinner__text {
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.initial-spinner--hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes initialSpinnerSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}





#workingScreen {
  text-align: center;
  margin-top: 30px; /* Add some space from the top */
}


#compass-title {
  font-size: 16px;
  color: red;
}

#compass-heading {
  font-size: 52px;
  font-weight: bold;
  color: white;
}

#compass-at {
  font-size: 16px;
  color: red;
}

#compass-speed {
  font-size: 70px;
  font-weight: bold;
  color: white;
}

#compass-units {
  font-size: 16px;
  color: red;
}

#gametime {
  font-size: 70px;
  font-weight: bold;
  color: white;
}

#gametime-units {
  font-size: 16px;
  color: red;
}

/*
canvas {
  margin-top: 10px;
  transition: background-color 0.5s ease;
}
*/

canvas {
  margin-top: 10px;
  display: block; /* Makes the canvas a block-level element */
  margin-left: auto; /* Centers the canvas horizontally */
  margin-right: auto; /* Centers the canvas horizontally */
}


/* Header for mobile */
header {
  background-color: red;
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 1000;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

main#app,
#clientFeedback,
#mydata {
  width: 100%;
  box-sizing: border-box;
}

#fullheader,
#miniheader {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#fullheader {
  height: 99px;
  flex-direction: column;
  gap: 6px;
}

#miniheader {
  font-size: 20px;
  height: 50px;
  padding: 0 60px;
}

#miniheaderText {
  width: 100%;
  text-align: center;
}

.header-logout-button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background-color: #ffffff;
  color: #b30000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  z-index: 1001;
}

.header-logout-button:focus-visible {
  outline: 2px solid #b30000;
  outline-offset: 2px;
}

.header-logout-button:active {
  background-color: #ffe5e5;
  transform: translateY(-50%) scale(0.95);
}

.header-back-button {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background-color: #ffffff;
  color: #b30000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.44rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  z-index: 1001;
}

.header-back-button:focus-visible {
  outline: 2px solid #b30000;
  outline-offset: 2px;
}

.header-back-button:active {
  background-color: #ffe5e5;
  transform: translateY(-50%) scale(0.95);
}

/* Footer Styles */
footer {

  bottom: 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  z-index: 1000;
}

#buttonbox {
  font-size: 30px;
  display: flex;
  justify-content: center; /* Center horizontally */
  width: 100vw; /* Full width of the viewport */
}

#scoretable {
  color: white;
  background-color: red;
  font-size: 30px;
  display: flex;
  justify-content: center; /* Center horizontally */
  width: 100vw; /* Full width of the viewport */
}

 
.score {
  text-align: right;
  width: 50%; /* Makes the text start at the middle */
}

.name {
  text-align: left;
  width: 50%; /* Makes the text start at the middle */
}

#minifooter {
  color: white;
  background-color: red;
  font-size: 16px;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100vw; /* Full width of the viewport */
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
}

#minifooter .minifooter-span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

#minifooter .minifooter-hidden {
  display: none;
}

#minifooter .minifooter-label {
  color: black;
}

#minifooter #spanA {
  grid-column: 1;
  justify-content: flex-start;
}

#minifooter #spanB,
#minifooter #spanC {
  grid-column: 2;
  justify-content: center;
}

#minifooter #spanC {
  grid-column: 3;
}

#minifooter #spanD {
  grid-column: 4;
  justify-content: flex-end;
}

#minifooter .minifooter-icon-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#minifooter .minifooter-icon-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 4px;
}

#minifooter img {
  height: 20px;
  width: auto;
  display: block;
}


#openText, #firstText, #secondText, #thirdText {
  font-size: 14px;
  padding: 20px;
}

.landing-intro {
  margin-top: 150px;
  font-size: 14px;
  padding: 0 20px;
  line-height: 1.4;
}

.landing-thanks {
  color: #b30000;
  font-size: 14px;
  font-weight: 700;
  margin: 18px 20px 12px;
  text-align: center;
}

#formContainer {
  padding: 15px;
}


red2 {
  clear: both;
  color: #fa0611;
  display: block;
  font-size: 12px;
  line-height: 9px;
  margin: 0;
  padding-top: 3px;
}

black2 {
  clear: both;
  color: black;
  display: block;
  font-size: 10px;
  line-height: 9px;
  margin: 0;
  padding-top: 3px;
}

.login-label {
  width: 100%;
  text-align: left;
  padding-left: 12px;
  box-sizing: border-box;
}

.dropbtn {
  width: 90%;
  padding: 10px 10px;
  height: 40px;
  font-size: 12px;
  margin: 5px;
  box-sizing: border-box;
  border: 2px solid #07030c;
  border-radius: 8px;
  background-color: #f5f6b1;
  color: black;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #f5f6b1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f2f3bf;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Client form fields share the same layout */
input[id="firstname"],
input[id="loginFirstname"],
select[id="agerange"],
select[id="gender"],
select[id="bike"],
input[id="password"],
input[id="loginPassword"] {
  width: 50%;
  padding: 10px 10px;
  height: 40px;
  font-size: 14px;
  margin: 5px 20px 10px 10px;
  box-sizing: border-box;
  border: 2px solid #07030c;
  border-radius: 8px;
  background-color: #f2f4a1;
  color: black;
}

.input-highlight {
  animation: inputPulse 0.3s ease-in-out 0s 3 alternate;
}

@keyframes inputPulse {
  from {
    box-shadow: 0 0 0 rgba(255, 0, 0, 0);
  }
  to {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  }
}

/* Slightly larger text for first name field */
input[id="firstname"] {
  font-size: 18px;
}

/* Login first name matches register styling */
input[id="loginFirstname"] {
  font-size: 18px;
}


/* Magic button styles */

.buttons {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 20px 20px 20px 20px;
  box-sizing: border-box;
}

#magicButton, #specialButton {
  flex: 1;
  padding: 15px 10px;
  font-size: 24px;
  box-sizing: border-box;
  border: 2px solid #07030c;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

#magicButton {
  background-color: #007bff;
}

#specialButton {
  background-color: #024388;
}

.buttons.single-button {
  justify-content: center;
  width: 60%;
  margin: 0 auto;
}

.buttons.single-button #specialButton.wide-button {
  width: 100%;
}

#loginView {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#loginForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loginForm input {
  margin: 5px auto 10px auto;
}

#loginFormContainer {
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}

#magicButton:disabled,
#specialButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



#clientFeedback {
  clear: both;
  color: black;
  display: block;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  padding: 20px;
}


.link-row {
  text-align: center;
  margin: 10px 0;
}

.link-row a {
  color: red;
  font-weight: 600;
  text-decoration: none;
}

.link-row a:hover {
  text-decoration: underline;
}


#title {
  font-size: 36px;
  color:aliceblue;
  font-weight:bold;
  padding: 8px;
}

#subtitle {
  font-size: 14px;
  color:aliceblue;
  font-weight:bold;
}

#feedback.ok {
  color: green;
}

#feedback.error {
  color: crimson;
}




/* ------------- Venue Menu  ---------------------------------  */

.venue-menu-container {
    background-color: black;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    padding: 12px;
    text-align: center;
    margin: 20px auto;
    width: 250px; /* Adjust width as needed */
    max-width: 90%; /* Ensure it's responsive */
}


.venue-details-container {
    display: flex;
    flex-direction: column;
    background-color: black;
    border: 1px solid #ccc;
    border-radius: 8px;
    /*box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);*/
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    padding: 12px;
    margin: 20px auto;
    width: 250px; /* Match width of menu container, adjust as needed */
    max-width: 90%; /* Ensure it's responsive */
    min-height: 220px;
    text-align: left;
}

.action-detail-title {
    color: #ffffff;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.2;
    text-align: left;
}

.action-detail-text {
    color: red;
    font-size: 0.75em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.venue-selected-gif {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 6px;
    margin: auto;
    align-self: center;
}

.venue-details-container h2 {
    color: red;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.venue-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-flag-icon {
    width: 22px;
    height: 22px;
    display: none;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.6));
}

.venue-details-container p {
    margin-bottom: 6px;
    line-height: 1.0;
    color: white;
    font-size: 0.75em;
}

.venue-details-container strong {
    color: red;
}

.venue-details-container .venue-name-selected {
    color: #ffffff;
    transition: color 0.3s ease;
}

.speed-direction-container {
    background-color: #000000;
    border-radius: 8px;
    padding: 16px 12px;
    margin: 0 auto 20px;
    width: 280px;
    max-width: 95%;
    text-align: center;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    top: -20px; /* lift the block up */
}

.speed-direction-row {
    margin: 6px 0;
}

.speed-direction-label {
    font-size: 16px;
    color: red;
}

.speed-direction-value {
    font-size: 52px;
    font-weight: bold;
    color: white;
    line-height: 1.1;
}

.xplore-guide {
    background-color: #000000;
    border-radius: 8px;
    width: 250px;
    max-width: 90%;
    padding: 12px;
    margin: 0 auto;
    color: #ffffff;
    box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.25);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 140px; /* 30px above the START button (button top ~110px from bottom) */
    z-index: 15; /* keep above controls/footer */
}

.level-change-container {
    background-color: transparent;
    border-radius: 8px;
    width: 250px;
    max-width: 90%;
    padding: 12px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 140px; /* align with guide container */
    z-index: 15; /* keep above controls/footer */
}

.xplore-guide .xplore-outcome-image {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.xplore-controls {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px; /* footer (40px) + 20px gap */
    z-index: 10;
}

.xplore-start-button {
    width: 240px;
    height: 50px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.xplore-start-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.xplore-start-button:disabled,
.xplore-start-button.moving {
    background-color: #555555;
    color: #dddddd;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}


.scroll-menu {
    --menu-item-height: 35px;
    height: calc(var(--menu-item-height) * 5);
    overflow-y: auto;
    border: 3px solid red;
    border-radius: 6px;
    margin: 0 0 15px;
    position: relative;
    scroll-snap-type: y mandatory;
    scroll-padding: calc(var(--menu-item-height) * 2);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: #0f0f0f;
    width: 60%;
    margin-left: 0;
    scrollbar-width: none; /* Firefox */
    pointer-events: none;
}

.scroll-menu::-webkit-scrollbar {
    display: none;
}

.scroll-menu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - var(--menu-item-height) / 2);
    height: var(--menu-item-height);
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    height: var(--menu-item-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: default;
    background-color: #181818;
    color: #ff4d4f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: left;
}

.menu-item.highlighted {
    background-color: transparent;
    color: #ffffff;
    font-weight: bold;
}

.scroll-menu.action-menu-mode {
    --menu-item-height: 35px;
    height: calc(var(--menu-item-height) * 5);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-padding: calc(var(--menu-item-height) * 2);
}

.scroll-menu.action-menu-mode::after {
    display: none;
}

.scroll-menu.action-menu-mode ul {
    width: 100%;
}

.action-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scroll-menu.action-menu-mode .menu-item {
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.scroll-menu.action-menu-mode .menu-item.highlighted {
    transform: translateX(12px);
    background-color: transparent;
    color: #ffffff;
}

.action-menu-item {
    opacity: 0;
}

.action-slide-in {
    animation: actionMenuSlideIn 0.35s ease forwards;
}

@keyframes actionMenuSlideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.venue-menu-layout {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.venue-menu-artwork {
    flex: 0 0 auto;
    width: 80px;
    height: 175px;
    margin-top: 0;
    margin-bottom: 15px;
}

.venue-menu-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.venue-menu-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
    width: calc(100% - 6px);
    box-sizing: border-box;
}

.venue-control-button {
    background-color: #b30000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex: 1 1 0;
    min-width: 0;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-control-up {
    flex: 0 0 30%;
    font-size: 1.4rem;
}

.venue-control-select {
    flex: 0 0 40%;
    font-size: 0.84rem;
    padding: 0;
}

.venue-control-down {
    flex: 0 0 30%;
    font-size: 1.4rem;
}

.venue-control-button:active {
    background-color: #7f0000;
    transform: translateY(1px);
}

.action-tops-container {
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px;
    box-sizing: border-box;
    color: #ffffff;
}

#selectGameAreaView.action-tops-mode {
    background-color: #000000;
    color: #ffffff;
}

.action-tops-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.action-top-image {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    background-color: #111111;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
}

.action-tops-message {
    margin-top: auto;
    font-size: 1.1rem;
    text-align: center;
    color: #ffffff;
}

.action-shorts-container {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: #000000;
}

.action-shorts-video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.action-shorts-video {
    width: min(420px, 100%);
    max-height: calc(100vh - 140px);
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    background-color: #000000;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

#selectGameAreaView.action-shorts-mode {
    background-color: #000000;
    color: #ffffff;
}

body.action-shorts-mode {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0 100px 0;
}

body.action-shorts-mode main#app,
body.action-shorts-mode #clientFeedback,
body.action-shorts-mode #mydata {
    background: transparent;
    color: #ffffff;
    width: 100%;
}

#selectGameAreaView.action-tags-mode {
    background-color: #000000;
    color: #ffffff;
}

body.action-tags-mode {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0 100px 0;
}

body.action-tags-mode main#app,
body.action-tags-mode #clientFeedback,
body.action-tags-mode #mydata {
    background: transparent;
    color: #ffffff;
    width: 100%;
}

body.action-tops-mode {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0 100px 0;
}

body.action-tops-mode main#app,
body.action-tops-mode #clientFeedback,
body.action-tops-mode #mydata {
    background: transparent;
    color: #ffffff;
    width: 100%;
}

.xplore-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

#selectGameAreaView.xplore-mode {
    background-color: #000000;
    color: #ffffff;
}

body.xplore-mode {
    background-color: #000000;
    color: #ffffff;
}

#selectGameAreaView.tasks-mode {
    background-color: #000000;
    color: #ffffff;
}

body.tasks-mode {
    background-color: #000000;
    color: #ffffff;
}

body.xplore-mode main#app,
body.xplore-mode #clientFeedback,
body.xplore-mode #mydata {
    background: transparent;
    color: #ffffff;
    width: 100%;
}

body.tasks-mode main#app,
body.tasks-mode #clientFeedback,
body.tasks-mode #mydata {
    background: transparent;
    color: #ffffff;
    width: 100%;
}

#minifooter.xplore-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
    gap: 20px;
    font-size: 16px;
}

#minifooter.xplore-footer .xplore-footer-left,
#minifooter.xplore-footer .xplore-footer-right {
    flex: 0 0 auto;
    white-space: nowrap;
}

#minifooter.xplore-footer .xplore-footer-right {
    text-align: center;
}

.action-tags-container {
    width: 100%;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 0 48px 0;
    box-sizing: border-box;
    color: #ffffff;
    background: transparent;
}

.action-tags-text {
    width: 100%;
    max-width: 100%;
    display: block;
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.action-tags-title {
    font-size: 1.4rem;
    margin: 0;
    text-align: left;
}

.action-tags-image-scroll {
    width: 100%;
    overflow-x: auto;
    padding: 16px 0 0 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.action-tags-image {
    width: auto;
    max-width: none;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    object-fit: contain;
    height: auto;
    display: block;
}

.action-tags-caption {
    font-size: 1rem;
    line-height: 1.4;
    color: #f0f0f0;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
}

.action-tags-image-scroll .action-tags-image {
    width: 600px;
    max-width: none;
}

.action-tags-message {
    font-size: 1rem;
    color: #f0f0f0;
    margin: 0;
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.password-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    height: 40px;
    width: 50%;
    margin: 5px 20px 10px 10px;
    box-sizing: border-box;
    border: 2px solid #07030c;
    border-radius: 8px;
    background-color: #f2f4a1;
    overflow: hidden;
}

.password-input-group.register-password {
    width: 80%;
}

.password-input-group.register-password input {
    width: 100%;
}

.password-input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

.password-input-group input {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    color: black;
}

.password-input-group input:focus {
    outline: none;
}

.password-input-group input:-webkit-autofill,
.password-input-group input:-webkit-autofill:hover,
.password-input-group input:-webkit-autofill:focus,
.password-input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: black;
    background-color: transparent !important;
    border-radius: inherit;
    background-clip: padding-box;
}

.password-input-group input:-moz-autofill {
    box-shadow: 0 0 0 1000px transparent inset;
    -moz-text-fill-color: black;
    background-color: transparent !important;
    border-radius: inherit;
    background-clip: padding-box;
}

.input-valid-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    font-size: 16px;
    color: #3ecf8e;
    visibility: hidden;
}

.input-valid-icon.valid {
    visibility: visible;
}

.password-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #222222;
}

.password-toggle:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.password-toggle-icon {
    display: block;
}

.flag-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.flag-modal {
    background: #111;
    color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 18px;
    width: 320px;
    max-width: 100%;
    border: 1px solid #ff4d4d;
}

.flag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.flag-modal-title {
    margin: 0;
    font-size: 18px;
    color: #ff4d4d;
}

.flag-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flag-modal-close::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='5' x2='19' y2='19'/%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.flag-modal-text {
    margin: 8px 0 12px;
    line-height: 1.4;
}

.flag-modal-meta {
    margin: 4px 0;
    font-size: 0.9em;
    color: #ddd;
}

.flag-modal-ack {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.flag-modal-ack:active {
    transform: translateY(1px);
}

.settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.settings-modal {
    background: #111;
    color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 18px;
    width: 320px;
    max-width: 100%;
    border: 1px solid #ff4d4d;
}

.settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.settings-modal-title {
    margin: 0;
    font-size: 18px;
    color: #ff4d4d;
}

.settings-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-close::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='5' x2='19' y2='19'/%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.settings-modal-body {
    display: grid;
    gap: 12px;
}

.settings-modal-field {
    display: grid;
    gap: 6px;
}

.settings-modal-field label {
    font-size: 0.9em;
    color: #f5f5f5;
}

.settings-modal select {
    width: 100%;
    padding: 8px 10px;
    height: 38px;
    font-size: 14px;
    box-sizing: border-box;
    border: 2px solid #07030c;
    border-radius: 8px;
    background-color: #f2f4a1;
    color: black;
}

.settings-modal-auth-only {
    display: grid;
    gap: 12px;
}

.settings-modal-hidden {
    display: none;
}

.reviews-container {
    background: black;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    padding: 14px;
    margin: 16px auto;
    width: 280px;
    max-width: 95%;
    color: white;
}

.biker-reviews-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    padding: 14px;
    margin: 30px auto 16px;
    width: 280px;
    max-width: 95%;
    color: #000;
    text-align: left;
}

.biker-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 4px 0;
}

.biker-review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 8px 8px 28px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    color: #000;
}

.biker-review-header {
    background: #ff4d4d;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    font-weight: bold;
}

.biker-review-name {
    flex: 1;
}

.biker-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.biker-review-date {
    font-size: 0.9em;
    opacity: 0.9;
}

.biker-review-stars {
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffcc66;
}

.biker-review-body {
    padding: 12px;
    background: #fff;
    color: #000;
    line-height: 1.45;
}

.flag-form-container {
    background: #000;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    padding: 16px;
    margin: 16px auto;
    width: 280px;
    max-width: 95%;
    color: #fff;
}

.flag-form-title {
    margin: 0 0 10px;
    color: #ff4d4d;
    font-size: 1.1em;
}

.flag-form-label {
    display: block;
    margin-bottom: 6px;
    color: #f0f0f0;
}

.flag-form-text {
    width: 100%;
    min-height: 90px;
    background: #111;
    color: #f5f5f5;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px;
    box-sizing: border-box;
}

.flag-form-submit {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.flag-status {
    margin-top: 8px;
    font-size: 0.9em;
    min-height: 18px;
}

.flag-status.success {
    color: #7cf28a;
}

.flag-status.error {
    color: #ffb3b3;
}

.client-flags-container {
    background: #000;
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    padding: 14px;
    margin: 30px auto 16px;
    width: 280px;
    max-width: 95%;
    color: #fff;
}

.client-flag-card {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    background: #0f0f0f;
    color: #fff;
}

.client-flag-title {
    font-weight: bold;
    color: #ff4d4d;
    margin-bottom: 6px;
}

.client-flag-text {
    margin: 0;
    line-height: 1.4;
}

.client-flags-empty {
    text-align: center;
    color: #ccc;
    font-size: 0.9em;
}

.write-review-container,
.client-reviews-container {
    margin-bottom: 16px;
}

.write-review-container h3,
.client-reviews-container h3 {
    margin: 0 0 10px;
    color: #ff4d4d;
    font-size: 1.05em;
}

.review-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-title-name {
    color: #ff4d4d;
}

.review-title-stars {
    position: relative;
    display: inline-block;
    font-size: 0.95em;
    letter-spacing: 2px;
    width: 86px;
    height: 18px;
}

.review-stars-base {
    color: #333;
}

.review-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #ffcc66;
}

.review-score-line {
    font-size: 0.85em;
    color: #ff4d4d;
    margin: 2px 0 8px;
}

.review-label {
    display: block;
    margin: 8px 0 4px;
    color: #f0f0f0;
    font-size: 0.9em;
}

.review-select,
.review-text {
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #555;
    padding: 8px;
    background: #111;
    color: #f5f5f5;
}

.review-select {
    height: 36px;
}

.review-text {
    resize: vertical;
    min-height: 90px;
}

.review-submit {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.review-status {
    margin-top: 8px;
    font-size: 0.85em;
    min-height: 18px;
}

.review-status.success {
    color: #7cf28a;
}

.review-status.error {
    color: #ffb3b3;
}

.client-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-card {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    background: #0f0f0f;
    color: #f5f5f5;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.review-card-name {
    font-weight: bold;
    color: #ff4d4d;
}

.review-card-meta {
    display: flex;
    gap: 8px;
    font-size: 0.85em;
    color: #ccc;
}

.review-card-rating {
    color: #ffcc66;
    font-weight: bold;
}

.review-card-text {
    margin: 0;
    line-height: 1.35;
}

.review-empty {
    text-align: center;
    color: #ccc;
    font-size: 0.9em;
}

.action-rules-container.faq-view {
    background: linear-gradient(180deg, #050505 0%, #101010 55%, #191919 100%);
    color: var(--brand-white);
    margin: 20px auto;
    padding: 48px 20px 64px;
    width: 100%;
    max-width: 960px;
    box-shadow: 12px 12px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.faq-view-content {
    width: 100%;
}

.faq-title {
    margin: 0 0 24px;
    letter-spacing: 0.08em;
    color: var(--brand-white);
}

.faq-list {
    display: grid;
    gap: 26px;
}

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    margin: 0 0 10px;
    color: var(--brand-red);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.faq-answer {
    margin: 0;
    color: var(--brand-white);
    font-size: 1.05rem;
    line-height: 1.65;
}

.faq-answer + .faq-answer {
    margin-top: 10px;
}

.faq-subhead {
    margin: 12px 0 6px;
    color: var(--brand-white);
    font-weight: 700;
}

.faq-steps {
    margin: 8px 0 0 18px;
}

.faq-steps li {
    color: var(--brand-white);
    line-height: 1.6;
}

.faq-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.faq-error {
    color: #ffb3b3;
}
