@import url("fontawesome-all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Sora:wght@100;200;300;400;500;600;700;800&display=swap');

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  {
  border: 0;
  font: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section  {
  display: block;
}

body  {
  line-height: 1;
}

ol, ul  {
  list-style: none;
}

blockquote, q  {
  quotes: none;
}

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

table  {
  border-collapse: collapse;
  border-spacing: 0;
}

body  {
  -webkit-text-size-adjust: none;
}

mark  {
  background-color: transparent;
  color: inherit;
}

input::-moz-focus-inner  {
  border: 0;
  padding: 0;
}

input, select, textarea  {
  -moz-appearance: none;
  -ms-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Basic */

	html  {
  box-sizing: border-box;
}

	*, *:before, *:after  {
  box-sizing: inherit;
}

	body  {
  background: #042140;
  overflow: hidden;
}

		body.is-preload *, body.is-preload *:before, body.is-preload *:after  {
  -moz-animation: none !important;
  -moz-transition: none !important;
  -ms-animation: none !important;
  -ms-transition: none !important;
  -webkit-animation: none !important;
  -webkit-transition: none !important;
  animation: none !important;
  transition: none !important;
}

	body, input, select, textarea  {
  color: #ffffff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.75em;
}

	a  {
  -moz-transition: border-color 0.2s ease-in-out;
  -ms-transition: border-color 0.2s ease-in-out;
  -webkit-transition: border-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: inherit;
  outline: 0;
  text-decoration: none;
  transition: border-color 0.2s ease-in-out;
}

		a:hover  {
  border-color: transparent;
}

/* === Wrapper: fade in === */
#wrapper {
  animation: wrapper 1.4s forwards;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

@keyframes wrapper {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* === Background Image: zoom-in === */
#bg-image {
  background: url("../images/bg2.webp") center center no-repeat;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  transform: scale(2.2);
  animation: zoomInBackground 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes zoomInBackground {
  to {
    transform: scale(1);
  }
}

/* === Header container === */
#header {
  font-family: 'Sora', sans-serif;
  animation: header 1s 1.5s forwards;
  backface-visibility: hidden;
  cursor: default;
  display: inline-block;
  opacity: 0;
  position: relative;
  text-align: center;
  top: -1em;
  transform: translate3d(0, 0, 0);
  vertical-align: middle;
  width: 90%;
}

@keyframes header {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* Default paragraph */
#header p {
  font-size: 1.2em;
  margin: 0.75em 0.25em 0.55em 0.95em;
  letter-spacing: -0.02em;
  color: #ccdcee;
  line-height: 1.1;
  opacity: 1;
  text-shadow: 0.015em 0.015em 0.025em rgba(0, 0, 0, 0.15);
}

/* Header Logo Title */
.logo-title {
  display: flex;
  justify-content: center;
  align-items: center; 
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5em;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.015em;
  text-shadow: 0.015em 0.015em 0.025em rgba(0, 0, 0, 0.15);
  padding: 0;
}

/* Logo symbol image */
.logo-symbol {
  height: 1em; 
  display: block; 
  margin: 0 -0.05em -0.1em 0;
  filter: brightness(1.1) contrast(1.15) drop-shadow(0 0 0.5em #103962);
}

.intro-box {
  display: inline-block; /* 콘텐츠 크기에 맞게 자동 조절 */
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 0.6em;
  padding: 1.3em 1.5em;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
  min-width: 20em; 
  max-width: 45em;   /*(672px) */
  width: auto;
  margin: -1.2em 0 0.3em 0;
  box-sizing: border-box;
}
#header.intro-box p {
  font-size: 1em;
  line-height: 1.0;
  letter-spacing: 0.005em;
  margin: 0;
  padding: 0;
}
.highlight {
  color: #FFD447;
  font-weight: 400;
  text-shadow: 0 0 0.3em rgba(255, 212, 71, 0.2);
}

/* Keyword emphasis */
#header p.keyword {
  color: rgb(132, 190, 249);
  font-size: 1.8em;
  margin: 1.0em 0 0 0.7em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0.05em 0.05em 0.1em rgba(0, 0, 0, 0.3);
}

/* === Header nav === */
#header nav {
  margin: 1.5em 0 0 0;
}

#header nav li {
  animation: nav-icons 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  backface-visibility: hidden;
  display: inline-block;
  height: 5.35em;
  line-height: 5.885em;
  opacity: 0;
  position: relative;
  top: 0;
  transform: translate3d(0, 0, 0);
  width: 5.35em;
}

