/* 小工具元件：從 docs/shell-redesign-v7.html（外型定稿）抽出來，外型第09輪起比稿頁共用。改外型時以 v7／Swift 為準，這份跟著同步。 */
@font-face { font-family: Cubic; src: url("/assets/cubic11.woff2?v=7b818d2aff") format("woff2"); }
/* ── 小工具：照 PagerScreen.swift，u ＝ 1cqw ── */
.w { container-type: inline-size; max-width: 100%; position: relative; }
.w.med { aspect-ratio: 338 / 158; }
.w.sml { aspect-ratio: 1; }
/* 圓角放在裡面這層：cqw 只認祖先容器 */
.sk { position: absolute; inset: 0; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.med .sk { border-radius: 6.5cqw; }
.sml .sk { border-radius: 14cqw; }
.abs { position: absolute; }
.sans { font-family: -apple-system, "Helvetica Neue", "PingFang TC", sans-serif; }
.lcdf { font-family: Cubic, ui-monospace, monospace; }

.frame { background: #0A0A0D; box-sizing: border-box; display: flex; }
.candy .frame { box-shadow: inset 0 0.5cqw 0 -0.25cqw rgba(255,255,255,.22), 0 .4cqw .8cqw rgba(0,0,0,.45); }
.lcd { flex: 1; display: flex; flex-direction: column; color: #0F170D; min-width: 0; position: relative; overflow: hidden;
  box-shadow: inset 0 .4cqw .9cqw rgba(0,0,0,.5); }
.msg { flex: 1; display: flex; align-items: center; min-height: 0; }
.msg > span { min-width: 0; }
.one { white-space: nowrap; overflow: hidden; }
.multi { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; line-height: 1.12; }
.lrow { display: flex; align-items: center; white-space: nowrap; }
.lrow .sp { flex: 1; }
.bat { display: inline-flex; box-sizing: content-box; border: solid currentColor; }
.bat i { background: currentColor; display: block; }
svg { fill: currentColor; }
.brand { font-weight: 700; white-space: nowrap; line-height: 1; }
.model { font-weight: 900; font-style: italic; line-height: 1; text-shadow: 0 -0.2cqw 0 rgba(255,255,255,.08); }
.grip { display: flex; flex-direction: column; }
.grip i { display: block; }
.grille { display: grid; }
.grille i { display: block; border-radius: 50%; }
.callled { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFC2B8, #FF3B30 45%, #A8120A); }
/* 亮面糖果殼（Skins.swift CandyShell） */
.gl-grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; background-size: 140px 140px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.4 -.2'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>"); }
.gl1 { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0) 50%); mix-blend-mode: screen; }
.gl2 { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 33%, transparent 66%, rgba(0,0,0,.32)); }
.gl-sheen { position: absolute; left: -12%; top: -38%; width: 70%; height: 80%; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.42), rgba(255,255,255,.12) 45%, rgba(255,255,255,0) 70%); transform: rotate(-12deg); mix-blend-mode: screen; }
.gl-rim { position: absolute; inset: 0; box-shadow: inset 0 1cqw 0 -0.6cqw rgba(255,255,255,.35), inset 0 -3.4cqw 3cqw -2.6cqw rgba(0,0,0,.38), inset 1.3cqw 0 1cqw -1cqw rgba(255,255,255,.12); }

