/* ==========================================================================
   DAWN OF TITANS DATABASE - TITAN STAGE & BUILDER STYLES
   ========================================================================== */

:root {
  --bg-core: #070a10;
  --bg-surface: #0e1422;
  --bg-surface-elevated: #151e30;
  --bg-surface-hover: #1c2840;
  --border-subtle: #1e2b42;
  --border-gold: rgba(229, 184, 105, 0.4);
  --border-gold-bright: #e5b869;
  
  --gold-primary: #e5b869;
  --gold-light: #fbe2a7;
  --gold-dark: #b88628;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-crimson: #f43f5e;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

#TITAN_VIEW {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#TITAN {
  color: var(--text-primary);
  visibility: hidden;
}

/* Header & Titan Name */
#TITAN_NAME {
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

#NAME_SPAN {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-primary) 80%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

#NAME_SPAN:hover {
  opacity: 0.85;
}

.icon_name {
  cursor: pointer;
  height: 22px;
  width: auto;
  opacity: 0.8;
  transition: all 0.2s;
  -webkit-text-fill-color: initial;
}

.icon_name:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px var(--gold-primary));
}

.title_icon {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  height: 22px;
  width: auto;
  margin-right: 6px;
  -webkit-text-fill-color: initial;
}

#TITAN_NAME .flex_row {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  -webkit-text-fill-color: initial;
}

#TITAN_NAME .c_select {
  -webkit-text-fill-color: initial;
  width: 220px;
}

#TITAN_NAME .c_value p {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

/* Flex Utilities */
.flex_row {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  gap: 16px;
}

.no_wrap {
  flex-wrap: nowrap;
}

.flex_column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Layout Columns
   Portrait + level | loadout (skills & relics) | troop & spell sheets */
#TITAN_CONTAINER {
  display: grid;
  grid-template-columns: 252px minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 20px 24px;
  align-items: start;
}

#LEFT_COLUMN,
#CENTER_COLUMN,
#RIGHT_COLUMN {
  flex: none;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Titan Portrait Card */
#TITAN_IMG_CONTAINER {
  height: 170px;
  width: 170px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.7);
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
}

#TITAN_IMG {
  border-radius: var(--radius-md);
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Floating Badges on Portrait */
.small_icon {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.small_icon:hover {
  transform: scale(1.1);
  border-color: var(--gold-primary);
}

#TITAN_RACE_IMG {
  height: 24px;
  width: 24px;
  top: 6px;
  right: 6px;
  left: auto;
}

#TITAN_CLASS_IMG {
  height: 24px;
  width: 24px;
  top: 6px;
  left: 6px;
  right: auto;
}

#TITAN_DAMAGE_TYPE_2 {
  height: 22px;
  width: 22px;
  bottom: 6px;
  right: 6px;
  left: auto;
  top: auto;
}

#RARITY_IMG {
  height: 18px;
  width: auto;
  position: absolute;
  bottom: 6px;
  left: 6px;
  top: auto;
  right: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Level & Ascension Controller */
#TITAN_RARITY {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

#TITAN_LEVEL {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

#LVL {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold-primary);
  margin: 0;
  letter-spacing: 1px;
}

#LVL_VALUE {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

#XP, #XP_TOTAL, #XP_FUSION {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

#LEVEL_CONTAINER {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

#LEVEL_UP_BUTTON,
#LEVEL_DOWN_BUTTON {
  height: 30px;
  width: 30px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  transition: all 0.2s;
}

#LEVEL_UP_BUTTON:hover,
#LEVEL_DOWN_BUTTON:hover {
  border-color: var(--gold-primary);
  background: var(--bg-surface-hover);
  transform: scale(1.08);
}

#LEVEL_DOWN_BUTTON {
  transform: rotate(180deg);
}

#LEVEL_DOWN_BUTTON:hover {
  transform: rotate(180deg) scale(1.08);
}

/* Stats Sheet Tables
   Each <tr> is a two-track grid row (label | value). Block display keeps the
   sheet exactly as tall as its rows, whatever its flex/grid parent does. */
#TITAN_STATS, #TROOP_STATS, #SPELL_STATS {
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.autocast_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(229, 184, 105, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.autocast_button:hover {
  background: rgba(229, 184, 105, 0.3);
  box-shadow: 0 0 8px rgba(229, 184, 105, 0.3);
  transform: translateY(-1px);
}

.filter_relic {
  margin: 0;
  order: 2;
}

.stats_row {
  transition: background-color 0.15s;
}

.stats_row:nth-child(even) {
  background: rgba(21, 30, 48, 0.4);
}

.stats_row:hover {
  background: var(--bg-surface-hover);
}

.stats_cell {
  padding: 7px 10px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(30, 43, 66, 0.5);
  font-variant-numeric: tabular-nums;
}

.stats_cell:first-child {
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.stats_cell:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--text-primary);
}

