mirror of
https://github.com/tiennm99/reigen.git
synced 2026-08-04 13:24:30 +00:00
Procedural head, face and slicked-back hair rendered with Three.js primitives, seven switchable camera shots, orbit controls and auto-rotate. Add GitHub Pages deploy workflow.
135 lines
2.2 KiB
CSS
135 lines
2.2 KiB
CSS
/* Reigen Arataka Three.js showcase — layout & UI chrome only.
|
|
All 3D rendering happens on #scene. */
|
|
|
|
:root {
|
|
--ink: #1c1a17;
|
|
--paper: #f4efe6;
|
|
--accent: #c8963e; /* Reigen's warm suit/hair tone */
|
|
--panel: rgba(28, 26, 23, 0.72);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: #0b0b0d;
|
|
color: var(--paper);
|
|
font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
|
|
}
|
|
|
|
#app {
|
|
position: relative;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
|
|
#scene {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
#titlebar {
|
|
position: absolute;
|
|
top: 18px;
|
|
left: 22px;
|
|
pointer-events: none;
|
|
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
#titlebar h1 {
|
|
font-size: clamp(1.1rem, 2.4vw, 1.8rem);
|
|
letter-spacing: 0.04em;
|
|
color: var(--paper);
|
|
}
|
|
|
|
#titlebar p {
|
|
font-size: clamp(0.7rem, 1.4vw, 0.9rem);
|
|
color: var(--accent);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
#shot-bar {
|
|
position: absolute;
|
|
right: 22px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
z-index: 5;
|
|
}
|
|
|
|
.shot-btn {
|
|
min-width: 116px;
|
|
padding: 9px 14px;
|
|
border: 1px solid rgba(200, 150, 62, 0.5);
|
|
border-radius: 999px;
|
|
background: var(--panel);
|
|
color: var(--paper);
|
|
font: inherit;
|
|
font-size: 0.82rem;
|
|
letter-spacing: 0.02em;
|
|
cursor: pointer;
|
|
backdrop-filter: blur(6px);
|
|
transition: background 0.2s, transform 0.15s, border-color 0.2s;
|
|
text-align: left;
|
|
}
|
|
|
|
.shot-btn:hover {
|
|
background: rgba(200, 150, 62, 0.25);
|
|
transform: translateX(-3px);
|
|
}
|
|
|
|
.shot-btn.active {
|
|
background: var(--accent);
|
|
color: #201a10;
|
|
border-color: var(--accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
#hint {
|
|
position: absolute;
|
|
bottom: 16px;
|
|
left: 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
font-size: 0.78rem;
|
|
color: rgba(244, 239, 230, 0.72);
|
|
z-index: 5;
|
|
}
|
|
|
|
#hint label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 620px) {
|
|
#shot-bar {
|
|
top: auto;
|
|
bottom: 58px;
|
|
right: 12px;
|
|
left: 12px;
|
|
transform: none;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
.shot-btn {
|
|
min-width: 0;
|
|
flex: 1 1 30%;
|
|
text-align: center;
|
|
}
|
|
}
|