/* =========================================================
   333 DREAMS 333 — SHARED STYLESHEET
   ========================================================= */

:root {
    --black: #000000;
    --white: #ffffff;
    --red: #ff0000;
    --orange: #FF8000;
    --yellow: #ffff00;
    --green: #00a651;
    --french-blue: #0055a4;
    --ocean-blue: #003f73;
    --R: 90px;
    --content-width: 1180px;
    --separator: 2px;
    --origin-thickness: 4px;
}

/* PAGE */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--black);
    color: var(--white);
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
}

.content-frame {
    width: var(--content-width);
    max-width: calc(100vw - 20px);
    margin-left: auto;
    margin-right: auto;
}

/* WWW HORIZON */
.www-horizon {
    width: 100%;
    height: 2px;
    background: var(--white);
}

/* TECHNICAL MENU */
.technical-menu a {
    color: var(--yellow);
    text-decoration: none;
}

.technical-menu a:not(.active):hover {
    color: var(--red);
}

.technical-menu a.active {
    color: var(--french-blue);
}

.menu-origin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--red) !important;
    white-space: nowrap;
}

.technical-menu .menu-origin:not(.active):hover {
    color: var(--yellow) !important;
}

.technical-menu .menu-origin.active {
    color: var(--french-blue) !important;
}

/* HEART */
.heart-line {
    position: relative;
    height: 37px;
    padding-top: 9px;
    box-sizing: border-box;
}

.heart-before {
    position: absolute;
    top: 9px;
    right: calc(50% + 0.36em);
    white-space: pre;
}

.heart-a {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
}

.heart-after {
    position: absolute;
    top: 9px;
    left: calc(50% + 0.36em);
    white-space: pre;
}

/* SEVEN-POSITION MENU */
.menu-row {
    position: relative;
    width: 66%;
    height: 38px;
    margin: 0 auto;
}

.menu-left,
.menu-right {
    position: absolute;
    top: 0;
    width: calc(50% - 40px);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-left {
    left: 0;
}

.menu-right {
    right: 0;
}

.menu-bottom-space {
    height: 9px;
}

/* MENU CLOSING R LINE */
.menu-separator {
    position: relative;
    width: 100%;
    height: var(--separator);
    background: var(--white);
}

.menu-separator-r {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 7px;
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: bold;
}

/* HEADER SUBTITLE */
.subtitle-zone {
    position: relative;
    height: var(--R);
}

.subtitle-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: normal;
    white-space: nowrap;
}

/* ORIGIN */
.origin-line {
    position: relative;
    width: 100%;
    height: var(--origin-thickness);
    background: var(--white);
}

.origin-sign {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--black);
}

.origin-point {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--white);
}

/* OCTAVE */
.octave {
    width: 100%;
}

