diff --git a/apps/web/src/games/chess/art.ts b/apps/web/src/games/chess/art.ts
new file mode 100644
index 0000000..88a8012
--- /dev/null
+++ b/apps/web/src/games/chess/art.ts
@@ -0,0 +1,15 @@
+/**
+ * Chess piece artwork: the Cburnett set from Wikimedia Commons (File:Chess_klt45.svg … Chess_pdt45.svg, CC BY-SA 3.0 —
+ * ./pieces/ATTRIBUTION.txt, docs/games/chess.md §9), bundled from our own origin. Each file is a 45×45 drawing; the
+ * pieces are small enough that vite inlines them into the chess chunk (no extra requests, no flash on first move).
+ */
+export type PieceColor = 'white' | 'black';
+export type PieceKind = 'k' | 'q' | 'r' | 'b' | 'n' | 'p';
+
+/** URL of one piece drawing (l = light/white, d = dark/black, as in the Commons file names). */
+export const pieceSrc = (type: PieceKind, color: PieceColor): string =>
+ new URL(`./pieces/${type}${color === 'white' ? 'l' : 'd'}.svg`, import.meta.url).href;
+
+/** Attribution of the piece artwork (CC BY-SA 3.0 asks for it); shown in the chess rules. */
+export const CHESS_PIECE_CREDIT =
+ '기물 그림: Cburnett — Wikimedia Commons "Chess klt45.svg" 외 11장, CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/). 크기만 줄여 썼어요.';
diff --git a/apps/web/src/games/chess/index.tsx b/apps/web/src/games/chess/index.tsx
index 1621dba..8caa752 100644
--- a/apps/web/src/games/chess/index.tsx
+++ b/apps/web/src/games/chess/index.tsx
@@ -7,6 +7,7 @@ import { TurnTimer, useServerNow } from '../../components/TurnTimer';
import { haptic } from '../../lib/feedback';
import { BOARD_MOTION_CSS, useMoveDiff } from '../board-motion';
import type { BoardProps, GameUI, OptionsProps } from '../types';
+import { CHESS_PIECE_CREDIT, pieceSrc } from './art';
import { chessCues, chessMotion } from './fx';
import { helpNow } from './help';
import { nopeSound, pickSound, playChess } from './sound';
@@ -37,91 +38,27 @@ function squareAt(x: number, y: number, bottom: Color): string {
const pieceAt = (v: ChessView, sq: string) => v.board[idxOf(sq)] ?? null;
const colorOfPiece = (p: string): Color => (p === p.toUpperCase() ? 'white' : 'black');
-// ---------------------------------------------------------------- pieces (hand-drawn SVG, 100×100 box)
-
-const BASE = 'M20 91 H80 Q84 91 84 87 V84 Q84 79 79 79 H21 Q16 79 16 84 V87 Q16 91 20 91 Z';
-const ROYAL_BODY = 'M30 79 L36 57 H64 L70 79 Z';
-const SHAPES: Record = {
- p: {
- fill: [
- 'M33 79 C35 68 39 62 43 58 H57 C61 62 65 68 67 79 Z',
- 'M38 59 H62 Q65 59 65 56 Q65 52 61 52 H39 Q35 52 35 56 Q35 59 38 59 Z',
- ],
- balls: [[50, 38, 14]],
- },
- r: {
- fill: ['M30 79 L34 47 H66 L70 79 Z', 'M28 47 L27 19 H37 V26 H45 V19 H55 V26 H63 V19 H73 L72 47 Z'],
- detail: ['M33 39 H67', 'M33 66 H67'],
- },
- b: {
- fill: [
- 'M35 79 C36 72 40 68 42 64 H58 C60 68 64 72 65 79 Z',
- 'M37 65 H63 Q66 65 66 62 Q66 58 62 58 H38 Q34 58 34 62 Q34 65 37 65 Z',
- 'M50 17 C62 26 68 38 65 49 Q63 56 58 58 H42 Q37 56 35 49 C32 38 38 26 50 17 Z',
- ],
- balls: [[50, 13, 5.5]],
- detail: ['M57 29 L47 42'],
- },
- n: {
- fill: [
- 'M33 79 C32 66 37 58 46 51 C41 51 36 53 31 57 C27 60 21 58 20 52 C19 47 23 43 28 39 L43 25 C45 20 48 16 52 12 L56 19 C71 22 80 40 77 79 Z',
- ],
- detail: ['M61 26 C69 36 72 52 70 70'],
- balls: [
- [44, 32, 2.8],
- [26, 51, 1.6],
- ],
- },
- q: {
- fill: [ROYAL_BODY, 'M32 57 L19 30 L33 44 L35 24 L44 41 L50 19 L56 41 L65 24 L67 44 L81 30 L68 57 Z'],
- balls: [
- [19, 29, 4.5],
- [35, 23, 4.5],
- [50, 17, 4.5],
- [65, 23, 4.5],
- [81, 29, 4.5],
- ],
- detail: ['M34 63 H66'],
- },
- k: {
- fill: [
- ROYAL_BODY,
- 'M32 57 C23 48 25 33 36 33 C43 33 47 38 50 44 C53 38 57 33 64 33 C75 33 77 48 68 57 Z',
- 'M47 8 H53 V16 H60 V22 H53 V36 H47 V22 H40 V16 H47 Z',
- ],
- detail: ['M34 63 H66', 'M50 44 V57'],
- },
-};
+// ---------------------------------------------------------------- pieces (Cburnett artwork, 100×100 box)
+/**
+ * One piece in a 100×100 box. The board draws that box at 0.92 of a square, 0.04 in from the corner; the artwork has
+ * its own margin, so the image is grown by that inset and fills exactly one square.
+ */
function PieceShape({ type, color }: { type: PieceType; color: Color }) {
- const shape = SHAPES[type];
- const fill = color === 'white' ? '#fbfaf5' : '#2c2a28';
- const stroke = color === 'white' ? '#1d1b19' : '#0c0b0a';
- const detail = color === 'white' ? '#1d1b19' : '#ece7dc';
- return (
-
-
- {shape.fill.map((d, i) => (
-
- ))}
- {shape.balls?.map(([cx, cy, r], i) =>
- type === 'n' ? (
-
- ) : (
-
- ),
- )}
- {shape.detail?.map((d, i) => (
-
- ))}
-
- );
+ return ;
}
/** A piece as a standalone inline icon (player bars, picker, rules). */
function PieceIcon({ type, color, size = 22 }: { type: PieceType; color: Color; size?: number }) {
return (
-
조작: 기물을 누르면 갈 수 있는 칸에 점이 찍혀요(잡을 수 있는 칸은 동그라미). 그 칸을 누르거나 기물을 끌어다 놓으면 둬요.
+
{CHESS_PIECE_CREDIT}
);
}
diff --git a/apps/web/src/games/chess/pieces/ATTRIBUTION.txt b/apps/web/src/games/chess/pieces/ATTRIBUTION.txt
new file mode 100644
index 0000000..e5c644b
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/ATTRIBUTION.txt
@@ -0,0 +1,14 @@
+체스 기물 그림 출처 (Chess piece artwork)
+
+kl.svg kd.svg ql.svg qd.svg rl.svg rd.svg bl.svg bd.svg nl.svg nd.svg pl.svg pd.svg
+(파일 이름 = 기물 + l(백)/d(흑). 원본 File:Chess_<기물>t45.svg, 예: kl.svg = File:Chess_klt45.svg)
+
+- 원본: Wikimedia Commons "Category:SVG chess pieces/Standard transparent"
+ https://commons.wikimedia.org/wiki/File:Chess_klt45.svg 외 11장 (2026-10-13 받음, Commons API의 SHA-1과 맞춰 봄)
+- 만든 사람: Cburnett (https://commons.wikimedia.org/wiki/User:Cburnett)
+- 라이선스: 원본은 GFDL / CC BY-SA 3.0 / BSD / GPL 중 하나를 고를 수 있다({{self|GFDL|migration=relicense|BSD|GPL}}).
+ 여기서는 CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/) 으로 쓴다.
+- 바꾼 점: XML 머리말·DOCTYPE·공백을 지우고 viewBox="0 0 45 45"를 넣었으며 경로 좌표를 소수 둘째 자리로 반올림했다.
+ 그림 내용은 바꾸지 않았다. 이 파일들(변형본)도 CC BY-SA 3.0 으로 배포한다.
+
+자세한 내용은 docs/games/chess.md "9. UI/UX"의 "기물 그림" 항목에 있다.
diff --git a/apps/web/src/games/chess/pieces/bd.svg b/apps/web/src/games/chess/pieces/bd.svg
new file mode 100644
index 0000000..290e603
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/bd.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/bl.svg b/apps/web/src/games/chess/pieces/bl.svg
new file mode 100644
index 0000000..5e015ea
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/bl.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/kd.svg b/apps/web/src/games/chess/pieces/kd.svg
new file mode 100644
index 0000000..3cfe2be
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/kd.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/kl.svg b/apps/web/src/games/chess/pieces/kl.svg
new file mode 100644
index 0000000..0688dd2
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/kl.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/nd.svg b/apps/web/src/games/chess/pieces/nd.svg
new file mode 100644
index 0000000..e3b8a25
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/nd.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/nl.svg b/apps/web/src/games/chess/pieces/nl.svg
new file mode 100644
index 0000000..9c065aa
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/nl.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/pd.svg b/apps/web/src/games/chess/pieces/pd.svg
new file mode 100644
index 0000000..b91f2da
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/pd.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/pl.svg b/apps/web/src/games/chess/pieces/pl.svg
new file mode 100644
index 0000000..0644af0
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/pl.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/qd.svg b/apps/web/src/games/chess/pieces/qd.svg
new file mode 100644
index 0000000..a63354f
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/qd.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/ql.svg b/apps/web/src/games/chess/pieces/ql.svg
new file mode 100644
index 0000000..cc9cb7e
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/ql.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/rd.svg b/apps/web/src/games/chess/pieces/rd.svg
new file mode 100644
index 0000000..c79045a
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/rd.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/pieces/rl.svg b/apps/web/src/games/chess/pieces/rl.svg
new file mode 100644
index 0000000..e333d7b
--- /dev/null
+++ b/apps/web/src/games/chess/pieces/rl.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/chess/quick.tsx b/apps/web/src/games/chess/quick.tsx
index 7187506..f2498a7 100644
--- a/apps/web/src/games/chess/quick.tsx
+++ b/apps/web/src/games/chess/quick.tsx
@@ -1,27 +1,10 @@
/** 체스 30초 규칙 요약 (docs/07 §5). */
import type { QuickCard } from '../types';
+import { pieceSrc, type PieceKind } from './art';
-const GLYPH: Record = { k: '♚', q: '♛', r: '♜', b: '♝', n: '♞', p: '♟' };
-
-/** One piece as a text glyph (filled shape, coloured by side). `︎` keeps ♟ from turning into an emoji. */
+/** One piece (the same Cburnett artwork as the board); uppercase FEN letter = white. */
function Piece({ t, x, y }: { t: string; x: number; y: number }) {
- const white = t === t.toUpperCase();
- return (
-
- {GLYPH[t.toLowerCase()]}
- {'︎'}
-
- );
+ return ;
}
/** Small chess board; `rows` use FEN letters (uppercase = white) and '.' for empty. */
diff --git a/apps/web/src/games/mahjong/Tile.tsx b/apps/web/src/games/mahjong/Tile.tsx
index 04e3742..1cdd16c 100644
--- a/apps/web/src/games/mahjong/Tile.tsx
+++ b/apps/web/src/games/mahjong/Tile.tsx
@@ -1,7 +1,8 @@
/**
- * 마작패 그림 (docs/games/mahjong.md §9): 직접 그린 SVG. 만수 = 숫자 + "만", 통수 = 동그라미, 삭수 = 막대, 자패 = 한글.
- * 작은 크기(버림패)에서는 숫자를 크게 쓴 간단한 그림으로 바꿔 휴대폰에서도 읽히게 한다. 수패는 종류마다 안쪽 테두리
- * 무늬(실선·점선·긴 점선)가 달라 색만으로 구별하지 않아도 된다.
+ * 마작패 그림 (docs/games/mahjong.md §9.2): Wikimedia Commons의 Shizhao 마작패 SVG(퍼블릭 도메인, ./tiles/ATTRIBUTION.txt)를
+ * 우리 쪽에서 내보낸다(외부 URL 없음). 패 몸통(크림색 앞면·두께·뒷면)은 여기서 그리고, 그림은 그 위에 얹는다.
+ * 왼쪽 위에는 숫자(수패)나 한글(자패: 동·남·서·북·백·발·중)을 작게 덧붙여 한자를 몰라도 읽히게 하고, 작은 크기(버림패·울기·
+ * 휴대폰 손패)에서는 그 글자를 크게 써서 그림이 작아도 무슨 패인지 바로 알 수 있게 한다. 적도라(빨간 5)는 5를 빨갛게 칠한 그림.
*/
import type { CSSProperties } from 'react';
@@ -37,244 +38,49 @@ export function tileOrder(code: string): number {
return 'mpsz'.indexOf(t.suit) * 100 + t.n * 10 + (t.red ? 0 : 1) + Number(code[2] ?? 0) / 10;
}
-const PIN_POS: Record = {
- 1: [[30, 38]],
- 2: [
- [30, 22],
- [30, 54],
- ],
- 3: [
- [16, 18],
- [30, 38],
- [44, 58],
- ],
- 4: [
- [18, 22],
- [42, 22],
- [18, 54],
- [42, 54],
- ],
- 5: [
- [17, 18],
- [43, 18],
- [30, 38],
- [17, 58],
- [43, 58],
- ],
- 6: [
- [19, 16],
- [41, 16],
- [19, 38],
- [41, 38],
- [19, 60],
- [41, 60],
- ],
- 7: [
- [14, 13],
- [30, 21],
- [46, 29],
- [19, 46],
- [41, 46],
- [19, 63],
- [41, 63],
- ],
- 8: [
- [19, 12],
- [41, 12],
- [19, 30],
- [41, 30],
- [19, 47],
- [41, 47],
- [19, 64],
- [41, 64],
- ],
- 9: [
- [14, 16],
- [30, 16],
- [46, 16],
- [14, 38],
- [30, 38],
- [46, 38],
- [14, 60],
- [30, 60],
- [46, 60],
- ],
+/**
+ * URL of a tile face drawing (Shizhao's Commons set, ./tiles/.svg, red fives r.svg). Vite turns this pattern
+ * into hashed /assets/ files that load with the mahjong screen (small ones are inlined into its chunk); in tests it is
+ * just a file URL.
+ */
+export const tileSrc = (code: string): string => {
+ const t = parseCode(code);
+ return new URL(`./tiles/${t.kind}${t.red ? 'r' : ''}.svg`, import.meta.url).href;
};
-function pinColor(n: number, i: number, red: boolean): string {
- if (red) return RED;
- if (n === 1) return RED;
- if (n === 2) return i === 0 ? GREEN : BLUE;
- if (n === 3) return [BLUE, RED, GREEN][i]!;
- if (n === 4) return i === 0 || i === 3 ? BLUE : GREEN;
- if (n === 5) return i === 2 ? RED : i === 0 || i === 4 ? BLUE : GREEN;
- if (n === 6) return i < 2 ? GREEN : RED;
- if (n === 7) return i < 3 ? GREEN : RED;
- if (n === 8) return BLUE;
- return i < 3 ? BLUE : i < 6 ? RED : GREEN;
+/** Attribution of the tile artwork; shown in the mahjong rules. */
+export const MAHJONG_TILE_CREDIT =
+ '패 그림: Shizhao — Wikimedia Commons "SVG Planar illustrations of Mahjong tiles"(MJ1wan.svg 외), 퍼블릭 도메인. 크기만 줄이고 빨간 5를 칠해 썼어요.';
+
+/** Index colour: 만수 검정, 통수 파랑, 삭수 초록, 적도라 빨강; 자패는 그림 색(백 파랑, 발 초록, 중 빨강). */
+function indexColor(t: ReturnType): string {
+ if (t.red) return RED;
+ if (t.suit === 'z') return t.n === 5 ? BLUE : t.n === 6 ? GREEN : t.n === 7 ? RED : INK;
+ return t.suit === 'm' ? INK : t.suit === 'p' ? BLUE : GREEN;
}
-function Pins({ n, red }: { n: number; red: boolean }) {
- const pos = PIN_POS[n]!;
- const r = n === 1 ? 17 : n <= 3 ? 9.5 : n <= 5 ? 8.5 : n <= 7 ? 7 : 7;
- return (
- <>
- {pos.map(([x, y], i) => {
- const c = pinColor(n, i, red);
- return (
-
-
-
-
- );
- })}
- >
- );
-}
-
-/** Bamboo sticks: rows of [x positions], with red sticks for some centres. */
-const SOU_ROWS: Record = {
- 2: [[30], [30]],
- 3: [[30], [18, 42]],
- 4: [
- [20, 40],
- [20, 40],
- ],
- 5: [[18, 42], [30], [18, 42]],
- 6: [
- [15, 30, 45],
- [15, 30, 45],
- ],
- 7: [[30], [15, 30, 45], [15, 30, 45]],
- 8: [
- [12, 24, 36, 48],
- [12, 24, 36, 48],
- ],
- 9: [
- [15, 30, 45],
- [15, 30, 45],
- [15, 30, 45],
- ],
-};
-
-function Sticks({ n, red }: { n: number; red: boolean }) {
- if (n === 1) {
- // 1삭: one big stick with knots and a red top.
- return (
-
-
-
-
-
-
- );
- }
- const rows = SOU_ROWS[n]!;
- const top = 8;
- const bottom = 70;
- const gap = 4;
- const h = (bottom - top - gap * (rows.length - 1)) / rows.length;
- const w = rows.some((r) => r.length === 4) ? 7 : 8;
- return (
- <>
- {rows.map((xs, ri) =>
- xs.map((x, ci) => {
- const y = top + ri * (h + gap);
- const center = (n === 5 && ri === 1) || (n === 7 && ri === 0) || (n === 9 && ci === 1);
- const c = red ? RED : center ? RED : GREEN;
- return (
-
-
-
-
- );
- }),
- )}
- >
- );
-}
-
-/** Inner frame pattern per suit (colour-blind help, §9). */
-const FRAME_DASH: Record = { m: undefined, p: '1.5 3', s: '6 3' };
+const FACE = '#fffcf3';
function Face({ code, compact }: { code: string; compact: boolean }) {
const t = parseCode(code);
- const frame = t.suit !== 'z' && (
-
- );
- if (t.suit === 'z') {
- const ch = HONOR_KO[t.n - 1]!;
- if (t.n === 5) {
- return (
- <>
-
-
- {ch}
-
- >
- );
- }
- const color = t.n === 6 ? GREEN : t.n === 7 ? RED : INK;
- return (
-
- {ch}
-
- );
- }
- const numColor = t.red ? RED : INK;
- if (compact) {
- if (t.suit === 'm') {
- return (
- <>
- {frame}
-
- {t.n}
-
-
- >
- );
- }
- if (t.suit === 'p') {
- return (
- <>
- {frame}
-
-
- {t.n}
-
- >
- );
- }
- return (
- <>
- {frame}
-
-
-
- {t.n}
-
- >
- );
- }
- if (t.suit === 'm') {
- return (
- <>
- {frame}
-
- {t.n}
-
-
- 만
-
- >
- );
- }
+ const label = t.suit === 'z' ? HONOR_KO[t.n - 1]! : String(t.n);
+ // Small tiles: a big index so the tile reads even when the artwork is a few pixels tall.
+ const size = compact ? (t.suit === 'z' ? 25 : 28) : t.suit === 'z' ? 13 : 15;
return (
<>
- {frame}
- {t.suit === 'p' ? : }
-
- {t.n}
+
+
+ {label}
>
);
@@ -306,7 +112,7 @@ export function Tile({ code, w, sideways, dim, className, style, label }: TilePr
) : (
<>
-
+
>
)}
diff --git a/apps/web/src/games/mahjong/index.tsx b/apps/web/src/games/mahjong/index.tsx
index 547bc9f..e059532 100644
--- a/apps/web/src/games/mahjong/index.tsx
+++ b/apps/web/src/games/mahjong/index.tsx
@@ -8,7 +8,7 @@ import { haptic, noise, sfx, sounds, tone } from '../../lib/feedback';
import type { BoardProps, GameUI, OptionsProps } from '../types';
import { helpNow } from './help';
import { quickStart } from './quick';
-import { Tile, tileName, tileOrder, tileShort } from './Tile';
+import { MAHJONG_TILE_CREDIT, Tile, tileName, tileOrder, tileShort } from './Tile';
const WIND = ['동', '남', '서', '북'];
const POS_KO = ['나', '오른쪽', '맞은편', '왼쪽'];
@@ -1547,6 +1547,7 @@ function Rules({ options }: { options?: MahjongOptions }) {
점수는 이 방에서만 쓰는 놀이용 점수예요. 재화나 포인트로 바뀌지 않아요.
+
{MAHJONG_TILE_CREDIT}
);
}
diff --git a/apps/web/src/games/mahjong/tiles/1m.svg b/apps/web/src/games/mahjong/tiles/1m.svg
new file mode 100644
index 0000000..6ddb2f4
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/1m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/1p.svg b/apps/web/src/games/mahjong/tiles/1p.svg
new file mode 100644
index 0000000..50f923b
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/1p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/1s.svg b/apps/web/src/games/mahjong/tiles/1s.svg
new file mode 100644
index 0000000..95518fb
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/1s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/1z.svg b/apps/web/src/games/mahjong/tiles/1z.svg
new file mode 100644
index 0000000..f513a97
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/1z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/2m.svg b/apps/web/src/games/mahjong/tiles/2m.svg
new file mode 100644
index 0000000..dee81bd
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/2m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/2p.svg b/apps/web/src/games/mahjong/tiles/2p.svg
new file mode 100644
index 0000000..32ab90a
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/2p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/2s.svg b/apps/web/src/games/mahjong/tiles/2s.svg
new file mode 100644
index 0000000..fc27ed4
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/2s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/2z.svg b/apps/web/src/games/mahjong/tiles/2z.svg
new file mode 100644
index 0000000..c9e9802
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/2z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/3m.svg b/apps/web/src/games/mahjong/tiles/3m.svg
new file mode 100644
index 0000000..c4fa88a
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/3m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/3p.svg b/apps/web/src/games/mahjong/tiles/3p.svg
new file mode 100644
index 0000000..55bab93
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/3p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/3s.svg b/apps/web/src/games/mahjong/tiles/3s.svg
new file mode 100644
index 0000000..c50b218
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/3s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/3z.svg b/apps/web/src/games/mahjong/tiles/3z.svg
new file mode 100644
index 0000000..a77eadf
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/3z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/4m.svg b/apps/web/src/games/mahjong/tiles/4m.svg
new file mode 100644
index 0000000..06611b9
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/4m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/4p.svg b/apps/web/src/games/mahjong/tiles/4p.svg
new file mode 100644
index 0000000..3a49073
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/4p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/4s.svg b/apps/web/src/games/mahjong/tiles/4s.svg
new file mode 100644
index 0000000..1373567
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/4s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/4z.svg b/apps/web/src/games/mahjong/tiles/4z.svg
new file mode 100644
index 0000000..2a8b18c
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/4z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5m.svg b/apps/web/src/games/mahjong/tiles/5m.svg
new file mode 100644
index 0000000..c0bc8ca
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5mr.svg b/apps/web/src/games/mahjong/tiles/5mr.svg
new file mode 100644
index 0000000..9d236e2
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5mr.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5p.svg b/apps/web/src/games/mahjong/tiles/5p.svg
new file mode 100644
index 0000000..09ad49d
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5pr.svg b/apps/web/src/games/mahjong/tiles/5pr.svg
new file mode 100644
index 0000000..aa1adcd
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5pr.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5s.svg b/apps/web/src/games/mahjong/tiles/5s.svg
new file mode 100644
index 0000000..090cfe1
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5sr.svg b/apps/web/src/games/mahjong/tiles/5sr.svg
new file mode 100644
index 0000000..69a3703
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5sr.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/5z.svg b/apps/web/src/games/mahjong/tiles/5z.svg
new file mode 100644
index 0000000..3660020
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/5z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/6m.svg b/apps/web/src/games/mahjong/tiles/6m.svg
new file mode 100644
index 0000000..9445691
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/6m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/6p.svg b/apps/web/src/games/mahjong/tiles/6p.svg
new file mode 100644
index 0000000..f44cbb1
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/6p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/6s.svg b/apps/web/src/games/mahjong/tiles/6s.svg
new file mode 100644
index 0000000..a7730fe
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/6s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/6z.svg b/apps/web/src/games/mahjong/tiles/6z.svg
new file mode 100644
index 0000000..a0b140b
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/6z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/7m.svg b/apps/web/src/games/mahjong/tiles/7m.svg
new file mode 100644
index 0000000..094f308
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/7m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/7p.svg b/apps/web/src/games/mahjong/tiles/7p.svg
new file mode 100644
index 0000000..354a042
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/7p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/7s.svg b/apps/web/src/games/mahjong/tiles/7s.svg
new file mode 100644
index 0000000..99dfd48
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/7s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/7z.svg b/apps/web/src/games/mahjong/tiles/7z.svg
new file mode 100644
index 0000000..412eb35
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/7z.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/8m.svg b/apps/web/src/games/mahjong/tiles/8m.svg
new file mode 100644
index 0000000..888962d
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/8m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/8p.svg b/apps/web/src/games/mahjong/tiles/8p.svg
new file mode 100644
index 0000000..e2f0cd7
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/8p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/8s.svg b/apps/web/src/games/mahjong/tiles/8s.svg
new file mode 100644
index 0000000..aeb444e
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/8s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/9m.svg b/apps/web/src/games/mahjong/tiles/9m.svg
new file mode 100644
index 0000000..a16adc0
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/9m.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/9p.svg b/apps/web/src/games/mahjong/tiles/9p.svg
new file mode 100644
index 0000000..b4f8ca2
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/9p.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/9s.svg b/apps/web/src/games/mahjong/tiles/9s.svg
new file mode 100644
index 0000000..a54b46b
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/9s.svg
@@ -0,0 +1 @@
+
diff --git a/apps/web/src/games/mahjong/tiles/ATTRIBUTION.txt b/apps/web/src/games/mahjong/tiles/ATTRIBUTION.txt
new file mode 100644
index 0000000..401c9bc
--- /dev/null
+++ b/apps/web/src/games/mahjong/tiles/ATTRIBUTION.txt
@@ -0,0 +1,24 @@
+마작패 그림 출처 (Mahjong tile artwork)
+
+파일 이름 = 게임 엔진의 패 종류 코드: 1m~9m 만수, 1p~9p 통수, 1s~9s 삭수, 1z~7z 자패(동·남·서·북·백·발·중),
+5mr·5pr·5sr = 적도라(빨간 5).
+
+- 원본: Wikimedia Commons "Category:SVG Planar illustrations of Mahjong tiles"
+ https://commons.wikimedia.org/wiki/Category:SVG_Planar_illustrations_of_Mahjong_tiles
+ Shizhao(https://commons.wikimedia.org/wiki/User:Shizhao)의 컬러 세트 34장, 2026-10-13 받음(Commons API의 SHA-1과 맞춰 봄).
+ 1m~9m = File:MJ1wan.svg ~ MJ9wan.svg
+ 1p~9p = File:MJ1bing.svg ~ MJ9bing.svg
+ 1s~9s = File:MJ1tiao.svg ~ MJ9tiao.svg
+ 1z 동 = File:MJEastwind.svg 2z 남 = File:MJSouthwind.svg 3z 서 = File:MJWestwind.svg
+ 4z 북 = File:MJNorthwind.svg 5z 백 = File:MJWhitedragon.svg 6z 발 = File:MJGreendragon.svg
+ 7z 중 = File:MJReddragon.svg
+- 만든 사람: Shizhao
+- 라이선스: 퍼블릭 도메인. 33장은 파일 페이지에 {{PD-self}}, MJWestwind.svg는 {{cc-zero}}(CC0 1.0).
+ 대부분의 파일 페이지에는 "from free serif font" 와 {{GPL}} 표기도 붙어 있다(글자 모양을 GNU FreeFont의 FreeSerif에서
+ 땄다는 뜻, https://savannah.gnu.org/projects/freefont/ — GPL + 글꼴 예외). 이 SVG들이 그 자체로 소스 형태이므로
+ 여기 있는 파일을 그대로 함께 배포한다.
+- 바꾼 점: 패 테두리(검은 윤곽)와 흰 바탕 경로를 지웠고(패 몸통은 Tile.tsx가 그린다), svgo로 Inkscape 메타데이터를 지우고
+ 변환을 평탄화하고 좌표를 소수 둘째 자리로 반올림했다(viewBox 유지). 5mr·5pr·5sr은 5m·5p·5s의 색 잉크를 모두 빨강으로
+ 바꾼 사본이다. 그 밖의 그림 내용은 바꾸지 않았다.
+
+자세한 내용은 docs/games/mahjong.md "9.2 패 그림"에 있다.
diff --git a/docs/games/chess.md b/docs/games/chess.md
index 816e03f..7b1ed4a 100644
--- a/docs/games/chess.md
+++ b/docs/games/chess.md
@@ -188,6 +188,11 @@ interface ChessResult {
- 규칙 보기: 기물별 움직임 애니메이션 카드, 특수 규칙(앙파상·캐슬링·승진) 그림 설명.
- 시계 10초 이하 시 빨간색 + 효과음(끌 수 있음).
- 관전자: 판 방향 전환 버튼, 기보 탐색(로컬).
+- 기물 그림(2026-10-13, 사용자 요청 "자유 라이선스 실제 그림이 있으면 그걸로"): 직접 그린 SVG 대신 Wikimedia Commons의 Cburnett 세트를 쓴다(체스 위키백과·lichess 기본 기물과 같은 그림).
+ - 출처: File:Chess_klt45.svg, Chess_kdt45.svg, … `{k,q,r,b,n,p}{l,d}t45.svg` 12장(https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces/Standard_transparent), 만든 사람 Cburnett.
+ - 라이선스: 파일 페이지 표기 `{{self|GFDL|migration=relicense|BSD|GPL}}` — GFDL·CC BY-SA 3.0(relicense)·BSD·GPL 중 고를 수 있다. 우리는 **CC BY-SA 3.0**(https://creativecommons.org/licenses/by-sa/3.0/)으로 쓴다. 12장 모두 Commons API로 라이선스·SHA-1을 확인하고 받았다(2026-10-13).
+ - 바꾼 점: XML 머리말·공백 제거, `viewBox="0 0 45 45"` 추가, 경로 좌표 소수 둘째 자리 반올림(원래 대부분 그 정도라 그림은 같다). 12장 합계 약 11 KB. 변형본도 CC BY-SA 3.0. 출처 파일: `apps/web/src/games/chess/pieces/ATTRIBUTION.txt`, 규칙 화면 맨 아래에 출처 한 줄(`CHESS_PIECE_CREDIT`).
+ - 화면: `apps/web/src/games/chess/art.ts`의 `pieceSrc()`가 `new URL(…, import.meta.url)`로 불러 판 SVG 안에 ``로 그린다. 파일이 4 KB보다 작아 Vite가 체스 청크 안에 data URL로 넣는다(추가 요청 없음, 첫 수에 깜빡임 없음). 미끄러짐·내려앉기·잡힘·끌기·키보드·aria는 그대로이고 그림만 바뀌었다. 체스960과 "30초 규칙 요약" 그림판도 같은 기물을 쓴다. 다크 모드에서는 판 밖(선수 칸·잡은 기물·승진 고르기)의 흑 기물 아이콘에 옅은 테두리를 둘러 어두운 바탕에서도 보이게 한다.
## 10. 테스트 체크리스트
- [ ] perft: 초기 국면 깊이 1~4(가능하면 5), Kiwipete 깊이 1~3이 8.0의 수치와 일치(어댑터 경유로 검증).
diff --git a/docs/games/mahjong.md b/docs/games/mahjong.md
index 12cc8f8..8e29b6c 100644
--- a/docs/games/mahjong.md
+++ b/docs/games/mahjong.md
@@ -541,7 +541,7 @@ interface MahjongResult {
- PC/가로: 정사각 테이블 배치. 가로 화면을 권장 안내로 띄운다.
- 합법 수 하이라이트: 리치 선언 모드에서 리치 가능한 타패만 밝게, 구이가에 금지 패는 회색 + 자물쇠.
- 애니메이션: 쯔모/타패 150ms, 울기 시 "퐁!" 같은 큰 글자(텍스트, 음성 옵션), 화료 화면에서 역 목록이 한 줄씩 나오고 판/부/점수 표시. 모든 애니메이션은 "애니메이션 줄이기" 설정으로 끌 수 있다.
-- 패 디자인: 큰 글씨 모드(한자 대신 한글 보조 표기 "1만", "동", "백" 병기)를 기본으로 켠다. 색약 대응으로 종류별 테두리 무늬를 넣는다.
+- 패 디자인: 실제 마작패 그림(9.2)에 한글 보조 표기를 겹친다. 패 왼쪽 위에 수패는 숫자, 자패는 "동·남·서·북·백·발·중"을 작게 쓰고, 작은 패(폭 30px 미만: 버림패·울기·도라·휴대폰 손패)에서는 그 글자를 크게 써서 그림이 몇 px밖에 안 돼도 읽히게 한다. 수패 종류는 그림 모양(한자 萬 / 동그라미 / 대나무)으로 갈려 색만으로 구별하지 않아도 된다(그래서 예전 직접 그린 패의 종류별 테두리 무늬는 뺐다). 숫자 색: 만수 검정, 통수 파랑, 삭수 초록, 적도라 빨강.
- 규칙 보기: 역 목록(그림 예시), 점수표, 후리텐 설명, 용어집. 대국 중 하단 [?] 버튼으로 연다.
- 결과 화면: 국별 점수 변화 그래프, 최종 순위, 다시 하기.
@@ -555,6 +555,14 @@ interface MahjongResult {
- 내가 울거나 론할 수 있을 때: 알림음(론이면 더 급한 소리). 버릴 차례가 오면 차례 알림음. 버릴 수 없는 패를 누르면 경고음.
- 게임 끝: 1위 배너. 이기고 지는 소리는 방 화면이 내므로 여기서는 구경하는 사람에게만 팡파르.
+### 9.2 패 그림
+직접 그린 단순 SVG 대신 자유 라이선스 실제 패 그림을 쓴다(2026-10-13 사용자 요청 "자유 라이선스 실제 그림이 있으면 그걸로").
+- 출처: Wikimedia Commons "Category:SVG Planar illustrations of Mahjong tiles" https://commons.wikimedia.org/wiki/Category:SVG_Planar_illustrations_of_Mahjong_tiles 의 Shizhao 컬러 세트 `MJ1wan.svg`~`MJ9wan.svg`, `MJ1bing`~`MJ9bing`, `MJ1tiao`~`MJ9tiao`, `MJEastwind`·`MJSouthwind`·`MJWestwind`·`MJNorthwind`·`MJWhitedragon`·`MJGreendragon`·`MJReddragon` 34장(같은 사람의 흑백 `U+1F0xx MJ*.svg`를 칠한 판).
+- 라이선스: 34장 모두 Commons API로 파일 페이지 라이선스와 SHA-1을 확인했다(2026-10-13). 33장은 `{{PD-self}}`(퍼블릭 도메인), `MJWestwind.svg`는 `{{cc-zero}}`(CC0). 다만 대부분의 파일 페이지에 "from free serif font" + `{{GPL}}` 표기가 같이 붙어 있다(글자 모양을 GNU FreeFont의 FreeSerif에서 땄다는 뜻). 그래서 출처 표시는 필수가 아니지만 규칙 화면과 `ATTRIBUTION.txt`에 출처를 적고, GPL 쪽으로 보더라도 SVG 자체가 소스 형태라 그대로 함께 배포한다(FreeFont는 GPL + 글꼴 예외).
+- 같은 분류의 다른 세트는 쓰지 않았다: 蔡蜜의 `Mahjong 1m.svg` 세트(빨간 5 포함, CC BY-SA 4.0)와 碧海风의 `0101一萬.svg` 세트(CC BY-SA 4.0)는 출처 표시·동일 조건 변경 허락 의무가 있고, 퍼블릭 도메인 세트로 충분해서다.
+- 바꾼 점: 패 테두리(검은 윤곽)와 흰 바탕 경로를 지우고(패 몸통은 `Tile.tsx`가 그린다) svgo로 Inkscape 메타데이터 제거·변환 평탄화·좌표 소수 둘째 자리 반올림(`viewBox="0 0 74.7 95.1"` 유지). 적도라(빨간 5)는 5만·5통·5삭 그림의 색 잉크를 모두 빨강으로 바꾼 사본(`5mr.svg`·`5pr.svg`·`5sr.svg`). 파일 이름 = 엔진 종류 코드(`1m`~`9m`, `1p`~`9p`, `1s`~`9s`, `1z`~`7z` = 동·남·서·북·백·발·중). 원본 → 파일 대응과 출처: `apps/web/src/games/mahjong/tiles/ATTRIBUTION.txt`. 규칙 화면 맨 아래에 출처 한 줄(`MAHJONG_TILE_CREDIT`).
+- 빌드: `tileSrc()`가 `new URL(`./tiles/${kind}.svg`, import.meta.url)`로 불러, Vite가 4 KB 이하 패는 마작 청크 안에 data URL로 넣고 나머지는 해시 붙은 `/assets/` 파일로 내보낸다(마작 화면을 열 때만 받음, 메인 번들에 안 들어감, 외부 URL 없음). 37장 합계 약 120 KB(원본 34장 약 410 KB). 2026-10-13 빌드 기준 마작 청크 72.9 → 140.3 kB(gzip 23.7 → 35.4 kB) + 따로 나가는 통수 7장(3p~8p, 5pr) 63.7 kB. 패 뒷면·두께·선택·흐림·애니메이션·aria 이름은 그대로.
+
## 10. 테스트 체크리스트
- [ ] 셋업: 같은 시드면 같은 좌석·패산·배패가 나온다. 4인 산패 70장, 산마 55장, 왕패 14장.
- [ ] 산마 패 구성: 2m~8m 없음, 108장, 1m 표시 → 9m 도라.
@@ -594,7 +602,7 @@ interface MahjongResult {
## 12. 메모 (상표·법적 주의 등)
- "작혼", "Mahjong Soul", "天鳳/텐호", "M리그" 등은 상표이거나 서비스 이름이다. 화면·마케팅에 쓰지 않는다. 게임 이름은 일반 명칭인 "마작" 또는 "리치 마작"을 쓴다(사용자 선택 후보: "마작", "리치 마작", "4인 마작").
-- 패 그림은 직접 그리거나 라이선스가 확인된 공개 자산(예: CC0/CC-BY 마작패 SVG)을 쓴다. 상용 게임 패 그림을 가져오지 않는다.
+- 패 그림은 라이선스가 확인된 공개 자산(Shizhao의 퍼블릭 도메인 마작패 SVG, 9.2)을 쓴다. 상용 게임 패 그림을 가져오지 않는다.
- 법적 주의: 마작은 점수 내기로 흐르기 쉬운 게임이다. 이 사이트의 점수는 방 안에서만 쓰는 가상 점수이며, 대국이 끝나면 기록용 결과만 남고 재화·포인트로 쌓이거나 바뀌지 않는다. 유료 아이템·재화·환전·선물 기능을 붙이면 「게임산업진흥에 관한 법률」의 사행성·환전 금지 규정(제28조, 제32조)과 형법 도박죄(제246조) 문제가 생기므로 넣지 않는다.
- 게임물 등급분류: 국내에서 온라인 게임을 서비스하려면 원칙적으로 게임물관리위원회 등급분류가 필요하다(게임산업법 제21조). 비영리·무료라도 예외 해당 여부를 출시 전에 확인해야 한다. 마작은 화투·포커류 웹보드 게임과 달리 사행성 운영이 없으면 청소년이용불가로 일괄 분류되지는 않는다. 다만 대상 연령(아이 포함)을 고려해 사전 검토를 권장한다.
- 용어 표기는 한국 커뮤니티 관용(작혼 한국어판·나무위키)에 맞추고, 화면에는 일본어 원어를 괄호로 보조 표기한다.