:root {
  color-scheme: light dark;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  background:
    var(--tg-theme-bg-color, #ffffff);
  color:
    var(--tg-theme-text-color, #111111);
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px;
}

h1,
h2 {
  margin-top: 0;
}

.muted {
  color:
    var(--tg-theme-hint-color, #777777);
}

.panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid
    var(--tg-theme-section-separator-color, #dddddd);
  border-radius: 14px;
  background:
    var(--tg-theme-secondary-bg-color, transparent);
}

.hidden {
  display: none;
}

label,
input,
button {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

input,
button {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  font: inherit;
}

input {
  border: 1px solid #999999;
  background:
    var(--tg-theme-bg-color, #ffffff);
  color:
    var(--tg-theme-text-color, #111111);
}

button {
  border: 0;
  background:
    var(--tg-theme-button-color, #2481cc);
  color:
    var(--tg-theme-button-text-color, #ffffff);
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

.x-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.x-input-shell input,
.x-input-shell button {
  margin-top: 10px;
}

.x-input-shell .x-eye {
  width: auto;
  min-width: 88px;
}

#xi.submitted-local-x {
  opacity: 0.55;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
}

dt {
  color:
    var(--tg-theme-hint-color, #777777);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.success {
  font-weight: 600;
}


.result-outcome {
  margin: 8px 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1000;
}

.confetti-piece {
  position: absolute;
  top: -2rem;
  font-size: 1.1rem;
  line-height: 1;
  animation-name: roka-confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes roka-confetti-fall {
  from {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 1;
  }

  to {
    transform: translate3d(0, 110vh, 0) rotate(720deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece {
    display: none;
    animation: none;
  }
}


.compact-form h2 {
  margin-bottom: 8px;
}

.compact-form .muted {
  margin: 0 0 10px;
}

.compact-form label {
  margin-top: 10px;
}

.compact-form input,
.compact-form button {
  margin-top: 6px;
  padding: 10px 12px;
}

@media (max-width: 480px) {
  main {
    padding: 12px;
  }

  .panel {
    margin-top: 10px;
    padding: 12px;
  }

  .compact-form label {
    margin-top: 8px;
  }

  .compact-form input,
  .compact-form button {
    margin-top: 4px;
    padding: 9px 11px;
  }
}

#share-link:empty {
  display: none;
}

#share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#share-actions button {
  margin-top: 8px;
}
.report-player {
  width: 100%;
  min-height: 28rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
}

.technical-report {
  max-height: 32rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}

/* v0.24 A5 Classic presentation: current lifecycle, simpler game language. */
.sponsor-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tg-theme-secondary-bg-color, #f2f2f2);
  text-decoration: none;
}

.sponsor-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 297;
  object-fit: cover;
}

.sponsor-label {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.app-header {
  padding: 14px 2px 0;
}

.app-header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.panel-heading-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-heading-row h2 {
  margin-bottom: 0;
}

.creator-capacity {
  margin: 0;
  text-align: right;
  font-size: 0.72rem;
  line-height: 1.15;
  color: var(--tg-theme-hint-color, #777777);
}

.creator-capacity span,
.creator-capacity strong {
  display: block;
}

.creator-capacity strong {
  margin-top: 3px;
  color: var(--tg-theme-text-color, #111111);
  font-size: 1rem;
}

.field-help {
  margin: 4px 0 0;
  color: var(--tg-theme-hint-color, #777777);
  font-size: 0.78rem;
}

.x-input-shell .x-eye {
  position: relative;
  min-width: 48px;
  width: 48px;
  padding-inline: 0;
  font-size: 1.15rem;
}

.x-input-shell .x-eye.is-masked::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-42deg);
  transform-origin: center;
}

.report-inputs {
  white-space: normal;
  overflow-wrap: anywhere;
}

.report-rule {
  margin: 0.75rem 0;
  font-weight: 600;
}

/* v0.24 A5d2 live single-screen tuning. */
main {
  padding: 8px 10px 10px;
}

.app-header {
  padding: 8px 2px 0;
}

.app-header h1 {
  font-size: 1.45rem;
}

.panel {
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
}

.panel h2 {
  margin-bottom: 8px;
}

.panel dl {
  margin: 8px 0;
  gap: 5px 10px;
}

.compact-form h2 {
  margin-bottom: 4px;
}

.compact-form label {
  margin-top: 5px;
}

.compact-form input,
.compact-form button,
#lot button,
#result button {
  margin-top: 4px;
  padding: 8px 10px;
}

.field-help {
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.2;
}

#share-actions,
#lifecycle-actions {
  gap: 6px;
}

#share-actions button {
  margin-top: 4px;
}

#lifecycle-actions button {
  margin-top: 6px;
}

#commit-panel {
  margin-top: 6px;
}

#commit-panel .muted,
#commit-status {
  margin: 5px 0 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

.x-input-shell input,
.x-input-shell button {
  margin-top: 4px;
}

.result-outcome {
  margin: 4px 0 8px;
  font-size: 1.15rem;
}

.report-inputs {
  max-height: 4.5rem;
  overflow-y: auto;
}

.report-rule {
  margin: 0.4rem 0;
}

@media (max-width: 480px) {
  main {
    padding: 7px 9px 9px;
  }

  .panel {
    margin-top: 7px;
    padding: 9px;
  }
}

/* v0.24 A5d3 live compactness repair. */
#lot {
  padding: 8px 9px;
}

#lot h2 {
  margin: 0 0 4px;
}

#lot dl {
  margin: 4px 0;
  gap: 3px 8px;
}

#lot dt,
#lot dd {
  line-height: 1.18;
}

#lot #share-actions,
#lot #lifecycle-actions {
  gap: 4px;
}