.octave-sector {
    position: relative;
    height: var(--R);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 333 — HEADER OCTAVE STYLE */
.triple-three {
    position: relative;
    left: -4px;
    width: 190px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-family: "Edwardian Script ITC", "Brush Script MT", cursive;
    font-size: 66px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.triple-three span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LANGUAGE COLORS */
.red {
    color: var(--red);
}

.yellow {
    color: var(--yellow);
}

.french-blue {
    color: var(--french-blue);
}

.green {
    color: var(--green);
}

.white {
    color: var(--white);
}

.orange {
    color: var(--orange);
}

.ocean-blue {
    color: var(--ocean-blue);
}

/* R SEPARATORS */
.sector-separator {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--white);
}

.sector-r {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 7px;
    background: var(--black);
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

/* EIGHTH SPACE */
.eighth-sector {
    position: relative;
    height: var(--R);
    display: flex;
    justify-content: center;
    align-items: center;
}

.eighth-mark {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.octave-end {
    width: 100%;
    height: 2px;
    background: var(--white);
}

/* 1/2 R ZONE */
.header-control-zone {
    position: relative;
    height: calc(var(--R) / 2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.math-half {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 14px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    line-height: 8px;
}

.math-half-bar {
    display: block;
    width: 13px;
    height: 1px;
    margin: 1px 0;
    background: currentColor;
}

.language-set {
    display: none;
}

/* END OF HEADER */
.header-end {
    width: 100%;
    height: 2px;
    background: var(--white);
}

/* FRACTION OF INFINITY LOGO */
.fraction-logo-zone {
    height: calc(var(--R) + (var(--R) / 2));
    display: flex;
    justify-content: center;
    align-items: center;
}

.fraction-logo-link {
    display: block;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
}

.fraction-logo-link img {
    display: block;
    width: 108px;
    height: 108px;
    object-fit: cover;
    border: 0;
}

/* BODY REFLECTION DIVIDER */
.reflection-divider {
    width: 100%;
    height: 4px;
    display: grid;
    grid-template-columns: 1fr 24px 4px 24px 1fr;
    align-items: center;
}

.reflection-bar {
    height: 2px;
    background: var(--white);
}

.reflection-gap {
    height: 2px;
}

.reflection-point {
    width: 4px;
    height: 4px;
    justify-self: center;
    border-radius: 50%;
    background: var(--white);
}

/* BODY TYPOGRAPHY — APPROVED */
.crystal-rune {
    font-family: "Times New Roman", Times, serif;
    font-size: 36pt;
    font-style: normal;
    font-weight: normal;
    color: var(--red);
    text-align: center;
}

.special-title {
    font-family: "Lucida Calligraphy", "Lucida Handwriting", cursive;
    font-size: 18pt;
    font-style: normal;
    font-weight: normal;
    color: var(--white);
    text-align: center;
}

h1 {
    margin: 0;
    font-family: "Edwardian Script ITC", "Brush Script MT", cursive;
    font-size: 66px;
    font-style: normal;
    font-weight: normal;
    color: var(--red);
    text-align: center;
    text-decoration: none;
}

h1:hover {
    color: var(--french-blue);
    text-decoration: underline;
}

h2 {
    margin: 18px 0 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 18pt;
    font-style: normal;
    font-weight: normal;
    color: var(--white);
    text-align: center;
    text-decoration: none;
}

h2:hover {
    text-decoration: underline;
}

h3 {
    margin: 16px 0 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 16pt;
    font-style: normal;
    font-weight: normal;
    color: var(--french-blue);
    text-align: center;
    text-decoration: none;
}

h3:hover {
    text-decoration: underline;
}

h4 {
    margin: 14px 0 0 0;
    font-family: "Times New Roman", Times, serif;
    font-size: 14pt;
    font-style: normal;
    font-weight: normal;
    color: var(--yellow);
    text-align: center;
    text-decoration: none;
}

h4:hover {
    text-decoration: underline;
}

.prose {
    margin-top: 18px;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    font-style: normal;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    color: var(--white);
}

.prose a {
    color: var(--french-blue);
    text-decoration: none;
}

.prose a:hover {
    color: var(--red);
    text-decoration: underline;
}

/* Decorative edge-to-edge option */
.special-333 {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: "Edwardian Script ITC", "Brush Script MT", cursive;
    font-size: 66px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.05;
    color: var(--red);
}

.image-caption {
    margin-top: 6px;
    font-family: Arial, sans-serif;
    font-size: 11pt;
    font-style: normal;
    font-weight: normal;
    color: var(--white);
    text-align: center;
}

/* MENG */
.meng-zone {
    padding-top: 28px;
    text-align: center;
}

.meng-image {
    display: block;
    width: 108px;
    height: auto;
    margin: 0 auto;
    border: 0;
}

/* H4 FRACTION */
.fraction-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.math-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.8;
}

.math-fraction .fraction-bar {
    width: 13px;
    height: 1px;
    margin: 2px 0;
    background: currentColor;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .content-frame {
        width: calc(100% - 20px);
    }

    .menu-row {
        width: 90%;
    }

    .technical-menu {
        font-size: 12px;
    }

    .menu-left,
    .menu-right {
        width: calc(50% - 35px);
    }
}

@media (max-width: 800px) {
    .technical-menu {
        font-size: 10px;
    }

    .menu-row {
        width: 100%;
    }

    .menu-left,
    .menu-right {
        width: calc(50% - 30px);
    }

    .triple-three {
        width: 150px;
        font-size: 52px;
        left: -4px;
    }

    .subtitle-center {
        font-size: 13px;
    }
}
.game-board {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}