/* 電源鈕與新按鍵：同一種做法（放射漸層、0.4u 下移、0.8u 模糊的陰影） */
.btn { position: absolute; display: grid; place-items: center; line-height: 1; box-shadow: 0 .4cqw .8cqw rgba(0,0,0,.6); overflow: hidden; }
.candy .btn::after { content: ""; position: absolute; inset: 0 2px; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0) 50%); mix-blend-mode: screen; border-radius: inherit; pointer-events: none; }
.btn .ring { position: absolute; border-radius: 50%; border-style: solid; }
.b-black  { background: radial-gradient(circle at 40% 35%, #3B3B3B, #141414); }
.b-grey   { background: radial-gradient(circle at 40% 35%, #6E7075, #393A3E); color: #D6D8DB; }
.b-silver { background: radial-gradient(circle at 40% 35%, #EDEDE9, #A8A8A4); color: #2E2E2E; }
.b-yellow { background: radial-gradient(circle at 40% 35%, #FFE27E, #E8AC1E); color: #4A3306; }
.green { background: #8DEB6C; box-shadow: 0 0 .7cqw rgba(141,235,108,.9); }
.reddot { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFC2B8, #FF3B30 45%, #A8120A); box-shadow: 0 0 .5cqw rgba(255,59,48,.7); }
/* 第05輪鴿王：銀色太亮 → 亮部從 #F7F7F5 壓到 #CDCDC9，暗部加深，像拉絲金屬不像白塑膠 */
.b-silver-round { background: radial-gradient(circle at 40% 35%, #CDCDC9, #9A9B97 55%, #6F706C); color: #262626; }

/* 3310（PhoneSkins.swift NokiaStyle） */
.n-bg { background: linear-gradient(135deg, #5E6878, #464E5E 45%, #2E3441); }
.n-ring { box-sizing: border-box; background: linear-gradient(#E4E3DD, #C2C1BA); box-shadow: inset 0 .3cqw .3cqw rgba(255,255,255,.7), 0 .5cqw 1cqw rgba(0,0,0,.35); display: flex; flex-direction: column; }
.n-panel { flex: 1; min-height: 0; box-sizing: border-box; background: linear-gradient(#4C5465, #384050); box-shadow: inset 0 .4cqw .8cqw rgba(0,0,0,.4); display: flex; flex-direction: column; }
.n-head { display: flex; align-items: center; justify-content: flex-end; position: relative; flex: none; }
.n-slots { display: flex; transform: rotate(25deg); }
.n-slots i { border-radius: 2cqw; background: #1C2029; box-shadow: 0 .15cqw 0 rgba(255,255,255,.15); display: block; }
.n-bezel { flex: 1; background: #1F232B; display: flex; min-height: 0; }
.n-lcd { flex: 1; background: linear-gradient(#C8D07A, #97A62E); color: #1C2620; display: flex; align-items: flex-end; min-width: 0; }
.bars { display: flex; flex-direction: column; flex: none; }
.bars.r { align-items: flex-end; }
.bars b { display: block; background: currentColor; }
.n-mid { flex: 1; align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.n-keys { display: flex; justify-content: center; align-items: center; color: #3A3F4A; font-weight: 700; flex: none; }
/* 第07輪：三欄等寬兩側，選單鍵落在正中；C 鍵靠右、左右鍵靠左 */
.n-keys.mid { display: grid; grid-template-columns: 1fr auto 1fr; }
.n-keys.mid > :first-child { justify-self: end; }
.n-keys.mid > :last-child { justify-self: start; }
.n-key { background: linear-gradient(#F4F4F0, #B9BCBA); box-shadow: 0 .3cqw .4cqw rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.n-navi i { border-radius: 2cqw; background: #6EC3E6; display: block; box-shadow: 0 0 .6cqw rgba(110,195,230,.6); }
.n-bb { font-weight: 900; font-style: italic; line-height: 1; color: #B4BCC9; letter-spacing: .08em; text-shadow: 0 -.12cqw 0 rgba(0,0,0,.5); }
/* PHS（PhoneSkins.swift PHSStyle） */
.p-bg { background: radial-gradient(circle at 10% 0, rgba(255,255,255,.55), rgba(255,255,255,0) 60%), linear-gradient(135deg, #F4F6F9, #DDE3E9 50%, #B9C2CB); }
.p-lens { box-sizing: border-box; background: linear-gradient(135deg, #F2F3F3, #BDBEBD 50%, #8A9196); border: solid rgba(255,255,255,.85); box-shadow: .3cqw .6cqw 1cqw rgba(0,0,0,.25); display: flex; }
.ear { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; }
.ear i { display: block; border-radius: 50%; background: #34383D; box-shadow: 0 .15cqw 0 rgba(255,255,255,.7); }
.p-lcd { flex: 1; background: linear-gradient(#12B898, #049A80); color: #04211B; display: flex; flex-direction: column; box-shadow: inset 0 0 0 .4cqw rgba(0,0,0,.22); min-width: 0; }
.p-status { display: flex; justify-content: space-between; align-items: center; }
.p-tag { border: solid currentColor; line-height: 1.15; }
.p-bb { font-weight: 900; font-style: italic; line-height: 1; color: #7D8894; letter-spacing: .06em; text-shadow: 0 .15cqw 0 rgba(255,255,255,.75); }
.p-key { background: linear-gradient(#FAFBFC, #C9D0D7); box-shadow: 0 .5cqw .9cqw rgba(60,70,85,.35); display: grid; place-items: center; }
