2031 lines
40 KiB
CSS
2031 lines
40 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--ink: #0d1712;
|
|
--ink-2: #13231b;
|
|
--panel: #182a21;
|
|
--panel-2: #20362b;
|
|
--wood: #4a2f1d;
|
|
--wood-light: #7a4e2e;
|
|
--wood-dark: #2b190e;
|
|
--paper: #f6ecd8;
|
|
--paper-2: #ead9b7;
|
|
--cream: #f7eedb;
|
|
--muted: #b6c1b3;
|
|
--brass: #d9a441;
|
|
--brass-bright: #f0c96a;
|
|
--brass-dark: #9a6b23;
|
|
--burgundy: #8c3b3b;
|
|
--sage: #6f8f6a;
|
|
--teal: #3b7a6e;
|
|
--plum: #62477c;
|
|
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
|
|
--sans: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
|
|
--shadow: 0 26px 70px rgba(0, 0, 0, .5);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: var(--sans);
|
|
background:
|
|
radial-gradient(ellipse at 50% -12%, rgba(217, 164, 65, .13), transparent 55%),
|
|
radial-gradient(ellipse at 86% 108%, rgba(59, 122, 110, .14), transparent 52%),
|
|
radial-gradient(ellipse at 8% 82%, rgba(140, 59, 59, .08), transparent 48%),
|
|
linear-gradient(180deg, #0f1a14, #0a110d 72%);
|
|
color: var(--cream);
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0 0 auto;
|
|
height: 9px;
|
|
background:
|
|
repeating-linear-gradient(90deg, rgba(240, 201, 106, .9) 0 2px, transparent 2px 16px),
|
|
linear-gradient(180deg, #8a5f24, #3a2915);
|
|
z-index: 3000;
|
|
}
|
|
|
|
body.has-modal {
|
|
overflow: hidden;
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.page {
|
|
width: min(1180px, 100%);
|
|
margin: 0 auto;
|
|
padding: clamp(22px, 4vw, 44px) clamp(12px, 3vw, 30px) 38px;
|
|
}
|
|
|
|
.hero {
|
|
text-align: center;
|
|
margin-bottom: clamp(20px, 3.2vw, 34px);
|
|
}
|
|
|
|
.eyebrow {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: .35em;
|
|
margin: 0 0 14px;
|
|
padding: 7px 16px;
|
|
border: 1px solid rgba(217, 164, 65, .38);
|
|
border-radius: 999px;
|
|
background: rgba(217, 164, 65, .07);
|
|
color: var(--brass-bright);
|
|
font-size: clamp(.7rem, 1.5vw, .82rem);
|
|
font-weight: 800;
|
|
letter-spacing: .16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.eyebrow span {
|
|
color: var(--cream);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-family: var(--serif);
|
|
font-size: clamp(2.1rem, 6vw, 4.2rem);
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
letter-spacing: -.015em;
|
|
text-wrap: balance;
|
|
text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 50px rgba(217, 164, 65, .13);
|
|
}
|
|
|
|
.hero::after {
|
|
content: "";
|
|
display: block;
|
|
width: min(200px, 50%);
|
|
height: 1px;
|
|
margin: 18px auto 0;
|
|
background: linear-gradient(90deg, transparent, var(--brass), transparent);
|
|
box-shadow: 0 0 12px rgba(217, 164, 65, .4);
|
|
}
|
|
|
|
.tagline {
|
|
margin: 14px auto 0;
|
|
max-width: 46ch;
|
|
color: var(--muted);
|
|
font-size: clamp(.95rem, 2vw, 1.15rem);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.game-shell {
|
|
position: relative;
|
|
padding: clamp(12px, 2vw, 20px);
|
|
border: 1px solid #3c4a3d;
|
|
border-radius: 22px;
|
|
background: linear-gradient(180deg, #1a2b22, #131f19);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.hud {
|
|
display: grid;
|
|
grid-template-columns: minmax(200px, 1fr) auto;
|
|
gap: clamp(12px, 2vw, 22px);
|
|
align-items: center;
|
|
margin-bottom: 14px;
|
|
padding: 0 clamp(2px, 1vw, 8px);
|
|
}
|
|
|
|
.progress-copy {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 7px;
|
|
color: var(--muted);
|
|
font-size: clamp(.72rem, 1.4vw, .84rem);
|
|
font-weight: 700;
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#progress-percent {
|
|
color: var(--brass-bright);
|
|
}
|
|
|
|
.progress-track {
|
|
height: 13px;
|
|
border: 1px solid #3c4a3d;
|
|
border-radius: 999px;
|
|
background: #0b130f;
|
|
overflow: hidden;
|
|
box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55);
|
|
}
|
|
|
|
#progress-bar {
|
|
display: block;
|
|
width: 0;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background:
|
|
repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 7px, transparent 7px 14px),
|
|
linear-gradient(90deg, #9a6b23, var(--brass), var(--brass-bright));
|
|
transition: width .4s cubic-bezier(.2, .8, .3, 1);
|
|
}
|
|
|
|
.icon-btn {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 48px;
|
|
height: 48px;
|
|
padding: 0;
|
|
border: 1px solid #4a5c4b;
|
|
border-radius: 50%;
|
|
background: #101b15;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
transition: color .15s, border-color .15s, transform .12s;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
color: var(--cream);
|
|
border-color: #7d8f75;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.icon-btn svg {
|
|
width: 25px;
|
|
height: 25px;
|
|
}
|
|
|
|
.icon-btn .sound-off {
|
|
display: none;
|
|
}
|
|
|
|
.icon-btn[aria-pressed="false"] .sound-on {
|
|
display: none;
|
|
}
|
|
|
|
.icon-btn[aria-pressed="false"] .sound-off {
|
|
display: block;
|
|
}
|
|
|
|
.stage {
|
|
padding: clamp(5px, 1.2vw, 10px);
|
|
border-radius: 18px;
|
|
background: #070d0a;
|
|
box-shadow: inset 0 2px 24px rgba(0, 0, 0, .8);
|
|
}
|
|
|
|
.bookcase {
|
|
position: relative;
|
|
padding: clamp(14px, 2.4vw, 26px);
|
|
border: 1px solid #8a5b33;
|
|
border-radius: 15px;
|
|
background:
|
|
linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 5%, transparent 95%, rgba(0, 0, 0, .35)),
|
|
linear-gradient(180deg, #54351f, #331f10 55%, #24150b);
|
|
box-shadow:
|
|
inset 0 0 0 2px rgba(255, 214, 150, .09),
|
|
inset 0 0 42px rgba(0, 0, 0, .55),
|
|
0 18px 36px rgba(0, 0, 0, .4);
|
|
isolation: isolate;
|
|
}
|
|
|
|
.bookcase::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 8px;
|
|
border: 1px solid rgba(0, 0, 0, .35);
|
|
border-radius: 10px;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.bookcase-decor {
|
|
position: absolute;
|
|
inset: clamp(5px, 1vw, 10px) clamp(12px, 2vw, 24px) auto;
|
|
height: 26px;
|
|
pointer-events: none;
|
|
z-index: 4;
|
|
}
|
|
|
|
.string-lights {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
padding: 0 3%;
|
|
}
|
|
|
|
.string-lights::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 5px;
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent, #87663a 8%, #87663a 92%, transparent);
|
|
opacity: .75;
|
|
}
|
|
|
|
.string-lights span {
|
|
position: relative;
|
|
width: clamp(4px, .7vw, 7px);
|
|
height: clamp(7px, 1.2vw, 11px);
|
|
margin-top: 2px;
|
|
border-radius: 45% 45% 50% 50%;
|
|
background: radial-gradient(circle at 50% 30%, #fff6c8, #f0c96a 55%, #a36b1e 100%);
|
|
box-shadow: 0 0 9px rgba(255, 214, 120, .65), 0 0 22px rgba(255, 196, 70, .22);
|
|
animation: twinkle 3.4s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.string-lights span:nth-child(2n) {
|
|
animation-delay: -1.1s;
|
|
}
|
|
|
|
.string-lights span:nth-child(3n) {
|
|
animation-delay: -2.2s;
|
|
height: clamp(6px, 1vw, 9px);
|
|
}
|
|
|
|
.string-lights span:nth-child(5n) {
|
|
animation-delay: -.6s;
|
|
}
|
|
|
|
.shelf-grid {
|
|
position: relative;
|
|
display: grid;
|
|
gap: clamp(14px, 2.6vw, 30px);
|
|
padding: clamp(26px, 4vw, 42px) clamp(10px, 2.2vw, 26px) clamp(10px, 2vw, 20px);
|
|
border: 1px solid #0c1a13;
|
|
border-radius: 8px;
|
|
background:
|
|
radial-gradient(ellipse at 50% 0%, rgba(240, 201, 106, .07), transparent 60%),
|
|
repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 42px),
|
|
linear-gradient(180deg, #163027, #0e2019 60%, #0b1913);
|
|
box-shadow:
|
|
inset 0 0 60px rgba(0, 0, 0, .55),
|
|
inset 0 0 0 4px #241509,
|
|
inset 0 0 0 6px #6b4527;
|
|
z-index: 2;
|
|
}
|
|
|
|
.shelf {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: clamp(8px, 1.7vw, 22px);
|
|
align-items: end;
|
|
padding: 0 clamp(2px, 1vw, 12px) clamp(15px, 2.4vw, 24px);
|
|
}
|
|
|
|
.shelf::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 30%;
|
|
background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .34));
|
|
pointer-events: none;
|
|
}
|
|
|
|
.shelf::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: -3%;
|
|
right: -3%;
|
|
bottom: 0;
|
|
height: clamp(9px, 1.4vw, 14px);
|
|
border: 1px solid #a06a3d;
|
|
border-radius: 3px;
|
|
background: linear-gradient(180deg, #9a653b, #6b4326 55%, #3d2413);
|
|
box-shadow: 0 6px 10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 224, 170, .25);
|
|
z-index: 2;
|
|
}
|
|
|
|
.book {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 3 / 4.35;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
transform-origin: center bottom;
|
|
}
|
|
|
|
.book-cover {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: clamp(7px, 1.3vw, 14px) clamp(7px, 1.2vw, 13px) clamp(8px, 1.4vw, 14px) calc(clamp(7px, 1.2vw, 12px) + 5px);
|
|
border-radius: 3px 6px 6px 3px;
|
|
background:
|
|
radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .12), transparent 36%),
|
|
linear-gradient(150deg, var(--cover, #2e4a30), var(--cover-2, #557c4c));
|
|
color: var(--book-ink, var(--cream));
|
|
box-shadow:
|
|
0 10px 18px rgba(0, 0, 0, .42),
|
|
inset 0 0 0 1px rgba(255, 255, 255, .13);
|
|
overflow: hidden;
|
|
transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
|
|
transform-origin: center bottom;
|
|
}
|
|
|
|
.book-cover::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 0 auto 0 0;
|
|
width: 7%;
|
|
border-right: 1px solid rgba(0, 0, 0, .28);
|
|
background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .09) 62%, rgba(0, 0, 0, .16));
|
|
}
|
|
|
|
.book-cover::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2%;
|
|
right: 0;
|
|
bottom: 2%;
|
|
width: 4px;
|
|
border-radius: 0 2px 2px 0;
|
|
background: repeating-linear-gradient(0deg, #f4ead2 0 2px, #cbbb9b 2px 3px);
|
|
opacity: .8;
|
|
}
|
|
|
|
.book-frame {
|
|
position: absolute;
|
|
inset: 6% 7% 6% 11%;
|
|
border: 1px solid rgba(255, 255, 255, .22);
|
|
border-radius: 2px;
|
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.book-emblem {
|
|
position: relative;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 44%;
|
|
aspect-ratio: 1;
|
|
margin: 7% 0 6%;
|
|
border: 1px solid rgba(255, 255, 255, .3);
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, .13);
|
|
box-shadow: inset 0 0 14px rgba(0, 0, 0, .2);
|
|
}
|
|
|
|
.book-emblem svg {
|
|
width: 62%;
|
|
height: 62%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.book-title {
|
|
position: relative;
|
|
display: -webkit-box;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 4;
|
|
font-family: var(--serif);
|
|
font-size: clamp(.56rem, 1.45vw, .9rem);
|
|
font-weight: 700;
|
|
line-height: 1.14;
|
|
letter-spacing: .015em;
|
|
text-align: center;
|
|
text-wrap: balance;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
|
|
}
|
|
|
|
.book-author {
|
|
position: relative;
|
|
max-width: 100%;
|
|
margin-top: auto;
|
|
padding-top: 6%;
|
|
overflow: hidden;
|
|
font-size: clamp(.4rem, .95vw, .6rem);
|
|
letter-spacing: .08em;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
opacity: .72;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.book-state {
|
|
position: absolute;
|
|
right: 8%;
|
|
bottom: 6%;
|
|
z-index: 3;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 17%;
|
|
aspect-ratio: 1;
|
|
border-radius: 50%;
|
|
background: linear-gradient(180deg, var(--brass-bright), var(--brass));
|
|
color: #2c1c0b;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
|
|
font-size: clamp(.45rem, 1vw, .7rem);
|
|
font-weight: 900;
|
|
opacity: 0;
|
|
transform: scale(.4);
|
|
transition: opacity .22s, transform .24s cubic-bezier(.2, .9, .3, 1.4);
|
|
}
|
|
|
|
.book-state::before {
|
|
content: "\2713";
|
|
}
|
|
|
|
.bookmark {
|
|
position: absolute;
|
|
top: -7px;
|
|
right: 13%;
|
|
z-index: 4;
|
|
width: 12%;
|
|
height: 31%;
|
|
background: linear-gradient(180deg, var(--brass-bright), var(--brass-dark));
|
|
clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, .35);
|
|
opacity: 0;
|
|
transform: translateY(-14px) rotate(8deg);
|
|
transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.3);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.book:hover .book-cover,
|
|
.book:focus-visible .book-cover {
|
|
transform: translateY(-6px) rotate(-1.2deg);
|
|
box-shadow:
|
|
0 18px 26px rgba(0, 0, 0, .5),
|
|
0 0 0 2px rgba(240, 201, 106, .85),
|
|
0 0 24px rgba(240, 201, 106, .18);
|
|
}
|
|
|
|
.book:nth-child(even):hover .book-cover,
|
|
.book:nth-child(even):focus-visible .book-cover {
|
|
transform: translateY(-6px) rotate(1deg);
|
|
}
|
|
|
|
.book:focus-visible {
|
|
outline: none;
|
|
}
|
|
|
|
.book:active .book-cover {
|
|
transform: translateY(-2px) scale(.99);
|
|
}
|
|
|
|
.book.is-solved .book-cover {
|
|
box-shadow:
|
|
0 0 0 2px var(--brass),
|
|
0 10px 22px rgba(0, 0, 0, .46),
|
|
0 0 28px rgba(217, 164, 65, .2);
|
|
}
|
|
|
|
.book.is-solved .book-emblem {
|
|
color: var(--brass-bright);
|
|
border-color: rgba(240, 201, 106, .62);
|
|
background: rgba(0, 0, 0, .22);
|
|
}
|
|
|
|
.book.is-solved .book-state {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.book.is-solved .bookmark {
|
|
opacity: 1;
|
|
transform: translateY(0) rotate(0);
|
|
}
|
|
|
|
.book.is-solved .book-author {
|
|
opacity: .9;
|
|
}
|
|
|
|
.bookcase-base {
|
|
position: relative;
|
|
z-index: 3;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: clamp(8px, 1.6vw, 18px);
|
|
margin-top: clamp(10px, 1.8vw, 18px);
|
|
padding: 0 clamp(2px, 1vw, 10px);
|
|
}
|
|
|
|
.plaque {
|
|
flex: none;
|
|
padding: 6px 10px;
|
|
border: 1px solid rgba(217, 164, 65, .34);
|
|
border-radius: 4px;
|
|
background: rgba(0, 0, 0, .22);
|
|
color: var(--brass-bright);
|
|
font-family: var(--serif);
|
|
font-size: clamp(.52rem, 1.2vw, .68rem);
|
|
font-weight: 700;
|
|
letter-spacing: .18em;
|
|
text-transform: uppercase;
|
|
opacity: .9;
|
|
}
|
|
|
|
.plaque-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.drawer {
|
|
position: relative;
|
|
flex: 0 1 360px;
|
|
margin: 0 auto;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.drawer-front {
|
|
position: relative;
|
|
display: block;
|
|
padding: clamp(15px, 2.4vw, 22px) 18px clamp(10px, 1.8vw, 14px);
|
|
border: 1px solid #96663a;
|
|
border-radius: 6px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 35%),
|
|
linear-gradient(180deg, #744a29, #4d2e18 60%, #3a2110);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 223, 170, .16),
|
|
inset 0 0 18px rgba(0, 0, 0, .25),
|
|
0 7px 14px rgba(0, 0, 0, .42);
|
|
transition: box-shadow .25s, border-color .25s;
|
|
}
|
|
|
|
.drawer-front::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 4px;
|
|
border: 1px solid rgba(0, 0, 0, .28);
|
|
border-radius: 3px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.drawer-handle {
|
|
position: relative;
|
|
display: block;
|
|
width: 31%;
|
|
height: 7px;
|
|
margin: 0 auto 10px;
|
|
border-radius: 999px;
|
|
background: linear-gradient(180deg, #f0c96a, #a67527 70%, #6d4a17);
|
|
box-shadow: 0 2px 3px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 246, 200, .5);
|
|
}
|
|
|
|
.drawer-keyhole {
|
|
position: absolute;
|
|
top: 38%;
|
|
right: 13%;
|
|
width: 9px;
|
|
height: 13px;
|
|
border-radius: 50% 50% 42% 42%;
|
|
background: #1f1208;
|
|
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 0 0 1px rgba(240, 201, 106, .22);
|
|
}
|
|
|
|
.drawer-keyhole::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 72%;
|
|
width: 3px;
|
|
height: 7px;
|
|
transform: translateX(-50%);
|
|
background: #1f1208;
|
|
}
|
|
|
|
.drawer-label {
|
|
display: block;
|
|
color: var(--cream);
|
|
font-family: var(--serif);
|
|
font-size: clamp(.62rem, 1.3vw, .8rem);
|
|
font-weight: 700;
|
|
letter-spacing: .15em;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.drawer-hint {
|
|
display: block;
|
|
margin-top: 3px;
|
|
color: #d3b98f;
|
|
font-size: clamp(.5rem, 1.1vw, .62rem);
|
|
font-weight: 700;
|
|
letter-spacing: .1em;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.drawer:hover .drawer-front {
|
|
border-color: var(--brass);
|
|
}
|
|
|
|
.drawer:focus-visible {
|
|
outline: none;
|
|
}
|
|
|
|
.drawer:focus-visible .drawer-front {
|
|
box-shadow:
|
|
0 0 0 2px var(--brass-bright),
|
|
0 0 22px rgba(240, 201, 106, .3),
|
|
0 7px 14px rgba(0, 0, 0, .42);
|
|
}
|
|
|
|
.drawer.is-unlocked .drawer-front {
|
|
border-color: var(--brass-bright);
|
|
box-shadow:
|
|
0 0 0 2px rgba(240, 201, 106, .3),
|
|
0 0 32px rgba(240, 201, 106, .34),
|
|
0 7px 14px rgba(0, 0, 0, .42);
|
|
animation: drawer-glow 2.4s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.drawer.is-unlocked .drawer-handle {
|
|
background: linear-gradient(180deg, #fff3bd, #f0c96a 55%, #b8862e);
|
|
box-shadow: 0 0 12px rgba(240, 201, 106, .6), 0 2px 3px rgba(0, 0, 0, .4);
|
|
}
|
|
|
|
.drawer.is-unlocked .drawer-hint {
|
|
color: var(--brass-bright);
|
|
}
|
|
|
|
.drawer.is-locked-shake .drawer-front {
|
|
animation: drawer-shake .35s ease;
|
|
}
|
|
|
|
.secret {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 9px;
|
|
margin-top: 14px;
|
|
padding: 13px clamp(12px, 2vw, 20px);
|
|
border: 1px solid #3a4a3c;
|
|
border-radius: 14px;
|
|
background: rgba(9, 17, 12, .62);
|
|
box-shadow: inset 0 1px 8px rgba(0, 0, 0, .3);
|
|
}
|
|
|
|
.secret-label {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
font-size: clamp(.6rem, 1.25vw, .7rem);
|
|
font-weight: 800;
|
|
letter-spacing: .22em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.slots {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: clamp(5px, .9vw, 9px);
|
|
}
|
|
|
|
.slot {
|
|
display: grid;
|
|
place-items: center;
|
|
width: clamp(30px, 4.6vw, 48px);
|
|
aspect-ratio: 1 / 1.15;
|
|
border: 1px dashed rgba(217, 164, 65, .32);
|
|
border-radius: 5px;
|
|
background: rgba(0, 0, 0, .2);
|
|
color: transparent;
|
|
font-family: var(--serif);
|
|
font-size: clamp(.95rem, 2.4vw, 1.5rem);
|
|
font-weight: 700;
|
|
transition: background .2s, border-color .2s, color .2s;
|
|
}
|
|
|
|
.slot::before {
|
|
content: "";
|
|
width: 38%;
|
|
height: 2px;
|
|
border-radius: 2px;
|
|
background: rgba(217, 164, 65, .22);
|
|
}
|
|
|
|
.slot.filled {
|
|
border-style: solid;
|
|
border-color: var(--brass);
|
|
background: linear-gradient(180deg, #f9efd3, #e3c98a);
|
|
color: #2d1f0d;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
|
|
animation: slot-pop .42s cubic-bezier(.2, .9, .3, 1.25);
|
|
}
|
|
|
|
.slot.filled::before {
|
|
display: none;
|
|
}
|
|
|
|
.secret.is-complete .slot {
|
|
box-shadow: 0 0 18px rgba(240, 201, 106, .38), 0 4px 10px rgba(0, 0, 0, .3);
|
|
}
|
|
|
|
.secret-hint {
|
|
margin: 0;
|
|
color: #8d9a8d;
|
|
font-size: clamp(.66rem, 1.3vw, .76rem);
|
|
text-align: center;
|
|
}
|
|
|
|
.secret.is-complete .secret-hint {
|
|
color: var(--brass-bright);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.underbar {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.log {
|
|
min-height: 3.4em;
|
|
margin: 0;
|
|
padding: 11px 15px;
|
|
border-left: 4px solid var(--brass);
|
|
border-radius: 0 10px 10px 0;
|
|
background: #0d1812;
|
|
color: #e5dccb;
|
|
font-size: clamp(.86rem, 1.6vw, .98rem);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.log.is-warning {
|
|
border-left-color: var(--burgundy);
|
|
color: #f0c9c1;
|
|
}
|
|
|
|
.log.is-done {
|
|
border-left-color: var(--sage);
|
|
color: #e4efd8;
|
|
}
|
|
|
|
.controls-hint {
|
|
margin: 14px 2px 0;
|
|
color: #8b998b;
|
|
font-size: clamp(.74rem, 1.4vw, .84rem);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 14px;
|
|
margin-top: 22px;
|
|
padding: 0 4px;
|
|
color: #849183;
|
|
font-size: .78rem;
|
|
letter-spacing: .04em;
|
|
}
|
|
|
|
.footer-date {
|
|
color: #a8b3a3;
|
|
font-weight: 700;
|
|
letter-spacing: .12em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#confetti {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2600;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2500;
|
|
display: flex;
|
|
padding: clamp(12px, 3vw, 30px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(5, 9, 7, .84);
|
|
backdrop-filter: blur(8px);
|
|
animation: fade-in .28s ease;
|
|
}
|
|
|
|
.book-dialog {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
width: min(960px, 100%);
|
|
margin: auto;
|
|
border-radius: 10px;
|
|
background: var(--paper);
|
|
box-shadow: 0 34px 90px rgba(0, 0, 0, .72), 0 0 0 1px rgba(240, 201, 106, .28);
|
|
color: #2b2114;
|
|
transform: rotate(-.35deg);
|
|
animation: book-open .48s cubic-bezier(.2, .9, .3, 1.05);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.book-dialog::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 50%;
|
|
z-index: 2;
|
|
width: 30px;
|
|
transform: translateX(-50%);
|
|
background: linear-gradient(90deg, transparent, rgba(74, 48, 22, .3), rgba(74, 48, 22, .12), transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.page-right.is-shaking {
|
|
animation: dialog-shake .34s ease;
|
|
}
|
|
|
|
@keyframes dialog-shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
25% { transform: translateX(-6px); }
|
|
55% { transform: translateX(5px); }
|
|
80% { transform: translateX(-2px); }
|
|
}
|
|
|
|
.book-page {
|
|
position: relative;
|
|
min-height: 470px;
|
|
padding: clamp(24px, 4vw, 44px);
|
|
background:
|
|
radial-gradient(circle at 8% 6%, rgba(255, 255, 255, .9), transparent 30%),
|
|
linear-gradient(180deg, #fbf4e4, #efe1c3);
|
|
}
|
|
|
|
.page-left {
|
|
border-right: 1px solid rgba(100, 70, 30, .18);
|
|
background:
|
|
radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .92), transparent 32%),
|
|
radial-gradient(circle at 82% 96%, rgba(154, 107, 35, .1), transparent 40%),
|
|
linear-gradient(180deg, #fcf6e8, #f0e2c4);
|
|
}
|
|
|
|
.page-right {
|
|
background:
|
|
radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .92), transparent 32%),
|
|
radial-gradient(circle at 12% 92%, rgba(154, 107, 35, .1), transparent 40%),
|
|
linear-gradient(180deg, #fbf3e1, #eedfbf);
|
|
}
|
|
|
|
.page-corner {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 42px;
|
|
height: 42px;
|
|
background: linear-gradient(135deg, #e4d2ad, #f8efd9 55%, transparent 56%);
|
|
border-radius: 10px 0 0;
|
|
opacity: .8;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.modal-close {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
z-index: 6;
|
|
display: grid;
|
|
place-items: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
padding: 0;
|
|
border: 1px solid rgba(120, 88, 38, .45);
|
|
border-radius: 50%;
|
|
background: rgba(255, 249, 235, .72);
|
|
color: #6d5326;
|
|
font-size: 1.4rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
transition: background .15s, transform .12s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: #fff9eb;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.modal-close:focus-visible {
|
|
outline: 2px solid var(--brass-dark);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.book-emblem-large {
|
|
display: grid;
|
|
place-items: center;
|
|
width: clamp(72px, 12vw, 108px);
|
|
aspect-ratio: 1;
|
|
margin: 0 auto clamp(16px, 2.4vw, 24px);
|
|
border: 1px solid rgba(154, 107, 35, .55);
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle at 34% 28%, #fff8e6, #ead8b4);
|
|
color: #8a6226;
|
|
box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .38), 0 5px 14px rgba(74, 48, 22, .14);
|
|
}
|
|
|
|
.book-emblem-large svg {
|
|
width: 58%;
|
|
height: 58%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.book-kicker,
|
|
.task-kicker {
|
|
margin: 0 0 7px;
|
|
color: #9a742f;
|
|
font-size: .66rem;
|
|
font-weight: 800;
|
|
letter-spacing: .24em;
|
|
text-align: center;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.task-kicker {
|
|
text-align: left;
|
|
}
|
|
|
|
.book-dialog h2 {
|
|
margin: 0;
|
|
font-family: var(--serif);
|
|
font-size: clamp(1.65rem, 4vw, 2.5rem);
|
|
line-height: 1.04;
|
|
text-align: center;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.book-byline {
|
|
margin: 8px 0 0;
|
|
color: #826a43;
|
|
font-size: .78rem;
|
|
font-style: italic;
|
|
letter-spacing: .04em;
|
|
text-align: center;
|
|
}
|
|
|
|
.page-left > .book-intro {
|
|
max-width: 34ch;
|
|
margin: clamp(18px, 3vw, 28px) auto 0;
|
|
color: #56452c;
|
|
font-size: clamp(.94rem, 1.8vw, 1.05rem);
|
|
line-height: 1.6;
|
|
text-align: center;
|
|
}
|
|
|
|
.book-quote {
|
|
max-width: 32ch;
|
|
margin: clamp(20px, 3.4vw, 32px) auto 0;
|
|
padding: 10px 0 10px 16px;
|
|
border-left: 2px solid rgba(154, 107, 35, .5);
|
|
color: #765d36;
|
|
font-family: var(--serif);
|
|
font-size: clamp(.9rem, 1.7vw, 1.02rem);
|
|
font-style: italic;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.task {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.task h3 {
|
|
margin: 0;
|
|
color: #332612;
|
|
font-family: var(--serif);
|
|
font-size: clamp(1.2rem, 2.6vw, 1.55rem);
|
|
line-height: 1.3;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.options {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin: 20px 0 14px;
|
|
}
|
|
|
|
.option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
padding: 11px 13px;
|
|
border: 1px solid #c8b48a;
|
|
border-radius: 9px;
|
|
background: rgba(255, 255, 255, .42);
|
|
color: #3a2b17;
|
|
font-size: clamp(.86rem, 1.7vw, .96rem);
|
|
line-height: 1.35;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: border-color .15s, background .15s, transform .12s, opacity .15s;
|
|
}
|
|
|
|
.option:hover:not(:disabled) {
|
|
border-color: #8a6a2f;
|
|
background: #fffaf0;
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.option:focus-visible {
|
|
outline: 2px solid var(--brass-dark);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.option:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.option:disabled:not(.is-correct):not(.is-wrong) {
|
|
opacity: .68;
|
|
}
|
|
|
|
.option-key {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 27px;
|
|
height: 27px;
|
|
flex: none;
|
|
border: 1px solid #b89a5c;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, .5);
|
|
color: #7a5a22;
|
|
font-family: var(--serif);
|
|
font-size: .78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.option.is-correct {
|
|
border-color: #5f7d4f;
|
|
background: #e8f0d9;
|
|
box-shadow: inset 0 0 0 1px rgba(95, 125, 79, .25);
|
|
}
|
|
|
|
.option.is-correct .option-key {
|
|
border-color: #5f7d4f;
|
|
background: #5f7d4f;
|
|
color: #fff;
|
|
}
|
|
|
|
.option.is-wrong {
|
|
border-color: #a34a3d;
|
|
background: #f4ddd7;
|
|
animation: option-shake .32s ease;
|
|
}
|
|
|
|
.option.is-wrong .option-key {
|
|
border-color: #a34a3d;
|
|
background: #a34a3d;
|
|
color: #fff;
|
|
}
|
|
|
|
.minigame-meta {
|
|
margin: 6px 0 14px;
|
|
color: #7a6440;
|
|
font-size: clamp(.76rem, 1.5vw, .84rem);
|
|
font-weight: 700;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.memory-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: clamp(6px, 1.2vw, 10px);
|
|
margin: 0 0 14px;
|
|
}
|
|
|
|
.memory-card {
|
|
position: relative;
|
|
aspect-ratio: 3 / 4;
|
|
padding: 0;
|
|
border: 0;
|
|
background: none;
|
|
cursor: pointer;
|
|
perspective: 800px;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.memory-inner {
|
|
position: absolute;
|
|
inset: 0;
|
|
transform-style: preserve-3d;
|
|
transition: transform .35s cubic-bezier(.2, .8, .3, 1);
|
|
}
|
|
|
|
.memory-card.is-flipped .memory-inner {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.memory-face {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
overflow: hidden;
|
|
border-radius: 5px;
|
|
backface-visibility: hidden;
|
|
-webkit-backface-visibility: hidden;
|
|
}
|
|
|
|
.memory-back {
|
|
border: 1px solid #8a6a2f;
|
|
background:
|
|
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .12), transparent 38%),
|
|
repeating-linear-gradient(45deg, rgba(240, 201, 106, .05) 0 6px, transparent 6px 12px),
|
|
linear-gradient(150deg, #2e4a30, #182f22);
|
|
color: var(--brass-bright);
|
|
box-shadow:
|
|
inset 0 0 0 3px rgba(240, 201, 106, .14),
|
|
0 4px 8px rgba(0, 0, 0, .2);
|
|
}
|
|
|
|
.memory-back-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 56%;
|
|
aspect-ratio: 1;
|
|
border: 1px solid rgba(240, 201, 106, .35);
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, .14);
|
|
}
|
|
|
|
.memory-back-mark svg {
|
|
width: 62%;
|
|
height: 62%;
|
|
opacity: .85;
|
|
}
|
|
|
|
.memory-front {
|
|
transform: rotateY(180deg);
|
|
border: 1px solid #b89a5c;
|
|
background:
|
|
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8), transparent 40%),
|
|
linear-gradient(180deg, #fff9ea, #ecdbb6);
|
|
color: #5c4724;
|
|
}
|
|
|
|
.memory-front svg {
|
|
width: 58%;
|
|
height: 40%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.memory-emblem {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 58%;
|
|
height: 40%;
|
|
}
|
|
|
|
.memory-emblem svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.memory-label {
|
|
max-width: 96%;
|
|
padding: 0 2px;
|
|
overflow: hidden;
|
|
font-family: var(--serif);
|
|
font-size: clamp(.5rem, 1.2vw, .68rem);
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.memory-card.is-matched .memory-front {
|
|
border-color: #5f7d4f;
|
|
background:
|
|
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .8), transparent 40%),
|
|
linear-gradient(180deg, #f3f8e6, #dfecc9);
|
|
box-shadow: 0 0 0 2px rgba(95, 125, 79, .42);
|
|
}
|
|
|
|
.memory-card.is-matched {
|
|
cursor: default;
|
|
}
|
|
|
|
.memory-card:focus-visible {
|
|
outline: 2px solid var(--brass-dark);
|
|
outline-offset: 2px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.memory-card.is-matched:focus-visible {
|
|
outline-color: #5f7d4f;
|
|
}
|
|
|
|
.memory-card:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.shelf-tray {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 7px;
|
|
min-height: 62px;
|
|
margin-bottom: 10px;
|
|
padding: 9px;
|
|
border: 1px dashed rgba(154, 107, 35, .45);
|
|
border-radius: 9px;
|
|
background: rgba(185, 154, 92, .09);
|
|
}
|
|
|
|
.shelf-tray:empty::after {
|
|
content: "Alle boeken staan op hun plek.";
|
|
align-self: center;
|
|
width: 100%;
|
|
color: #7a6440;
|
|
font-size: .8rem;
|
|
font-style: italic;
|
|
text-align: center;
|
|
}
|
|
|
|
.shelf-item {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
width: clamp(58px, 11vw, 76px);
|
|
min-height: clamp(72px, 14vw, 94px);
|
|
padding: 7px 5px 6px 8px;
|
|
border: 1px solid rgba(255, 255, 255, .2);
|
|
border-radius: 3px 6px 6px 3px;
|
|
background:
|
|
radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .14), transparent 40%),
|
|
linear-gradient(150deg, var(--item-cover, #2e4a30), var(--item-cover-2, #557c4c));
|
|
color: var(--item-ink, #f7eedb);
|
|
box-shadow: 0 4px 9px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(255, 255, 255, .1);
|
|
cursor: pointer;
|
|
transition: transform .15s, box-shadow .15s, border-color .15s;
|
|
}
|
|
|
|
.shelf-item::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 5px;
|
|
border-radius: 3px 0 0 3px;
|
|
background: linear-gradient(90deg, rgba(0, 0, 0, .4), rgba(255, 255, 255, .08));
|
|
}
|
|
|
|
.shelf-item.is-placed {
|
|
cursor: default;
|
|
}
|
|
|
|
.shelf-item:not(.is-placed):hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 14px rgba(0, 0, 0, .28), 0 0 0 1px rgba(240, 201, 106, .55);
|
|
}
|
|
|
|
.shelf-item.is-selected {
|
|
border-color: var(--brass-bright);
|
|
box-shadow: 0 0 0 2px var(--brass), 0 8px 14px rgba(0, 0, 0, .28);
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.shelf-item:focus-visible {
|
|
outline: 2px solid var(--brass-dark);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.mini-emblem {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.mini-emblem svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: visible;
|
|
}
|
|
|
|
.mini-label {
|
|
display: -webkit-box;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 2;
|
|
font-family: var(--serif);
|
|
font-size: clamp(.5rem, 1.15vw, .62rem);
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.shelf-racks {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.rack {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-height: 108px;
|
|
padding: 9px;
|
|
border: 1px solid #c8b48a;
|
|
border-radius: 8px;
|
|
background: rgba(255, 255, 255, .3);
|
|
color: #4b3a20;
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: border-color .15s, background .15s, box-shadow .15s;
|
|
}
|
|
|
|
.rack:hover,
|
|
.rack.is-targetable {
|
|
border-color: #8a6a2f;
|
|
background: #fffaf0;
|
|
}
|
|
|
|
.rack.is-targetable {
|
|
box-shadow: inset 0 0 0 1px rgba(138, 106, 47, .18);
|
|
}
|
|
|
|
.rack.is-filled {
|
|
border-color: #8fa47b;
|
|
background: rgba(232, 240, 217, .58);
|
|
}
|
|
|
|
.rack.is-wrong {
|
|
border-color: #a34a3d;
|
|
animation: rack-shake .32s ease;
|
|
}
|
|
|
|
.rack:focus-visible {
|
|
outline: 2px solid var(--brass-dark);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.rack:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.rack-label {
|
|
font-size: clamp(.62rem, 1.3vw, .72rem);
|
|
font-weight: 800;
|
|
letter-spacing: .08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.rack-hint {
|
|
color: #7a6440;
|
|
font-size: clamp(.56rem, 1.15vw, .64rem);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.rack-slot {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 58px;
|
|
margin-top: auto;
|
|
border: 1px dashed rgba(154, 107, 35, .36);
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, .22);
|
|
}
|
|
|
|
.rack.is-filled .rack-slot {
|
|
border-style: solid;
|
|
border-color: #8fa47b;
|
|
background: rgba(255, 255, 255, .38);
|
|
}
|
|
|
|
.rack .shelf-item {
|
|
width: 76px;
|
|
min-height: 72px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.rack .shelf-item:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.minigame-retry {
|
|
align-self: flex-start;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
@keyframes rack-shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
30% { transform: translateX(-5px); }
|
|
62% { transform: translateX(4px); }
|
|
84% { transform: translateX(-2px); }
|
|
}
|
|
|
|
.feedback {
|
|
min-height: 2.7em;
|
|
margin: 0;
|
|
color: #6a5636;
|
|
font-size: clamp(.84rem, 1.6vw, .92rem);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.feedback.is-correct {
|
|
color: #416b3b;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.feedback.is-error {
|
|
color: #9a3b2c;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.hint {
|
|
margin: 0 0 12px;
|
|
padding: 9px 12px;
|
|
border-left: 3px solid #b89a5c;
|
|
background: rgba(185, 154, 92, .13);
|
|
color: #6f5a36;
|
|
font-size: clamp(.8rem, 1.5vw, .88rem);
|
|
font-style: italic;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.letter-stamp {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: clamp(86px, 13vw, 106px);
|
|
aspect-ratio: 1;
|
|
margin: 6px auto 16px;
|
|
border: 3px solid var(--brass);
|
|
border-radius: 50%;
|
|
background: radial-gradient(circle at 34% 28%, #a94b43, #7b2d32 60%, #571e24);
|
|
color: #f7e8c8;
|
|
box-shadow:
|
|
0 8px 20px rgba(0, 0, 0, .3),
|
|
inset 0 0 0 2px rgba(255, 255, 255, .13),
|
|
inset 0 0 18px rgba(0, 0, 0, .28);
|
|
transform: rotate(-6deg);
|
|
}
|
|
|
|
.letter-stamp.is-visible {
|
|
animation: stamp-in .55s cubic-bezier(.2, .9, .3, 1.35);
|
|
}
|
|
|
|
.stamp-letter {
|
|
font-family: var(--serif);
|
|
font-size: clamp(2.2rem, 5vw, 3rem);
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
|
|
}
|
|
|
|
.stamp-caption {
|
|
margin-top: 2px;
|
|
font-size: .5rem;
|
|
letter-spacing: .2em;
|
|
text-transform: uppercase;
|
|
opacity: .82;
|
|
}
|
|
|
|
.primary-btn,
|
|
.secondary-btn,
|
|
.copy-btn {
|
|
border: 0;
|
|
border-radius: 9px;
|
|
cursor: pointer;
|
|
font-weight: 800;
|
|
transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
|
|
}
|
|
|
|
.primary-btn {
|
|
align-self: flex-start;
|
|
padding: 11px 20px;
|
|
background: linear-gradient(180deg, #2f4c36, #1e3426);
|
|
color: #f7e9c9;
|
|
font-size: clamp(.82rem, 1.6vw, .9rem);
|
|
box-shadow: 0 4px 0 #0d1a12, 0 8px 18px rgba(0, 0, 0, .18);
|
|
}
|
|
|
|
.primary-btn:hover {
|
|
background: linear-gradient(180deg, #3b5c42, #27422f);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.primary-btn:active {
|
|
transform: translateY(1px);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.secondary-btn {
|
|
padding: 10px 18px;
|
|
border: 1px solid rgba(45, 31, 13, .32);
|
|
background: transparent;
|
|
color: #4b3a20;
|
|
font-size: clamp(.8rem, 1.6vw, .88rem);
|
|
}
|
|
|
|
.secondary-btn:hover {
|
|
border-color: rgba(45, 31, 13, .6);
|
|
background: rgba(255, 255, 255, .32);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.primary-btn:focus-visible,
|
|
.secondary-btn:focus-visible,
|
|
.copy-btn:focus-visible {
|
|
outline: 2px solid var(--brass-dark);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.voucher {
|
|
position: relative;
|
|
z-index: 1;
|
|
width: min(590px, 100%);
|
|
margin: auto;
|
|
padding: clamp(24px, 5vw, 40px);
|
|
border: 1px solid #e2c98d;
|
|
border-radius: 18px;
|
|
background:
|
|
radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .82), transparent 32%),
|
|
radial-gradient(circle at 88% 94%, rgba(154, 107, 35, .12), transparent 40%),
|
|
linear-gradient(145deg, #fff9e9, #eddfbe);
|
|
box-shadow: 0 32px 84px rgba(0, 0, 0, .68);
|
|
color: #2b2114;
|
|
text-align: center;
|
|
transform: rotate(-1deg);
|
|
animation: voucher-pop .46s cubic-bezier(.2, .9, .3, 1.2);
|
|
}
|
|
|
|
.voucher::before {
|
|
content: "";
|
|
position: absolute;
|
|
inset: 10px;
|
|
border: 2px dashed rgba(146, 108, 43, .5);
|
|
border-radius: 12px;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.voucher-kicker {
|
|
margin: 0 0 8px;
|
|
color: #9a742f;
|
|
font-size: .68rem;
|
|
font-weight: 800;
|
|
letter-spacing: .22em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.voucher h2 {
|
|
margin: 0;
|
|
font-family: var(--serif);
|
|
font-size: clamp(1.6rem, 4.6vw, 2.35rem);
|
|
line-height: 1.05;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.voucher-lead {
|
|
max-width: 42ch;
|
|
margin: 13px auto 21px;
|
|
color: #5d4a30;
|
|
font-size: clamp(.9rem, 2vw, 1rem);
|
|
line-height: 1.58;
|
|
}
|
|
|
|
.voucher-card {
|
|
margin: 0 auto;
|
|
padding: 17px;
|
|
border: 2px dashed #b38a3f;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, .46);
|
|
}
|
|
|
|
.voucher-label {
|
|
display: block;
|
|
color: #9a742f;
|
|
font-size: .66rem;
|
|
font-weight: 800;
|
|
letter-spacing: .26em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.voucher-recipient {
|
|
display: block;
|
|
margin: 5px 0 13px;
|
|
font-family: var(--serif);
|
|
font-size: clamp(1.08rem, 2.6vw, 1.3rem);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.voucher-code-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
#voucher-code {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
padding: 10px 15px;
|
|
border-radius: 8px;
|
|
background: #22352a;
|
|
color: #f0c96a;
|
|
font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
font-size: clamp(1rem, 3.6vw, 1.45rem);
|
|
font-weight: 700;
|
|
letter-spacing: .07em;
|
|
overflow-wrap: anywhere;
|
|
box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
|
|
}
|
|
|
|
.copy-btn {
|
|
padding: 10px 14px;
|
|
background: #22352a;
|
|
color: #fff1ca;
|
|
font-size: .76rem;
|
|
}
|
|
|
|
.copy-btn:hover {
|
|
background: #2f4a39;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.copy-btn.is-copied {
|
|
background: #4f7d4f;
|
|
}
|
|
|
|
.voucher-foot {
|
|
display: block;
|
|
margin-top: 12px;
|
|
color: #7d6745;
|
|
font-size: .68rem;
|
|
letter-spacing: .04em;
|
|
}
|
|
|
|
.voucher-note {
|
|
min-height: 1.35em;
|
|
margin: 13px 0 0;
|
|
color: #7a5d31;
|
|
font-size: .82rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-top: 17px;
|
|
}
|
|
|
|
@keyframes twinkle {
|
|
0% { opacity: .55; filter: brightness(.85); }
|
|
100% { opacity: 1; filter: brightness(1.18); }
|
|
}
|
|
|
|
@keyframes drawer-glow {
|
|
0% { box-shadow: 0 0 0 2px rgba(240, 201, 106, .22), 0 0 22px rgba(240, 201, 106, .22), 0 7px 14px rgba(0, 0, 0, .42); }
|
|
100% { box-shadow: 0 0 0 2px rgba(240, 201, 106, .45), 0 0 38px rgba(240, 201, 106, .45), 0 7px 14px rgba(0, 0, 0, .42); }
|
|
}
|
|
|
|
@keyframes drawer-shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
25% { transform: translateX(-5px) rotate(-.6deg); }
|
|
55% { transform: translateX(5px) rotate(.6deg); }
|
|
78% { transform: translateX(-3px); }
|
|
}
|
|
|
|
@keyframes slot-pop {
|
|
0% { transform: scale(.6) rotate(-8deg); opacity: .2; }
|
|
60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
|
|
100% { transform: scale(1) rotate(0); opacity: 1; }
|
|
}
|
|
|
|
@keyframes book-open {
|
|
0% { opacity: 0; transform: rotate(-3deg) scale(.9) translateY(18px); }
|
|
100% { opacity: 1; transform: rotate(-.35deg) scale(1) translateY(0); }
|
|
}
|
|
|
|
@keyframes stamp-in {
|
|
0% { opacity: 0; transform: rotate(-18deg) scale(1.6); }
|
|
55% { opacity: 1; transform: rotate(-4deg) scale(.94); }
|
|
75% { transform: rotate(-7deg) scale(1.04); }
|
|
100% { transform: rotate(-6deg) scale(1); }
|
|
}
|
|
|
|
@keyframes option-shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
30% { transform: translateX(-5px); }
|
|
60% { transform: translateX(4px); }
|
|
82% { transform: translateX(-2px); }
|
|
}
|
|
|
|
@keyframes voucher-pop {
|
|
0% { opacity: 0; transform: rotate(-4deg) scale(.86); }
|
|
100% { opacity: 1; transform: rotate(-1deg) scale(1); }
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.book-dialog {
|
|
grid-template-columns: 1fr;
|
|
width: min(620px, 100%);
|
|
transform: none;
|
|
animation-name: book-open-mobile;
|
|
}
|
|
|
|
.book-dialog::before {
|
|
display: none;
|
|
}
|
|
|
|
.book-page {
|
|
min-height: 0;
|
|
padding: clamp(22px, 5vw, 36px);
|
|
}
|
|
|
|
.page-left {
|
|
border-right: 0;
|
|
border-bottom: 1px solid rgba(100, 70, 30, .18);
|
|
}
|
|
|
|
.book-emblem-large {
|
|
width: 74px;
|
|
}
|
|
|
|
.page-left > .book-intro,
|
|
.book-quote {
|
|
max-width: 46ch;
|
|
}
|
|
|
|
.plaque {
|
|
display: none;
|
|
}
|
|
|
|
.drawer {
|
|
flex: 1 1 auto;
|
|
max-width: 420px;
|
|
}
|
|
}
|
|
|
|
@keyframes book-open-mobile {
|
|
0% { opacity: 0; transform: scale(.92) translateY(18px); }
|
|
100% { opacity: 1; transform: scale(1) translateY(0); }
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.page {
|
|
padding-top: 20px;
|
|
}
|
|
|
|
.hero {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.hero::after {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.game-shell {
|
|
padding: 10px;
|
|
border-radius: 18px;
|
|
}
|
|
|
|
.hud {
|
|
gap: 10px;
|
|
margin-bottom: 11px;
|
|
}
|
|
|
|
.icon-btn {
|
|
width: 42px;
|
|
height: 42px;
|
|
}
|
|
|
|
.bookcase {
|
|
padding: 11px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.shelf-grid {
|
|
gap: 12px;
|
|
padding: 24px 7px 8px;
|
|
}
|
|
|
|
.shelf {
|
|
gap: 6px;
|
|
padding-bottom: 13px;
|
|
}
|
|
|
|
.book-cover {
|
|
padding: 6px 5px 7px 9px;
|
|
}
|
|
|
|
.book-emblem {
|
|
width: 47%;
|
|
margin-top: 8%;
|
|
}
|
|
|
|
.book-title {
|
|
font-size: clamp(.5rem, 2.1vw, .7rem);
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
|
|
.book-author {
|
|
display: none;
|
|
}
|
|
|
|
.book-state {
|
|
width: 20%;
|
|
}
|
|
|
|
.drawer-front {
|
|
padding: 13px 14px 10px;
|
|
}
|
|
|
|
.secret {
|
|
padding: 11px 10px;
|
|
}
|
|
|
|
.slot {
|
|
width: clamp(28px, 8vw, 38px);
|
|
}
|
|
|
|
.log {
|
|
min-height: 4.4em;
|
|
}
|
|
|
|
.footer {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.book-dialog,
|
|
.voucher {
|
|
transform: none;
|
|
}
|
|
|
|
.task h3 {
|
|
font-size: clamp(1.1rem, 4.4vw, 1.35rem);
|
|
}
|
|
|
|
.option {
|
|
padding: 10px 11px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.memory-grid {
|
|
gap: 6px;
|
|
}
|
|
|
|
.memory-label {
|
|
font-size: .54rem;
|
|
}
|
|
|
|
.shelf-tray {
|
|
padding: 7px;
|
|
gap: 6px;
|
|
}
|
|
|
|
.shelf-tray .shelf-item {
|
|
width: 66px;
|
|
min-height: 76px;
|
|
padding: 6px 4px 5px 7px;
|
|
}
|
|
|
|
.rack {
|
|
min-height: 100px;
|
|
padding: 7px;
|
|
}
|
|
|
|
.rack .shelf-item {
|
|
width: 52px;
|
|
min-height: 66px;
|
|
}
|
|
|
|
.primary-btn {
|
|
align-self: stretch;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.book-title {
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
|
|
.shelf {
|
|
gap: 5px;
|
|
}
|
|
|
|
.memory-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.memory-label {
|
|
font-size: .58rem;
|
|
}
|
|
|
|
.rack-hint {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: .01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: .01ms !important;
|
|
}
|
|
}
|