/* === nav-icons keyframes === */
@keyframes nav-icons {
  0% {
    transform: translate3d(0, 1em, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* === nav-icons timing (3 items only) === */
#header nav li:nth-child(1) { animation-delay: 1.55s; }
#header nav li:nth-child(2) { animation-delay: 1.75s; }
#header nav li:nth-child(3) { animation-delay: 1.95s; }

/* === Nav link style === */
#header nav a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none;
  border: 0;
  display: inline-block;
}

#header nav a:before {
  transition: all 0.2s ease-in-out;
  border: solid 1px #fff;
  border-radius: 100%;
  display: block;
  font-size: 1.75em;
  height: 2.5em;
  line-height: 2.5em;
  position: relative;
  text-align: center;
  top: 0;
  width: 2.5em;
}

/* === Hover/Active interaction === */
#header nav a:hover {
  font-size: 1.1em;
}

#header nav a:hover:before {
  background-color: rgba(255, 255, 255, 0.175);
  color: #fff;
}

#header nav a:active {
  background: none;
  font-size: 0.95em;
}

#header nav a:active:before {
  background-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

#header nav a span {
  display: none;
}

/* === FontAwesome Icon Styling === */
.icon {
  position: relative;
  text-decoration: none;
}

.icon:before {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-rendering: auto;
  text-transform: none !important;
}

.icon > .label {
  display: none;
}

.icon.solid:before {
  font-weight: 900;
}

.icon.brands:before {
  font-family: 'Font Awesome 5 Brands';
}

.sns-links {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0 1rem;
}

.sns-links a { 
  display: inline-block;
  transition: transform 0.2s ease;
  text-decoration: none;
  border: none; 
}

.sns-links a img {
  width: 2.5rem;  
  height: 2.5rem;
  object-fit: contain;
}

.sns-links a:hover {
  transform: scale(1.1);
}


#overlay {
  animation: overlay 0.7s 1.3s forwards;
  background-attachment: fixed;
  background-image: url("../images/overlay-pattern.png"), url("../images/bg_bubble_floating.svg"), url("../images/bg_start_twingkle.svg");
  background-position: top left, center center;
  background-repeat: repeat, no-repeat;
  background-size: auto, cover;
  height: 100vh;
  left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  width: 100%;
}

@keyframes overlay {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Main */
	#main  {
  height: 100%;
  left: 0;
  position: fixed;
  text-align: center;
  top: 0;
  width: 100%;
}

		#main:before  {
  content: '';
  display: inline-block;
  height: 100%;
  margin-right: 0;
  vertical-align: middle;
  width: 1px;
}

/* Footer */

	#footer  {
  opacity: 0;
  animation: fadeInFooter 1s ease-in-out 2.1s forwards;
  background-image: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
  background-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
  background-image: -ms-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
  background-image: linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
  bottom: 0;
  cursor: default;
  height: 6em;
  left: 0;
  line-height: 8em;
  position: absolute;
  text-align: center;
  width: 100%;
}
@keyframes fadeInFooter {
  to { opacity: 0.8; }
}

/* Wide */

	@media screen and (max-width: 1680px) {

		/* Basic */

			body, input, select, textarea  {
  font-size: 1.08rem;
}
		 }

/* Normal */

	@media screen and (max-width: 1280px) {

		/* Basic */

			body, input, select, textarea  {
  font-size: 1rem;
}	
}

/* Mobile */

	@media screen and (max-width: 736px) {

		/* Basic */
			body  {
  min-width: 320px;
}
			body, input, select, textarea  {
  font-size: 0.92rem;
}		

	/* mobile Header */
		#header h1  {
  font-size: 2.7em;
}

		#header p  {
  font-size: 1em;
}

		#header nav  {
  font-size: 1em;
}

			#header nav a:hover  {
  font-size: 1em;
}

			#header nav a:active  {
  font-size: 1em;
} 

  .sns-links a img {
    width: 2rem;
    height: 2rem;
  }

  .sns-links {
    gap: 1rem;
  }
}


/* Mobile (Portrait) */

	@media screen and (max-width: 480px) {

    #header h1  {
      font-size: 2.7em;
      gap: 0.005em !important; 
    }

    #header h1 img {
      height: 2.7rem !important; 
    }

		#header nav  {
      padding: 0 1em;
} 
    #header p.keyword {
      font-size: 1.3em; 
  }
    .sns-links a img {
    width: 1.8rem;
    height: 1.8rem;
  }

  .sns-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}


#phantomBtn.connected  {
  color: #1A1A1A;
}

#phantomBtn.connected:before  {
  background-color: #FFD447;
  border-color: #FFD447;
  color: #1A1A1A;
}

#phantomBtn.connected:hover:before  {
  background-color: #FFD447;
  border-color: #FFD447;
}

/* —— Chat Overlay —— */
#chatOverlay  {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: none;
  flex-direction: column;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: auto;
}

#chatOverlay * {
  pointer-events: auto;
}