.stat_name {
  margin-left: 6px;
}

.icon {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  object-fit: contain;
}

.qmark {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin-right: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.qmark:hover {
  opacity: 1;
}

/* Stat sheet rows */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tbody {
  display: contents;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(30, 43, 66, 0.55);
  transition: background-color 0.15s;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:last-child {
  border-bottom: 0;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:nth-child(even) {
  background: rgba(21, 30, 48, 0.4);
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:hover {
  background: var(--bg-surface-hover);
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) .stats_cell {
  min-width: 0;
  padding: 8px 0;
  border: 0;
  font-size: 13px;
}

/* Label cell: icon first, then text, with one even gap. The script appends the
   icon after the text node, so the row is reversed visually. */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:not(:first-child) > .stats_cell:first-child {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:not(:first-child) > .stats_cell:last-child {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Stat icons: one fixed square box so every glyph reads at the same size */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) .icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  object-fit: contain;
}

/* Header row: help icon + selector on the left, level selector on the right */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:first-child {
  column-gap: 10px;
  padding: 8px 10px 8px 14px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:first-child > .stats_cell {
  padding: 0;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:first-child > .stats_cell:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:first-child > .stats_cell:last-child {
  justify-self: end;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) .qmark {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) .c_select {
  white-space: nowrap;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) .c_value {
  padding: 4px 10px;
}

/* Troop summon toggles (omega / corrupted) */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) label:has(> .summon_checkbox) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s;
}

:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) label:has(> .summon_checkbox:checked) {
  border-color: var(--border-gold);
}

.summon_checkbox {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--gold-primary);
  color-scheme: dark;
  cursor: pointer;
}

.summon_icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: opacity 0.15s, filter 0.15s;
}

.summon_checkbox:not(:checked) + .summon_icon {
  opacity: 0.5;
  filter: grayscale(0.7);
}

/* Troop header row: help icon | troop selector (fills the space) | toggles */
#TROOP_STATS tr:first-child > .stats_cell:first-child {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: auto;
  align-items: center;
  gap: 8px;
}

#TROOP_STATS #TROOP_SELECT {
  width: auto !important;
  min-width: 0;
}

#TROOP_STATS #TROOP_SELECT .c_displayed_option {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Long translated labels wrap inside their cell instead of touching the value */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:not(:first-child) > .stats_cell:first-child {
  overflow-wrap: anywhere;
}

/* Rows without an icon (e.g. Troop Count) keep labels aligned with icon rows: 20px icon + 10px gap */
:is(#TITAN_STATS, #TROOP_STATS, #SPELL_STATS) tr:not(:first-child) > .stats_cell:first-child:not(:has(> img)) {
  padding-left: 30px;
}

/* Equipment / Skills & Relics Slots
   Header controls (help icon, version select, relic filters) sit on their own
   rows; every slot is a full-width card with a fixed icon track. */
#TITAN_SKILLS, #TITAN_RELICS {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px 10px;
}

#TITAN_SKILLS > .skill,
#TITAN_SKILLS > .relic,
#TITAN_RELICS > .skill,
#TITAN_RELICS > .relic,
#TITAN_SKILLS > div.flex_row,
#TITAN_RELICS > div.flex_row {
  flex: 1 1 100%;
  min-width: 0;
}

/* Header controls: neutralise the inline margin hacks applied by titan.js */
#TITAN_SKILLS > .qmark,
#TITAN_RELICS > .qmark {
  width: 16px;
  height: 16px;
  margin: 0 !important;
  flex: none;
}

#TITAN_SKILLS > label {
  margin: 0 !important;
}

