:root{
  --r8-item:#ff6000;
  --r8-stat:#78a9ff;
  --r8-stat-strong:#7477ff;
  --r8-panel:#111a29;
  --r8-panel-soft:#182437;
  --r8-line:rgba(130,174,255,.24);
}

body[data-page="r8-simulator"],
body[data-page="nirvana-simulator"]{
  height:auto;
  min-height:100%;
}

.r8-page{
  width:100%;
  padding-top:28px;
  padding-bottom:0;
}

body[data-page="r8-simulator"] .footer{
  margin-top:15px;
}

.r8-hero{
  text-align:center;
  margin:0 auto 24px;
}

.r8-hero h1{
  margin:4px 0 8px;
}

.r8-eyebrow,
.r8-step{
  display:inline-block;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.r8-section{
  margin-top:18px;
  overflow:visible;
}

#r8-items-section{
  scroll-margin-top:90px;
}

.r8-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.r8-section-heading h2{
  margin:2px 0 0;
  text-align:left;
}

.r8-section-note{
  color:var(--muted);
  font-size:13px;
  text-align:right;
}

.r8-class-grid{
  display:grid;
  grid-template-columns:repeat(9, minmax(58px, 1fr));
  gap:10px;
}

.r8-class-card{
  position:relative;
  display:grid;
  min-width:0;
  min-height:86px;
  place-items:center;
  padding:6px;
  border:1px solid #2a3047;
  border-radius:14px;
  background:linear-gradient(160deg,#1c2232,#121624);
  color:var(--text);
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.r8-class-card:not(:disabled):hover,
.r8-class-card:not(:disabled):focus-visible{
  transform:translateY(-2px);
  border-color:rgba(122,92,255,.9);
  box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 22px rgba(122,92,255,.18);
  outline:none;
}

.r8-class-card.is-selected{
  border-color:var(--accent2);
  box-shadow:0 0 0 2px rgba(122,92,255,.18),0 10px 28px rgba(0,0,0,.3);
}

.r8-class-card:disabled{
  cursor:not-allowed;
  opacity:.46;
  filter:saturate(.45);
}

.r8-class-card img{
  display:block;
  width:min(72px,100%);
  height:auto;
  margin:0;
  border-radius:50%;
}

.r8-empty{
  padding:22px;
  border:1px dashed #30364d;
  border-radius:14px;
  text-align:center;
}

.r8-item-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:24px;
}

.r8-item-group{
  min-width:0;
}

.r8-item-grade{
  margin:0 0 11px;
  color:#dce8ff;
  font-size:17px;
  font-weight:900;
  letter-spacing:.08em;
  text-align:center;
  text-shadow:0 0 18px rgba(120,169,255,.28);
}

.r8-item-group-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.r8-item-wrap{
  position:relative;
  min-width:0;
}

.r8-item-card{
  display:flex;
  align-items:center;
  width:100%;
  min-height:74px;
  padding:10px 40px 10px 10px;
  border:1px solid #30364d;
  border-radius:14px;
  background:linear-gradient(160deg,#1b2231,#121724);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.r8-item-card:hover,
.r8-item-card:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(120,169,255,.9);
  box-shadow:0 10px 26px rgba(0,0,0,.28),0 0 20px rgba(120,169,255,.16);
  outline:none;
}

.r8-item-card.is-selected{
  border-color:var(--r8-stat);
  box-shadow:0 0 0 2px rgba(120,169,255,.17);
}

.r8-item-card:disabled{
  cursor:wait;
}

.r8-item-icon{
  flex:0 0 48px;
  width:48px;
  height:48px;
  margin-right:10px;
  padding:6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:#0b101b;
  image-rendering:auto;
}

.r8-item-copy{
  min-width:0;
}

.r8-item-copy strong{
  display:block;
  color:var(--r8-item);
  font-size:13px;
  line-height:1.25;
  overflow-wrap:anywhere;
  white-space:normal;
}

.r8-info-btn{
  position:absolute;
  top:50%;
  right:9px;
  z-index:2;
  width:27px;
  height:27px;
  padding:0;
  transform:translateY(-50%);
  border:1px solid rgba(120,169,255,.45);
  border-radius:50%;
  background:#111a2a;
  color:var(--r8-stat);
  cursor:pointer;
  font-weight:900;
}

.r8-info-btn:hover,
.r8-info-btn:focus-visible{
  border-color:var(--r8-stat);
  background:#1b2940;
  outline:none;
}

.r8-stat-tooltip{
  position:fixed;
  z-index:1000;
  width:min(370px,calc(100vw - 24px));
  max-height:min(520px,70vh);
  overflow:auto;
  overscroll-behavior:contain;
  padding:14px;
  border:1px solid rgba(120,169,255,.5);
  border-radius:14px;
  background:rgba(13,20,33,.98);
  box-shadow:0 18px 48px rgba(0,0,0,.55),0 0 28px rgba(120,169,255,.13);
  color:var(--text);
  pointer-events:none;
}

.r8-stat-tooltip.is-pinned{
  pointer-events:auto;
}

.r8-tooltip-title{
  margin:0 0 3px;
  color:var(--r8-item);
  font-size:15px;
  font-weight:800;
}

.r8-tooltip-subtitle{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
}

.r8-tooltip-list{
  display:grid;
  gap:5px;
}

.r8-tooltip-section-title{
  margin:11px 0 7px;
  color:#dce8ff;
  font-size:11px;
  font-weight:850;
  letter-spacing:.03em;
}

.r8-tooltip-stat{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-bottom:5px;
  border-bottom:1px solid rgba(120,169,255,.1);
  color:var(--r8-stat);
  font-size:12px;
  line-height:1.35;
}

.r8-tooltip-stat:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.r8-tooltip-stat span:first-child{
  min-width:0;
}

.r8-tooltip-chance{
  flex-shrink:0;
  color:#a8c8ff;
  font-weight:800;
  white-space:nowrap;
}

.r8-tooltip-unique-stat{
  color:#9294ff;
}

.r8-workspace{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);
  gap:18px;
  margin-top:18px;
}

.r8-result-card,
.r8-counter-card{
  min-height:560px;
}

.r8-result-card{
  scroll-margin-top:90px;
}

.r8-result-heading{
  margin-bottom:10px;
}

.r8-result-panel{
  position:relative;
  min-height:556px;
  border:1px solid #293249;
  border-radius:16px;
  background:
    radial-gradient(circle at 50% -40%,rgba(122,92,255,.22),transparent 55%),
    var(--r8-panel);
  overflow:hidden;
}

.r8-result-placeholder{
  display:grid;
  place-items:center;
  align-content:center;
  min-height:556px;
  padding:26px;
  color:var(--muted);
  text-align:center;
}

.r8-result-placeholder p{
  margin:8px 0 0;
}

.r8-progress{
  width:min(230px,82%);
  height:5px;
  margin-top:15px;
  border-radius:999px;
  background:#242b3c;
  overflow:hidden;
}

.r8-progress span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2),var(--r8-stat));
  animation:r8-progress var(--r8-roll-delay,3s) linear forwards;
}

