@charset "utf-8";
body{
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 20px;
    color: #8c645b;
}

main h2{
    text-align: center;
    font-size: 60px;
    letter-spacing: .05em;
    margin-bottom: 80px;
}

header{
    background: url(../images/title.png) no-repeat right center/cover;
}

header .innerWrap{
    height: 720px;
    position: relative;
}

header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

header nav ul{
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 10px auto;
    padding: 5px 20px;
    color: #29292b;
}

header nav ul li:first-child {
    margin-right: auto; 
}

header nav ul li:nth-child(2) a {
    color: #ff6600; 
}

header nav ul li {
    margin-left: 20px; 
}

header nav ul li a:hover{
    text-decoration: underline;
}

.teko-heading {
  font-family: "Teko", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.pt-sans-narrow-regular {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-narrow-bold {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.innerWrap{
    width: 1240px;
    margin: 0 auto;
    padding: 80px 20px 0;
}


.introSec {
    position: relative;
    color: #fbfaf7;
    text-align: center;
    overflow: clip;
}

.introSec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.introSec > * {
    position: relative;
    z-index: 2;
}

.introSec::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
    z-index: 3;
}

.introVideo {
    max-width: 1200px;
    margin: 0 auto;
}

.introVideo video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}


.introSec p {
    line-height: 1.75;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    padding-bottom: 50px;
}


.gameloopSec{
    background-color: #efe8d9;
    padding-bottom: 120px;
}

.gameloopText {
    flex: 1;
    padding: 0px 200px;
    margin-bottom: 40px;
}

.gameloopText img{
    width: 100%;
    height: auto;
    display: block;
}

.gameloopText .subtitle {
    margin-top: 15px;
    font-family: "Teko", sans-serif;
    font-size: 36px;
}

.gameloopText p {
    line-height: 1.6;
}


.featuresSec{
    background-color: #91a8b0;
    padding-bottom: 120px;
    color: rgba(255, 255, 255, 0.95);
}

.featureContainer {
    display: flex;
    align-items: flex-start; /* aligns top edges */
    gap: 20px;               /* space between image and text */
    margin: 40px 0;
}

.featureContainer img,
.featureContainer video {
    width: 420px;            /* square size */
    height: auto;
    object-fit: cover;       /* crops nicely if image isn't square */
    border-radius: 8px;      /* optional, for softer edges */
}

.featureText {
    flex: 1;
}

.featureText .subtitle {
    margin-top: 15px;
    font-family: "Teko", sans-serif;
    font-size: 36px;
    margin-bottom: 10px;
}

.featureText p {
    line-height: 1.6;
}


.unitSec{
    background-color: #ffffff;
    padding-bottom: 120px;
}

.unitSec .unitContainer{
    display: grid;
    grid-template-columns: repeat(2, max-content);
    row-gap: 40px;

    justify-content: center;
    justify-items: center;

    margin-left: -40px;
}

.unitSec .unitLayoutWrap {
    display: flex;
    align-items: flex-start;
    position: relative;
    width: max-content;
}

.unitSec .unitLayoutWrap > p {
    flex: 0 0 auto;
    margin: 0px;
}
.unitSec .unitLayoutWrap > p img {
    width: 380px;
    max-width: 100%;
    height: auto;
    display: block;
}

.unitSec .unitLayoutWrap > div {
    flex: 0 1 360px;
    min-width: 0;
    padding-top: 40px;
}

.unitSec .unitRangeImg {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    left: 340px;
    top: 108px;
    width: 120px;
}

.unitSec .unitExplanationWrap { 
    display: block; 
}

.unitSec .unitExplanationWrap > p {
    padding: 10px;
    width: 300px;
}

.unitDetail {
    background-color: #f1eedf;
    overflow-wrap: anywhere;
    margin-top: -100px;
    margin-left: 80px;
}

.unitSec .unitName {
    font-family: "Teko", sans-serif;
    font-size: 45px;
    margin: 0 0 70px -100px;
    padding: 5px 10px;
    display: inline-block;
    background-color: #62646f;
    line-height: 1.2;
    color: #fcf2c8;

    display: inline-flex;
    align-items: center;
    gap: 10px; 
}

.unitSec .unitName img {
    width: 36px;
    height: auto;
    display: block;
}


/* Terrain Section */
.terrainSec{
    background-color: #ffffff;
    padding-bottom: 120px;
}

.terrainSec .terrainContainer{
    display: grid;
    grid-template-columns: repeat(5, max-content);
    column-gap: 40px;
    row-gap: 40px;

    justify-content: center;
    justify-items: center;
}

.terrainSec .terrainLayoutWrap {
    display: flex;
    flex-direction: column;
    align-items: center; 
    position: relative;
    width: max-content;
    margin: 0 auto;
}

.terrainSec .terrainLayoutWrap > p {
    position: relative;
    margin: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.terrainSec .terrainLayoutWrap > p img,
.terrainSec .terrainLayoutWrap > p video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.terrainSec .terrainLayoutWrap > p video {
    transform: scale(1.75);
    transform-origin: right;
}

.terrainSec .terrainLayoutWrap > div {
    flex: none;
    padding-top: 0;
    width: 100%;
    max-width: 250px;
}

.terrainSec .terrainExplanationWrap { display: block; }

.terrainSec .terrainExplanationWrap > p {
    padding: 20px;
}

.terrainDetail {
    background-color: #f1eedf;
    overflow-wrap: anywhere;
    margin-top: -60px;
    padding: 12px 14px;
}

.terrainSec .terrainName {
    font-family: "Teko", sans-serif;
    font-size: 40px;
    padding: 8px 16px;
    display: inline-block;
    background-color: #62646f;
    line-height: 1.2;
    color: #fcf2c8;

    position: absolute;
    left: 50%;
    top: 200px;
    transform: translateX(-50%);
    z-index: 2;

    white-space: nowrap;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}


.strategiesSec{
    background-color: #91a8b0;
    padding-bottom: 120px;
    color: rgba(255, 255, 255, 0.95);
}

.strategiesContainer {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 40px 0;
}

.strategiesContainer video {
    width: 520px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
}

.strategiesText {
    flex: 1;
}

.strategiesText .subtitle {
    margin-top: 15px;
    font-family: "Teko", sans-serif;
    font-size: 36px;
    margin-bottom: 10px;
}

.strategiesText p {
    line-height: 1.6;
}


/* numSec */
.numSec{
    background-color: #efe8d9;
    padding-bottom: 120px;
}

.numSec .numText{
    padding: 0px 200px;
    text-align: center;
}

.numSec .numTextLeft{
    padding: 0px 200px;
    text-align: left;
}

.numSec .numBigContainer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.numSec .numBigContainer .numItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.numSec .numBigContainer .numTextBig{
    font-family: "Teko", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 60px;
    padding: 0 15px;
}

table {
    border-collapse: collapse;
    margin: 20px auto; 
    text-align: center;
}

th, td {
    border: 1px solid #333;
    padding: 10px 20px;
}

th {
    font-weight: bold;
}

td:first-child {
    font-weight: bold;
    text-align: left;
}


.devprocessSec {
    background-color: #ffffff;
    padding-bottom: 120px;
}

.devprocessWrap2 {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
}

.devprocessWrap1 {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
    min-width: 0;
}

.devprocessWrap2 > .devprocessContainer {
    flex: 1.4;
    min-width: 0;
}

.devprocessContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f7f3;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
}

.devprocessWrap1 .devprocessContainer { width: 100%; }

.devprocessContainer img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.devprocessContainer p {
    margin-top: 12px;
    line-height: 1.6;
}

.linkImage {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.linkImage a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, outline 0.2s ease;
}

.linkImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1; 
}

