html {
  overflow-y: scroll;
}
.tir5-body {
  margin: 0;
}
.ORTIR-container, .ORACLES-TIRAGES, .ORTIR-titre {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0px;
  margin: 0px;
}
.ORTIR-container {
  padding: 0px !important;
}
#tir2-app {
  width: 100%;
  padding: 0px;
  box-sizing: border-box;
}
#tir2-app * {
  box-sizing: border-box;
}
.tir2-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.tir2-intro-image {
  max-width: 420px;
  margin: auto 20px;
  overflow: hidden;
  border: 2px solid rgba(214, 180, 106, .7);
  border-radius: 18px;
  box-shadow: 0 0 30px rgba(214, 180, 106, .25), 0 15px 40px rgba(0, 0, 0, .45);
  line-height: 0;
}
.tir2-intro-image img {
  display: block;
  width: 100%;
  height: auto;
}
.tir2-intro-title {
  width: calc(100% - 60px);
  max-width: 600px;
  margin: 25px auto 25px;
  color: #f1e7c5;
  font-size: 1rem;
}
.tir2-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
.tir2-header {
  text-align: center;
  margin-bottom: 0px;
}
.tir2-subtitle {
  max-width: 700px;
  margin: auto;
  color: rgba(255, 255, 255, .85);
  line-height: 1.5;
}
.tir2-wheel-wrapper {
  transition:
    opacity .9s ease, transform .9s ease, max-height .9s ease, margin .9s ease;
  overflow: hidden;
}
.tir2-wheel-wrapper.hide {
  opacity: 0;
  transform: scale(0.96);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}
.tir2-wheel-wrapper {
  max-height: 500px; /* desktop */
}
.tir2-wheel {
  width: min(90vw, 500px);
  height: min(90vw, 500px);
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tir2-spin {
  animation: tir2Spin 25s linear infinite;
}
@keyframes tir2Spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.tir2-wheel::before {
  animation: haloPulse 4s ease-in-out infinite;
}
.tir2-wheel {
  position: relative;
}
.tir2-wheel::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 140, 0.18), transparent 65%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}
.tir2-wheel {
  z-index: 1;
}
.tir2-card {
  z-index: 2;
}
.tir2-wheel-wrapper {
  transition: opacity .6s ease, transform .6s ease;
}
.tir2-wheel-wrapper.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
.tir2-result-zone, .tir2-category-buttons, .tir2-interpretation-zone {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.tir2-result-zone.show, .tir2-category-buttons.show, .tir2-interpretation-zone.show {
  opacity: 1;
  transform: translateY(0);
}
.tir2-card {
  width: 64px;
  height: 108px;
  position: absolute;
  opacity: 0;
  cursor: pointer;
  transition:
    opacity .4s ease, transform .35s ease;
  will-change: transform;
  /* POSITION BASE */
  transform:
    translate(var(--x), var(--y)) rotate(var(--angle));
}
.tir2-card.show {
  opacity: 1;
}
/* HOVER */
.tir2-card:hover {
  transform:
    translate(calc(var(--x) * 1.1), calc(var(--y) * 1.1)) rotate(var(--angle)) scale(1.05);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 215, 120, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #120f1d;
  filter:
    brightness(1.12) contrast(1.05) saturate(1.08);
}
.tir2-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.2s ease;
}
.tir2-card.tir2-flipped .tir2-card-inner {
  transform: rotateY(180deg);
}
.tir2-card-front, .tir2-card-back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .25);
}
.tir2-card-back {
  transform: rotateY(180deg);
}
@keyframes haloPulse {
  0% {
    transform: scale(0.98);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.98);
    opacity: 0.4;
  }
}
.tir2-wheel-wrapper.hide .tir2-wheel {
  filter: blur(2px);
}
.tir2-text-zone {
  max-width: 900px;
  margin: 0px auto 0px;
  padding: 5px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}
.tir2-main-text {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
}
.tir2-result-zone {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 231px;
}
#tir2SelectedCard {
  min-height: 0;
  height: 231px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tir2-selected-display {
  width: 120px;
  height: 162px;
  position: relative !important;
}
.tir2-interpretation-zone {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 0px;
}
.tir2-category-buttons {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.tir2-interpretation-text {
  max-width: 760px;
  width: 100%;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .2px;
  white-space: pre-line;
  text-align: left;
}
.tir2-main-button, .tir2-cat-btn {
  border: 1px solid rgba(241, 231, 197, .5);
  border-radius: 12px;
  padding: 7px 14px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(161, 102, 178, .95), rgba(129, 77, 141, .95));
  color: #f8edc8;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .3px;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .3), inset 0 1px 2px rgba(255, 255, 255, .2);
  transition:
    transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.tir2-main-button:hover, .tir2-cat-btn:hover {
  transform: translateY(-3px);
  filter:
    brightness(1.12);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, .45), 0 0 18px rgba(214, 180, 106, .35), inset 0 1px 3px rgba(255, 255, 255, .35);
}
.tir2-cat-btn {
  opacity: .65;
}
.tir2-cat-btn.active {
  opacity: 1;
  border-color: #f1d77a;
  background:
    linear-gradient(135deg, #b878c8, #8f579d);
  box-shadow:
    0 0 20px rgba(214, 180, 106, .5);
}
.tir2-cat-btn.disabled {
  opacity: .25;
  filter: grayscale(.7);
  pointer-events: none;
}
.tir2-interpretation-text.typing::after {
  content: "|";
  animation: blink .8s infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width:768px) {
  .container, .ORTIR-container, .ORACLES-TIRAGES, #tir2-app {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .tir2-wheel-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  .tir2-wheel {
    width: min(92vw, 340px);
    height: min(92vw, 340px);
  }
  .tir2-result-zone {
    height: auto;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 0;
  }
  .tir2-selected-display {
    width: 110px;
    height: 150px;
  }
  #tir2SelectedCard {
    height: 150px !important;
    min-height: 0;
  }
  .tir2-category-buttons {
    height: auto !important;
  }
  .tir2-cat-btn {
    flex: 1 1 calc(50% - 8px);
  }
  .tir2-cat-btn {
    font-size: 11px;
    padding: 5px 8px;
    line-height: 1;
  }
  .tir2-category-buttons.show {
    width: calc(100% - 60px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px !important;
  }
  .tir2-interpretation-text {
    padding: 15px;
    font-size: .95rem;
  }
  #tir2StartBtn, #tir2InterpretationText {
    margin-bottom: 80px !important;
  }
}
.tir2-interpretation-text {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity .6s ease, transform .6s ease;
}
.tir2-interpretation-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}