:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172338;
  background: #f6f7fa;
  font-synthesis: none;
  font-size: 14px;
  font-weight: 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7c83fd;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #afa6fa;
  outline-offset: 1px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 15px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 17px;
}
button {
  border: 0;
  background: none;
}
small {
  font-size: 11px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 230px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e7e9ef;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.45;
}
.brand-icon {
  background: #ffcc38;
  color: #172338;
  display: grid;
  place-items: center;
  border-radius: 13px;
  width: 44px;
  height: 44px;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 #e8ae1c;
}
.brand > span > b {
  font-size: 22px;
  display: block;
  letter-spacing: 3px;
  line-height: 1.15;
}
.brand b span {
  font-size: 9px;
  vertical-align: top;
  letter-spacing: 0;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #969aaa;
  margin: 47px 15px 15px;
  font-weight: 700;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 13px 15px;
  color: #738092;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 550;
}
nav button:hover {
  background: #f7f6fc;
}
nav button.selected {
  background: #eeebfc;
  color: #7461cd;
}
nav .nav-dot {
  width: 6px;
  height: 6px;
  background: #a7adb8;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-note {
  margin: auto 7px 24px;
  background: #faf9f4;
  border: 1px solid #eeeade;
  border-radius: 10px;
  padding: 16px 12px;
}
.sidebar-note div {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}
.sidebar-note div svg {
  color: #c59c24;
}
.sidebar-note p {
  font-size: 11px;
  color: #91918c;
  line-height: 1.7;
  margin: 10px 0 15px;
}
.sidebar-note > span {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.7px;
  font-size: 8px;
  font-weight: 700;
  color: #a19b83;
}
.profile {
  margin: 0 -18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 19px;
  border-top: 1px solid #eee;
}
.profile b {
  font-size: 11px;
}
.profile small {
  display: block;
  color: #9299a6;
  font-size: 9px;
  margin-top: 4px;
}
.profile button {
  padding: 3px;
  color: #939aa6;
}
.avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  color: #55627c;
  font-size: 10px;
  font-weight: 750;
}
.workspace {
  margin-left: 230px;
  width: calc(100% - 230px);
}
.topbar {
  height: 73px;
  border-bottom: 1px solid #e7e9ef;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: #98a0ad;
}
.breadcrumb b {
  color: #526074;
  font-weight: 500;
}
.top-status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #819082;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43bc8d;
  flex-shrink: 0;
}
.dot.red {
  background: #e56871;
}
.divider {
  height: 18px;
  width: 1px;
  background: #e9ebee;
  margin: 0 12px;
}
.version {
  margin-right: 16px;
  color: #a1a8b3;
}
.top-status .avatar {
  width: 29px;
  height: 29px;
}
.mobile-toggle {
  display: none;
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 34px 36px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}
.eyebrow {
  color: #989eaa;
  letter-spacing: 1.6px;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 9px;
}
h1 {
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.3;
}
.heading-dot {
  color: #e1b72b;
}
.page-heading p {
  font-size: 11px;
  color: #8690a0;
  margin-top: 9px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e3e6ed;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f3f4f8;
  transform: translateY(-1px);
}
.btn.primary {
  background: #ffcd3e;
  border-color: #f0bd2b;
  color: #342f1e;
}
.btn.primary:hover {
  background: #f6c02c;
}
.btn.dark {
  background: #18243a;
  color: white;
  border-color: #18243a;
}
.btn.icon {
  width: 36px;
  padding: 8px;
}
.danger {
  color: #d76b76;
}
.connection-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f3f0ff;
  border: 1px solid #e5defa;
  border-radius: 10px;
  padding: 14px 17px;
  margin-bottom: 23px;
}
.connection-icon {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #e5defb;
  color: #8f78d4;
  display: grid;
  place-items: center;
}
.connection-strip b {
  font-size: 11px;
  color: #695598;
}
.connection-strip p {
  font-size: 10px;
  color: #9988b6;
  margin-top: 4px;
}
.connection-strip > .pill {
  margin-left: auto;
}
.connection-strip > button {
  color: #9181b4;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 5px 7px;
  background: #e9e2fa;
  color: #9278bc;
  font-size: 8px;
  letter-spacing: 0.6px;
  font-weight: 700;
  white-space: nowrap;
}
.pill.neutral {
  background: #f1f3f7;
  color: #98a1b0;
}
.pill.success {
  background: #e9f6ee;
  color: #4ca278;
}
.pill.purple {
  background: #f0eafb;
  color: #a386c4;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  padding: 16px 18px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #808a9b;
}
.metric-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.purple {
  color: #9f8bd5;
  background: #f1ecfc;
}
.blue {
  color: #7b9bd7;
  background: #eef3fd;
}
.green {
  color: #74b69b;
  background: #ebf8f1;
}
.yellow {
  color: #c6a550;
  background: #fdf8e8;
}
.metric > b {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 5px 0 5px;
}
.metric > small {
  font-size: 9px;
  color: #9da4b0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(350px, 1.04fr);
  gap: 23px;
  align-items: start;
}
.card {
  border: 1px solid #e4e7ee;
  background: white;
  border-radius: 11px;
  overflow: hidden;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  gap: 10px;
  border-bottom: 1px solid #eff0f4;
  min-height: 60px;
}
.card-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head svg {
  color: #8993a3;
}
.card-head h2 {
  font-size: 12px;
  font-weight: 650;
}
.card-head > button {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #9c93b8;
  gap: 4px;
}
.preview-stage {
  background: #eef0f4;
  padding: 18px 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: radial-gradient(#d9dde5 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}
.preview-tag {
  font-size: 7px;
  letter-spacing: 1px;
  color: #849093;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 13px;
}
.preview-tag .dot {
  width: 4px;
  height: 4px;
}
.arena-frame {
  width: min(100%, 320px);
  aspect-ratio: 9/16;
  box-shadow: 0 9px 28px #24324820;
  border: 5px solid #fff;
  border-radius: 14px;
  overflow: hidden;
  container-type: inline-size;
}
.preview-caption {
  display: flex;
  justify-content: space-between;
  width: min(100%, 320px);
  margin-top: 10px;
  color: #969eac;
  font-size: 8px;
}
.preview-caption > span {
  display: flex;
  gap: 4px;
  align-items: center;
}
.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 9px;
  color: #9ba5b4;
}
.preview-footer span,
.preview-footer button {
  display: flex;
  gap: 5px;
  align-items: center;
}
.preview-footer button {
  font-size: 9px;
  color: #9e91bd;
}
.control-stack {
  display: grid;
  gap: 20px;
}
.round-body {
  padding: 20px;
}
.round-info {
  display: flex;
  align-items: center;
  gap: 13px;
}
.small-letter {
  width: 62px;
  height: 67px;
  background: #fff4ce;
  color: #b38d2d;
  display: grid;
  place-items: center;
  border: 1px solid #f5e5b2;
  border-radius: 9px;
  font-size: 36px;
  font-weight: 800;
}
.round-info small {
  font-size: 8px;
  color: #a0a8b4;
  letter-spacing: 1px;
}
.round-info h3 {
  font-size: 21px;
  margin: 3px 0 5px;
}
.round-info span {
  font-size: 9px;
  color: #9fa6b1;
}
.round-clock {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 65px;
  font-size: 22px;
  font-weight: 600;
  color: #48546a;
}
.round-clock svg {
  color: #a1aab8;
}
.round-clock small {
  flex-basis: 100%;
  text-align: center;
  letter-spacing: 0;
  font-weight: 400;
}
.round-bar {
  height: 5px;
  border-radius: 10px;
  background: #f0f1f5;
  margin: 21px 0;
}
.round-bar i {
  display: block;
  background: #8e7bcf;
  height: 100%;
  border-radius: 10px;
}
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.round-body .controls {
  flex-wrap: nowrap;
}
.round-body .controls .primary {
  flex: 1;
}
.auto-note {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #9c9eab;
  margin-top: 17px;
}
.auto-note > .dot {
  background: #b7abc9;
  width: 4px;
  height: 4px;
}
.auto-note > span:last-child {
  margin-left: auto;
  font-size: 8px;
}
.panel-body {
  padding: 21px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toggle-row b {
  font-size: 11px;
}
.toggle-row p {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 5px;
}
.switch {
  width: 32px;
  height: 18px;
  border-radius: 20px;
  background: #d8dbe3;
  padding: 3px;
  display: flex;
  align-items: center;
}
.switch span {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch.on {
  background: #9d89d3;
}
.switch.on span {
  transform: translateX(14px);
}
.form-separator {
  font-size: 7px;
  color: #aab1bd;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 16px;
}
.form-separator:before,
.form-separator:after {
  content: "";
  height: 1px;
  background: #eff0f4;
  flex: 1;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #6f7b8d;
  margin: 13px 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e5e8ee;
  border-radius: 6px;
  background: #fff;
  padding: 10px 11px;
  color: #536077;
  font-size: 11px;
  margin-top: 7px;
  min-width: 0;
}
input::placeholder {
  color: #b0b7c3;
}
.input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.input-pair label {
  margin: 0;
}
.input-pair input,
.input-pair select {
  font-size: 10px;
}
.send-input {
  position: relative;
  margin: 9px 0 14px;
}
.send-input input {
  padding-right: 44px;
}
.send-input button {
  position: absolute;
  right: 5px;
  top: 12px;
  background: #eeeaf9;
  color: #9781c5;
  width: 27px;
  height: 26px;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.muted {
  color: #9ca5b3;
  font-size: 10px;
  line-height: 1.7;
}
.simulation .muted {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
}
.leader-list {
  padding: 0 20px;
}
.leader-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f5;
}
.leader-list > div:last-child {
  border: 0;
}
.place {
  color: #a6a8b6;
  font-size: 10px;
  width: 10px;
}
.leader-list b {
  font-size: 10px;
}
.leader-list small {
  display: block;
  color: #a1a7b2;
  font-size: 8px;
  margin-top: 4px;
}
.leader-list strong {
  margin-left: auto;
  font-size: 12px;
  color: #7f759e;
}
.leader-list strong small {
  display: inline;
}
.leader-list .avatar {
  width: 28px;
  height: 28px;
  font-size: 8px;
}
.empty-inline {
  min-height: 116px;
  color: #b5accc;
  font-size: 10px;
  justify-content: center;
}
.empty-inline small {
  color: #aeb4c0;
  margin-top: 8px !important;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e4e7ee;
  margin-top: 29px;
  padding: 20px 0;
  color: #aab1bd;
  font-size: 8px;
}
footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}
footer > span:first-child {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
footer .dot {
  width: 4px;
  height: 4px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.settings-grid > .card {
  align-self: start;
}
.panel-body > h2 {
  margin-bottom: 12px;
}
.panel-body > h3 {
  margin: 20px 0 10px;
  font-size: 13px;
}
.event-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 10px 16px;
  border-radius: 7px;
  color: #8c95a6;
  font-size: 12px;
}
.tabs button.active {
  background: #eeebfb;
  color: #8d75c2;
}
.podium {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}
.podium > div {
  background: #faf8ee;
  border: 1px solid #f2ebd0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  gap: 12px;
  border-radius: 12px;
  min-width: 170px;
}
.podium > div > span {
  font-size: 34px;
}
.podium small {
  color: #aaa;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #98a0af;
  background: #f8f9fc;
  padding: 13px;
}
td {
  font-size: 12px;
  padding: 16px 13px;
  border-bottom: 1px solid #f0f1f5;
}
.empty {
  text-align: center;
  padding: 50px;
  color: #929cac;
}
.dictionary-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
}
.category-list {
  display: grid;
  gap: 5px;
}
.category-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 11px;
  border-radius: 7px;
  color: #8792a3;
  text-align: left;
}
.category-list button.active {
  background: #eeebfa;
  color: #8972bb;
}
.category-list small {
  margin-left: auto;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #9b84cf;
}
.settings-checks {
  display: flex;
  gap: 10px 24px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.theme-picker {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}
.theme-choice {
  height: 120px;
  flex: 1;
  border: 2px solid transparent;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.theme-choice > span {
  font-size: 30px;
}
.theme-choice b {
  font-size: 12px;
}
.theme-choice svg {
  position: absolute;
  right: 10px;
  top: 10px;
}
.theme-choice.classic {
  background: repeating-linear-gradient(#fffbed 0 19px, #dfe8ee 19px 20px);
  color: #957b32;
}
.theme-choice.neon {
  background: #151632;
  color: #b8ff54;
}
.theme-choice.minimal {
  background: #f3f5f7;
  color: #637185;
}
.theme-choice.chosen {
  border-color: #9b84cd;
}
.record {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}
.record > div {
  flex: 1;
  min-width: 200px;
}
.record b {
  font-size: 12px;
}
.record small {
  display: block;
  font-size: 9px;
  color: #969fae;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.record-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}
.record-tile > span {
  background: #fff2c8;
  padding: 10px;
  border-radius: 5px;
  font-weight: 800;
}
.record-tile b {
  font-size: 13px;
}
.record-tile small {
  display: block;
  color: #9aa2af;
  margin-top: 5px;
  font-size: 9px;
}
.record-tile strong {
  font-size: 10px;
  color: #a496c1;
  margin-left: auto;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 11px;
}
.history-row small {
  display: block;
  color: #99a2b0;
  margin-top: 6px;
}
.history-row time {
  margin-left: auto;
  color: #a0a8b4;
  font-size: 9px;
}
.history-row svg {
  color: #b0a4c7;
}
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 500px;
  background: #19253c;
  color: #fff;
  padding: 17px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #0002;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.toast button {
  color: white;
}
.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #8b7bb2;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  background: radial-gradient(at 20% 30%, #fff2b8, transparent 50%), #f8f7f2;
  padding: 35px;
}
.login-brand h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 28px 0;
}
.login-brand h1 span {
  letter-spacing: 12px;
}
.login-brand p {
  color: #848783;
  line-height: 1.8;
}
.login-card {
  background: #fff;
  padding: 40px;
  width: 380px;
  border: 1px solid #e8e6dc;
  border-radius: 18px;
  box-shadow: 0 20px 80px #695b2810;
}
.login-card h2 {
  font-size: 23px;
  margin: 12px 0;
}
.login-card p {
  color: #989fac;
  font-size: 12px;
  margin-bottom: 25px;
}
.login-card label {
  margin: 20px 0;
}
.login-card .btn {
  width: 100%;
  margin: 10px 0 20px;
}
.login-card > small {
  font-size: 10px;
  line-height: 1.8;
  color: #a6adba;
}
.error {
  color: #cf6776;
  font-size: 11px;
}
.login-brand > .pencil {
  position: relative;
  left: 140px;
  top: 20px;
  width: 50px;
  transform: rotate(15deg);
}
/* A superfície usa unidades do contêiner: a mesma composição em prévia e OBS. */
.arena {
  width: 100%;
  height: 100%;
  container-type: inline-size;
  background-color: #fffcf1;
  background-image: repeating-linear-gradient(
    transparent 0 5.45cqw,
    #c9d9e06b 5.45cqw calc(5.45cqw + 1px)
  );
  color: #203453;
  position: relative;
  overflow: hidden;
}
.arena:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 7cqw;
  border-left: 1px solid #f1b2b14f;
}
.arena-safe {
  position: relative;
  padding: 7cqw 4cqw 14cqw;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.arena-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  font-size: 2.3cqw;
  letter-spacing: 0.8cqw;
  font-weight: 900;
  margin-bottom: 4cqw;
}
.arena-brand svg {
  width: 3cqw;
  height: 3cqw;
}
.arena-brand img {
  max-width: 20cqw;
  max-height: 8cqw;
}
.arena-phase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2cqw;
  margin-bottom: 4cqw;
}
.arena-phase > b {
  background: #263c61;
  color: white;
  border-radius: 2cqw;
  padding: 1.5cqw 3cqw;
  font-size: 3.3cqw;
  letter-spacing: 0.2cqw;
  box-shadow: 0 1cqw 0 #172c4e;
}
.arena-phase > span {
  font-size: 2.4cqw;
  display: flex;
  align-items: center;
  gap: 1cqw;
  color: #93958b;
  font-weight: 700;
}
.arena-phase svg {
  width: 3cqw;
  height: 3cqw;
  color: #d8af39;
}
.challenge {
  display: flex;
  gap: 4cqw;
  margin-bottom: 5cqw;
  padding: 0 2cqw;
}
.letter-card {
  background: var(--accent, #ffd34e);
  border: 1px solid #edbc39;
  border-radius: 3cqw;
  position: relative;
  width: 35cqw;
  height: 37cqw;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 1.5cqw 0 #e8b326;
  transform: rotate(-3deg);
}
.letter-card > small {
  display: block;
  letter-spacing: 0.4cqw;
  font-size: 2cqw;
  margin-top: 3cqw;
  color: #937a29;
  font-weight: 800;
}
.letter-card > strong {
  font-size: 25cqw;
  line-height: 1.15;
  display: block;
  color: #26385b;
  text-shadow: 0 1cqw 0 #fff5;
}
.topic {
  padding-top: 3cqw;
  flex: 1;
}
.topic > span {
  font-size: 1.8cqw;
  font-weight: 800;
  letter-spacing: 0.3cqw;
  color: #b29c65;
}
.topic h2 {
  font-size: 7cqw;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.3cqw;
  margin: 1.3cqw 0 2cqw;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.topic p {
  font-size: 3.1cqw;
  line-height: 1.5;
  color: #748091;
}
.topic p b {
  color: #3b4c64;
}
.timer {
  display: flex;
  align-items: center;
  gap: 1cqw;
  margin-top: 3cqw;
  color: #76858c;
}
.timer svg {
  width: 3cqw;
  height: 3cqw;
}
.timer b {
  font-size: 3.4cqw;
  min-width: 6cqw;
}
.timer > div {
  height: 1.5cqw;
  background: #e5e7df;
  border-radius: 1cqw;
  flex: 1;
  margin-left: 1cqw;
}
.timer i {
  height: 100%;
  background: #8fb8a0;
  display: block;
  border-radius: 1cqw;
}
.timer.urgent {
  color: #d96c76;
}
.pencil {
  position: absolute;
  width: 8cqw;
  bottom: -2cqw;
  right: -2cqw;
  transform: rotate(17deg);
  filter: drop-shadow(0 1cqw 0.6cqw #0002);
}
.eraser {
  height: 4cqw;
  background: #f48d9f;
  border-radius: 2cqw 2cqw 0 0;
  border-bottom: 2cqw solid #d3d8d3;
}
.pencil-body {
  height: 14cqw;
  background: linear-gradient(90deg, #e5ab22 20%, #ffe18b 20% 80%, #e9b82f 80%);
  padding-top: 4cqw;
}
.eyes {
  font-size: 4cqw;
  color: #253b50;
  letter-spacing: 1.5cqw;
  line-height: 2cqw;
  margin-left: 1cqw;
  font-weight: bold;
}
.smile {
  font-size: 5cqw;
  line-height: 4cqw;
}
.pencil-tip {
  width: 0;
  height: 0;
  border-left: 4cqw solid transparent;
  border-right: 4cqw solid transparent;
  border-top: 8cqw solid #d3b792;
  position: relative;
}
.pencil-tip:after {
  content: "";
  position: absolute;
  left: -1.1cqw;
  top: -2.3cqw;
  border-left: 1.1cqw solid transparent;
  border-right: 1.1cqw solid transparent;
  border-top: 2.3cqw solid #294057;
}
.arm {
  position: absolute;
  right: -3cqw;
  top: 9cqw;
  font-size: 6cqw;
  color: #7c6a48;
}
.word-progress {
  background: #fffef7;
  border: 1px solid #e8e2ce;
  border-radius: 2.5cqw;
  box-shadow: 0 1cqw 0 #e9e3d2;
  padding: 2.5cqw 3cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 4cqw;
}
.word-progress > span {
  font-size: 2.3cqw;
  font-weight: 800;
  letter-spacing: 0.2cqw;
  color: #7d837a;
}
.word-progress > b {
  font-size: 4.6cqw;
  color: #364965;
}
.word-progress b small {
  font-size: 3cqw;
  color: #b1b4a8;
}
.word-progress > div {
  flex-basis: 100%;
  height: 1.8cqw;
  background: #eeeede;
  border-radius: 1cqw;
  margin-top: 2cqw;
}
.word-progress i {
  height: 100%;
  background: #a1bfa2;
  display: block;
  border-radius: 1cqw;
  transition: width 0.4s;
}
.word-progress.near i {
  background: #f1be2f;
}
.arena-main {
  display: flex;
  gap: 2cqw;
  flex: 1;
  min-height: 0;
}
.power-rail {
  width: 10cqw;
  flex-shrink: 0;
  text-align: center;
}
.power-rail > small {
  font-size: 1.6cqw;
  color: #a9a898;
  font-weight: 800;
  letter-spacing: 0.4cqw;
}
.power-rail > div {
  margin-top: 3cqw;
}
.power-rail > div > span {
  width: 8.5cqw;
  height: 8.5cqw;
  display: grid;
  place-items: center;
  background: #fff7d7;
  border: 1px solid #f1e7ba;
  border-radius: 2.5cqw;
  font-size: 4.5cqw;
  box-shadow: 0 0.7cqw 0 #e9dfbb;
  margin: auto;
}
.power-rail > div > small {
  display: block;
  font-size: 1.8cqw;
  color: #9c9c88;
  margin-top: 1.5cqw;
  line-height: 1.3;
}
.power-rail.right > div > span {
  background: #f9e7ef;
  border-color: #efd4e0;
  box-shadow: 0 0.7cqw 0 #e6cfda;
}
.answer-list {
  flex: 1;
  min-width: 0;
  padding-top: 1cqw;
  overflow: hidden;
}
.answer {
  display: flex;
  align-items: center;
  gap: 1.7cqw;
  padding: 2cqw;
  margin-bottom: 2cqw;
  background: #fffefb;
  border: 1px solid #e8e8dc;
  border-radius: 2cqw;
  animation: answer-in 0.3s ease-out;
  box-shadow: 0 0.5cqw 0 #eeeadd;
}
.answer .avatar {
  width: 7cqw;
  height: 7cqw;
  font-size: 2cqw;
  border: 1px solid white;
}
.answer > div {
  flex: 1;
  min-width: 0;
}
.answer small {
  display: block;
  font-size: 1.9cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #adb0a7;
}
.answer b {
  display: block;
  font-size: 3.7cqw;
  font-weight: 800;
  color: #536250;
  margin-top: 0.7cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.answer b span {
  font-size: 2.7cqw;
  color: #e5bd4a;
}
.answer > strong {
  font-size: 3cqw;
  color: #6cab84;
  background: #eff8e9;
  padding: 1cqw;
  border-radius: 1cqw;
}
.waiting {
  height: 100%;
  min-height: 35cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3cqw;
  text-align: center;
  color: #b4baa5;
}
.waiting svg {
  width: 8cqw;
  height: 8cqw;
  opacity: 0.5;
}
.waiting b {
  font-size: 3cqw;
  color: #939d8c;
}
.waiting p {
  font-size: 2.4cqw;
  line-height: 1.8;
  color: #abb0a0;
}
.waiting > span {
  font-size: 10cqw;
  color: #e5d797;
}
.arena-message {
  text-align: center;
  color: #a79a76;
  font-size: 2.3cqw;
  font-weight: 700;
  padding: 3cqw 0 2cqw;
  min-height: 8cqw;
}
.likes {
  display: flex;
  gap: 2cqw;
  align-items: center;
  background: #fff2f0;
  border: 1px solid #f2dcdb;
  padding: 2.5cqw 3cqw;
  border-radius: 2.2cqw;
}
.likes > svg {
  width: 4.5cqw;
  height: 4.5cqw;
  color: #e49b9d;
}
.likes > div {
  flex: 1;
}
.likes b {
  font-size: 2.2cqw;
  color: #b28f8c;
  letter-spacing: 0.2cqw;
}
.likes > div > div {
  height: 1.5cqw;
  background: #eddcda;
  border-radius: 1cqw;
  margin-top: 1.5cqw;
}
.likes i {
  display: block;
  background: #e79ca4;
  height: 100%;
  border-radius: 1cqw;
}
.likes > strong {
  font-size: 3cqw;
  color: #b89697;
}
.likes small {
  font-size: 2cqw;
}
.arena-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqw;
  margin-top: 3cqw;
  font-size: 2cqw;
  color: #aaa894;
}
.arena-bottom b {
  font-size: 1.6cqw;
  letter-spacing: 0.6cqw;
  color: #b7a4bc;
}
.victory {
  text-align: center;
  padding-top: 7cqw;
  color: #c5a243;
}
.victory > svg {
  width: 10cqw;
  height: 10cqw;
}
.victory h2 {
  font-size: 5cqw;
  margin: 3cqw 0;
}
.victory p {
  font-size: 3cqw;
  color: #939884;
  margin-bottom: 5cqw;
}
.victory > div {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 3cqw 0;
  font-size: 2.3cqw;
}
.victory .avatar {
  width: 7cqw;
  height: 7cqw;
  font-size: 2cqw;
}
.victory b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6f7c6a;
}
.victory strong {
  margin-left: auto;
}
.theme-neon {
  background: #121329;
  background-image: radial-gradient(ellipse at top, #42214d, transparent);
  color: #eee;
}
.theme-neon .arena-phase > b {
  background: #acff43;
  color: #142a21;
}
.theme-neon .letter-card {
  background: #adff48;
  border-color: #d1ffa2;
  box-shadow: 0 1.5cqw 0 #4c9b3a;
}
.theme-neon .topic h2 {
  color: #e7d7ff;
}
.theme-neon .topic p b {
  color: #c7b4e8;
}
.theme-neon .word-progress,
.theme-neon .answer {
  background: #24213e;
  border-color: #453657;
  box-shadow: none;
}
.theme-neon .word-progress > b,
.theme-neon .answer b {
  color: #e5d5fa;
}
.theme-neon .likes {
  background: #33243e;
  border-color: #62344e;
}
.theme-minimal {
  background: #f7f9fb;
  background-image: none;
}
.theme-minimal:before {
  display: none;
}
.theme-minimal .letter-card {
  transform: none;
  background: #e6eaf1;
  box-shadow: none;
  border-color: #e3e7ed;
}
.theme-minimal .answer,
.theme-minimal .word-progress {
  box-shadow: none;
}
.arena.transparent {
  background: transparent !important;
}
.arena.transparent:before {
  display: none;
}
.no-motion * {
  animation: none !important;
  transition: none !important;
}
.drawing {
  animation: draw 0.3s infinite alternate;
}
.overlay-shell {
  width: min(100vw, 56.25vh);
  height: min(100vh, 177.7778vw);
  container-type: inline-size;
  margin: 0 auto;
  cursor: none;
}
.overlay-shell .arena {
  width: 100%;
  height: 100%;
}
body:has(.overlay-shell) {
  background: transparent;
  overflow: hidden;
}
.overlay-offline {
  position: fixed;
  bottom: 8%;
  left: 20%;
  right: 20%;
  background: #8b2337;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 18px;
}
.overlay-shell .arena-safe {
  padding-bottom: 17cqw;
}
.login-brand .pencil {
  display: none;
}
@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes draw {
  to {
    transform: scale(0.8);
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1500px) {
  main {
    padding: 40px 50px;
  }
  .arena-frame {
    width: 350px;
  }
  .preview-caption {
    width: 350px;
  }
  .control-stack {
    gap: 26px;
  }
  .round-body,
  .panel-body {
    padding: 25px;
  }
  .leader-list > div {
    padding: 17px 0;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  main {
    padding: 27px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .dashboard-grid {
    gap: 17px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  }
  .card-head {
    padding: 16px 14px;
  }
  .round-body,
  .panel-body {
    padding: 16px;
  }
  .card-head h2 {
    font-size: 11px;
  }
  .round-body .btn {
    padding: 9px;
    font-size: 9px;
    gap: 5px;
  }
  .round-info {
    gap: 9px;
  }
  .round-info h3 {
    font-size: 18px;
  }
  .small-letter {
    width: 50px;
    height: 60px;
  }
  .profile {
    margin-left: -12px;
    margin-right: -12px;
    padding: 15px 10px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 13px;
  }
  .metric-top {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .record-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 180px;
  }
  .workspace {
    margin-left: 180px;
    width: calc(100% - 180px);
  }
  .brand {
    padding: 0 5px;
  }
  .brand-icon {
    width: 35px;
    height: 36px;
  }
  .brand > span {
    font-size: 9px;
  }
  .brand > span > b {
    font-size: 18px;
  }
  nav button {
    padding: 12px 10px;
    font-size: 11px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .preview-stage {
    padding: 20px;
  }
  .arena-frame {
    width: 300px;
  }
  .control-stack {
    grid-template-columns: 1fr 1fr;
  }
  .round-card {
    grid-column: 1/-1;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .btn {
    font-size: 10px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dictionary-grid {
    grid-template-columns: 220px 1fr;
  }
  .settings-grid {
    gap: 16px;
  }
  .podium {
    gap: 10px;
    padding: 20px 0;
  }
  .podium > div {
    min-width: 0;
    flex: 1;
    padding: 20px 10px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
    width: 230px;
    box-shadow: 20px 0 50px #0003;
    padding-top: 75px;
  }
  .sidebar.open {
    display: flex;
  }
  .workspace {
    width: 100%;
    margin: 0;
  }
  .mobile-toggle {
    display: block;
    z-index: 30;
  }
  .topbar {
    padding: 0 18px;
    height: 60px;
  }
  .breadcrumb {
    gap: 6px;
    font-size: 10px;
  }
  .top-status .divider,
  .version,
  .top-status .avatar {
    display: none;
  }
  main {
    padding: 25px 18px 0;
  }
  .page-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    line-height: 1.7;
  }
  .connection-strip {
    padding: 12px;
    gap: 10px;
  }
  .connection-strip > .pill {
    display: none;
  }
  .connection-strip b {
    font-size: 10px;
  }
  .connection-strip p {
    font-size: 9px;
    line-height: 1.7;
  }
  .connection-strip > button {
    margin-left: auto;
  }
  .metrics {
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric > b {
    font-size: 26px;
  }
  .dashboard-grid,
  .settings-grid,
  .dictionary-grid {
    grid-template-columns: 1fr;
  }
  .control-stack {
    grid-template-columns: 1fr;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  .theme-picker {
    gap: 8px;
  }
  .theme-choice b {
    font-size: 10px;
  }
  .theme-choice {
    height: 100px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  .toast {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  .login-page {
    flex-direction: column;
    gap: 30px;
    padding: 25px;
  }
  .login-brand {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .login-brand h1 {
    font-size: 25px;
    margin: 0;
  }
  .login-brand h1 span {
    letter-spacing: 7px;
  }
  .login-brand p {
    display: none;
  }
  .login-card {
    width: 100%;
    max-width: 380px;
    padding: 30px;
  }
  .podium > div {
    padding: 15px 5px;
  }
  .podium h3 {
    font-size: 12px;
  }
  .podium b {
    font-size: 11px;
  }
  .round-body .btn {
    font-size: 10px;
  }
  .category-list {
    max-height: 260px;
    overflow: auto;
  }
  .settings-checks {
    gap: 0 20px;
  }
  .record-tile {
    padding: 12px;
  }
  .top-status {
    font-size: 9px;
  }
}

.hide-rails .power-rail {
  display: none;
}
.custom-mascot {
  position: absolute;
  right: -4cqw;
  bottom: -3cqw;
  max-width: 20cqw;
  max-height: 25cqw;
  object-fit: contain;
}
