@import "tailwindcss/theme"; @import "tailwindcss/utilities"; @theme { --font-display: Georgia, "Times New Roman", serif; --font-body: Inter, ui-sans-serif, system-ui, sans-serif; --color-river-950: #07131b; --color-river-900: #0c2028; --color-river-700: #174653; --color-moon-100: #fff8df; --color-moon-300: #f1d894; --color-hibiscus-500: #c7475d; } /* Preflight is intentionally omitted: this file is isolated to the standalone game. */ :root { --tr-ink: #07131b; --tr-deep: #0c2028; --tr-teal: #174653; --tr-paper: #fff8df; --tr-gold: #f1d894; --tr-copper: #b97145; --tr-rose: #c7475d; --tr-shadow: 0 28px 80px rgb(1 10 14 / .56); } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; background: var(--tr-ink); color: var(--tr-paper); font-family: Inter, ui-sans-serif, system-ui, sans-serif; } button, a, input, select { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--tr-gold); outline-offset: 3px; } .tr-app { position: fixed; inset: 0; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 70% 10%, rgb(235 198 109 / .16), transparent 32%), linear-gradient(145deg, #102d35, #050d13 70%); } .tr-app::after { position: absolute; inset: 0; z-index: 2; pointer-events: none; content: ""; background: linear-gradient(180deg, rgb(0 0 0 / .05), transparent 55%, rgb(0 5 8 / .58)); } .tr-canvas { position: absolute; inset: 0; z-index: 1; } .tr-canvas canvas { display: block; width: 100% !important; height: 100% !important; object-fit: cover; } .tr-atmosphere { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; } .tr-atmosphere i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe69a; box-shadow: 0 0 16px 4px rgb(255 225 132 / .72); animation: tr-drift 9s ease-in-out infinite; } .tr-atmosphere i:nth-child(1) { left: 18%; top: 34%; } .tr-atmosphere i:nth-child(2) { left: 74%; top: 23%; animation-delay: -3s; } .tr-atmosphere i:nth-child(3) { left: 57%; top: 68%; animation-delay: -6s; } @keyframes tr-drift { 0%, 100% { transform: translate3d(0, 0, 0); opacity: .2; } 50% { transform: translate3d(42px, -32px, 0); opacity: .9; } } .tr-screen { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); overflow: auto; background: linear-gradient(90deg, rgb(5 17 23 / .9), rgb(5 17 23 / .38)), url("/assets/games/two-rivers/images/backgrounds/courtyard.webp") center/cover no-repeat; } .tr-screen::before { position: absolute; inset: 20px; border: 1px solid rgb(241 216 148 / .42); border-radius: 28px; pointer-events: none; content: ""; } .tr-card, .tr-menu__copy { position: relative; width: min(680px, 100%); padding: clamp(28px, 5vw, 64px); border: 1px solid rgb(241 216 148 / .36); border-radius: 28px; background: linear-gradient(145deg, rgb(9 32 39 / .94), rgb(4 15 21 / .88)); box-shadow: var(--tr-shadow); backdrop-filter: blur(16px); } .tr-card--narrow { width: min(560px, 100%); } .tr-menu { place-items: center start; background-position: center; } .tr-menu__copy { margin-left: clamp(0px, 7vw, 120px); } .tr-kicker { margin: 0 0 12px; color: var(--tr-gold); font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; } .tr-screen h1 { margin: 0; color: var(--tr-paper); font: 500 clamp(3rem, 8vw, 7.6rem)/.78 Georgia, "Times New Roman", serif; letter-spacing: -.065em; text-wrap: balance; text-shadow: 0 5px 24px rgb(0 0 0 / .5); } .tr-screen h1 em { color: var(--tr-gold); font-size: .54em; font-weight: 400; letter-spacing: -.025em; } .tr-card h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); } .tr-card p, .tr-lede { max-width: 54ch; color: #e5e3d6; font-size: clamp(.98rem, 1.5vw, 1.14rem); line-height: 1.7; } .tr-lede { margin: 28px 0; } .tr-actions { display: grid; gap: 10px; width: min(360px, 100%); } .tr-actions--row { grid-template-columns: 1fr 1fr; width: 100%; margin-top: 24px; } button, .tr-secondary { min-height: 46px; border: 1px solid rgb(241 216 148 / .28); border-radius: 12px; color: var(--tr-paper); background: rgb(255 255 255 / .06); padding: 11px 16px; cursor: pointer; text-align: center; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; } button:hover:not(:disabled), .tr-secondary:hover { border-color: rgb(241 216 148 / .7); background: rgb(241 216 148 / .12); transform: translateY(-1px); } button:disabled { cursor: not-allowed; opacity: .38; } .tr-primary { border-color: #f4db94; color: #152129; background: linear-gradient(135deg, #ffe9a9, #d9a75d); box-shadow: 0 8px 24px rgb(208 155 72 / .24); font-weight: 800; } .tr-primary:hover:not(:disabled) { color: #081219; background: linear-gradient(135deg, #fff2c6, #e9bd76); } .tr-loading { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; background: #07131b; } .tr-loading > div { display: grid; gap: 18px; width: min(420px, calc(100% - 48px)); text-align: center; } .tr-loading progress { width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; accent-color: var(--tr-gold); } .tr-hud { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); left: max(18px, env(safe-area-inset-left)); z-index: 10; display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; gap: 18px; align-items: center; padding: 10px 12px 10px 18px; border: 1px solid rgb(241 216 148 / .35); border-radius: 18px; background: rgb(5 18 24 / .8); box-shadow: 0 14px 40px rgb(0 0 0 / .26); backdrop-filter: blur(13px); } .tr-hud p { margin: 0; } .tr-hud > div p { color: var(--tr-gold); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; } .tr-hud strong { font: 600 1.08rem Georgia, serif; } .tr-objective { overflow: hidden; color: #d9ddd7; font-size: .88rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; } .tr-hud nav { display: flex; gap: 8px; } .tr-hud button { min-height: 38px; padding: 7px 12px; font-size: .78rem; } kbd { color: var(--tr-gold); font: inherit; } .tr-interact { position: absolute; bottom: 15%; left: 50%; z-index: 12; transform: translateX(-50%); } .tr-interact button { border-color: rgb(241 216 148 / .6); border-radius: 999px; background: rgb(4 17 23 / .85); box-shadow: 0 12px 34px rgb(0 0 0 / .35); backdrop-filter: blur(10px); } .tr-interact kbd { display: inline-grid; width: 26px; height: 26px; margin-right: 7px; place-items: center; border-radius: 50%; color: #17232a; background: var(--tr-gold); font-weight: 900; } .tr-touch { position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); left: max(18px, env(safe-area-inset-left)); z-index: 14; display: flex; justify-content: space-between; pointer-events: none; } .tr-touch button { width: 64px; height: 64px; border-radius: 50%; font-size: 1.5rem; pointer-events: auto; touch-action: none; backdrop-filter: blur(10px); } .tr-touch button:nth-child(2) { margin-right: auto; margin-left: 9px; } .tr-touch button:last-child { color: var(--tr-gold); font-size: 1.2rem; } .tr-overlay { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: rgb(2 10 14 / .72); backdrop-filter: blur(10px); } .tr-panel { width: min(940px, 100%); max-height: min(90vh, 820px); overflow: hidden; border: 1px solid rgb(241 216 148 / .5); border-radius: 24px; background: radial-gradient(circle at 100% 0, rgb(199 71 93 / .12), transparent 30%), linear-gradient(145deg, #102d35, #07131b); box-shadow: var(--tr-shadow); } .tr-panel > header { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgb(241 216 148 / .18); } .tr-panel > header .tr-kicker { grid-column: 1; margin-bottom: 3px; } .tr-panel h2 { grid-column: 1; margin: 0; font: 500 clamp(1.8rem, 4vw, 3rem)/1 Georgia, serif; } .tr-panel > header button { grid-row: 1 / 3; grid-column: 2; width: 44px; padding: 0; font-size: 1.6rem; } .tr-panel__body { max-height: calc(min(90vh, 820px) - 100px); padding: clamp(20px, 4vw, 38px); overflow: auto; } .tr-panel h3 { margin: 0 0 12px; color: var(--tr-gold); font: 500 1.35rem Georgia, serif; } .tr-panel-lede { max-width: 65ch; margin: 0 0 24px; color: #e2e3db; line-height: 1.7; } .tr-tabs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; } .tr-tabs section:last-child { grid-column: 1 / -1; } .tr-ledger, .tr-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; } .tr-ledger li { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 4px 18px; padding: 12px 14px; border: 1px solid rgb(255 255 255 / .08); border-radius: 12px; background: rgb(255 255 255 / .035); } .tr-ledger li strong { color: var(--tr-gold); } .tr-ledger li small { grid-column: 1 / -1; color: #acbbb9; } .tr-chips { display: flex; flex-wrap: wrap; gap: 8px; } .tr-chip { padding: 7px 10px; border: 1px solid rgb(241 216 148 / .25); border-radius: 999px; color: #e8e2ca; text-transform: capitalize; } .tr-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; } .tr-settings label { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 12px; border-bottom: 1px solid rgb(255 255 255 / .08); } .tr-settings input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--tr-gold); } .tr-settings input[type="range"] { width: min(180px, 50%); accent-color: var(--tr-gold); } .tr-settings select { min-width: 120px; border: 1px solid rgb(241 216 148 / .3); border-radius: 8px; color: var(--tr-paper); background: var(--tr-deep); padding: 7px; text-transform: capitalize; } .tr-save-slots { display: grid; gap: 10px; } .tr-save-slots article { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 14px; border: 1px solid rgb(255 255 255 / .09); border-radius: 14px; } .tr-save-slots article div { display: grid; gap: 2px; } .tr-save-slots article span, .tr-save-slots article small { color: #9fb1af; } .tr-dialogue { position: absolute; right: clamp(18px, 5vw, 70px); bottom: max(18px, env(safe-area-inset-bottom)); left: clamp(18px, 5vw, 70px); z-index: 35; display: grid; grid-template-columns: minmax(150px, 23%) 1fr; min-height: 230px; max-height: min(48vh, 420px); border: 1px solid rgb(241 216 148 / .62); border-radius: 24px; background: radial-gradient(circle at 10% 0, rgb(199 71 93 / .16), transparent 35%), linear-gradient(145deg, rgb(12 40 48 / .97), rgb(4 16 22 / .97)); box-shadow: var(--tr-shadow); overflow: hidden; backdrop-filter: blur(18px); } .tr-portrait { min-height: 230px; background-position: center bottom; background-size: contain; background-repeat: no-repeat; filter: drop-shadow(8px 0 20px rgb(0 0 0 / .35)); mask-image: linear-gradient(90deg, #000 74%, transparent); } .tr-dialogue__copy { display: flex; min-width: 0; flex-direction: column; padding: clamp(18px, 3vw, 30px); } .tr-speaker { margin: 0 0 9px; color: var(--tr-gold); font: 600 clamp(1.25rem, 2.4vw, 1.8rem) Georgia, serif; } .tr-line { min-height: 3.4em; margin: 0; color: #fffdf1; font: 400 clamp(1rem, 1.8vw, 1.22rem)/1.65 Georgia, serif; } .tr-choices { display: grid; gap: 7px; margin-top: 12px; overflow: auto; } .tr-choices button { display: grid; grid-template-columns: 30px 1fr; align-items: center; text-align: left; } .tr-choices button span { color: var(--tr-gold); font-weight: 900; } .tr-dialogue__controls { display: flex; gap: 7px; margin-top: auto; padding-top: 12px; } .tr-dialogue__controls button { min-height: 36px; padding: 6px 11px; font-size: .76rem; } .tr-dialogue__controls button.is-active { color: var(--tr-ink); background: var(--tr-gold); } .tr-history li { padding: 14px; border-bottom: 1px solid rgb(255 255 255 / .08); } .tr-history strong { color: var(--tr-gold); } .tr-history p { margin: 5px 0 0; line-height: 1.55; } .tr-puzzle-sequence, .tr-cooking, .tr-dance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; } .tr-puzzle-sequence button, .tr-cooking button { min-height: 80px; color: var(--tr-gold); font: 500 1.1rem Georgia, serif; } .tr-archery { position: relative; height: 96px; margin: 25px 10px; border: 1px solid rgb(241 216 148 / .25); border-radius: 999px; background: linear-gradient(90deg, rgb(199 71 93 / .22), rgb(241 216 148 / .16) 42%, rgb(241 216 148 / .45) 50%, rgb(241 216 148 / .16) 58%, rgb(199 71 93 / .22)); } .tr-archery i { position: absolute; top: 8px; bottom: 8px; width: 5px; border-radius: 999px; background: #fff3bd; box-shadow: 0 0 18px #ffe18b; transform: translateX(-50%); } .tr-archery b { position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; border: 2px solid var(--tr-gold); border-radius: 999px; transform: translateX(-50%); } .tr-dance-cue { margin: 15px auto; color: var(--tr-gold); font-size: clamp(4rem, 14vw, 8rem); text-align: center; text-shadow: 0 0 35px rgb(241 216 148 / .45); } .tr-dance button { min-height: 70px; font-size: 2rem; } .tr-gifts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .tr-gift { display: grid; grid-template-columns: 72px 1fr; gap: 7px 13px; align-items: center; padding: 14px; text-align: left; } .tr-gift img { grid-row: span 2; width: 72px; height: 72px; object-fit: contain; } .tr-gift strong { color: var(--tr-gold); font: 500 1.15rem Georgia, serif; } .tr-gift small { color: #bdc8c3; line-height: 1.45; } .tr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .tr-gallery figure { margin: 0; overflow: hidden; border: 1px solid rgb(241 216 148 / .22); border-radius: 14px; background: rgb(255 255 255 / .04); } .tr-gallery img, .tr-gallery figure > div { display: grid; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; place-items: center; color: rgb(241 216 148 / .3); font: 5rem Georgia, serif; } .tr-gallery figcaption { padding: 8px 10px; text-transform: capitalize; } .tr-gallery .is-locked { filter: saturate(0); opacity: .55; } .tr-ending { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin: 0; } .tr-ending img { width: 100%; min-height: 320px; border-radius: 16px; object-fit: cover; } .tr-ending figcaption { align-self: center; } .tr-ending p { font: 400 1.18rem/1.7 Georgia, serif; } .tr-ending blockquote { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--tr-gold); color: var(--tr-gold); font: italic 1rem/1.7 Georgia, serif; } .tr-toast-stack { position: absolute; top: 94px; right: max(20px, env(safe-area-inset-right)); z-index: 60; display: grid; width: min(360px, calc(100% - 40px)); gap: 8px; pointer-events: none; } .tr-toast-stack p { margin: 0; padding: 12px 15px; border: 1px solid rgb(241 216 148 / .35); border-radius: 12px; color: var(--tr-paper); background: rgb(5 20 27 / .92); box-shadow: 0 10px 28px rgb(0 0 0 / .28); } .tr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .tr-rotate { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 40px; color: var(--tr-gold); background: #07131b; font: 500 1.5rem/1.5 Georgia, serif; text-align: center; } .tr-high-contrast { --tr-paper: #fff; --tr-gold: #ffe17f; } .tr-high-contrast .tr-dialogue, .tr-high-contrast .tr-panel, .tr-high-contrast .tr-hud { background: #000; } @media (max-width: 760px) { .tr-screen::before { inset: 9px; border-radius: 18px; } .tr-menu { place-items: end stretch; } .tr-menu__copy { margin: 0; padding: 28px; } .tr-hud { grid-template-columns: 1fr auto; } .tr-objective { display: none; } .tr-hud nav button:first-child, .tr-hud nav button:nth-child(2) { display: none; } .tr-dialogue { grid-template-columns: 110px 1fr; max-height: 60vh; } .tr-portrait { min-height: 200px; } .tr-dialogue__copy { padding: 16px; } .tr-dialogue__controls button:nth-child(2), .tr-dialogue__controls button:nth-child(4) { display: none; } .tr-tabs, .tr-settings, .tr-ending { grid-template-columns: 1fr; } .tr-tabs section:last-child { grid-column: auto; } .tr-gallery { grid-template-columns: repeat(2, 1fr); } .tr-gifts { grid-template-columns: 1fr; } .tr-panel__body { padding: 18px; } } @media (max-width: 699px) and (orientation: portrait) { .tr-exploring .tr-rotate { display: grid !important; } } @media (max-height: 540px) and (orientation: landscape) { .tr-hud { top: 8px; right: 8px; left: 8px; padding-block: 6px; } .tr-dialogue { right: 12px; bottom: 8px; left: 12px; min-height: 180px; max-height: 66vh; } .tr-portrait { min-height: 180px; } .tr-line { line-height: 1.45; } .tr-touch button { width: 52px; height: 52px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }