html {
  min-height: 100%;
  background: #051122;
}

body {
  position: relative;
  min-height: 100%;
  background: #051122;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #051122 url("images/header/background-art-1200.jpg") top center / cover no-repeat;
}

#HeaderArtworkDiv {
  background-image: none !important;
}

#MainHelper1 {
  z-index: 1;
}

#LeftArtwork #TibiaLogoArtworkTop {
  top: -13px;
  left: -33px;
  width: 235px;
  height: auto;
}

#LoginButtonContainer {
  position: relative;
  height: 39px;
  width: 160px;
  left: 5px;
  background-repeat: repeat-y;
}

.shell-headline {
  color: #f7e7c0;
  font: bold 16px Georgia, "Times New Roman", serif;
  line-height: 24px;
  padding-left: 8px;
  text-shadow: 1px 1px #000;
}

.Content .BoxContent h1 {
  margin: 0 0 8px;
  color: #5a2800;
  font: bold 18px Georgia, "Times New Roman", serif;
}

.Content .BoxContent p {
  margin: 0 0 12px;
  line-height: 1.45;
}

.shell-news-date {
  float: right;
  color: #7a4a1c;
  font-size: 10px;
  font-weight: bold;
}

.grim-news {
  position: relative;
  overflow: hidden;
  border: 1px solid #6c3b12;
  background: #f8ebca;
  box-shadow: inset 0 0 22px rgba(74, 34, 6, 0.2);
}

.grim-reset-notice {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(124px, 0.72fr) minmax(190px, 1.28fr);
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 12px 13px;
  overflow: hidden;
  border: 1px solid #6c3b12;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.78), rgba(246, 219, 160, 0.34)),
    radial-gradient(circle at 16% 12%, rgba(255, 236, 170, 0.85), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(36, 80, 30, 0.22), transparent 35%),
    #f8ebca;
  color: #4f2406;
  box-shadow:
    inset 0 1px #fffaf0,
    inset 0 0 24px rgba(74, 34, 6, 0.2),
    0 2px 0 rgba(68, 32, 8, 0.28),
    0 0 0 2px rgba(90, 40, 0, 0.08);
}

.grim-reset-notice::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border: 1px solid rgba(129, 82, 29, 0.32);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 232, 0.45);
}

.grim-reset-notice::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 250, 232, 0.16) 42%, transparent 58%),
    radial-gradient(circle at 86% 18%, rgba(229, 180, 67, 0.34), transparent 23%),
    radial-gradient(circle at 16% 86%, rgba(36, 80, 30, 0.16), transparent 26%);
  opacity: 0.85;
  transform: translateX(-10%);
  animation: infernumSeasonLight 7s ease-in-out infinite;
}

.grim-reset-notice strong {
  grid-row: span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid #57300f;
  background:
    linear-gradient(115deg, rgba(255, 224, 160, 0) 0%, rgba(255, 224, 160, 0.28) 38%, rgba(255, 224, 160, 0) 54%),
    linear-gradient(180deg, #b96558 0%, #944237 52%, #773024 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: -140% 0, 0 0;
  color: #ffe0a0;
  font: bold 18px Georgia, "Times New Roman", serif;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 1px #000;
  box-shadow:
    inset 0 1px rgba(255, 245, 210, 0.34),
    inset 0 -10px 18px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 240, 184, 0.1),
    0 0 10px rgba(148, 66, 55, 0.18);
  animation: infernumTitleGlow 4.5s ease-in-out infinite, infernumTitleColorFlow 5.5s ease-in-out infinite;
}