.r8-current-layout,
.r8-comparison,
.r8-forging-layout{
  display:grid;
  min-height:556px;
  padding:16px 16px 47px;
  grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr);
  align-items:stretch;
  gap:10px;
}

.r8-comparison,
.r8-forging-layout{
  align-items:center;
  gap:10px;
}

.r8-current-layout .r8-new-placeholder{
  grid-column:3;
}

.r8-initial-item-layout{
  display:grid;
  min-height:556px;
  padding:16px;
  place-items:center;
}

.r8-initial-item{
  width:min(430px,100%);
  height:auto;
}

.r8-initial-item .r8-gear-sheet{
  display:flex;
  flex-direction:column;
}

.r8-initial-item .r8-rolled-stats{
  flex:1;
  align-content:center;
}

.r8-initial-item .r8-no-rolls{
  padding:24px 12px;
  color:var(--r8-stat-strong);
  font-size:15px;
  font-weight:750;
  text-align:center;
}

.r8-gear-option{
  display:flex;
  min-width:0;
  height:100%;
  flex-direction:column;
}

.r8-gear-option.is-selectable{
  cursor:pointer;
}

.r8-gear-option.is-selectable .r8-gear-sheet{
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}

.r8-gear-option.is-selectable:hover .r8-gear-sheet{
  border-color:rgba(120,169,255,.62);
  background:rgba(12,22,37,.84);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 20px rgba(120,169,255,.1);
}

