body.portal.carmesi.oficial {
  color-scheme: dark;
  --bg: #120f12;
  --inside: #1b151a;
  --surface: #2a2024;
  --border: #82564d;
  --trim: #d89474;
  --ink: #fff0e4;
  --muted: #dfc7bd;
  --accent: #ef9a7e;
  --accentink: #301416;
  --navbg: #25171b;
  --official-focus: #ffcf9e;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-secondary-color: var(--muted);
  --bs-secondary-bg: var(--inside);
  --bs-border-color: var(--border);
  --bs-emphasis-color: #fff7ef;
  --bs-link-color: #edaa8f;
  --bs-link-hover-color: #ffdfc6;
  background: radial-gradient(ellipse at 55% 0, #593024 0, #2a1b1e 28rem, transparent 62rem),
    repeating-linear-gradient(128deg, #610d2018 0 1px, transparent 1px 19px), var(--bg);
}

.oficial [hidden],
.oficial dialog:not([open]) {
  display: none !important;
}

.oficial .stage {
  border: 2px solid #9a5c4f;
  border-radius: 10px 10px 6px 6px;
  background-color: #1b1519;
  box-shadow: 0 0 0 3px #1a1115, 0 0 0 4px #704239, 0 14px 48px #0a0709c9;
}

.oficial.carmesi .mastart {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(310px, 30.4vw, 440px);
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid #af6858;
  background: #35191a;
  box-shadow: none;
}

.oficial .hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  pointer-events: none;
}

.oficial .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 45% 42%;
}