.grim-reset-notice span {
  align-self: end;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #57300f;
  background:
    linear-gradient(115deg, rgba(255, 224, 160, 0) 0%, rgba(255, 224, 160, 0.28) 38%, rgba(255, 224, 160, 0) 54%),
    linear-gradient(180deg, #b96558 0%, #944237 52%, #773024 100%);
  background-size: 240% 100%, 100% 100%;
  background-position: -140% 0, 0 0;
  color: #ffe0a0;
  font: bold 18px Georgia, "Times New Roman", serif;
  line-height: 1.1;
  text-shadow: 1px 1px #000;
  box-shadow:
    inset 0 1px rgba(255, 245, 210, 0.34),
    inset 0 -8px 14px rgba(0, 0, 0, 0.14),
    0 1px 0 rgba(74, 34, 6, 0.16),
    0 0 8px rgba(148, 66, 55, 0.16);
  animation: infernumTitleGlow 4.5s ease-in-out infinite, infernumTitleColorFlow 5.5s ease-in-out infinite;
}

.grim-reset-notice small {
  align-self: start;
  color: #5a2800;
  font-size: 12px;
  line-height: 1.4;
}

.grim-reset-rewards {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(108, 59, 18, 0.36);
}

.grim-reset-rewards b {
  display: block;
  margin-bottom: 8px;
  color: #6b1c0c;
  font: bold 13px Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  text-shadow: 1px 1px #fff4d0;
}

.grim-reset-rewards ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #60300b;
  font-size: 11px;
  line-height: 1.3;
}

.grim-reset-rewards li {
  position: relative;
  min-height: 44px;
  padding: 8px 7px 7px;
  overflow: hidden;
  border: 1px solid #a17845;
  background:
    linear-gradient(180deg, rgba(255, 246, 222, 0.92), rgba(212, 179, 106, 0.45)),
    rgba(255, 246, 222, 0.78);
  box-shadow:
    inset 0 1px #fffaf0,
    0 1px 0 rgba(74, 34, 6, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.grim-reset-rewards li::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.38) 44%, transparent 58%);
  opacity: 0;
  transform: translateX(-75%);
  animation: infernumRewardShine 7s ease-in-out infinite;
}

.grim-reset-rewards li:hover {
  transform: translateY(-1px);
  border-color: #8a5a23;
  box-shadow:
    inset 0 1px #fffaf0,
    0 2px 6px rgba(74, 34, 6, 0.26);
}

.grim-reset-rewards li::first-line {
  color: #5a1705;
  font-weight: bold;
}

.grim-reset-rewards li:nth-child(1) {
  border-color: #8a5a23;
  background:
    linear-gradient(180deg, rgba(255, 240, 184, 0.96), rgba(229, 180, 67, 0.58)),
    #fff0c9;
  box-shadow:
    inset 0 1px #fffaf0,
    0 0 8px rgba(224, 158, 43, 0.38);
}

.grim-reset-rewards li:nth-child(2) {
  border-color: #8b6334;
}

.grim-reset-rewards li:nth-child(3) {
  border-color: #935019;
}

.grim-news::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 224, 137, 0.5), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(113, 32, 20, 0.18), transparent 22%);
  animation: grimGlow 5s ease-in-out infinite alternate;
}

.grim-news-ticker {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 34px;
  border-bottom: 2px solid #3f2108;
  background: #183d16 url("images/content/title-background-green.gif") repeat-x;
  color: #fff1c8;
  text-decoration: none;
  text-shadow: 1px 1px #000;
}

.grim-news-ticker:link,
.grim-news-ticker:visited,
.grim-news-ticker:active,
.grim-news-ticker:focus {
  color: #fff1c8;
  text-decoration: none;
}

.grim-news-ticker:hover {
  color: #fff1c8;
  text-decoration: none;
  filter: brightness(1.08);
}

.grim-news-ticker-title {
  padding: 8px 10px;
  color: #ffe0a0;
  font: bold 15px Georgia, "Times New Roman", serif;
}

.grim-news-ticker-list {
  position: relative;
  overflow: hidden;
  margin: 5px 7px 5px 0;
  border: 1px solid rgba(255, 228, 166, 0.35);
  background: rgba(32, 15, 5, 0.35);
}

