RELAY
共通のパネルと操作状態
Design tokens and component patterns reference.
Base styles for HTML semantic elements. These are defined in global.css @layer globals.
font-size: --font-size-2xl, margin-bottom: --space-basefont-size: --font-size-xl, margin-bottom: --space-smfont-size: --font-size-lg, margin-bottom: --space-smfont-size: --font-size-md, margin-bottom: --space-xsfont-size: --font-size-base, margin-bottom: --space-xsfont-size: --font-size-sm, margin-bottom: --space-xsThis is a paragraph element. It has font-size: --font-size-base (14px), line-height: 1.6, and margin-bottom: --space-sm (12px).
Multiple paragraphs will have consistent spacing.
Regular text for comparison.
This is small text (font-size: --font-size-sm / 12px).Links are styled with navy color and underline. Hover them to see the effect.
The button element has a reset base style (no background, no border, no padding). Use .btn classes for styled buttons (see Buttons section).
Global interactive state styles for accessibility and user feedback. All focusable elements have consistent :focus-visible styles for keyboard navigation.
Press Tab to navigate and see the aqua outline on keyboard focus.
outline: 2px solid var(--color-netsuki-aqua); outline-offset: 2px;Hover this link to see aqua color
a:hover - color: var(--color-netsuki-aqua)Each button variant has its own hover color. See Buttons section for details.
Click and hold to see the active state (slight downward shift).
.btn:active - transform: translateY(0.125rem):disabled, [aria-disabled="true"] - cursor: not-allowed; opacity: 0.5;See Buttons section for more disabled button examples.
RELAYの共通パネルと、選択・押下・無効の表示を確認します。
共通のパネルと操作状態
--color-netsuki-aqua#00ced1Secondary accent, links--color-netsuki-aqua-dark#0891b2Darker aqua (hover)--color-netsuki-blue#4dabf7Blue accent--color-netsuki-charcoal#1f2937Canvas border--color-netsuki-charcoal-dark#111827Canvas background--color-netsuki-charcoal-light#374151Button background--color-netsuki-cyan#22d3eeNormal game block--color-netsuki-gold#ffd700Primary accent--color-netsuki-gold-dark#facc15Darker gold (hover)--color-netsuki-green#0f0Success states--color-netsuki-green-vivid#22c55eVivid green--color-netsuki-green-dark#16a34aDarker green--color-netsuki-white#fffBackgrounds--color-netsuki-navy#000080Text, borders, headings--color-netsuki-black#000Strong emphasis--color-netsuki-red#ef4444Error, warning, danger--color-netsuki-red-dark#dc2626Darker red--color-netsuki-amber#f59e0bAmber accent--color-netsuki-yellow-light#fef9c3Light yellow--color-netsuki-yellow#fef08aYellow--color-netsuki-gray-light#f3f4f6Light gray (hover bg)--color-netsuki-gray-border#d1d5dbBorder and separator--color-netsuki-gray#6b7280Muted text--color-netsuki-gray-text#4b5563Darker muted text--color-netsuki-magenta#d946efHoming projectile, laser block--color-netsuki-orange#f97316Rain projectile--color-netsuki-pink#ec4899Puzzle completion text--color-netsuki-yellow-bright#fde047Laser gradient, completion border--color-chat-author#ffe57fChat bubble (author)--color-chat-partner#87ceebChat bubble (partner)--color-chat-guest#e8a0a0Chat bubble (guest)Font family CSS variables. Web fonts are downloaded at build time via Astro Fonts API (self-hosted, no CDN).
This project uses a mobile-first approach with two standard breakpoints. Resize your browser window to see the responsive behavior.
| Name | Media Query | Description |
|---|---|---|
| Mobile | (default) | < 640px, mobile devices |
| Tablet | width >= 640px | ≥ 640px, tablets and above |
| Desktop | width >= 768px | ≥ 768px, desktop and laptops |
| Touch | hover: none | Touch-capable devices |
| Pointer | pointer: coarse | Coarse pointer input devices |
Only one indicator should be visible at a time based on your current viewport width.
Mobile: single column / Tablet: 2 columns / Desktop: 3 columns
Gold background section box. Used for primary emphasis.
White background section box. Used for content areas.
Aqua background section box. Used for secondary emphasis.
White section box with gold border.
White section box with aqua border.
Inner box for nested content. 2px solid navy border with 1rem padding.
Centered, bold, navy-colored heading. font-size: --font-size-lg.
Structured data display with header color variants.
| Property | Value |
|---|---|
| Name | Netsuki |
| Species | Virtual Fox |
| Rank | Score |
|---|---|
| 1st | 9800 |
| 2nd | 7500 |
Styled form inputs used across pages (fortune form, etc.).
Text decoration patterns defined globally.
Blinking Text
animation: blink (defined in global.css @keyframes)Sparkling Text
color: var(--color-netsuki-gold); animation: sparkle-glow (defined in global.css @keyframes)Decorative horizontal separators.
★☆★☆★
.divider-starsCSS-only repeating background patterns for the body (frame area). Patterns use site CSS variables with opacity to stay visually receding per the 60-30-10 color rule, while offering character and color variety. Pick a favorite to apply to BaseLayout.astro.
radial-gradient · aqua 22% · 20pxBright aqua dots. Matches the sidebar accent color.conic-gradient · gold 18% · 16pxClassic checkerboard in gold. Warm and playful.repeating-linear-gradient · aqua+gold+blue · -45degDiagonal stripes in three site colors. Festive and energetic.radial-gradient x3 · aqua+gold+red · offset positionsScattered multicolor dots. Lively and eye-catching.linear-gradient x4 · aqua · chevronChevron zigzag in aqua. Bold and directional.radial-gradient x3 · gold+amber · scatteredScattered gold and amber dots like twinkling stars.repeating-linear-gradient x2 · aqua · diamond gridDiamond lattice in aqua. Elegant and structured.radial-gradient + linear-gradient x2 · gold+amber gridGold dots on an amber grid. Warm and cozy.The same dot pattern reads very differently depending on the base background color. These candidates use color-mix() to create tinted bases, paired with a contrasting pattern color. Pick a base + pattern combination to apply to BaseLayout.astro.
aqua 10% base · aqua-dark 40% dotsAqua-tinted base with deeper aqua dots. Cool and cohesive.gold 8% base · gold 28% checkerIvory-cream base with gold checkerboard. Warm and inviting.gold 6% base · gold 18% dotsWarm cream base with subtle gold dots. Personal and approachable.blue 15% base · navy 35% dotsSoft lavender base with deep navy dots. Calm and refined.red 8% base · red 28% dotsBlush pink base with red dots. Soft yet lively.navy 22% base · aqua 60% dotsDark blue-gray base with bright aqua dots. Bold and dramatic.amber 12% base · amber 22% argyleWarm amber base with diamond lattice. Cozy and textured.The pattern fills the frame (Ground / 60%) and must visually recede behind the sidebar aqua (30%) and page content white (10% accent area). All patterns keep opacity below 30% so the frame remains background, not foreground.
Semi-transparent color patterns using color-mix(in srgb, COLOR %, transparent).
Gold 30%Gold 50%Gold 70%Aqua 20%Aqua 40%Aqua 60%Navy 10%Navy 20%Navy 40%Named cubic-bezier curves for consistent motion. Always use these tokens instead of raw cubic-bezier() or bare ease/ease-in-out keywords.
transition: transform 400ms var(--ease-out); /* cubic-bezier(0.215, 0.61, 0.355, 1) */transition: transform 400ms var(--ease-in-out); /* cubic-bezier(0.645, 0.045, 0.355, 1) */