.oficial.carmesi .mastart::before {
  z-index: -2;
  background: linear-gradient(270deg, #280e16ee, #40181be0 17%, #42161c74 41%, transparent 68%),
    linear-gradient(0deg, #1f0d13a8, transparent 34%);
}

.oficial .mastart::after {
  position: absolute;
  inset: 5px;
  z-index: -1;
  border: 1px solid #e6ab83a6;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 0 2px #43202883;
  content: '';
  pointer-events: none;
}

.oficial.carmesi .hero-copy {
  position: relative;
  z-index: 0;
  width: min(62%, 750px);
  min-width: 0;
  padding-right: clamp(30px, 6vw, 108px);
  color: #fff0de;
}

.oficial .hero-title {
  color: #fff0dc;
  text-shadow: 0 2px #9b5747, 0 5px 15px #200b14, 0 3px 40px #26070c;
}

.oficial .hero-kicker {
  color: #ffe2cb;
  text-shadow: 0 2px 4px #280b14;
}

.oficial .hero-actions { flex-wrap: wrap; gap: 8px; }

.oficial.carmesi .beta-corner {
  z-index: 2;
  right: 0;
  top: 0;
}

.oficial .beta-corner span {
  border-color: #ffd6a6;
  color: #fff5dc;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #eeb08c19 2px 3px),
    linear-gradient(92deg, #721f31, #a63847 55%, #731e31);
  box-shadow: inset 0 2px #691d30, inset 0 3px #eda586, inset 0 -2px #571525, inset 0 -3px #db956c;
  font-family: var(--sans);
  font-weight: 790;
}

.oficial .game-nav {
  flex-wrap: wrap;
  gap: clamp(3px, .9vw, 13px);
  min-height: 53px;
  padding: 4px clamp(5px, 1.8vw, 26px);
  border-block: 1px solid #a46251;
  background: linear-gradient(180deg, #382429, #24171d 55%, #21161b);
  box-shadow: inset 0 1px #c484666b, inset 0 -2px #08060955, 0 2px 8px #14080a7c;
}

.oficial .game-nav :is(a, button) {
  min-height: 44px;
  padding-inline: clamp(12px, 2.55vw, 36px);
  border-radius: 999px;
  color: #ffebe0;
}

.oficial .game-nav :is(a, button):is(:hover,[aria-current="page"],[aria-current="true"]) {
  background: #633036;
  box-shadow: inset 0 0 0 1px #d28b744f;
}

.oficial .board {
  min-width: 0;
  background: repeating-linear-gradient(132deg, #b3815c12 0 1px, transparent 1px 7rem),
    radial-gradient(ellipse at 50% -8rem, #5a2928 0, transparent 42rem), #181419;
}

.oficial .phone-tabs { display: none !important; }

.oficial .board > *,
.oficial .panel-body,
.oficial .dialog-surface,
.oficial .field {
  min-width: 0;
}

.oficial .panel::before {
  background: linear-gradient(145deg, #e19b7c, #805145 21%, #573c3a 63%, #ba705c);
}

.oficial .panel-heading {
  border-bottom-color: #ad6b59;
}

.oficial .panel-heading::before {
  background: linear-gradient(157deg, #79383f 0, #512a33 38%, #352029 80%),
    repeating-linear-gradient(130deg, #dc8e741a 0 1px, transparent 1px 10px);
}

.oficial .panel-heading h2 { color: #ffe8d4; }
.oficial .news-copy :is(h2,h3) { color: #fff0dd; }
.oficial .capture { border-radius: 7px; }
.oficial .map-figure img { border-radius: 4px; }

.oficial .btn {
  --bs-btn-color: var(--ink);
  --bs-btn-hover-color: #fff8ed;
  --bs-btn-focus-shadow-rgb: 255, 207, 158;
  gap: .5em;
}

.oficial :is(.btn,.button,.action,.hero-play,.small-tabs button,.phone-tabs a,.dismiss,.text-button) {
  min-height: 44px;
  border-radius: 999px;
}

.oficial :is(.btn-primary,.action,.hero-play) {
  --bs-btn-color: #fff4e3;
  --bs-btn-hover-color: #fff4e3;
  --bs-btn-active-color: #fff4e3;
  --bs-btn-disabled-color: #fff4e3;
  --bs-btn-disabled-bg: #71323a;
  color: #fff4e3;
  border-color: #dd9475;
  background: linear-gradient(180deg, #ae4d44, #862d36 61%, #692832);
  box-shadow: inset 0 1px #efb29c99, 0 2px 5px #07050983;
}

.oficial :is(.btn-primary,.action,.hero-play):hover {
  color: #fff9ef;
  border-color: #ffc49c;
  background: linear-gradient(180deg, #b8584a, #963a43 59%, #733139);
  filter: none;
}

.oficial :is(.btn-secondary,.btn-outline-secondary,.button,.dismiss) {
  color: #ffe6dc;
  border-color: #9d6658;
  background: linear-gradient(180deg, #413136, #2a2028);
  box-shadow: inset 0 1px #e7a88b32, 0 1px 3px #0a050586;
}

.oficial :is(.btn-secondary,.btn-outline-secondary,.button,.dismiss):hover {
  color: #fff7ec;
  border-color: #dda386;
  background: linear-gradient(180deg, #573b40, #37272f);
  filter: none;
}

.oficial .btn:disabled,
.oficial button:disabled,
.oficial [aria-disabled="true"] {
  opacity: .66;
  cursor: not-allowed;
}

.oficial .small-tabs { gap: 4px; }

.oficial .small-tabs button {
  border-color: #86564e;
  background-color: #231a22;
  padding-inline: clamp(4px, 1.25vw, 14px);
  color: #f0d4c8;
  overflow-wrap: anywhere;
}

.oficial .small-tabs button:hover {
  border-color: #e2957b;
  background: #503039;
}

.oficial .small-tabs button[aria-pressed="true"],
.oficial .phone-tabs a[aria-current="true"] {
  color: #fff2dc;
  border-color: #d98d6e;
  background: linear-gradient(180deg, #853947, #642c3a);
  box-shadow: inset 0 1px #f0b29979;
}

.oficial :is(a,button,input,select,textarea):focus-visible {
  outline: 2px solid var(--official-focus);
  outline-offset: 3px;
}

.oficial :is(.form-control,.field input) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .53rem .7rem;
  border: 1px solid #8b5c52;
  border-radius: 8px;
  color: #fff0e7;
  background: #1e171d;
  font-size: 1rem;
  box-shadow: inset 0 1px 4px #09060999;
}

.oficial :is(.form-control,.field input)::placeholder { color: #c0a7a0; opacity: 1; }

.oficial :is(.form-control,.field input):focus {
  color: #fff0e7;
  border-color: #f4ae92;
  background: #271b20;
  box-shadow: none;
}

.oficial .field input[aria-invalid="true"] { border-color: #f3a18e; }

.oficial .alert {
  --bs-alert-color: #ffebd4;
  --bs-alert-bg: #37262b;
  --bs-alert-border-color: #9f6658;
  border-radius: 7px;
  overflow-wrap: anywhere;
}

.oficial .feedback.alert:empty { display: none !important; }

.oficial .alert.alert-danger,
.oficial .feedback[data-kind="error"]:not(:empty) {
  --bs-alert-color: #ffe2d7;
  --bs-alert-bg: #50282c;
  --bs-alert-border-color: #da9a88;
  color: var(--bs-alert-color);
  border-color: var(--bs-alert-border-color);
  background: var(--bs-alert-bg);
}

.oficial .alert.alert-success,
.oficial .feedback[data-kind="ok"]:not(:empty) {
  --bs-alert-color: #f0f6e7;
  --bs-alert-bg: #263629;
  --bs-alert-border-color: #9ebf8b;
  color: var(--bs-alert-color);
  border-color: var(--bs-alert-border-color);
  background: var(--bs-alert-bg);
}

.oficial dialog {
  max-height: min(90svh, calc(100vh - 24px));
  max-width: calc(100vw - 24px);
  margin: auto;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
}

.oficial dialog[open] { color: var(--ink); }
.oficial dialog::backdrop { background: #0c070bda; }

.oficial .dialog-surface {
  border: 1px solid #bd806a;
  border-radius: 10px;
  background: linear-gradient(143deg, #3e2a30, #231a21 67%);
  box-shadow: inset 0 0 0 3px #cd907522;
}

.oficial .dialog-surface .dismiss {
  inset: 10px 10px auto auto;
  width: 44px;
  padding: 0;
}

.oficial .dialog-surface h2 { padding-right: 45px; }
.oficial .ranks-table caption { caption-side: bottom; padding-block: .6rem .2rem; }

@media (max-width: 950px) and (min-width: 761px) {
  .oficial .game-nav :is(a,button) { padding-inline: clamp(8px, 2.1vw, 24px); }
}

@media (max-width: 760px) {
  .oficial .stage { box-shadow: 0 0 0 2px #47282d, 0 8px 22px #09060a99; }
  .oficial.carmesi .mastart { min-height: clamp(217px, 49vw, 338px); }

  .oficial .hero-art img { object-position: 33% 39%; }

  .oficial.carmesi .mastart::before {
    background: linear-gradient(270deg, #280e16f0, #3e171dba 29%, transparent 72%),
      linear-gradient(0deg, #200f15a3, transparent 33%);
  }

  .oficial.carmesi .hero-copy {
    width: min(70%, 365px);
    padding: 48px 14px 13px 0;
  }

  .oficial.carmesi .hero-kicker { margin-right: 20px; }
  .oficial .hero-title { font-size: clamp(44px, 10vw, 78px); }
  .oficial .hero-actions { gap: 6px; }
  .oficial .game-nav { padding: 2px 5px; gap: 2px; min-height: 48px; }
  .oficial .game-nav :is(a,button) { padding-inline: clamp(4px, 1.3vw, 10px); }
  .oficial .board { display: block !important; }

  .oficial .phone-tabs {
    display: flex !important;
    gap: 4px;
    padding: 4px;
    background: #221820;
  }

  .oficial .phone-tabs a {
    min-width: 0;
    border: 1px solid transparent;
    text-align: center;
  }

  .oficial.portal.ready .board > [data-mobile-hidden="true"] {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .oficial .hero-title { font-size: clamp(39px, 12vw, 46px); }
  .oficial .fb-profile { flex-wrap: wrap; }
  .oficial .game-nav { padding-inline: 2px; }
  .oficial .game-nav :is(a,button) { font-size: .73rem; padding-inline: 4px; }
}

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