.grim-news-ticker-row {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 5px;
  opacity: 0;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: grimTicker 18s linear infinite;
}

.grim-news-ticker-row:nth-child(2) {
  animation-delay: 9s;
}

.grim-news-ticker-row:nth-child(3) {
  animation-delay: 0s;
}

.grim-news-icon {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border: 1px solid #2d1807;
  background: #f1c35a;
  box-shadow: 0 0 6px #ffef9a;
}

.grim-news-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 16px;
  padding: 18px;
  min-height: 205px;
}

.grim-news-copy {
  position: relative;
  z-index: 2;
}

.grim-news-kicker {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border: 1px solid #5f2b08;
  background: #8a1d12 url("images/news/newsheadline_background.gif") repeat-x;
  color: #fff4d8;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.Content .BoxContent .grim-news h1 {
  margin-bottom: 10px;
  font-size: 25px;
  color: #5a1705;
  text-shadow: 1px 1px #fff0c9;
}

.Content .BoxContent .grim-news p {
  max-width: 440px;
  color: #4f2406;
  font-size: 13px;
  line-height: 1.55;
}

.grim-news-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.grim-news-highlights span {
  min-width: 102px;
  padding: 7px 9px;
  border: 1px solid #8b6334;
  background: rgba(255, 246, 222, 0.82);
  color: #5a2800;
  font-size: 11px;
  font-weight: bold;
  box-shadow: inset 0 1px #fffaf0;
}

.grim-news-highlights strong {
  display: block;
  margin-top: 2px;
  color: #0d7a20;
  font-size: 12px;
}

.grim-news-art {
  position: relative;
  z-index: 2;
  align-self: center;
}

.grim-news-art img {
  display: block;
  width: 190px;
  height: 138px;
  object-fit: cover;
  border: 2px solid #5d2b0d;
  box-shadow: 0 8px 18px rgba(57, 22, 4, 0.35);
  animation: grimFloat 4.2s ease-in-out infinite;
}

.grim-news-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd568;
  box-shadow: 0 0 10px #ffe8a2;
  animation: grimSpark 2.8s ease-in-out infinite;
}

.spark-one {
  right: 18px;
  top: -8px;
}

.spark-two {
  left: 10px;
  bottom: -9px;
  animation-delay: 0.7s;
}

.spark-three {
  right: -6px;
  bottom: 32px;
  animation-delay: 1.4s;
}

.grim-server-features {
  position: relative;
  z-index: 2;
  padding: 0 18px 18px;
}

.Content .BoxContent .grim-server-features h2 {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #57300f;
  background: #24501e url("images/content/title-background-green.gif") repeat-x;
  color: #ffe0a0;
  font: bold 17px Georgia, "Times New Roman", serif;
  text-shadow: 1px 1px #000;
}

.grim-server-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.grim-server-feature {
  position: relative;
  min-height: 48px;
  padding: 8px 9px 8px 25px;
  border: 1px solid #a17845;
  background: rgba(255, 246, 222, 0.78);
  color: #60300b;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: inset 0 1px #fffaf0;
}

.grim-server-feature::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  width: 8px;
  height: 8px;
  border: 1px solid #59300b;
  background: #e5b443;
  box-shadow: 0 0 5px rgba(224, 158, 43, 0.65);
  transform: rotate(45deg);
}

.grim-server-feature strong,
.grim-server-feature span {
  display: block;
}

.grim-server-feature strong {
  margin-bottom: 2px;
  color: #6b1c0c;
  font-size: 12px;
}

.Content .BoxContent .grim-news .grim-server-closing {
  max-width: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #6c3b12;
  background: rgba(91, 31, 13, 0.1);
  color: #572208;
  font-weight: bold;
  text-align: center;
}

