@font-face {
  font-family: "NanumSquareNeo";
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot);
  src:
    url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.eot?#iefix)
      format("embedded-opentype"),
    url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.woff)
      format("woff"),
    url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareNeo/NanumSquareNeoTTF-bRg.ttf)
      format("truetype");
}

/* reset */
/****************************************
	소스코드 초기화
****************************************/

html {
  overflow-y: auto;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
}
html,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
img {
  margin: 0;
  padding: 0;
  border: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}
legend {
  display: none;
}
label,
input,
button,
select,
img {
  vertical-align: middle;
}
input,
button {
  margin: 0;
  padding: 0;
}
button {
  cursor: pointer;
}
textarea,
select {
  font-size: 1em;
}
select {
  margin: 0;
}
p {
  margin: 0;
  padding: 0;
  word-break: break-all;
}
hr {
  display: none;
}
pre {
  overflow-x: scroll;
}
a:link,
a:visited {
  text-decoration: none;
}
a:hover,
a:focus,
a:active {
  text-decoration: none;
}

ul,
li {
  margin: 0;
  padding: 0;
}
i,
sup,
em {
  font-style: normal;
}

label {
  cursor: pointer;
}

img {
  max-width: 100%;
  vertical-align: middle;
}
table {
  width: 100%;
}

/* main */

* {
  font-family: "NanumSquareNeo", sans-serif;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #d4edff;
  color: #000000;
}
#bg-canvas {
  position: absolute;
  cursor: crosshair;
  width: 100dvw;
  height: 100dvh;
  z-index: 0;
  top: 0;
}

.main_wrap {
  position: relative;
  z-index: 1;
  width: 100dvw;
  height: 100dvh;
}

.notice {
  box-sizing: border-box;
  width: 90%;
  max-width: 640px;
  margin: 5rem auto;
  text-align: center;
  border-radius: 2rem;
}

.notice h1 {
  margin: 0 0 1.5rem;
  text-align: center;
}

.notice > div {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #d4edff;
  border-radius: 1rem;
  font-size: 14px;
}

.notice h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.notice p {
  overflow-wrap: break-word;
  word-break: break-word;
}

.banner_box img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

/* 플레이리스트 */

.floating-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 24px);
  color: #fff;
  background: #5681ba;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #5681ba;
}

.player-title {
  font-size: 14px;
  font-weight: 600;
}

.player-actions {
  display: flex;
  gap: 5px;
}

.player-actions button,
.restore-player {
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: #5681ba;
  background: #fff;
  cursor: pointer;
}

.player-actions button:hover,
.restore-player:hover {
  background: #555;
}

.player-body {
  position: relative;
  width: 100%;
  background: #000;
}

#youtube-player {
  display: block;
  width: 100%;
  height: 220px;
}

.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.82);
  pointer-events: none;
}

.start-overlay p {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

#startHint {
  color: #ccc;
  font-size: 12px;
}

.player-status {
  padding: 8px 12px;
  color: #fff;
  background: #5681ba;
  font-size: 12px;
}

.restore-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 12px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .floating-player {
    right: 12px;
    bottom: 12px;
    width: 340px;
    max-width: calc(100vw - 24px);
  }

  #youtube-player {
    height: 210px;
  }

  .restore-player {
    right: 12px;
    bottom: 12px;
  }

  .page-content {
    padding: 20px;
  }
}