.r8-new-option.is-selectable:hover .r8-gear-sheet{
  border-color:rgba(105,225,158,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 20px rgba(105,225,158,.1);
}

.r8-current-option,
.r8-new-option{
  scroll-margin-top:90px;
}

.r8-option-label{
  align-self:flex-start;
  margin-bottom:8px;
  padding:4px 8px;
  border:1px solid rgba(120,169,255,.2);
  border-radius:999px;
  background:#111d30;
  color:#a8c8ff;
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.r8-gear-sheet{
  flex:1;
  min-width:0;
  padding:14px;
  border:1px solid rgba(120,169,255,.2);
  border-radius:14px;
  background:rgba(8,14,24,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.r8-result-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.r8-result-title img{
  flex:0 0 48px;
  width:48px;
  height:48px;
  padding:6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:11px;
  background:#080d16;
}

.r8-result-name{
  color:var(--r8-item);
  font-size:18px;
  font-weight:800;
  line-height:1.25;
}

.r8-base-stats,
.r8-rolled-stats{
  display:grid;
}

.r8-base-stats{
  gap:2px;
}

.r8-base-stat{
  color:#f4f6fb;
  font-size:14px;
  line-height:1.32;
}

.r8-base-stat:first-child{
  margin-bottom:2px;
  font-size:15px;
  font-weight:750;
}

.r8-rolled-stats{
  gap:5px;
  margin-top:12px;
}

.r8-rolled-stat{
  color:var(--r8-stat-strong);
  font-size:14px;
  font-weight:650;
  line-height:1.35;
}

.r8-rolled-stat.is-unique{
  color:#9294ff;
}

.r8-no-rolls{
  padding:10px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.r8-polish-panel{
  display:flex;
  min-width:0;
  height:100%;
  grid-column:3;
  flex-direction:column;
}

.r8-polish-sheet{
  display:flex;
  min-height:0;
  flex:0 0 auto;
  flex-direction:column;
  padding:18px;
  border:1px dashed rgba(120,169,255,.3);
  border-radius:14px;
  background:rgba(8,14,24,.45);
}

.r8-polish-heading{
  margin-bottom:14px;
  color:#dce8ff;
  font-size:13px;
  font-weight:850;
  text-align:center;
}

.r8-polish-ranges{
  display:grid;
  gap:8px;
}

.r8-polish-range{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding-bottom:7px;
  border-bottom:1px solid rgba(120,169,255,.11);
  color:var(--r8-stat-strong);
  font-size:13px;
  line-height:1.35;
}

.r8-polish-range:last-child{
  border-bottom:0;
}

.r8-polish-range span{
  min-width:0;
}

.r8-polish-range strong{
  flex-shrink:0;
  color:#a8c8ff;
  white-space:nowrap;
}

.r8-polish-range.is-unique span{
  color:#9294ff;
}

.r8-polish-empty{
  margin:auto;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  text-align:center;
}

.r8-polish-btn{
  width:min(220px,100%);
  height:48px;
  min-height:48px;
  margin-top:18px;
  align-self:center;
  flex:0 0 auto;
}

.r8-polish-btn:disabled{
  cursor:not-allowed;
  filter:saturate(.35);
  opacity:.5;
}

.r8-polish-loading{
  align-items:center;
  justify-content:center;
  flex-direction:column;
  flex:1;
}

.r8-new-placeholder{
  display:flex;
  min-height:100%;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:7px;
  padding:24px;
  border:1px dashed rgba(120,169,255,.27);
  border-radius:14px;
  background:rgba(8,14,24,.38);
  color:var(--muted);
  text-align:center;
}

.r8-new-placeholder strong{
  color:#a8c8ff;
  font-size:13px;
}

.r8-new-placeholder span{
  max-width:240px;
  font-size:12px;
  line-height:1.45;
}

.r8-forging-center{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
}

.r8-initial-craft-loading{
  display:grid;
  min-height:556px;
  place-content:center;
  justify-items:center;
}

.r8-forge-effect{
  display:grid;
  width:118px;
  height:118px;
  place-items:center;
  animation:r8-fire-pulse .72s ease-in-out infinite alternate;
  filter:drop-shadow(0 0 16px rgba(255,120,24,.65));
}

.r8-forge-effect img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  animation:r8-fire-spin 2.8s linear infinite;
}

.r8-comparison-fire .r8-forge-effect{
  width:104px;
  height:104px;
  opacity:.86;
}

.r8-choice-btn{
  width:100%;
  min-height:38px;
  margin-top:10px;
  padding:8px 10px;
  border:1px solid rgba(120,169,255,.46);
  border-radius:11px;
  background:#18263b;
  color:#dceaff;
  cursor:pointer;
  font-size:11px;
  font-weight:850;
  letter-spacing:.04em;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.r8-choice-btn:hover,
.r8-choice-btn:focus-visible{
  transform:translateY(-1px);
  border-color:var(--r8-stat);
  box-shadow:0 7px 20px rgba(0,0,0,.3),0 0 16px rgba(120,169,255,.15);
  outline:none;
}

.r8-take-btn{
  border-color:rgba(105,225,158,.48);
  background:#142b24;
  color:#8cf0b9;
}

.r8-take-btn:hover,
.r8-take-btn:focus-visible{
  border-color:#75dda7;
  box-shadow:0 7px 20px rgba(0,0,0,.3),0 0 16px rgba(105,225,158,.14);
}

.r8-choice-btn:disabled{
  cursor:wait;
  opacity:.58;
}

.r8-choice-timer{
  position:absolute;
  right:16px;
  bottom:15px;
  left:16px;
  margin:0;
  color:#ff3b3b;
  font-size:13px;
  font-weight:900;
  text-align:center;
  text-shadow:0 0 12px rgba(255,38,38,.34);
}

.r8-actions{
  display:flex;
  justify-content:center;
  margin-top:16px;
}

.r8-roll-btn{
  width:100%;
  max-width:340px;
}

.r8-spirit-control{
  display:flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:11px auto 0;
  color:#b8c7df;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
  user-select:none;
}

.r8-spirit-control input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.r8-spirit-track{
  display:flex;
  width:36px;
  height:20px;
  align-items:center;
  padding:3px;
  border:1px solid rgba(120,169,255,.3);
  border-radius:999px;
  background:#111a29;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.r8-spirit-track span{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#8793a9;
  box-shadow:0 2px 6px rgba(0,0,0,.34);
  transition:background .16s ease,transform .16s ease;
}

.r8-spirit-control input:checked + .r8-spirit-track{
  border-color:rgba(122,92,255,.72);
  background:linear-gradient(135deg,rgba(122,92,255,.9),rgba(74,119,255,.9));
  box-shadow:0 0 14px rgba(105,108,255,.22);
}

.r8-spirit-control input:checked + .r8-spirit-track span{
  background:#fff;
  transform:translateX(16px);
}

.r8-spirit-control input:focus-visible + .r8-spirit-track{
  outline:2px solid #9fc1ff;
  outline-offset:3px;
}

.r8-spirit-control:has(input:disabled){
  cursor:wait;
  opacity:.55;
}

.r8-roll-delay{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:11px;
  color:var(--muted);
  font-size:11px;
}

.r8-delay-options{
  display:flex;
  gap:5px;
  padding:3px;
  border:1px solid rgba(120,169,255,.18);
  border-radius:999px;
  background:rgba(8,14,24,.72);
}

.r8-delay-options button{
  min-width:48px;
  padding:5px 9px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#9daac0;
  cursor:pointer;
  font:inherit;
  font-weight:800;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}

.r8-delay-options button:hover,
.r8-delay-options button:focus-visible{
  color:#dceaff;
  outline:none;
}

.r8-delay-options button.is-selected{
  background:linear-gradient(135deg,rgba(122,92,255,.88),rgba(74,119,255,.88));
  color:#fff;
  box-shadow:0 0 14px rgba(105,108,255,.28);
}

.r8-delay-options button:disabled{
  cursor:wait;
  opacity:.55;
}

.r8-roll-btn.is-rolling strong{
  letter-spacing:2px;
}

.r8-error{
  min-height:20px;
  margin-top:8px;
  color:#ff8d8d;
  font-size:13px;
  text-align:center;
}

.r8-error.is-notice{
  color:#86d9ae;
}

.r8-counter-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.r8-counter-head h2{
  margin:2px 0 0;
  text-align:left;
}

.r8-reset-btn{
  padding:8px 11px;
  font-size:12px;
}

.r8-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:14px;
  border:1px solid #2c354b;
  border-radius:14px;
  background:var(--r8-panel);
}

.r8-total span{
  color:var(--muted);
}

.r8-total strong{
  color:var(--accent);
  font-size:28px;
}

.r8-total-polishes strong{
  color:var(--r8-stat-strong);
}

.r8-total-polishes{
  margin-top:18px;
}

.r8-breakdown{
  display:grid;
  gap:7px;
}

.r8-breakdown .r8-empty{
  padding:16px 10px;
  font-size:13px;
}

.r8-breakdown-row{
  position:relative;
  display:flex;
  width:100%;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px;
  border:1px solid #293249;
  border-radius:12px;
  background:#151c2a;
  color:inherit;
  cursor:pointer;
  font:inherit;
  text-align:left;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.r8-breakdown-row:focus-visible,
.r8-breakdown-row.is-name-visible{
  border-color:rgba(120,169,255,.5);
  background:#182235;
  box-shadow:0 8px 20px rgba(0,0,0,.2);
  outline:none;
}

.r8-breakdown-icons{
  display:flex;
  min-width:0;
  align-items:center;
  gap:7px;
}

.r8-breakdown-row img{
  flex:0 0 34px;
  width:34px;
  height:34px;
  padding:4px;
  border-radius:8px;
  background:#090e17;
}

.r8-breakdown-row .r8-breakdown-class-icon{
  padding:2px;
  background:#101827;
}

.r8-breakdown-name{
  position:absolute;
  z-index:4;
  right:8px;
  bottom:calc(100% + 6px);
  left:8px;
  padding:7px 9px;
  border:1px solid rgba(120,169,255,.38);
  border-radius:9px;
  background:#0d1524;
  color:var(--r8-item);
  font-size:11px;
  font-weight:750;
  line-height:1.3;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transform:translateY(4px);
  transition:opacity .14s ease,transform .14s ease;
  visibility:hidden;
  white-space:normal;
}

.r8-breakdown-row:focus-visible .r8-breakdown-name,
.r8-breakdown-row.is-name-visible .r8-breakdown-name{
  opacity:1;
  transform:translateY(0);
  visibility:visible;
}

@media(hover:hover) and (pointer:fine){
  .r8-breakdown-row:hover{
    border-color:rgba(120,169,255,.5);
    background:#182235;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
    outline:none;
  }

  .r8-breakdown-row:hover .r8-breakdown-name{
    opacity:1;
    transform:translateY(0);
    visibility:visible;
  }
}

.r8-breakdown-row strong{
  color:var(--text);
  font-size:16px;
  white-space:nowrap;
}

@keyframes r8-fire-spin{
  to{transform:rotate(360deg)}
}

@keyframes r8-fire-pulse{
  from{transform:scale(.94);filter:drop-shadow(0 0 11px rgba(255,105,16,.45))}
  to{transform:scale(1.04);filter:drop-shadow(0 0 24px rgba(255,159,38,.85))}
}

@keyframes r8-progress{
  from{width:0}
  to{width:100%}
}

@media(max-width:860px){
  .r8-class-grid{
    grid-template-columns:repeat(5,minmax(62px,1fr));
    gap:7px;
  }

  .r8-class-card{
    min-height:74px;
    padding:5px;
  }

  .r8-class-card img{
    width:min(60px,100%);
  }

  .r8-workspace{
    grid-template-columns:1fr;
  }

  .r8-result-card,
  .r8-counter-card{
    min-height:0;
  }

  .r8-comparison,
  .r8-forging-layout{
    grid-template-columns:minmax(0,1fr) 94px minmax(0,1fr);
    padding:13px;
  }
}

@media(max-width:560px){
  .r8-page{
    padding-left:10px;
    padding-right:10px;
  }

  .r8-section{
    padding:14px;
  }

  .r8-section-heading{
    display:block;
  }

  .r8-section-note{
    display:block;
    margin-top:5px;
    text-align:left;
  }

  .r8-class-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:7px;
  }

  .r8-item-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .r8-class-card{
    min-height:58px;
    padding:4px;
  }

  .r8-class-card img{
    width:min(52px,100%);
  }

  .r8-item-group-grid{
    grid-template-columns:1fr;
  }

  .r8-result{
    padding:14px;
  }

  .r8-result-panel,
  .r8-result-placeholder,
  .r8-initial-craft-loading{
    min-height:438px;
  }

  .r8-current-layout,
  .r8-comparison,
  .r8-forging-layout{
    grid-template-columns:1fr;
    min-height:0;
  }

  .r8-current-layout,
  .r8-comparison,
  .r8-forging-layout{
    padding:12px;
  }

  .r8-current-layout .r8-new-placeholder{
    grid-column:auto;
  }

  .r8-initial-item-layout{
    min-height:438px;
    padding:12px;
  }

  .r8-polish-panel{
    min-height:300px;
    grid-column:auto;
  }

  .r8-choice-timer{
    position:static;
    margin:-5px 12px 12px;
  }

  .r8-forging-center,
  .r8-comparison-fire{
    padding:4px 0;
  }

  .r8-forge-effect,
  .r8-comparison-fire .r8-forge-effect{
    width:86px;
    height:86px;
    margin:auto;
  }

  .r8-new-placeholder{
    min-height:170px;
  }
}

@media(prefers-reduced-motion:reduce){
  .r8-class-card,
  .r8-item-card{
    transition:none;
  }

  .r8-forge-effect,
  .r8-forge-effect img{
    animation-duration:2.8s;
  }
}