@keyframes grimTicker {
  0%, 6% {
    opacity: 0;
    transform: translateY(10px);
  }
  8%, 47% {
    opacity: 1;
    transform: translateY(0);
  }
  53%, 100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes infernumSeasonLight {
  0%, 100% {
    opacity: 0.58;
    transform: translateX(-12%);
  }
  50% {
    opacity: 0.95;
    transform: translateX(10%);
  }
}

@keyframes infernumTitleGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes infernumTitleColorFlow {
  0%, 100% {
    background-position: -140% 0, 0 0;
  }
  50% {
    background-position: 160% 0, 0 0;
  }
}

@keyframes infernumRewardShine {
  0%, 70%, 100% {
    opacity: 0;
    transform: translateX(-75%);
  }
  82% {
    opacity: 0.45;
  }
  94% {
    opacity: 0;
    transform: translateX(75%);
  }
}

@keyframes grimFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes grimSpark {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.75);
  }
  45% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes grimGlow {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

.TableContainer {
  margin-top: 12px;
}

.news-archive .TableContent td {
  vertical-align: top;
  padding: 10px;
}

.news-archive-date {
  width: 120px;
  color: #7a4a1c;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

.news-archive details {
  margin: 0;
}

.news-archive summary {
  position: relative;
  min-height: 18px;
  padding-right: 24px;
  cursor: pointer;
  list-style: none;
}

.news-archive summary::-webkit-details-marker {
  display: none;
}

.news-archive summary::marker {
  content: "";
}

.news-archive summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #6c3b12;
  background: #d4b36a;
  color: #3f2108;
  font: bold 13px Arial, sans-serif;
  line-height: 14px;
  text-align: center;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

.news-archive details[open] summary::after {
  content: "-";
}

.news-archive .TableContent summary strong {
  display: inline;
  color: #5a2800;
  font: bold 14px Georgia, "Times New Roman", serif;
}

.news-archive-details {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 2px solid #8a5a23;
  background: rgba(255, 239, 198, 0.45);
}

.news-archive-details span {
  display: block;
  margin: 0 0 4px;
  color: #3e2a16;
  line-height: 1.45;
}

.news-archive-details span:last-child {
  margin-bottom: 0;
}

.CaptionContainer {
  color: #fff2db;
  font-weight: bold;
  min-height: 28px;
  line-height: 28px;
}

.CaptionInnerContainer {
  padding-left: 10px;
  font-size: 14px;
  text-shadow: 1px 1px #000;
}

.shell-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shell-button {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #3f240d;
  background: #7a3f10;
  color: #fff2db !important;
  font-weight: bold;
  text-decoration: none;
  box-shadow: inset 0 1px #b98545;
  cursor: pointer;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
}

.shell-button:hover {
  background: #935019;
  text-decoration: none;
}

.shell-button-dark {
  background: #5f4d41;
}

.shell-button-danger {
  background: #7b1f12;
  box-shadow: inset 0 1px #b15a48;
}

.shell-button-danger:hover {
  background: #96301f;
}

.shell-button-small {
  padding: 4px 8px;
  font-size: 11px;
}

.shell-input {
  width: 220px;
  border: 1px solid #5f4d41;
  background: #fff8e8;
  color: #5a2800;
  font: 12px Verdana, Arial, sans-serif;
  padding: 3px 4px;
}

.account-form-table td:first-child {
  width: 150px;
  font-weight: bold;
}

.account-captcha-question {
  display: inline-block;
  min-width: 66px;
  margin-right: 7px;
  color: #5a2800;
  font-weight: bold;
}

.account-captcha-input {
  width: 70px;
}

.account-link-row {
  margin: 8px 0 0 !important;
  font-size: 11px;
}

.account-link-row a {
  color: #6b1c0c;
  font-weight: bold;
}

.account-recovery-input {
  width: 260px;
}

.account-recovery-result {
  margin-top: 12px;
}

.account-message {
  display: block;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #c7a36a;
  background: #fff0c9;
  color: #5a2800;
  font: 12px Verdana, Arial, sans-serif;
  font-weight: bold;
  line-height: 1.35;
}

.account-message:empty {
  display: none;
}

.account-message-error {
  border-color: #b76b55;
  background: #ffe3d9;
  color: #8b1d0f;
}

.account-message-success {
  border-color: #7fa35f;
  background: #e8f5d6;
  color: #176a20;
}

.account-recovery-key {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #6c3b12;
  background: #fff0c9;
  color: #7b1f12;
  font-size: 14px;
  letter-spacing: 0;
}

.account-warning {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #8f6b3b;
  background: #fff0c9;
  color: #4f2406;
  line-height: 1.5;
}

.account-warning strong {
  color: #7b1f12;
}

.quest-table td {
  vertical-align: top;
}

.quest-premium {
  text-align: center;
}

.quest-premium-icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.spells-filter-table td {
  vertical-align: middle;
}

.spells-filter-table select.shell-input {
  width: 118px;
}

.spell-search-input {
  width: 360px;
}

.spells-table th {
  text-align: left;
  cursor: pointer;
}

.spell-pa {
  text-align: center;
}

.spell-name-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #5a2800;
  font: inherit;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.spell-name-button:hover {
  text-decoration: underline;
}

.spell-detail {
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #8f6b3b;
  background: #fff0c9;
  line-height: 1.55;
}

.spell-legend {
  margin-top: 10px !important;
  font-size: 11px;
}

a.MediumButtonForm {
  display: block;
}

#RightArtwork #InfernumName {
  position: absolute;
  top: -150px;
  left: 4px;
  width: 86px;
  z-index: 16;
  color: #00ff00;
  font: bold 11px Verdana, Arial, sans-serif;
  line-height: 12px;
  text-align: center;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000;
  pointer-events: none;
}

#RightArtwork #Monster {
  position: absolute;
  height: 80px;
  width: 80px;
  top: -170px;
  left: -15px;
  z-index: 15;
  cursor: pointer;
  object-fit: contain;
  image-rendering: pixelated;
}