.skill, .relic {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skill:hover, .relic:hover {
  border-color: rgba(229, 184, 105, 0.35);
}

/* Crop Skill / Relic Socket Image */
.crop_skill, .crop_relic {
  background: #0b0f17;
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  height: 52px;
  width: 52px;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.crop_skill:hover, .crop_relic:hover {
  border-color: var(--border-gold-bright);
  transform: scale(1.05);
}

.crop_skill.active, .crop_relic.active {
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 14px rgba(229, 184, 105, 0.55);
}

.boost_img, .boost_img_locked {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Text track: title, effects, level control stacked with one consistent rhythm */
.skill_info, .relic_info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.skill_info > h3, .relic_info > h3,
.skill_info > h4, .relic_info > h4,
.skill_info > h5, .relic_info > h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.clear_button {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  opacity: 0.5;
  cursor: pointer;
  margin-left: 2px;
  vertical-align: middle;
  filter: invert(80%);
  transition: all 0.15s ease;
  display: inline-block;
  flex-shrink: 0;
}

.clear_button:hover {
  opacity: 1;
  filter: invert(30%) sepia(80%) saturate(500%) hue-rotate(330deg);
  transform: scale(1.2);
}

.skill_description, .relic_description {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill_effect, .relic_effect {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.skill_level_span, .relic_level_span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-primary);
  margin-left: 6px;
}

/* Level row (select or plain "LVL n" label) */
.skill_info > span:last-child,
.relic_info > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-secondary);
}

.skill_info .c_select,
.relic_info .c_select {
  white-space: nowrap;
}

.skill_info .c_value,
.relic_info .c_value {
  padding: 3px 10px;
}

/* Relic filter bar: star-rarity pills + effect/target selects */
#TITAN_RELICS > div.flex_row:not([id]) {
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

#TITAN_RELICS > div.flex_row:not([id]) > label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

#TITAN_RELICS > div.flex_row:not([id]) > label > input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

#TITAN_RELICS > div.flex_row:not([id]) > label:has(> input:checked) {
  background: rgba(229, 184, 105, 0.14);
  border-color: var(--border-gold);
}

.relic_filter {
  display: block;
  height: 14px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.15s;
}

label:has(> input:checked) > .relic_filter {
  opacity: 1;
}

/* Forces the effect/target selects onto their own row beneath the pills */
#TITAN_RELICS > div.flex_row:not([id])::after {
  content: "";
  flex-basis: 100%;
  height: 0;
  order: 1;
}

/* Empty equip drawers should not render as an empty gold bar */
#POSSIBLE_SKILLS:empty,
#POSSIBLE_RELICS:empty {
  display: none;
}

/* Titan patch (1.7 ascension) controls */
#TITAN_ASCENSION_PATCH {
  align-items: center;
  gap: 10px;
}

#TITAN_ASCENSION_PATCH img:not(.qmark) {
  max-height: 30px;
  width: auto;
  cursor: pointer;
}

/* Equip Drawer for selecting possible skills/relics */
#POSSIBLE_SKILLS, #POSSIBLE_RELICS {
  background: #070c14;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 8px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 184, 105, 0.15);
  display: flex;
  flex-flow: row wrap;
  gap: 6px;
  margin: 4px 0 8px 0;
  animation: fadeInDown 0.18s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.crop_possible_skill, .crop_possible_relic {
  background: #0e1522;
  border: 1px solid #1e2b42;
  border-radius: 5px;
  cursor: pointer;
  height: 44px;
  width: 44px;
  min-width: 44px;
  position: relative;
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop_possible_skill:hover, .crop_possible_relic:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 3px 10px rgba(229, 184, 105, 0.4);
  background: #182235;
  z-index: 5;
}

.possible_skill_img, .possible_relic_img,
.possible_skill_img_old {
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}

.possible_rarity_img {
  position: absolute;
  bottom: 1px;
  left: 1px;
  height: 10px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.9));
  pointer-events: none;
}

.possible_stat_img {
  position: absolute;
  top: 1px;
  right: 1px;
  height: 12px;
  width: 12px;
  pointer-events: none;
}

.possible_skill, .possible_relic {
  padding: 6px 8px;
  margin-bottom: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.possible_skill:hover, .possible_relic:hover {
  border-color: var(--border-gold);
  background: var(--bg-surface-hover);
}

.invoke_span {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 600;
}

@media screen and (max-width: 1320px) {
  #TITAN_CONTAINER {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  #RIGHT_COLUMN {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
  }
}

@media screen and (max-width: 900px) {
  #TITAN_CONTAINER {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 768px) {
  #TITAN_VIEW {
    padding: 10px;
  }
  #TITAN_NAME {
    font-size: 18px;
    letter-spacing: 1px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  #LEFT_COLUMN, #CENTER_COLUMN, #RIGHT_COLUMN {
    flex: 1 1 100%;
    max-width: 100%;
  }
  #TITAN_STATS, #TROOP_STATS, #SPELL_STATS {
    width: 100%;
    max-width: 100%;
  }
}
