:root {
  color-scheme: light;
  --cd-paper: #ece3cd;
  --cd-paper-dark: #d8cfb8;
  --cd-panel: #fbf6e8;
  --cd-ink: #242520;
  --cd-muted: #676354;
  --cd-line: #756f61;
  --cd-blue: #2f5d8c;
  --cd-red: #8a4c54;
  --cd-green: #5f7142;
}

body.civil-defense-page {
  background:
    linear-gradient(90deg, rgba(47, 93, 140, 0.08) 0 1px, transparent 1px 64px),
    linear-gradient(0deg, rgba(117, 111, 97, 0.08) 0 1px, transparent 1px 64px),
    var(--cd-paper);
  color: var(--cd-ink);
  font-family: Georgia, "Times New Roman", serif;
}

.civil-defense-shell {
  position: relative;
}

.civil-defense-shell::before {
  content: "BOMB & COVER CIVIL DEFENSE ADMINISTRATION";
  display: block;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--cd-line);
  padding: 0 0 8px;
  color: var(--cd-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.civil-defense-document {
  background: var(--cd-panel);
  border: 1px solid var(--cd-line);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(36, 37, 32, 0.14);
}

.civil-defense-stamp {
  display: inline-block;
  margin: 0 0 14px;
  border: 2px solid var(--cd-red);
  padding: 4px 8px;
  color: var(--cd-red);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.civil-defense-rule {
  height: 4px;
  margin: 0 0 18px;
  background: linear-gradient(
    90deg,
    var(--cd-blue) 0 33%,
    var(--cd-red) 33% 66%,
    var(--cd-green) 66% 100%
  );
}

.civil-defense-page button,
.civil-defense-page input,
.civil-defense-page textarea {
  border-radius: 4px;
}

.exercise-layout-page {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #d6d1bd;
  color: #202522;
  font-family: "Oswald", Arial, sans-serif;
}

.exercise-layout-page * {
  box-sizing: border-box;
}

.exercise-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.left-column {
  flex: 0 0 max(96px, 10vw);
  width: max(96px, 10vw);
  height: 100vh;
  overflow-y: auto;
  background: #d9c7a4;
  border-right: 2px solid #242c2c;
  color: #222928;
}

.left-column__poster {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 2px solid #242c2c;
}

.left-column__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 10px;
}

.left-column__links a,
.left-column__links button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #263232;
  cursor: pointer;
  font: 600 clamp(0.82rem, 1.05vw, 1rem) / 1.14 "Oswald", Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.left-column__links a:hover,
.left-column__links button:hover,
.left-column__links a:focus-visible,
.left-column__links button:focus-visible {
  color: #7c2f30;
  outline: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.left-column__links a[aria-current="page"] {
  color: #7c2f30;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.exercise-sidebar {
  padding: 12px 9px 18px;
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  line-height: 1.18;
  text-transform: uppercase;
}

.exercise-sidebar__name {
  margin: 0 0 14px;
  color: #7c2f30;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.exercise-sidebar__facts {
  margin: 0;
}

.exercise-sidebar__facts dt {
  margin: 12px 0 2px;
  color: #46524b;
  font-weight: 700;
}

.exercise-sidebar__facts dd {
  margin: 0;
  min-height: 1.1em;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.exercise-sidebar__citizens {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exercise-sidebar__rounds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(36, 44, 44, 0.35);
  list-style: none;
}

.exercise-sidebar__rounds li,
.exercise-sidebar__total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.exercise-sidebar__rounds span,
.exercise-sidebar__total span {
  color: #46524b;
  font-weight: 700;
}

.exercise-sidebar__rounds strong,
.exercise-sidebar__total strong {
  min-height: 1.1em;
  color: #202522;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.exercise-sidebar__total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(36, 44, 44, 0.35);
}

.exercise-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home-stage {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: clamp(28px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(36, 44, 44, 0.08) 0 1px, transparent 1px 56px),
    linear-gradient(0deg, rgba(36, 44, 44, 0.06) 0 1px, transparent 1px 56px),
    #d6d1bd;
}

.home-stage::before,
.home-stage::after {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
}

.home-stage::before {
  border: 3px solid #242c2c;
}

.home-stage::after {
  inset: 34px;
  border: 1px solid rgba(36, 44, 44, 0.45);
}

.home-notice {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  color: #202522;
  text-align: center;
  text-transform: uppercase;
}

.home-notice__kicker {
  display: inline-block;
  margin: 0 0 20px;
  border-top: 3px solid #8a4c54;
  border-bottom: 3px solid #8a4c54;
  padding: 6px 12px 7px;
  color: #8a4c54;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.home-notice h1 {
  margin: 0 0 42px;
  color: #263232;
  font-size: 8rem;
  font-weight: 700;
  line-height: 0.82;
}

.home-notice__line {
  margin: 0;
  color: #263232;
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.98;
}

.home-notice__line--accent {
  color: #8a4c54;
}

.home-notice__line + .home-notice__line {
  margin-top: 8px;
}

.exercise-message-line {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 50%;
  max-width: min(720px, calc(100% - 32px));
  min-height: 34px;
  transform: translate(-50%, -10px);
  border: 2px solid rgba(241, 223, 186, 0.72);
  padding: 7px 14px;
  background: rgba(36, 44, 44, 0.86);
  color: #f7f0df;
  font: 600 0.95rem / 1.15 "Oswald", Arial, sans-serif;
  letter-spacing: 0;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.exercise-message-line--visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.exercise-message-modal {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100% - 44px));
  min-height: 150px;
  transform: translate(-50%, -48%) scale(0.98);
  border: 2px solid #242c2c;
  padding: 26px 28px;
  background: #d9c7a4;
  box-shadow: 0 4px 0 rgba(36, 44, 44, 0.24);
  color: #35413b;
  font-family: "Oswald", Arial, sans-serif;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.exercise-message-modal--visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.exercise-message-modal__title {
  margin: 0 0 12px;
  color: #7c2f30;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.exercise-message-modal__body {
  margin: 0;
  color: #3d4943;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.exercise-instruction-modal {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: min(660px, calc(100% - 48px));
  min-height: 210px;
  transform: translate(-50%, -48%) scale(0.98);
  border: 3px solid #242c2c;
  padding: 24px 30px 28px;
  background:
    linear-gradient(180deg, #263232 0 18px, transparent 18px),
    #f1dfba;
  box-shadow: 0 5px 0 rgba(36, 44, 44, 0.28);
  color: #202522;
  font-family: "Oswald", Arial, sans-serif;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.exercise-instruction-modal::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 5px;
  background: linear-gradient(
    90deg,
    #2f5d8c 0 33%,
    #7c2f30 33% 66%,
    #5f7142 66% 100%
  );
}

.exercise-instruction-modal--visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.exercise-instruction-modal__kicker {
  display: inline-block;
  margin: 8px 0 18px;
  border: 2px solid #7c2f30;
  padding: 4px 9px;
  color: #7c2f30;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.exercise-instruction-modal__title {
  margin: 0 0 14px;
  color: #202522;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.exercise-instruction-modal__body {
  margin: 0 auto;
  max-width: 560px;
  color: #3d4943;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.exercise-countdown-modal {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100% - 42px));
  transform: translate(-50%, -48%) scale(0.98);
  border: 4px solid #f1dfba;
  padding: 26px 32px 30px;
  background: #263232;
  box-shadow:
    0 0 0 3px #242c2c,
    0 6px 0 rgba(36, 44, 44, 0.32);
  color: #f7f0df;
  font-family: "Oswald", Arial, sans-serif;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  text-transform: uppercase;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.exercise-countdown-modal--visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.exercise-countdown-modal__text {
  margin: 0;
  color: #f7f0df;
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.exercise-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #d5d0bd;
  touch-action: none;
  user-select: none;
}

.mobile-exercise-hud,
.mobile-touch-controls,
.mobile-menu-backdrop {
  display: none;
}

.mobile-exercise-hud {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: calc(env(safe-area-inset-left, 0px) + 10px);
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  z-index: 24;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.mobile-menu-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(36, 44, 44, 0.88);
  border-radius: 4px;
  background: rgba(241, 223, 186, 0.9);
  box-shadow: 0 2px 0 rgba(36, 44, 44, 0.26);
  color: #242c2c;
  pointer-events: auto;
}

.mobile-menu-button span,
.mobile-menu-button span::before,
.mobile-menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.mobile-menu-button span {
  position: relative;
}

.mobile-menu-button span::before,
.mobile-menu-button span::after {
  position: absolute;
  left: 0;
}

.mobile-menu-button span::before {
  top: -6px;
}

.mobile-menu-button span::after {
  top: 6px;
}

.mobile-exercise-hud__facts {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.mobile-exercise-hud__facts span {
  min-width: 0;
  border: 2px solid rgba(36, 44, 44, 0.72);
  border-radius: 4px;
  padding: 7px 9px;
  background: rgba(32, 37, 34, 0.78);
  color: #f4efe3;
  font: 600 0.78rem / 1 "Oswald", Arial, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-exercise-hud__facts span:first-child {
  color: #f1dfba;
}

.mobile-touch-controls {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
}

.mobile-joystick,
.mobile-bomb-button {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-joystick {
  left: calc(env(safe-area-inset-left, 0px) + 18px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  display: grid;
  width: clamp(108px, 22vw, 132px);
  aspect-ratio: 1;
  place-items: center;
}

.mobile-joystick__base {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(244, 239, 227, 0.56);
  border-radius: 50%;
  background: rgba(36, 44, 44, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(36, 44, 44, 0.26),
    0 2px 12px rgba(24, 28, 28, 0.16);
}

.mobile-joystick__base::before {
  position: absolute;
  inset: 28%;
  border: 1px dashed rgba(244, 239, 227, 0.44);
  border-radius: 50%;
  content: "";
}

.mobile-joystick__thumb {
  --joystick-x: 0px;
  --joystick-y: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  aspect-ratio: 1;
  border: 2px solid rgba(36, 44, 44, 0.78);
  border-radius: 50%;
  background: rgba(241, 223, 186, 0.88);
  box-shadow: 0 3px 0 rgba(36, 44, 44, 0.24);
  transform: translate(-50%, -50%) translate(var(--joystick-x), var(--joystick-y));
}

.mobile-bomb-button {
  right: calc(env(safe-area-inset-right, 0px) + 22px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 30px);
  display: grid;
  width: clamp(76px, 16vw, 92px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid rgba(244, 239, 227, 0.86);
  border-radius: 50%;
  background: rgba(138, 76, 84, 0.92);
  box-shadow:
    inset 0 -8px 0 rgba(36, 44, 44, 0.18),
    0 4px 14px rgba(24, 28, 28, 0.22);
}

.mobile-bomb-button--pressed {
  transform: translateY(2px) scale(0.96);
}

.mobile-bomb-button__icon {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  border: 2px solid #f4efe3;
  border-radius: 50%;
  background: #242c2c;
}

.mobile-bomb-button__icon::before {
  position: absolute;
  top: -28%;
  right: 6%;
  width: 34%;
  height: 34%;
  border-top: 3px solid #f4efe3;
  border-radius: 50%;
  content: "";
  transform: rotate(-25deg);
}

.mobile-bomb-button__icon::after {
  position: absolute;
  top: -32%;
  right: -16%;
  width: 20%;
  aspect-ratio: 1;
  background: #f1dfba;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 58%, 82% 100%, 50% 72%, 18% 100%, 30% 58%, 0 38%, 38% 35%);
  content: "";
}

.exercise-form-stage {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: #d9c7a4;
  color: #202522;
}

.exercise-form-shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.exercise-form-shell h1 {
  margin: 0 0 24px;
  color: #202522;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.exercise-form {
  border: 2px solid #242c2c;
  padding: 24px;
  background: #f1dfba;
  box-shadow: 0 2px 0 rgba(36, 44, 44, 0.22);
}

.exercise-form label {
  display: block;
  margin: 0 0 8px;
  color: #46524b;
  font-weight: 700;
  text-transform: uppercase;
}

.exercise-form input,
.exercise-form select,
.exercise-form textarea {
  width: 100%;
  border: 2px solid #756f61;
  border-radius: 0;
  padding: 10px 12px;
  background: #fbf6e8;
  color: #202522;
  font: inherit;
}

.exercise-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #7c2f30;
}

.exercise-form__submit {
  border: 2px solid #242c2c;
  padding: 12px 18px;
  background: #263232;
  color: #f1dfba;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
}

.exercise-form__submit:hover,
.exercise-form__submit:focus-visible {
  background: #7c2f30;
  outline: 0;
}

.exercise-detail-stage {
  flex: 1 1 auto;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: #d9c7a4;
  color: #202522;
}

.exercise-detail-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.exercise-detail-shell h1 {
  margin: 0 0 24px;
  color: #202522;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

.exercise-detail-document {
  border: 2px solid #242c2c;
  padding: 24px;
  background: #f1dfba;
  box-shadow: 0 2px 0 rgba(36, 44, 44, 0.22);
}

.invitation-detail-shell {
  width: min(720px, calc(100% - 40px));
}

.invitation-detail-document {
  display: flex;
  flex-direction: column;
  min-height: min(620px, calc(100vh - 190px));
}

.exercise-detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  margin: 0 0 24px;
}

.exercise-detail-list dt {
  color: #46524b;
  font-weight: 700;
  text-transform: uppercase;
}

.exercise-detail-list dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.joining {
  margin: 24px 0 0;
  border-top: 1px solid rgba(36, 44, 44, 0.35);
  border-bottom: 1px solid rgba(36, 44, 44, 0.35);
  padding: 18px 0;
}

.joining p {
  margin: 0 0 8px;
  color: #46524b;
  font-weight: 700;
  text-transform: uppercase;
}

.nickname {
  margin: 0;
  color: #202522;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.change-name {
  flex: 1 1 260px;
}

.change-name label {
  display: block;
  margin: 0 0 8px;
  color: #46524b;
  font-weight: 700;
  text-transform: uppercase;
}

.change-name input {
  width: 100%;
  border: 2px solid #756f61;
  border-radius: 0;
  padding: 10px 12px;
  background: #fbf6e8;
  color: #202522;
  font: inherit;
}

.enter-exercise-form {
  margin-top: auto;
  padding-top: 24px;
}

.enter-exercise-button {
  display: block;
  width: 100%;
}

.exercise-detail-document h2 {
  margin: 0 0 14px;
  color: #202522;
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
}

.invitation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.invitation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  border-top: 1px solid rgba(36, 44, 44, 0.32);
  padding-top: 12px;
}

.invitation-row strong,
.invitation-row a,
.invitation-row code {
  display: block;
}

.invitation-row strong {
  margin-bottom: 4px;
  color: #202522;
  font-weight: 700;
  text-transform: uppercase;
}

.invitation-row a {
  color: #46524b;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.invitation-row a:hover,
.invitation-row a:focus-visible {
  color: #7c2f30;
  outline: 0;
}

.invitation-row code {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 600 0.92rem / 1.2 "Oswald", Arial, sans-serif;
}

.share-button {
  border: 2px solid #242c2c;
  padding: 10px 14px;
  background: #263232;
  color: #f1dfba;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
}

.share-button:hover,
.share-button:focus-visible {
  background: #7c2f30;
  outline: 0;
}

.errors {
  margin: 0 0 18px;
  border: 2px solid #7c2f30;
  padding: 12px 14px;
  background: #f7cab8;
  color: #552728;
  font-weight: 600;
}

.errors p {
  margin: 0 0 6px;
}

.errors p:last-child {
  margin-bottom: 0;
}

.menu-modal {
  max-width: min(620px, calc(100vw - 28px));
  border: 2px solid #242c2c;
  padding: 22px;
  background: #d9c7a4;
  color: #202522;
  font: 600 1.2rem / 1.25 "Oswald", Arial, sans-serif;
}

.menu-modal::backdrop {
  background: rgba(32, 37, 34, 0.72);
}

.menu-modal--image {
  padding: 0;
}

.menu-modal img {
  display: block;
  width: min(100%, 540px);
  height: auto;
}

.menu-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #242c2c;
  background: #f1dfba;
  color: #242c2c;
  cursor: pointer;
  font: 700 1rem / 1 "Oswald", Arial, sans-serif;
  text-transform: uppercase;
}

.menu-modal p {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .home-notice__kicker {
    font-size: 1.1rem;
  }

  .home-notice h1 {
    margin-bottom: 32px;
    font-size: 5.2rem;
  }

  .home-notice__line {
    font-size: 2.8rem;
  }
}

@media (max-width: 820px), (pointer: coarse) {
  .exercise-play-page .exercise-layout {
    display: block;
    height: 100dvh;
    overflow: hidden;
  }

  .exercise-play-page .exercise-stage {
    width: 100vw;
    height: 100dvh;
  }

  .exercise-play-page .left-column {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 52;
    width: min(82vw, 320px);
    height: 100dvh;
    flex-basis: auto;
    border-right-width: 2px;
    box-shadow: 8px 0 24px rgba(24, 28, 28, 0.28);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }

  .exercise-play-page.mobile-menu-open .left-column {
    transform: translateX(0);
  }

  .exercise-play-page .left-column__poster {
    max-height: 30dvh;
    object-fit: cover;
    object-position: top center;
  }

  .exercise-play-page .exercise-sidebar {
    padding: 14px 12px 24px;
    font-size: 0.86rem;
  }

  .exercise-play-page .left-column__links {
    padding: 16px 12px;
  }

  .exercise-play-page .mobile-exercise-hud {
    display: flex;
  }

  .exercise-play-page .mobile-touch-controls {
    display: block;
  }

  .exercise-play-page .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(24, 28, 28, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .exercise-play-page.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .exercise-play-page .exercise-countdown-modal {
    top: 44%;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .mobile-exercise-hud__facts {
    gap: 6px;
  }

  .mobile-exercise-hud__facts span {
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .mobile-exercise-hud__facts span:nth-child(2) {
    display: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .mobile-exercise-hud {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    left: calc(env(safe-area-inset-left, 0px) + 8px);
    right: auto;
    max-width: min(62vw, 520px);
  }

  .mobile-joystick {
    left: calc(env(safe-area-inset-left, 0px) + 14px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    width: clamp(96px, 18vw, 118px);
  }

  .mobile-bomb-button {
    right: calc(env(safe-area-inset-right, 0px) + 18px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: clamp(70px, 12vw, 84px);
  }
}

@media (max-width: 720px) {
  .left-column {
    flex-basis: 116px;
    width: 116px;
  }

  .left-column__links {
    padding: 14px 8px;
  }

  .home-stage {
    padding: 20px;
  }

  .home-stage::before {
    inset: 12px;
    border-width: 2px;
  }

  .home-stage::after {
    inset: 20px;
  }

  .home-notice__kicker {
    margin-bottom: 14px;
    border-top-width: 2px;
    border-bottom-width: 2px;
    padding: 5px 8px;
    font-size: 0.82rem;
  }

  .home-notice h1 {
    margin-bottom: 22px;
    font-size: 2.25rem;
    line-height: 0.9;
  }

  .home-notice__line {
    font-size: 1.32rem;
    line-height: 1.02;
  }

  .exercise-form-shell {
    width: min(100% - 20px, 760px);
    padding: 20px 0;
  }

  .exercise-detail-shell {
    width: min(100% - 20px, 860px);
    padding: 20px 0;
  }

  .invitation-detail-shell {
    width: min(100% - 20px, 720px);
  }

  .exercise-form {
    padding: 16px;
  }

  .exercise-detail-document {
    padding: 16px;
  }

  .invitation-detail-document {
    min-height: calc(100vh - 40px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .exercise-detail-list,
  .invitation-row {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
  }

  .actions .share-button {
    width: 100%;
  }

  .share-button {
    justify-self: start;
  }

  .exercise-instruction-modal {
    width: min(100% - 24px, 660px);
    min-height: 188px;
    padding: 20px 18px 26px;
  }

  .exercise-instruction-modal__kicker {
    margin-bottom: 14px;
    font-size: 0.92rem;
  }

  .exercise-instruction-modal__title {
    font-size: 1.64rem;
  }

  .exercise-instruction-modal__body {
    font-size: 1.12rem;
  }

  .exercise-countdown-modal {
    width: min(100% - 24px, 760px);
    padding: 22px 18px 24px;
  }

  .exercise-countdown-modal__text {
    font-size: 1.86rem;
  }
}