#lot #share-actions button,
#lot #lifecycle-actions button,
#lot #commit-xi {
  margin-top: 3px;
  padding-top: 7px;
  padding-bottom: 7px;
}

#lot #commit-panel {
  margin-top: 4px;
}

#lot #commit-panel label {
  margin-top: 0;
}

#share-link:empty,
#commit-status:empty {
  display: none;
}

/* v0.25 D2d3a visual repair: accepted D1.14 presentation. */
#lot.hidden + #drum,
#lot.hidden + #drum + #v025-game-id-footer {
  display: none !important;
}

#commit-home {
  display: none !important;
}

#result,
#lot-d-label,
#lot-d {
  display: none !important;
}

#lot h2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 16px;
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.05;
  white-space: nowrap;
}

.v025-surface-label,
.v025-surface-outcome {
  grid-area: 1 / 1;
  min-width: 0;
  justify-self: center;
  text-align: center;
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  white-space: nowrap;
  color: var(--tg-theme-text-color, #111111);
}

.v025-surface-label {
  justify-self: start;
  font-weight: 600;
  color: var(--tg-theme-text-color, #111111);
}

.v025-surface-outcome {
  justify-self: center;
  text-align: center;
}

.v025-surface-outcome[data-outcome="winner"] {
  color: #20c96b;
  font-weight: 800;
}

.v025-surface-outcome[data-outcome="not-winner"] {
  color: var(--tg-theme-text-color, #111111);
  font-weight: 600;
}
.v025-surface-outcome[data-outcome="deadline"] { color: #d18b2f; }
.v025-surface-outcome[data-outcome="error"] { color: #d84b55; }

.drum {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 7px 0 0;
  outline: none;
  user-select: none;
  touch-action: none;
}

.drum:focus-visible {
  outline: 2px solid #49baff;
  outline-offset: 2px;
  border-radius: 20px;
}

.drum-shell {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 12px;
  perspective: 800px;
}

.drum-shell::before,
.drum-shell::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 2px;
  bottom: 2px;
  width: 10px;
  border: 1px solid var(--tg-theme-section-separator-color, #b7c4d1);
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    var(--tg-theme-bg-color, #f8fbfe),
    var(--tg-theme-section-separator-color, #b7c4d1) 50%,
    var(--tg-theme-bg-color, #f8fbfe)
  );
  box-shadow:
    inset 0 0 6px rgba(255,255,255,.72),
    0 0 3px rgba(47,158,232,.62),
    0 0 8px rgba(47,158,232,.20);
}

.drum-shell::before { left: 0; }
.drum-shell::after { right: 0; }

.drum-window {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 46px 50px 64px 50px 46px;
  height: 256px;
  overflow: hidden;
  border: 1px solid var(--tg-theme-section-separator-color, #9eafbf);
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(56,164,236,.14),
      rgba(255,255,255,.16) 50%,
      rgba(130,150,170,.12)
    ),
    var(--tg-theme-secondary-bg-color, #f8fbfe);
  box-shadow:
    inset 0 14px 22px rgba(55,76,98,.10),
    inset 0 -14px 22px rgba(55,76,98,.10),
    0 0 0 1px rgba(70,132,188,.12),
    0 0 8px rgba(31,121,201,.12);
}

.drum-window::before,
.drum-window::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  height: 14%;
  pointer-events: none;
}

.drum-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(80,100,120,.14), transparent);
}

.drum-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(80,100,120,.14), transparent);
}

.drum-row {
  --drum-row-column-gap: 6px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 12px 6ch minmax(0, 1fr);
  align-items: center;
  column-gap: var(--drum-row-column-gap);
  row-gap: 0;
  margin: 3px 14px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--tg-theme-section-separator-color, #b7c4d1);
  border-radius: 11px;
  background: var(--tg-theme-secondary-bg-color, #ffffff);
  color: var(--tg-theme-hint-color, #657587);
  box-shadow: inset 0 1px rgba(255,255,255,.50);
}

.drum-row[data-offset="-2"],
.drum-row[data-offset="2"] {
  opacity: .70;
  transform: scaleX(.95);
}

.drum-row[data-offset="-1"],
.drum-row[data-offset="1"] {
  opacity: .88;
  transform: scaleX(.985);
}

.drum-center-row {
  z-index: 4;
  opacity: 1 !important;
  transform: scaleX(1) !important;
  border-color: #299ff0;
  background:
    linear-gradient(180deg, rgba(51,174,255,.12), rgba(51,174,255,.05)),
    var(--tg-theme-secondary-bg-color, #ffffff);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.42),
    0 0 3px #299ff0,
    0 0 12px rgba(41,159,240,.26);
}

.drum.two-row .drum-window {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.drum.two-row .drum-row {
  width: calc(100% - 28px);
  min-height: 62px;
  align-self: center;
  opacity: .92;
  transform: none;
}

.drum-dot {
  width: 9px;
  height: 9px;
  border: 1px solid #8fa1b3;
  border-radius: 50%;
  background: transparent;
}

.drum-dot.reserved {
  border-color: #43baff;
  background: #249ffc;
  box-shadow: 0 0 9px rgba(36,159,252,.55);
}

.drum-dot.submitted {
  border-color: #26df68;
  background: #19c956;
  box-shadow: 0 0 7px rgba(38,223,104,.42);
}

.drum-row.winner {
  border-color: #e8b82c;
  box-shadow:
    inset 0 0 0 1px rgba(255,214,94,.18),
    0 0 4px #e8b82c,
    0 0 12px rgba(232,184,44,.30);
}

.drum-row.winner .drum-dot {
  border-color: #f5c84c;
  background: #e8b82c;
  box-shadow:
    0 0 4px rgba(232,184,44,.72),
    0 0 10px rgba(232,184,44,.38);
}

.drum-position {
  color: var(--tg-theme-text-color, #253c54);
  font-size: 15px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.drum-player {
  min-width: 0;
  justify-self: stretch;
  text-align: center;
  overflow: hidden;
  color: var(--tg-theme-text-color, #33485c);
  font-size: 15px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drum-row.is-reserved-row {
  /* D2d3d: reserved state inherits the exact normal-row leading grid. */
}

.drum-row #commit-panel {
  display: grid !important;
  grid-template-columns: 48px minmax(calc(9ch + 18px), 1fr) 36px;
  align-items: center;
  column-gap: var(--drum-row-column-gap);
  row-gap: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 !important;
}

.drum-row #commit-panel label {
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  margin: 0;
  color: var(--tg-theme-text-color, #33485c);
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.05;
  text-align: center;
  white-space: pre-line;
}

.drum-row #commit-panel .x-input-shell {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
}

.drum-row #commit-panel #xi {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-width: calc(9ch + 18px);
  height: 40px;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid #64a8d8 !important;
  border-radius: 10px !important;
  background: var(--tg-theme-bg-color, #ffffff) !important;
  color: var(--tg-theme-text-color, #17202b) !important;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums;
}

.drum-row #commit-panel #xi::placeholder {
  color: var(--tg-theme-hint-color, #6b7c8f);
  opacity: .92;
  font-size: 11.5px;
}

.drum-row #toggle-x-visibility {
  display: none !important;
}

.drum-row #commit-panel #commit-xi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #55a9e1 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #27a7f3, #1688d2) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.v025-submit-icon {
  display: inline;
  line-height: 1;
}

.v025-submit-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#commit-status {
  display: none !important;
}

.drum-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(75,190,255,.72));
}

.drum-arrow-left {
  left: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 10px solid #59c6ff;
}

.drum-arrow-right {
  right: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid #59c6ff;
}

.v025-game-id-footer {
  margin: 5px 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tg-theme-hint-color, #64748b) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 380px) {
  .drum-row {
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 9px;
    padding-right: 4px;
    --drum-row-column-gap: 5px;
  }

  .drum-row.is-reserved-row {
    /* D2d3d: no mobile-only leading-grid divergence. */
  }

  .drum-row #commit-panel {
    grid-template-columns: 48px minmax(calc(9ch + 18px), 1fr) 36px;
    column-gap: var(--drum-row-column-gap);
  }

  .drum-row #commit-panel label {
    font-size: .68rem;
  }

  .drum-row #commit-panel #commit-xi {
    width: 36px;
    min-width: 36px;
  }
}

/* v0.25 D2d3a point refinement v8:
   stable internal N=2 leading grid + lighter blue light-theme Drum. */

/* No second shell perimeter. */
.drum-shell {
  box-shadow: none;
}

/* Rails retain their independent glow. */
.drum-shell::before,
.drum-shell::after {
  box-shadow:
    inset 0 0 8px rgba(255,255,255,.07),
    0 0 4px #168bea,
    0 0 10px rgba(22,139,234,.62),
    0 0 16px rgba(22,139,234,.28);
}

/* One real Drum perimeter only. */
.drum-window {
  border-color: rgba(72,174,242,.76);
  box-shadow:
    inset 0 14px 24px rgba(0,0,0,.34),
    inset 0 -14px 24px rgba(0,0,0,.34),
    0 0 2px #168bea,
    0 0 8px rgba(22,139,234,.58),
    0 0 14px rgba(22,139,234,.24);
}

/* N=2: identical outside box AND identical leading grid in every state.
   Dot + position must not shift when the input appears/disappears. */
.drum.two-row .drum-row,
.drum.two-row .drum-row.is-reserved-row {
  box-sizing: border-box;
  width: calc(100% - 28px);
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  margin: 0 14px;
  padding: 0 8px 0 14px;
  --drum-row-column-gap: 6px;
  grid-template-columns: 13px 6ch minmax(0, 1fr);
  column-gap: var(--drum-row-column-gap);
  align-items: center;
  align-self: center;
}

.drum-dot {
  width: 11px;
  height: 11px;
  border-width: 1.25px;
  justify-self: start;
}

.drum-position {
  width: 6ch;
  min-width: 6ch;
  font-size: 16px;
  font-weight: 800;
  justify-self: start;
}

.drum-player {
  font-size: 15.5px;
  font-weight: 560;
}

.drum-row #commit-panel {
  min-width: 0;
}

.drum-row #commit-panel label {
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.drum-row #commit-panel #xi {
  font-size: 13px !important;
}

/* Triangle tips fill the visual width of the narrow rails. */
.drum-arrow {
  filter:
    drop-shadow(0 0 4px rgba(75,190,255,.95))
    drop-shadow(0 0 9px rgba(75,190,255,.50));
}

.drum-arrow-left {
  left: -1px;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 12px;
}

.drum-arrow-right {
  right: -1px;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-right-width: 12px;
}

/* D1.14 light visual language, refined:
   less grey shadow, more pale-blue cylinder depth. */
html[data-theme="light"] .drum-window {
  border-color: rgba(72,174,242,.72);
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(100,196,249,.24),
      rgba(249,253,255,.98) 50%,
      rgba(222,241,253,.96)
    ),
    linear-gradient(
      180deg,
      #fbfeff,
      #e4f4fd 50%,
      #f8fdff
    );
  box-shadow:
    inset 0 12px 20px rgba(79,165,220,.12),
    inset 0 -12px 20px rgba(79,165,220,.12),
    0 0 2px #168bea,
    0 0 8px rgba(22,139,234,.48),
    0 0 14px rgba(22,139,234,.20);
}

html[data-theme="light"] .drum-window::before {
  background:
    linear-gradient(
      180deg,
      rgba(202,234,252,.68),
      transparent
    );
}

html[data-theme="light"] .drum-window::after {
  background:
    linear-gradient(
      0deg,
      rgba(202,234,252,.68),
      transparent
    );
}

