@charset "UTF-8";

/* =========================================================
   ALL in ONE - Web Solution
   ========================================================= */

:root {
  --c-bg: #1c1c1e;
  --c-white: #fff;
  --c-orange: #f5a623;
  --c-casino: #1fc8f2;
  --c-tosino: #a637f2;
  --grad-pill: linear-gradient(90deg, #9b0ff6 0%, #6a4cf6 45%, #17d0f4 100%);
  --grad-btn: linear-gradient(135deg, #8a1ff2 0%, #3d8af0 100%);
  --grad-hero: linear-gradient(135deg, #7a2ee6 0%, #6a45e3 45%, #3f97df 100%);
  --inner: 1170px;
  --gutter: 20px;
  --radius: 30px; /* 썸네일 원본 모서리(약 30px)보다 작으면 모서리에 배경색이 비침 */
  --header-h: 96px;
  --ff-en: "Poppins", "Noto Sans KR", sans-serif;
  --ff-kr: "Noto Sans KR", "Poppins", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-kr);
  color: var(--c-white);
  background: var(--c-bg);
  line-height: 1.5;
  word-break: keep-all;
  overflow-x: hidden;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em, i { font-style: normal; }

.inner {
  width: 100%;
  max-width: calc(var(--inner) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: height .3s;
}
/* 배경/블러는 가상요소에 적용
   (header 자체에 backdrop-filter 를 주면 내부 fixed 요소(.gnb)의 기준이 header 로 바뀌어 모바일 메뉴가 깨짐) */
.header::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: rgba(28, 20, 50, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .3s;
}
.header.is-scrolled { --header-h: 72px; }
.header.is-scrolled::before { opacity: 1; }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: block; flex-shrink: 0; }
.logo img { height: 50px; width: auto; transition: height .3s; }
.header.is-scrolled .logo img { height: 42px; }

.gnb ul { display: flex; gap: 55px; }
.gnb a {
  position: relative;
  font-family: var(--ff-en);
  font-size: 16px;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.gnb a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .25s;
}
.gnb a:hover, .gnb a.is-active { color: #fff; }
.gnb a.is-active { font-weight: 600; }
.gnb a:hover::after, .gnb a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 770px;
  background: var(--grad-hero);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__inner { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 80px; }
.hero__title {
  font-family: var(--ff-en);
  font-size: 80px; font-weight: 700;
  line-height: 1.1; letter-spacing: -1px;
}
.hero__subtitle {
  font-family: var(--ff-en);
  font-size: 40px; font-weight: 400;
  margin-top: 4px;
}
.hero__desc { margin-top: 30px; font-size: 16px; line-height: 2.1; }
.hero__model {
  position: absolute;
  right: max(0px, calc(50% - 960px + 220px));
  bottom: 0;
  width: 854px;
  z-index: 1;
}

/* =========================================================
   COMMON SECTION
   ========================================================= */
.section {
  position: relative;
  padding: 120px 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 50px;
}
.sec-head--center { flex-direction: column; justify-content: center; text-align: center; gap: 12px; }
.sec-title {
  font-family: var(--ff-en);
  font-size: 34px; font-weight: 700;
  line-height: 1.2;
}
.sec-title--lg { font-size: 40px; }
.sec-desc { font-size: 15px; color: rgba(255,255,255,.9); }
.sec-head > div .sec-desc { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.75); }

.pill {
  flex-shrink: 0;
  padding: 18px 30px;
  border-radius: 40px;
  background: var(--grad-pill);
  font-size: 15px; font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(80, 60, 240, .25);
}
.pill--dark { background: #1d1d1f; box-shadow: none; }

.btn-view {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad-btn);
  font-family: var(--ff-en);
  font-size: 13px; font-weight: 600;
  transition: transform .25s, box-shadow .25s;
}
.btn-view:hover { transform: scale(1.1); box-shadow: 0 0 18px rgba(138, 31, 242, .6); }

/* =========================================================
   SKIN CARDS (Casino / Tosino)
   ========================================================= */
.skin-grid { display: grid; gap: 30px; }
.skin-grid--3 { grid-template-columns: repeat(3, 1fr); }
.skin-grid--4 { grid-template-columns: repeat(4, 1fr); margin-top: 60px; }

.skin-card__thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 370 / 270;
  background: #111;
}
.skin-card--sm .skin-card__thumb { aspect-ratio: 270 / 200; }
.skin-card--tall .skin-card__thumb { aspect-ratio: 370 / 280; }
.skin-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.skin-card:hover .skin-card__thumb img { transform: scale(1.06); }

.skin-card__info {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 14px 20px 0;
}
.skin-card__info h3 {
  font-family: var(--ff-en);
  font-size: 22px; font-weight: 600;
  line-height: 1.3;
}
.skin-card__info p { font-family: var(--ff-en); font-size: 15px; color: var(--c-orange); }
.skin-card--sm .skin-card__info { padding-top: 12px; }

/* 우측 하단 VIEW 리본 */
.ribbon {
  position: absolute; right: 0; bottom: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, transparent 50%, #6a2ef0 50%);
  font-size: 0; /* 텍스트는 ::after 로 회전 표시 */
  pointer-events: none;
}
.ribbon::after {
  content: "VIEW";
  position: absolute; right: 2px; bottom: 15px;
  transform: rotate(-45deg);
  font-family: var(--ff-en); font-size: 11px; font-weight: 600;
}

.casino-skin { background-color: #141414; background-image: url(../img/casinoskin_bg.jpg); }
.tosino-skin {
  padding-top: 60px; padding-bottom: 60px;
  background-color: #2a2a2a;
  background-image: url(../img/tosinoskin_bg.jpg);
}

/* =========================================================
   ADMIN & VENDER
   ========================================================= */
.admin { background: var(--c-bg); padding-top: 70px; }
.admin .sec-head { margin-bottom: 60px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px 30px;
}

.admin-mock {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dfe2e7;
  padding-bottom: 28px;
  transition: transform .3s, box-shadow .3s;
}
.admin-card:hover .admin-mock { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,.4); }
.admin-mock__head {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 50px;
  font-family: "Open Sans", var(--ff-en);
  font-size: 19px; color: #333;
  font-weight: 300;
}
.admin-mock__head b { font-weight: 600; }
.admin-mock__head i {
  width: 18px; height: 18px; margin-right: 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #18b39f 0%, #0e6f78 100%);
}
.admin-mock--partner .admin-mock__head::after {
  content: "";
  position: absolute; right: 25%; top: 50%;
  width: 38px; height: 28px;
  border-radius: 5px;
  background: #c9ccd1;
  transform: translateY(-20%);
  box-shadow: 0 -18px 0 -6px transparent;
}
.admin-mock__body {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px 0 20px;
  background: #2e333b;
}
.admin-mock__body > span {
  width: 47%; height: 30px;
  border-radius: 2px;
  font-family: var(--ff-en);
  font-size: 9px;
}
.admin-mock__body .field {
  display: flex; align-items: center;
  padding: 0 9px;
  background: #474c55; color: #aeb3bb;
}
.admin-mock__body .login {
  display: grid; place-items: center;
  height: 26px;
  background: #0aa9ad; color: #fff;
  font-weight: 600;
}

.admin-card__info {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 0 25px;
}
.admin-card__info h3 {
  font-family: var(--ff-en);
  font-size: 26px; font-weight: 600;
  line-height: 1.3;
}
.admin-card__info p { font-size: 16px; font-weight: 500; color: var(--c-orange); }
.c-casino { color: var(--c-casino); }
.c-tosino { color: var(--c-tosino); }

/* =========================================================
   GAME CARDS (Mini / Casino / Slot)
   ========================================================= */
.game-grid { display: grid; gap: 30px; }
.game-grid--3 { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
.game-grid--4 { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }

.game-card__inner { text-align: center; }
.game-card__thumb {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 270 / 220;
  background: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.game-grid--3 .game-card__thumb { aspect-ratio: 370 / 220; }
.game-grid--slot .game-card__thumb { aspect-ratio: 270 / 300; }
.game-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.game-card__inner:hover .game-card__thumb img { transform: scale(1.07); }
.game-card__name {
  display: block;
  margin-top: 30px;
  font-size: 22px; font-weight: 500;
  transition: color .2s;
}
.game-card__inner:hover .game-card__name { color: var(--c-orange); }

.minigame { background-color: #5a4ae0; background-image: url(../img/minigame_bg.jpg); }
.online-casino { background-color: #242424; background-image: url(../img/casinovender_bg.jpg); }
.online-slot { background-color: #5a4ae0; background-image: url(../img/slotvender_bg.jpg); }

/* =========================================================
   SLIDER
   ========================================================= */
.slider__viewport { overflow: hidden; margin: -10px; padding: 10px; }
.slider__track {
  display: flex;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  touch-action: pan-y;
}
.slide { flex: 0 0 100%; min-width: 0; padding: 0 10px; }
.slider__dots {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  margin-top: 70px;
}
.slider__dots button {
  width: 14px; height: 14px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.85);
  transition: width .3s, background .3s;
}
.slider__dots button.is-active {
  width: 56px;
  border: 0;
  background: var(--grad-pill);
}

/* =========================================================
   TO TOP
   ========================================================= */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--grad-btn);
  font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }

/* 스크롤 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .8s; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1400px) {
  .hero__model { right: -60px; width: 760px; }
}

@media (max-width: 1200px) {
  .gnb ul { gap: 32px; }
  .hero__title { font-size: 68px; }
  .hero__subtitle { font-size: 34px; }
  .hero__model { width: 640px; right: -80px; }
  .skin-card__info h3 { font-size: 19px; }
  .skin-card__info p { font-size: 13px; }
  .admin-card__info h3 { font-size: 22px; }
  .admin-card__info p { font-size: 14px; }
  .game-card__name { font-size: 19px; margin-top: 20px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .header.is-scrolled { --header-h: 64px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    position: relative; z-index: 2;
    width: 40px; height: 40px;
  }
  .nav-toggle span {
    display: block; width: 26px; height: 2px; margin: 0 auto;
    background: #fff; border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .gnb {
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 82vw);
    padding: 100px 30px 30px;
    background: rgba(30, 20, 60, .97);
    transform: translateX(100%);
    transition: transform .35s;
  }
  .gnb.is-open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.4); }
  .gnb ul { flex-direction: column; gap: 6px; }
  .gnb a { display: block; padding: 12px 0; font-size: 18px; }
  .gnb a::after { bottom: 8px; right: auto; width: 40px; }
  body.nav-open { overflow: hidden; }

  .section { padding: 90px 0; }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero__inner { padding-top: 130px; padding-bottom: 0; text-align: center; }
  .hero__model { position: relative; right: auto; width: min(640px, 100%); margin: 20px auto 0; }

  .sec-head:not(.sec-head--center) { flex-direction: column; align-items: flex-start; }
  .pill { padding: 14px 24px; font-size: 14px; }

  .skin-grid--4 { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .game-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { gap: 60px 24px; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .section { padding: 70px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-title, .sec-title--lg { font-size: 28px; }
  .sec-desc { font-size: 14px; }

  .hero__title { font-size: 52px; }
  .hero__subtitle { font-size: 28px; }
  .hero__desc { font-size: 14px; line-height: 1.9; margin-top: 20px; }
  .hero__desc br { display: none; }

  .skin-grid--3 { grid-template-columns: 1fr; gap: 36px; }
  .skin-grid--4 { gap: 30px 16px; }
  .skin-card__info h3 { font-size: 20px; }
  .skin-card--sm .skin-card__info { padding: 10px 4px 0; }
  .skin-card--sm .skin-card__info h3 { font-size: 16px; }
  .skin-card--sm .skin-card__info p { font-size: 12px; }

  .admin-grid { grid-template-columns: 1fr; gap: 50px; }
  .admin-card__info { padding: 16px 6px 0 10px; }
  .admin-mock--partner .admin-mock__head::after { right: 20px; }

  .game-grid--3, .game-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .game-card__name { font-size: 16px; margin-top: 12px; }
  .slider__dots { margin-top: 44px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 44px; }
  .hero__subtitle { font-size: 24px; }
  .logo img, .header.is-scrolled .logo img { height: 38px; }
  .skin-card__info { padding: 12px 6px 0; }
  .skin-card__info h3 { font-size: 18px; }
  .skin-card__info p { font-size: 13px; }
  .admin-card__info h3 { font-size: 19px; }
  .admin-card__info p { font-size: 13px; }
  .btn-view { width: 44px; height: 44px; font-size: 11px; }
  .game-card__name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