.Toplevelbox {
  top: 140px;
  position: relative;
  margin-bottom: 10px;
  width: 180px;
  height: 200px;
  background-repeat: no-repeat;
}

#Themeboxes .top_level {
  position: absolute;
  top: 29px;
  left: 6px;
  height: 160px;
  width: 168px;
  z-index: 20;
  box-sizing: border-box;
  padding: 6px 6px 4px 12px;
  background-repeat: no-repeat;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  color: #fff;
  font-weight: bold;
  text-align: left;
  text-shadow: 1px 1px 2px #000;
}

#Themeboxes .top_level div {
  min-height: 24px;
  margin: 0 0 2px;
  padding: 2px 3px 2px 6px;
  border-bottom: 1px solid rgba(255, 226, 169, 0.18);
  background: rgba(48, 25, 9, 0.22);
}

#Themeboxes .top_level span {
  display: block;
  color: #ffe6a8;
  font-size: 11px;
  line-height: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#Themeboxes .top_level small {
  display: block;
  color: #fff8df;
  padding-left: 12px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 9px;
  line-height: 11px;
  font-weight: bold;
}

#Topbar .Bottom {
  top: 188px;
}

#Menu a {
  text-decoration: none;
}

.ActiveSubmenuItemIcon {
  visibility: hidden;
}

