/* ====================<< Mode >>==================== */
/* ========== CSS Reset Start (Meyer + Custom) ========== */
/* --- Reset default styles for common HTML elements --- */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* --- Ensure HTML5 elements are block-level --- */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* --- Set base line-height for body --- */
body {
  line-height: 1;
}

/* --- Remove default list styling --- */
ol,
ul {
  list-style: none;
}

/* --- Remove default quote styling --- */
blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

/* --- Reset table spacing --- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========== CSS Reset End ========== */
/* ========== Basic Utility Styles ========== */
/* --- Set font-family for body --- */
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

/* --- Remove underline and default link color --- */
a {
  text-decoration: none;
  color: inherit;
}

/* --- Responsive image scaling --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Remove form element default styles --- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Show pointer cursor on buttons --- */
button {
  cursor: pointer;
}

/* --- Use border-box for all elements to include padding/border in size --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========== Debug Tools (for development only) ========== */
/* --- Add 1px outline to all elements for layout debugging --- */
/* ====================<< Mode >>==================== */
html,
body {
  font-family: "Cinzel Decorative", serif;
  text-shadow: 0 0 5px #fff2b3;
}

.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1061;
  display: flex;
}

.door {
  width: 50%;
  height: 100%;
  transition: all 1.5s ease-in-out;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
}

.left-door {
  background: linear-gradient(to right, #4b2e1e, #3a2418);
  border-right: 10px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.8);
}

.right-door {
  background: linear-gradient(to left, #4b2e1e, #3a2418);
  border-left: 10px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.8);
}

.left-door, .right-door {
  transition: transform 3s ease-in-out;
}

.wrap {
  width: 100vw;
  height: 100vh;
  background: url("../image/megicHall.png") no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  filter: brightness(1.1) saturate(1.2);
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(white 1px, transparent 2px), radial-gradient(white 1px, transparent 2px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  animation: sparkle 10s linear infinite;
  opacity: 0.2;
  z-index: 1;
}

@keyframes sparkle {
  0% {
    background-position: 0 0, 30px 30px;
    opacity: 0.3;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    background-position: 60px 60px, 90px 90px;
    opacity: 0.3;
  }
}
.sortingHat {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 180px;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, -60%);
  }
}
.swal2-timer-progress-bar {
  background: linear-gradient(to right, white, wheat);
}

.swal2-loader {
  border-color: white transparent wheat transparent;
}

.restart {
  color: gold;
  font-size: 20px;
  position: absolute;
  bottom: 3%;
  right: 3%;
  opacity: 0;
  pointer-events: none;
}
.restart.visible {
  animation: fadeIn 0.5s ease-in forwards, shiny 1s ease-in-out 0.5s infinite;
  pointer-events: auto;
}
.restart.visible:hover {
  color: orange;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}
@keyframes shiny {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}/*# sourceMappingURL=all.css.map */