* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}
html {
  overflow-y: scroll;
}
.ORTIR-container, .ORTIR-CONTENEUR, .ORACLES-TIRAGES, .ORTIR-titre {
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0px !important;
  margin: 0px !important;
}
@keyframes aura {
  0% {
    transform: translate(-5%, -5%);
  }
  50% {
    transform: translate(5%, 5%);
  }
  100% {
    transform: translate(-5%, -5%);
  }
}
#progress {
  height: 6px;
  background:
    rgba(255, 255, 255, .15);
  border-radius: 10px;
  margin-top: 20px;
}
#progress-bar {
  height: 100%;
  width: 0;
  background: #d4af37;
  border-radius: 10px;
  transition: .4s;
}
.centertir2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.scene {
  display: none;
  position: relative;
  width: 100%;
  flex-direction: column;
  align-items: center;
}
.tirage-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  width: max-content;
  margin: 0 auto;
}
.deck-panel {
  width: 460px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}
.deck {
  display: grid;
  grid-template-columns: repeat(5, 70px);
  grid-auto-rows: 135px;
  gap: 10px;
  width: 460px;
  position: relative;
  z-index: 1;
}
#deck-hint {
  position: absolute;
  top: -30px;
  left: -35%;
  transform: translateX(-50%);
  display: inline-block;
  white-space: nowrap;
  color: #d4af37;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