@media (max-width: 1020px) {
  body {
    overflow-x: hidden;
  }

  body::before {
    background-image: url("images/header/background-art-mobile.jpg");
    background-size: cover;
    background-position: top center;
  }

  #MainHelper1,
  #Bodycontainer {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  #MainHelper1,
  #MainHelper2,
  #Bodycontainer {
    display: block;
  }

  #MainHelper2 {
    max-width: 760px;
    padding-top: 18px;
  }

  #ArtworkHelper1,
  #ArtworkHelper2,
  #HeaderArtworkDiv {
    display: none;
  }

  #ContentRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0 8px;
    width: 100%;
  }

  #MenuColumn {
    position: relative;
    top: auto;
    width: 180px;
    order: 1;
    margin: 0 0 14px;
  }

  #LeftArtwork {
    position: relative;
    top: auto;
    left: auto;
    width: 180px;
    height: 118px;
    margin: 0 auto 4px;
  }

  #LeftArtwork #TibiaLogoArtworkTop {
    top: 0;
    left: 50%;
    width: 198px;
    height: auto;
    transform: translateX(-50%);
  }

  #Loginbox {
    margin-bottom: 30px;
  }

  #ContentColumn {
    display: contents;
    margin: 0;
  }

  #Content,
  #ContentHelper {
    display: contents;
  }

  #ThemeboxesColumn {
    position: relative;
    top: auto;
    right: auto;
    order: 2;
    width: 180px;
    margin: 0 0 18px;
  }

  #RightArtwork {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    width: 180px;
    height: 130px;
    margin: 0 0 10px;
    z-index: 1;
  }

  #RightArtwork #InfernumName {
    top: 10px;
    left: 30px;
    width: 86px;
  }

  #RightArtwork #Monster {
    top: -5px;
    left: 10px;
    width: 78px;
    height: 78px;
  }

  #PedestalAndOnline {
    top: 46px;
    left: 13px;
  }

  #RightArtwork #PlayersOnline {
    bottom: -10px;
    left: 44px;
  }

  .Toplevelbox,
  .Themebox {
    top: 0;
  }

  #Themeboxes #PremiumBox {
    display: block;
  }

  .Content .Box {
    order: 3;
    width: calc(100% - 16px);
    margin: 5px 0 18px;
  }

  .Content .BoxContent {
    min-height: 0;
    overflow-x: auto;
  }

  .TableContent,
  .Content .BoxContent table {
    max-width: 100%;
  }

  .grim-reset-notice::after,
  .grim-reset-notice strong,
  .grim-reset-notice span,
  .grim-reset-rewards li::before,
  .grim-news::before,
  .grim-news-art img,
  .grim-news-spark {
    animation: none;
  }

  .grim-news-ticker {
    grid-template-columns: 1fr;
  }

  .grim-reset-notice {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px;
  }

  .grim-reset-notice strong {
    grid-row: auto;
    min-height: 0;
    font-size: 16px;
  }

  .grim-reset-rewards ol {
    grid-template-columns: 1fr;
  }

  .grim-reset-rewards li {
    min-height: 0;
  }

  .grim-news-ticker-title {
    padding-bottom: 0;
  }

  .grim-news-ticker-list {
    min-height: 28px;
    margin: 5px 7px 7px;
  }

  .grim-news-feature {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .Content .BoxContent .grim-news h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  .Content .BoxContent .grim-news p {
    max-width: none;
    font-size: 12px;
  }

  .grim-news-art {
    justify-self: center;
  }

  .grim-server-features {
    padding: 0 14px 14px;
  }

  .grim-server-features-grid {
    grid-template-columns: 1fr;
  }

  .shell-actions {
    justify-content: center;
  }

  .shell-input,
  .spell-search-input {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  #MainHelper2 {
    padding-top: 10px;
  }

  #ContentRow {
    gap: 0 4px;
  }

  #MenuColumn,
  #ThemeboxesColumn {
    transform: scale(0.94);
    transform-origin: top center;
    width: 169px;
    margin-bottom: -18px;
  }

  #MenuColumn {
    margin-left: -4px;
  }

  #ThemeboxesColumn {
    margin-right: -4px;
  }

  #ContentColumn {
    margin: 0 4px;
  }

  .Content .BoxContent {
    padding: 7px;
    font-size: 8pt;
  }

  .grim-news-feature {
    padding: 10px;
  }

  .grim-news-highlights span {
    width: 100%;
    box-sizing: border-box;
  }

  .grim-server-features {
    padding: 0 10px 10px;
  }

  .Content .BoxContent .grim-news h1 {
    font-size: 20px;
  }

  .shell-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}