.linkImage a:hover img {
  transform: scale(1.08); 
}

.linkImage a:hover .shine {
    left: 120%;
}



footer {
    background-color: #8c645b;
    color: #f3e9e5;
    padding: 14px 10px 20px;
    text-align: center;
}

/* Parallax */
.featuresSec::before{
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../images/projectcloud.png) no-repeat center/cover;
    z-index: -1;
}

/* Tooltips */
.tip {
    position: relative;
    cursor: help;
    text-decoration: underline dotted;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);

    display: inline-block;
    min-width: 200px;
    max-width: 260px;
    padding: 8px 10px;

    white-space: normal;
    overflow-wrap: anywhere; 
    word-break: normal;
    line-height: 1.4;
    text-align: left;

    color: #fff;
    background: rgba(140, 100, 91, 0.95);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font-size: 14px;

    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
    z-index: 20;

    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(140, 100, 91, 0.95); /* 위쪽 삼각형 */
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
    z-index: 19;
}

.tip:hover::after,
.tip:hover::before,
.tip:focus-visible::after,
.tip:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.tip.tip-left::after { left: 0; transform: none; }
.tip.tip-left::before { left: 12px; transform: none; }

.tip.tip-right::after { left: auto; right: 0; transform: none; }
.tip.tip-right::before { left: auto; right: 12px; transform: none; }

.tip-evasionRate::after { 
    font-weight: normal;
    content: "Evasion Rate \A\A Takes reduced damage by the given percentage.\A Example: 4 Damage + 50% evasion rate = 2 Damage";
    white-space: pre-line;
}

.tip-unspotted::after { 
    font-weight: normal;
    content: "Unspotted \A\A Enemies will not target the unit until it is exposed within their Action Range.";
    white-space: pre-line;
}