html[data-theme="light"] .drum-row {
  border-color: rgba(90,154,201,.34);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(235,247,254,.98)
    );
}

html[data-theme="light"] .drum-center-row {
  border-color: #299ff0;
  background: #ffffff;
}

/* Responsive keeps one leading grid for both normal and reserved rows. */
@media (max-width: 380px) {
  .drum.two-row .drum-row,
  .drum.two-row .drum-row.is-reserved-row {
    width: calc(100% - 24px);
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 10px;
    padding-right: 4px;
    --drum-row-column-gap: 5px;
    grid-template-columns: 12px 6ch minmax(0, 1fr);
    column-gap: var(--drum-row-column-gap);
  }

  .drum-dot {
    width: 10px;
    height: 10px;
  }

  .drum-position {
    width: 6ch;
    min-width: 6ch;
    font-size: 15.5px;
  }

  .drum-row #commit-panel label {
    font-size: .70rem;
  }

  .drum-row #commit-panel #xi {
    font-size: 13px !important;
  }
}

/* v0.25 D2d3a result typography v9b */

/* v0.25 R5c3: lifecycle admission feedback stays beside JOIN/LEAVE on mobile. */
#lifecycle-action-status {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--tg-theme-hint-color, #777777);
}

#lifecycle-action-status:empty {
  display: none;
}