@media (min-width:901px) {
  .deck {
    grid-template-columns: repeat(5, 65px);
    grid-auto-rows: 110px;
    gap: 8px;
    width: 357px;
    top: 20px;
  }
}
#grid, #labels {
  top: 0px;
}
.card {
  position: absolute;
  width: 80px;
  height: 135px;
  border-radius: 10px;
  border: 1px solid #d4af37;
  background-image: url("cartes/dos.jpg");
  background-size: cover;
  background-position: center;
  transform-origin: center bottom;
  cursor: pointer;
  transition:
    transform .6s ease, opacity .6s ease;
}
@media (min-width:901px) {
  .deck .card {
    position: relative;
    width: 65px;
    height: 110px;
    transform: none !important;
  }
}
.card-slot {
  position: absolute;
  width: 90px;
  height: 150px;
  border: 1px solid rgba(180, 180, 180, .35);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  box-sizing: border-box;
  pointer-events: none;
}
.placeholder {
  position: absolute;
  width: 90px;
  height: 150px;
  border: 1px dashed rgba(212, 175, 55, .25);
  border-radius: 10px;
  box-shadow:
    inset 0 0 10px rgba(212, 175, 55, .08);
  background: rgba(255, 255, 255, .02);
  box-sizing: border-box;
  pointer-events: none;
}
#grid {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 900px;
  z-index: 20;
  pointer-events: none;
}
.grid-card {
  position: absolute;
  width: 90px;
  height: 150px;
  border-radius: 10px;
  border: 2px solid #d4af37;
  background-image: url("cartes/dos.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
  pointer-events: auto;
  cursor: pointer;
  z-index: 20;
  transition:
    transform .5s ease, background-image .2s ease;
}
.grid-card:hover {
  transform: scale(1.08);
}
.grid-card.active {
  transform: scale(1.18);
  box-shadow:
    0 0 25px rgba(212, 175, 55, .9), 0 0 60px rgba(212, 175, 55, .5), 0 0 100px rgba(212, 175, 55, .2);
  z-index: 100;
}
.grid-card.active::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 12px;
  border: 2px solid rgba(212, 175, 55, .5);
}
.grid-card, .card {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .5);
  overflow: hidden;
}
#labels {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 900px;
  z-index: 15;
  pointer-events: none;
}
.label {
  position: absolute;
  transform: translateX(-50%);
  color: white;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, .8);
}
#cross-wrapper {
  position: relative;
  transform: scale(0.80);
  transform-origin: top center;
  display: block;
}
#reading-panel {
  position: absolute;
  top: 80px;
  right: 40px;
  width: 380px;
  min-height: 620px;
  padding: 20px;
  border: 2px solid #d4af37;
  border-radius: 12px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  color: white;
  z-index: 50;
  display: none;
}
#reading-card {
  width: 150px;
  display: block;
  margin: auto;
  border-radius: 10px;
  border: 2px solid #d4af37;
}
#reading-title {
  text-align: center;
  margin-top: 15px;
}
#reading-title {
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
}
#reading-position {
  text-align: center;
  color: #d4af37;
  font-weight: bold;
  margin-bottom: 15px;
}
#reading-text {
  line-height: 1.5;
}
#reading-text {
  height: 120px;
  overflow: hidden;
}
#reading-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, .4);
  color: #d4af37;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  font-style: italic;
  white-space: pre-line;
}
#nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
#prev-card, #next-card {
  min-width: 130px;
  padding: 12px 18px;
  background: #d4af37;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
}
#reading-summary {
  text-align: center;
  width: 100%;
  max-width: calc(760px + 380px + 40px);
  margin: 65px auto 0 auto;
  padding: 20px;
  border: 2px solid #d4af37;
  border-radius: 12px;
  background: rgba(0, 0, 0, .55);
  color: #d4af37;
  font-size: 15px;
  line-height: 1.3;
  white-space: pre-line;
  display: none;
}
.scene-inner {
  width: 550px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
@media (max-width:900px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  .scene {
    min-height: 100px;
  }
  #start-button {
    margin-bottom: 80px !important;
  }
  .card {
    width: 70px;
    height: 115px;
    margin-left: -35px;
  }
  #grid {
    width: 760px;
    height: 280px;
    transform:
      translateX(-50%) scale(.50);
  }
  .grid-card, .card-slot {
    border-radius: 6px;
  }
  .placeholder {
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
  }
  .deck {
    top: 440px;
  }
  #deck-hint {
    left: 50%;
    top: 90px;
    transform: translate(-50%, -50%);
    width: max-content;
  }
  #labels {
    transform: translateX(-50%) scale(.50);
    transform-origin: top center;
    margin-top: 58px;
  }
  #reading-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 20px);
    margin: -200px auto 150px auto;
    padding: 20px;
    box-sizing: border-box;
    min-height: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    z-index: 50;
  }
  .grid-card, .placeholder, .card-slot {
    width: 60px;
    height: 100px;
  }
  #reading-footer {
    margin-top: 0px;
    padding-top: 0px;
    border: none;
    display: none !important;
  }
  #reading-card {
    width: 110px;
  }
  #reading-title {
    font-size: 18px;
  }
  #reading-text {
    height: 60px;
    line-height: 1.3;
    margin-bottom: 0px;
  }
  #nav-buttons #prev-card, #next-card {
    margin-top: 0px;
  }
  #reading-summary {
    width: calc(100% - 20px);
    margin: -130px auto 100px auto;
    position: relative;
  }
  #reading-summary {
    width: 90%;
    max-width: 420px;
    margin: 20px auto 80px auto;
    position: relative;
    left: 0;
    transform: none;
    box-sizing: border-box;
    text-align: center;
    padding: 15px;
  }
  .scene-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  #cross-wrapper {
    transform: scale(0.50);
    transform-origin: top center;
    margin: 0 auto;
  }
}
@media (max-width:900px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  .scene {
    width: 100%;
    min-height: 100px;
    overflow: hidden;
  }
  .tirage-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  .scene-inner {
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
  }
  #cross-wrapper {
    width: 380px;
    height: 450px;
    transform: none;
    position: relative;
    margin: 0 auto;
  }
  #grid {
    width: 380px;
    height: 450px;
    left: 0;
    transform: none;
  }
  #grid, #labels {
    margin: 0;
  }
  #labels {
    width: 380px;
    height: 450px;
    left: 0;
    transform: none;
  }
  #reading-panel {
    position: relative;
    width: calc(100% - 20px);
    margin: 0 auto;
    top: auto;
    right: auto;
    left: auto;
  }
  #reading-summary {
    width: calc(100% - 20px);
    max-width: 420px;
    margin: 20px auto 80px auto;
    position: relative;
    left: auto;
    transform: none;
    box-sizing: border-box;
    text-align: center;
  }
  .deck-panel {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .deck {
    top: auto;
  }
}
@media (max-width: 900px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .scene {
    width: 100%;
    min-height: auto !important;
    overflow: visible;
  }
  .tirage-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
  }
  .scene-inner {
    width: 100%;
    height: 450px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    position: relative;
  }
  #cross-wrapper {
    position: relative;
    width: 380px;
    height: 450px;
    margin: 0 auto;
    transform: none !important;
    transform-origin: top center;
  }
  #grid {
    position: absolute;
    width: 760px;
    height: 900px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) scale(.5);
    transform-origin: top center;
    margin: 0;
    z-index: 20;
  }
  #labels {
    position: absolute;
    width: 760px;
    height: 900px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) scale(.5);
    transform-origin: top center;
    margin: 0;
    z-index: 15;
  }
  .grid-card, .card-slot, .placeholder {
    width: 90px;
    height: 150px;
    border-radius: 8px;
  }
  .deck-panel {
    width: 100%;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin: 0;
    padding: 100px 0 0 0;
    overflow: visible;
  }
  .deck {
    position: relative;
    width: 100%;
    height: 140px;
    display: block;
    margin: 0 auto;
    top: auto !important;
    left: auto;
    overflow: visible;
  }
  .deck .card {
    position: absolute;
    left: 50%;
    top: 0;
    width: 70px;
    height: 115px;
    margin-left: -35px;
    margin-top: 0;
    transform-origin: center bottom;
  }
  #deck-hint {
    position: absolute;
    left: 50%;
    top: -70px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 30px);
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
  }
  #reading-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 20px);
    max-width: 500px;
    min-height: auto;
    margin: 20px auto 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    z-index: 50;
  }
  #reading-card {
    width: 110px;
  }
  #reading-title {
    font-size: 18px;
  }
  #reading-text {
    height: auto;
    max-height: 100px;
    line-height: 1.3;
    margin-bottom: 0;
    overflow: hidden;
  }
  #reading-footer {
    display: none !important;
  }
  #nav-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  #prev-card, #next-card {
    min-width: 110px;
    padding: 10px 14px;
  }
  #reading-summary {
    position: relative;
    width: calc(100% - 20px);
    max-width: 500px;
    margin: 20px auto 80px auto;
    left: auto;
    transform: none;
    box-sizing: border-box;
    text-align: center;
    padding: 15px;
  }
}
@media (max-width: 900px) {
  #cross-wrapper.shift {
    transform: none !important;
    transform-origin: top center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
  }
  .scene-inner {
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
  }
  #cross-wrapper {
    width: 380px;
    height: 450px;
    position: relative;
    margin: 0 auto;
    transform: none !important;
  }
  #grid {
    position: absolute;
    width: 760px;
    height: 900px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) scale(.5);
    transform-origin: top center;
  }
  #labels {
    position: absolute;
    width: 760px;
    height: 900px;
    left: 50%;
    top: 0;
    transform: translateX(-50%) scale(.5);
    transform-origin: top center;
  }
  .deck-panel {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin: 0;
    padding: 90px 0 0 0;
  }
  .deck {
    position: relative;
    width: 100%;
    height: 140px;
    margin: 0;
    padding: 0;
    top: auto !important;
    left: auto !important;
  }
  .deck .card {
    position: absolute;
    left: 50%;
    top: 0;
    width: 70px;
    height: 115px;
    margin-left: -35px;
  }
  #deck-hint {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 30px);
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 70px !important;
  }
  #reading-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 20px);
    max-width: 500px;
    margin: 10px auto 0 auto;
    min-height: auto;
    padding: 20px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    z-index: 50;
  }
  #reading-summary {
    position: relative;
    width: calc(100% - 20px);
    max-width: 500px;
    margin: 20px auto 80px auto;
    left: auto;
    transform: none;
    box-sizing: border-box;
  }
  #cross-wrapper.shift {
    transform: none !important;
  }
  .scene:has(#cross-wrapper.shift) .deck-panel {
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  .scene:has(#cross-wrapper.shift) #reading-panel {
    margin-top: 0;
  }
  #reading-panel {
    margin-bottom: 80px !important;
  }
}