#chatBack {
  pointer-events: auto !important;
}

      #chatHeader  {
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  padding: 0.75em 1em;
}
      #chatHeader .back-btn  {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 1.5em;
  margin-right: 0.75em;
}
      #chatHeader .title  {
  font-size: 1.1em;
  font-weight: 600;
}

      #chatMessages  {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 1em;
}
      .bubble  {
  border-radius: 1.25em;
  font-size: 0.9em;
  line-height: 1.4em;
  margin-bottom: 0.5em;
  max-width: 75%;
  padding: 0.65em 1em;
  word-break: break-word;
}
      .bubble.ai  {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 0;
  color: #111;
}
      .bubble.user  {
  align-self: flex-end;
  background: #348cb2;
  border-top-right-radius: 0;
  color: #fff;
}

      #chatInputBar  {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  padding: 0.75em;
}
      #chatInputBar input  {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 1.25em;
  color: #fff;
  flex: 1;
  font-family: inherit;
  padding: 0.6em 0.9em;
}
      #chatInputBar button  {
  background: #FFD447;
  border: 0;
  border-radius: 1.25em;
  color: #1A1A1A;
  cursor: pointer;
  font-weight: 600;
  margin-left: 0.5em;
  padding: 0 1.1em;
}

  /* —— AI Chat nav‑icon states —— */
      #aiChatBtn.authenticated:before  {
  background-color: #F7C948;
  border-color: #F7C948;
  color: #1A1A1A;
}
      #aiChatBtn.authenticated  {
  color: #1A1A1A;
}

.day-divider  {
  color: #aaa;
  font-size: 0.75em;
  margin: 1.2em 0;
  text-align: center;
}

.bubble-wrap  {
  display: flex;
  flex-direction: column;
  margin: 0.3em 0;
}

.bubble-wrap.user          {
  align-items: flex-end;
}
.bubble-wrap.user .bubble-time  {
  align-self: flex-end;
}

.bubble-wrap.ai            {
  align-items: flex-start;
}
.bubble-wrap.ai .bubble-time    {
  align-self: flex-start;
}

.bubble-time  {
  color: #999;
  font-size: 0.65em;
  margin-top: 0.25em;
  user-select: none;
}

.bubble p         {
  margin: 0;
}
.bubble strong    {
  font-weight: 600;
}
.bubble em        {
  font-style: italic;
}
.bubble code      {
  background: #f5f5f5;
  border-radius: 3px;
  font-family: monospace;
  padding: 0 .2em;
}
.bubble a         {
  color: #007aff;
  text-decoration: none;
}
.bubble a:hover   {
  text-decoration: underline;
}
.bubble ul        {
  margin: 0;
  padding-left: 1.2em;
}

/* clock animation */
@keyframes rotateClockwise {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.rotating {
  animation: rotateClockwise 12s linear infinite;
  display: inline-block;
  transform-origin: center;
}

#a2eBtn.rotating:before {
  background-color: #FFD447;
  border-color: #FFD447;
  color: #1A1A1A;
}

#a2eBtn.rotating:hover:before {
  background-color: #FFD447;
  border-color: #FFD447;
}

#a2eBtn.rotating {
  color: #1A1A1A;
}

/* heartbeat animation 

@keyframes heartbeat {
  0%, 100%  {
  color: #F7C948;
  filter: brightness(1);
  transform: scale(1);
}

  3%  {
  color: #F7C948;
  filter: brightness(1.6);
  transform: scale(1.42);
}

  7%  {
  filter: brightness(1.3);
  transform: scale(1.2);
}

  11%  {
  filter: brightness(1.45);
  transform: scale(1.32);
}

  16%  {
  filter: brightness(1.25);
  transform: scale(1.18);
}

  22%  {
  filter: brightness(1.15);
  transform: scale(1.10);
}

  28%  {
  filter: brightness(1.05);
  transform: scale(1.03);
}

  35%  {
  color: #ffffff;
  filter: brightness(1);
  transform: scale(1);
}

}

.heartbeating  {
  animation: heartbeat 1s infinite;
  animation-timing-function: ease-in-out;
}

#a2eBtn.heartbeating:before  {
  background-color: #FFD447;
  border-color: #FFD447 ;
  color: #1A1A1A;
}

#a2eBtn.heartbeating  {
  color: #1A1A1A;
}
*/

/* lightning bolt effect

#flashOverlay  {
  align-items: center;
  background: transparent;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.1s ease-out;
  width: 100%;
  z-index: 9999;
}


#lightningWrap  {
  position: relative;
}


#lightning  {
  animation: shakeRotate 0.5s infinite ease-in-out;
  filter: drop-shadow(0 0 15px white) drop-shadow(0 0 10px gold);
  height: auto;
  object-fit: contain;
  transform-origin: 50% 50%;
  width: auto;
}

@keyframes shakeRotate {
  0%    {
  transform: rotate(-5deg);
}
  25%   {
  transform: rotate(5deg);
}
  50%   {
  transform: rotate(-3deg);
}
  75%   {
  transform: rotate(3deg);
}
  100%  {
  transform: rotate(-5deg);
}
}
*/

/*#gameStartUI  {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: #000;
  left: 50%;
  padding: 1em 1.5em;
  position: absolute;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}
*/