/* v0.25 R5c6: accepted Redmi Drum presentation + natural-number input polish. */
.drum-shell {
  padding: 5px 11px;
}

.drum-window {
  grid-template-rows: 42px 46px 56px 46px 42px;
  height: 252px;
  align-content: center;
}

.drum-row {
  margin: 2px 12px;
}

.drum-row[data-offset="-2"],
.drum-row[data-offset="2"] {
  border-color: rgba(72,174,242,.24);
  box-shadow:
    inset 0 1px rgba(255,255,255,.26),
    0 5px 7px rgba(10,69,113,.12);
}

.drum-row[data-offset="-1"],
.drum-row[data-offset="1"] {
  border-color: rgba(72,174,242,.44);
  box-shadow:
    inset 0 1px rgba(255,255,255,.32),
    0 6px 9px rgba(10,69,113,.18);
}

/* Free Drum: intentionally slightly quieter center. */
#drum[aria-disabled="false"] .drum-center-row:not(.winner) {
  border-color: rgba(41,159,240,.64);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 6px 10px rgba(10,69,113,.15);
}

/* Locked after JOIN: accepted brighter center. */
#drum[aria-disabled="true"] .drum-center-row:not(.winner) {
  border-color: #299ff0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.42),
    0 8px 14px rgba(10,69,113,.25),
    0 2px 2px rgba(41,159,240,.14);
}

.drum-center-row {
  margin-left: 10px;
  margin-right: 10px;
  padding-right: 6px;
  grid-template-columns: 14px 7ch minmax(0, 1fr);
}

.drum-position {
  font-size: 16px;
}

.drum-player {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.drum-center-row #commit-panel {
  grid-template-columns: 56px minmax(0, 1fr) 50px;
}

.drum-center-row #commit-panel label {
  width: 56px;
  min-width: 56px;
  font-size: .72rem;
  line-height: 1.02;
  white-space: pre-line;
  text-align: center;
}

/*
 * Keep number text left aligned exactly as accepted in v4.5.
 * Browser-native input line box provides the symmetric vertical placement.
 */
.drum-center-row #commit-panel #xi {
  width: 100% !important;
  min-width: 0;
  height: 40px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 7px !important;
  padding-right: 7px !important;
  font-size: 16px !important;
  line-height: normal !important;
  letter-spacing: -.15px;
  text-overflow: clip;
  box-sizing: border-box;
  text-align: left;
  font-variant-numeric: tabular-nums;
  appearance: none;
  -webkit-appearance: none;
}

.drum-center-row #commit-panel #xi::placeholder {
  font-size: 13px;
  line-height: normal;
  text-align: left;
}

.drum-center-row #commit-panel #commit-xi {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.v025-submit-shield {
  display: block;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

.v025-submit-shield-body {
  fill: #1f9ff2;
  stroke: #1f9ff2;
  stroke-width: 3;
  stroke-linejoin: round;
}

.v025-submit-shield-check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drum-row.is-player-name-row {
  position: relative;
}

.drum-row.is-player-name-row .drum-dot,
.drum-row.is-player-name-row .drum-position {
  position: relative;
  z-index: 3;
}

.drum-row.is-player-name-row .drum-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  pointer-events: none;
}


/* v0.25 R5c7: Report / Result terminal presentation consistency. */
#report h2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 16px;
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.05;
  white-space: nowrap;
}
